Results 1 to 12 of 12

Thread: It appears that modifying export_descr_buildings causes immediate CTD..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hail Caesar! Member Nerouin's Avatar
    Join Date
    Aug 2004
    Location
    Colorado, USA
    Posts
    345

    Default Re: It appears that modifying export_descr_buildings causes immediate CTD..

    No- the only thing I changed was in the { } section that contains the factions.. I added in greek_cities for the equestrian buildings.

    I did the same for the actual units in the unit file, but this did nothing as they were still not available for the greek cities to build.. either way, it did not cause a CTD by itself. Modding the buildings file afterward caused a CTD, and modding the buildings file without modding the units file also caused a CTD.. thus it is fairly certain that the buildings file was causing it.

    Has anyone else successfully modded the buildings file without CTD??
    "That's right- none of you Americans smoke anymore. You all live long, dull, uninteresting lives."

  2. #2

    Default Re: It appears that modifying export_descr_buildings causes immediate CTD..

    Well, when you change the Unit ownership in the unit file, you can use them in custom battles. I'm not usre about buildings though.

  3. #3

    Default Re: It appears that modifying export_descr_buildings causes immediate CTD..

    What you need to do is. Go to the export_descr_unit file, find the unit you wish to edit. At the bottom of the units info it will say something like:

    ownership macedon,

    you want to change it to

    ownership macedon, greek_cities

    Now you want to go to export_descr_buildings. Find the stables section, and find the appropriate level stable, find the greek lancers entry.

    Change it from:
    recruit "greek light lancer" 0 requires factions { macedon, }
    to
    recruit "greek light lancer" 0 requires factions { macedon, greek_cities, }

    Don't forget the comma at the end of greek_cities. I haven't actually tried this, but this is exactly what i've done to add companions to the greek cities, the only problem is you don't have a unit card in combat.

  4. #4
    Resident Northern Irishman Member ShadesPanther's Avatar
    Join Date
    Apr 2003
    Location
    Northern Ireland
    Posts
    1,616

    Default Re: It appears that modifying export_descr_buildings causes immediate CTD..

    you can get the unitcard by unpacking the pack files and adding the appropriate pictures to the factions in ui/units and unit_info

    "A man may fight for many things: his country, his principles, his friends, the glistening tear on the cheek of a golden child. But personally, I'd mudwrestle my own mother for a ton of cash, an amusing clock and a stack of French porn."
    - Edmund Blackadder

  5. #5
    Squirrel Watcher Member Sinner's Avatar
    Join Date
    Aug 2004
    Posts
    390

    Default Re: It appears that modifying export_descr_buildings causes immediate CTD..

    I've modded both the building and the unit files, so I would guess that you might have made a typo somewhere, or you've left some of the other changes required undone.

    In export_descr_buildings.txt, you'd need to edit the following line...

    circus_maximus requires factions { carthage, parthia, macedon, seleucid, roman, }

    to this...

    circus_maximus requires factions { carthage, parthia, macedon, seleucid, roman, greek_cities, } (Note the end comma after 'greek_cities)

    Plus both Light Lancer entries (the first under Hippodrome, the second under Circus Maximus), from this...

    recruit "greek light lancer" 0 requires factions { macedon, }

    to this...

    recruit "greek light lancer" 0 requires factions { macedon, greek_cities, }

    And the Companion Cavalry entry under Circus Maximus from this...

    recruit "greek royal cavalry" 0 requires factions { seleucid, macedon, }

    to this...

    recruit "greek royal cavalry" 0 requires factions { seleucid, macedon, greek_cities, }

    In export_descr_unit.txt, find the Light Lancer and change the ownership field from this...

    ownership macedon

    to this...

    ownership macedon, greek_cities

    Do a similar change for Companion cavalry.

    Next you need to edit descr_model_battle.txt. Assuming you won't be creating your own greek textures for the two units, edit the file as follows:

    Copy the following line under the Light Lancer entry...

    texture macedon, data/models_unit/textures/unit_greek_cavalry_macedon.tga

    ... pasting it under the original line and editing as follows...

    texture greek_cities, data/models_unit/textures/unit_greek_cavalry_macedon.tga
    (Note: If you had your own TGA texture, you'd need to create the textures folder under models_unit and change the TGA file entry to whatever you've called your texture)

    Also copy the following line under the Light Lancer entry...

    model_sprite macedon, 60.0, data/sprites/macedon_greek_light_lancer_sprite.spr


    ... again pasting it under the original line and editing as follows...

    model_sprite greek_cities, 60.0, data/sprites/macedon_greek_light_lancer_sprite.spr


    For both the above lines, note that it's tabs and not spaces between texture/model_sprite and greek_cities. I'm not sure if spaces are OK, and don't really have the energy to check, but all the standard entries use tabs so it's best to keep with what's used.

    Do a similar change for Companion cavalry.

    Nearly done...

    Under the Data folder you need to create a sub-folder called ui, and under that a pair of sub-folders called unit_info and units. Under each of those two folders create a sub-folder called greek_cities. Next, get the Xpak tool from the RTW mods forum on this board and use that to unpack the PAK files in the Data\packs folder.

    Once you've unpacked the PAK files, it will have created a directory tree that matches much of the current Data structure. Drill down to Data\packs\DATA\UI\UNIT_INFO\MACEDON and copy the files called GREEK_ROYAL_CAVALRY_INFO.TGA and GREEK-LIGHT_LANCER_INFO.TGA to the unit_info\greek_cities folder you created above. Do the same for #GREEK_ROYAL_CAVALRY.TGA and #GREEK-LIGHT_LANCER.TGA under the units\greek_cities folder.

    The last part gives you the tile that appears on the recruiting page when viewing a city and the army list on the campaign map, plus the bigger picture when you view the unit stats and description by right clicking on it. I think they can be left out, although you get a default picture of a peasant instead.

    Hopefully I haven't fubared or left anything out, so I hope this helps.
    Last edited by Sinner; 10-10-2004 at 00:58.

  6. #6

    Default Re: It appears that modifying export_descr_buildings causes immediate CTD..

    When you do this, should the Lancers be appearing in Macedonian colors when fielded by the Greeks?

  7. #7
    Member Member Inuyasha12's Avatar
    Join Date
    Jun 2004
    Location
    miami ,U.S.A.
    Posts
    431

    Default Re: It appears that modifying export_descr_buildings causes immediate CTD..

    Ok i unpacked all those files, i clicked on DATA, amd started looking at all the files inside but they are all empty. I mean there are "folders" but no actual tga or files in them. Example i go to DATA-SHADERS and its all blank.

    What am i doing wrong??
    A man's real possession is his memory.In nothing else is he rich,in nothing else is he poor
    Shakespeare
    Not everything that counts can be counted, and not everything that can be counted counts.
    You can't say civilization isn't advancing: in every war they kill you in a new way.
    If the human mind was simple enough to understand, we'd be too simple to understand 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