Results 1 to 9 of 9

Thread: .bat file issue.

  1. #1
    Senior Member Senior Member Carl's Avatar
    Join Date
    Dec 2006
    Posts
    1,461

    Default .bat file issue.

    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:

    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:

    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.
    Find my ProblemFixer Purehere.

    This ProblemFixer fixes the following: 2-Hander bug, Pike Bug, Shield Bug, Chasing Routers, Cav not Charging, Formation Keeping Improved, Trait Bugs, and Ancillary Bugs.

    BETA Testers needed for the current version of RebuildProblemFixer. Thread here

  2. #2
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: .bat file issue.

    Should be "PFP Heading" (with quotation marks)

  3. #3
    blaaaaaaaaaarg! Senior Member Lusted's Avatar
    Join Date
    Feb 2005
    Posts
    1,773

    Default Re: .bat file issue.

    See i just use this in LTC:

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

  4. #4
    Senior Member Senior Member Carl's Avatar
    Join Date
    Dec 2006
    Posts
    1,461

    Default Re: .bat file issue.

    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?
    Find my ProblemFixer Purehere.

    This ProblemFixer fixes the following: 2-Hander bug, Pike Bug, Shield Bug, Chasing Routers, Cav not Charging, Formation Keeping Improved, Trait Bugs, and Ancillary Bugs.

    BETA Testers needed for the current version of RebuildProblemFixer. Thread here

  5. #5
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: .bat file issue.

    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.

  6. #6
    Senior Member Senior Member Carl's Avatar
    Join Date
    Dec 2006
    Posts
    1,461

    Default Re: .bat file issue.

    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.
    Find my ProblemFixer Purehere.

    This ProblemFixer fixes the following: 2-Hander bug, Pike Bug, Shield Bug, Chasing Routers, Cav not Charging, Formation Keeping Improved, Trait Bugs, and Ancillary Bugs.

    BETA Testers needed for the current version of RebuildProblemFixer. Thread here

  7. #7
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: .bat file issue.

    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.*

  8. #8
    Senior Member Senior Member Carl's Avatar
    Join Date
    Dec 2006
    Posts
    1,461

    Default Re: .bat file issue.

    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).
    Find my ProblemFixer Purehere.

    This ProblemFixer fixes the following: 2-Hander bug, Pike Bug, Shield Bug, Chasing Routers, Cav not Charging, Formation Keeping Improved, Trait Bugs, and Ancillary Bugs.

    BETA Testers needed for the current version of RebuildProblemFixer. Thread here

  9. #9
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: .bat file issue.

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO