Log in

View Full Version : .bat file issue.



Carl
05-09-2007, 21:11
I've got a .bat file set up so that it creates a new .cfg file for my mod when the mod is installed, but everytime I try to run the damm file i get a "windows cannot find the specified file" message and it dosen't run.

Here's the code:


@echo off
cls
copy PFP Heading.txt+medieval2.preference.cfg ProblemFixerPure.cfg


A very simila peice of code for a diffnt mod of mine works fine without a hitch. Code:


@echo off
cls
copy PF-headercfg.txt+medieval2.preference.cfg ProblemFixer.cfg

Any ideas what the hell is wrong with this thing as it's been driving me nuts:wall:.

alpaca
05-09-2007, 21:22
Should be "PFP Heading" (with quotation marks)

Lusted
05-09-2007, 22:19
See i just use this in LTC:


@echo off
cls
copy headercfg.txt+medieval2.preference.cfg landstoconquer.cfg

Carl
05-10-2007, 17:07
Managed to solve it, on my own. I just took the space out of PFP Heading and it worked fine, but thanks for the help.

I have another issue though.

Everytime i start a campaign i get an unspecified error. Yet removing the Traits file seems to cure it.

the problem is their aren't any clues as t the problem in the error log.

Any ideas guys?

alpaca
05-10-2007, 18:18
Try enabling error tracing and see which trigger fired last.
I only know that stuff from scripting where you have to be careful you don't trigger on stuff that is not yet in the game, but that can hardly be the case in the trait file because you have to trigger on a character export.

Carl
05-10-2007, 19:33
How do you enable error tracing?

Sorry for the dumb question.

The annoying thing is that the exact same file works without a hitch in my Rebuild ProblemFixer. It's actually the same file with a couple of traits and their respective triggers commented out.

alpaca
05-11-2007, 14:51
Chances are you probably didn't remove them from descr_strat then

Tracing can be enabled by using level = * trace or if you want to only see scripting messages (highly recommended by myself if you use it) level = game.script.*

Carl
05-11-2007, 19:15
Managed to fix it. I uncommented the traits I'd commented out, but left the triggers commented out and it worked.

Not a Descr_Strat file issue though as i checked. The best guess I can make is that something in the ancillaries file needs one of those traits. can't think what it could be though as I've barely touched it.

Thanks for the help Alpaca.

As a quick last question: What are the various levels of error checking and is any one best? I was advised to always leave it on debug, (although i tried it on trace setting like you suggested with no luck).

alpaca
05-11-2007, 19:34
The progression is trace<info<warn<debug<err<fatal<always
Usually, the most useful one is level = * err or level = * error because it will show you the errors you make (like spelling mistakes and so on) without giving a lot of unnecessary info. However, if you're creating triggers or scripts and want to test them you should use level = game.script.* trace as it will yield all the info about the scripting side of the game, including triggers.
I don't think there are any debug messages in the retail exe so debug is the same level as err
The warn level can be useful sometimes if you want info about missing files and so on but you'll have to dig through a lot of stuff to find it.