Results 1 to 9 of 9

Thread: Odd CTD

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Odd CTD

    I am having a CTD on year 1417 as Venice. I have heard about the 1410 CTD and was expecting one but nothing happened, then 14 turns later i get one. I do not get an error messege or anything with this CTD, it just takes me straight to the desktop. Any i deas on what could be causing this or how to fix it?

  2. #2

    Default Re: Odd CTD

    Im not sure but probably the same one, but you have just prolonged the ctd by a few turns. Have a look at the map thru the ~toggle_fow. Then take a look at the graphs and look at the economy of all factions. Also by opening up the ~, you can see which factions have been recieving money thru the script. Those will be the factions that would cause the ctd due to the economy. Sorry as Im sure none of this will fix this.

  3. #3

    Default Re: Odd CTD

    what comands in the console will let you get that info???

    does anybody know a link where it explains all the console comands???

    thanks in advance

    Saludos
    y
    Respeto
    -:-
    Greetings
    &
    Respect




    Dominion of the Sword / The Long Road GFX designer / Zuma Team member.
    TLRaced GFX add on for TLR2.0
    www.andresgogo.com

  4. #4

    Default Re: Odd CTD

    I think you can find all console commands here:
    http://www.mediafire.com/?8j2mzywfnzw

    You can press the up arrow, to see which factions have recieved money through console commands. (console command history)
    Perhaps there is an easier way, but it works for me.

  5. #5

    Default Re: Odd CTD

    thx

    Saludos
    y
    Respeto
    -:-
    Greetings
    &
    Respect




    Dominion of the Sword / The Long Road GFX designer / Zuma Team member.
    TLRaced GFX add on for TLR2.0
    www.andresgogo.com

  6. #6

    Default Re: Odd CTD

    What I don't get is why other mods don't have this problem. Or do they?

    Is it a bug which ended up in TLR somehow? If so, it seems to me that it would be a campaign script problem which could be fixed; although, I'm not allthat familiar with the scripting.

  7. #7

    Default Re: Odd CTD

    must be some problem with all the trade and recuitment changes that the engine is not coping well with. if I remember right, torn had some kind of code to give money to factions depending on their cash specially the slave faction. If I find it, I post it here for people to have a look at it

    Saludos
    y
    Respeto
    -:-
    Greetings
    &
    Respect




    Dominion of the Sword / The Long Road GFX designer / Zuma Team member.
    TLRaced GFX add on for TLR2.0
    www.andresgogo.com

  8. #8

    Default Re: Odd CTD

    The code for this is in the campaign_script.txt file
    Just look around for "SLAVE TREASURY MANAGER" and "AI TREASURY MANAGER".

  9. #9

    Default Re: Odd CTD

    Just looking at it, I see what may be the problem, although I'm not at all sure I know what I'm doing!

    All of the other AI treasury manager portions of the campaign script, for each of the non-slave, non-player factions, checks to see if the treasury is losing money and if it is < -10000 and if so adds 11000 to make the treasury positive at 1000.

    But for the slave treasury, when the checks are made for the negative numbers only 40000 is added. So a check is made at -200000 but only adds 40000, leaving the treasury at -160000 after the check. Like this:

    monitor_event FactionTurnStart FactionType slave
    and LosingMoney
    and Treasury < -200000

    console_command add_money slave, 40000

    end_monitor

    Then there's a check at -160000 and another 40000 is added and then another at 120000 and so on, until it gets to < -40000 at which point it adds only 40000. So the checks stop at -40000 and only add 40000 giving the total of 0.

    After that a bunch of stuff giving money based on how many settlements the slave faction has are all remarked out.

    It seems to me that maybe we can try just a single negative treasury check, like all of the other non-slave factions use. This way it would simply be:

    monitor_event FactionTurnStart FactionType slave
    and LosingMoney
    and Treasury < -10000

    console_command add_money slave, 11000

    end_monitor

    Just like all of the other factions have it. It'll just keep adding money until the total is positive.

    Alternatively, maybe the problem is in that lastline of the cascade of monitors from -200000 down to -40000? Instead of adding just 40000 on that last check, add 41000.

    Something to try anyway. I know nothing about scripting and monitors. Hope someone else does.
    Last edited by Averroës; November 16, 2007 at 07:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •