Results 1 to 11 of 11

Thread: can you look at this text file and see what i did wrong?

Hybrid View

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

    Default can you look at this text file and see what i did wrong?

    so i am trying to change this descr_strat file for a hotseat between my friends but only one problem when i tried raising the population of some regions it was unsuccessful, i assumed this was because the level of the town was too small so i tried to raise the level of the smaller towns to "large_towns"
    so can you please look at both of scripts and see what i did wrong? the script is very very small, only 22 regions in total and 8 factions.
    the crash that i experience is as soon as i initiate the campaign "start" button i am booted back to the menu screen.
    here are the two desc_strat files, one i changed personally and the other is the unchanged original.
    thank you.

  2. #2
    Moon's Avatar Centenarius
    Join Date
    Oct 2008
    Location
    The dark side
    Posts
    878

    Default Re: can you look at this text file and see what i did wrong?

    Just a quick look and you've given city buildings to Innsbruck_Province, requires type core_castle_building castle, same with Ajaccio_Province and Cagliari_Province.
    Use these as a guide from descr_settlements_mechanics.
    <population_levels>
    <!-- city -->
    <level name="village" base="400" upgrade="800" min="400" max="1500"/>
    <level name="town" base="800" upgrade="2000" min="400" max="3500"/>
    <level name="large_town" base="2000" upgrade="6000" min="400" max="9000"/>
    <level name="city" base="6000" upgrade="12000" min="400" max="18000"/>
    <level name="large_city" base="12000" upgrade="24000" min="400" max="36000"/>
    <level name="huge_city" base="24000" min="400" max="72000"/>
    <!-- castle -->
    <level name="moot_and_bailey" base="400" upgrade="800" min="400" max="1500"/>
    <level name="wooden_castle" base="400" upgrade="2000" min="400" max="3500"/>
    <level name="castle" base="1500" upgrade="4500" min="400" max="9000"/>
    <level name="fortress" base="4500" upgrade="9000" min="400" max="13500"/>
    <level name="citadel" base="9000" upgrade="18000" min="400" max="18000"/>
    </population_levels>
    </root>

  3. #3

    Default Re: can you look at this text file and see what i did wrong?

    here is my new one, i changed the wall type for all settlements you mentioned to this: "type core_castle_building castle"

    sadly i have the same error again, what else did i do wrong?
    here is the new one

    and this might be a little off topic, but where is the tutorial that teaches me how to increase or decrease the number of soldiers in one unit?
    thank you
    Last edited by Toho; April 25, 2011 at 04:49 PM.

  4. #4
    Moon's Avatar Centenarius
    Join Date
    Oct 2008
    Location
    The dark side
    Posts
    878

    Default Re: can you look at this text file and see what i did wrong?

    Post your system.log as well please.

    A Beginner's Guide to the Export_Descr_Unit

  5. #5

    Default Re: can you look at this text file and see what i did wrong?

    where is the system.log exacly? its not in my mod folder, and the one in the vanilla folder is dated back from 2007.
    the stainless steel system log is in their mod folder but battleaxe(the mod i am trying to change) does not appear to have one. i even searched the whole folder.

  6. #6
    Moon's Avatar Centenarius
    Join Date
    Oct 2008
    Location
    The dark side
    Posts
    878

    Default Re: can you look at this text file and see what i did wrong?

    The battleaxe mod has a .cfg hasn't it? if it has look for a line like this inside it.
    to = logs/retrofit.log.txt

  7. #7

    Default Re: can you look at this text file and see what i did wrong?

    yes in the cfg file i see this about the log:
    [log]
    to = logs/system.log.txt
    level = * error

  8. #8
    Moon's Avatar Centenarius
    Join Date
    Oct 2008
    Location
    The dark side
    Posts
    878

    Default Re: can you look at this text file and see what i did wrong?

    Durazzo and Tunis needs this,
    type core_castle_building castle
    Ajaccio_Province and Cagliari_Province ports need this,
    type castle_port c_port

    System.log.txt is in the main Medieval II Total War folder.

    } "Press the Enter key after the } and before ; Durazzo 58 28"
    Last edited by Moon; April 25, 2011 at 06:03 PM.

  9. #9

    Default Re: can you look at this text file and see what i did wrong?

    ugh same error again

    here the log i found in my main medieval folder and the new descr_strat

  10. #10

    Default Re: can you look at this text file and see what i did wrong?

    oh i found it

    here:
    Spoiler Alert, click show to read: 
    19:36:51.840 [system.rpt] [always] CPU: SSE2
    19:36:51.840 [system.rpt] [always] ==== system log start, build date: Feb 25 2008 version development ===
    19:36:51.854 [system.io] [always] mounted pack packs/data_0.pack
    19:36:51.855 [system.io] [always] mounted pack packs/data_1.pack
    19:36:51.857 [system.io] [always] mounted pack packs/data_2.pack
    19:36:51.861 [system.io] [always] mounted pack packs/data_3.pack
    19:36:51.864 [system.io] [always] mounted pack packs/data_4.pack
    19:36:51.864 [system.io] [always] mounted pack packs/localized.pack
    19:37:34.130 [script.err] [error] Script Error in mods/battleaxe/data/world/maps/campaign/custom/Small_Italia/descr_strat.txt, at line 659, column 16
    Population of 12000 is too high for a large_town - max is 9000
    19:37:34.131 [script.err] [error] Script Error in mods/battleaxe/data/world/maps/campaign/custom/Small_Italia/descr_strat.txt, at line 663, column 5
    Expected '{', found 'building'
    19:37:34.131 [script.err] [error] Script Error in mods/battleaxe/data/world/maps/campaign/custom/Small_Italia/descr_strat.txt, at line 663, column 5
    could not create settlement at script line 663.



    Edit: Success, thanks to the log i found all the problems and fix them all! thanks moon.
    Last edited by Toho; April 25, 2011 at 07:19 PM.

Posting Permissions

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