Results 1 to 15 of 15

Thread: Aradan, could you help me? (adding a new temple)

Hybrid View

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

    Default Aradan, could you help me? (adding a new temple)

    Hi Aradan (or anyone else who can help):

    I have carefully read this:
    http://www.twcenter.net/forums/showthread.php?t=13734
    and this:
    http://forums.totalwar.org/vb/showthread.php?t=103835

    I have followed all the steps, yet I can only go into the imperial campaign menu (with the different circular symbols of factions), but no faction campaign would actually load. It would go back to the menu displaying "imperial campaign, historical battle...etc). When I quit RTW, it would crash to desktop.

    I have been trying to add a 5-level temple to all factions.

    Here are the things I did:
    I modified
    data/export_descr_buildings.txt
    data/export_descr_buildings_enums.txt
    data/text/export_buildings.txt
    And also created a new ui folder for all the TGA pictures.

    In data/export_descr_buildings.txt at the very end, I added this code:
    Code:
    building temple_of_yehovah
    {
        levels temple_of_yehovah1 temple_of_yehovah2 temple_of_yehovah3 temple_of_yehovah4 temple_of_yehovah5
        {
            temple_of_yehovah1 requires factions { barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 2
                    law_bonus bonus 1
                }
                construction  1 
                cost  400 
                settlement_min town
                upgrades
                {
                    temple_of_yehovah2
                }
            }
            temple_of_yehovah2 requires factions { barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 3
                    law_bonus bonus 2
                }
                construction  2 
                cost  800 
                settlement_min large_town
                upgrades
                {
                    temple_of_yehovah3
                }
            }
            temple_of_yehovah3 requires factions {barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 4
                    law_bonus bonus 4
                }
                construction  3 
                cost  1600 
                settlement_min city
                upgrades
                {
                    temple_of_yehovah4
                }
            }
            temple_of_yehovah4 requires factions {carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 5
                    law_bonus bonus 5
                }
                construction  5 
                cost  3200 
                settlement_min large_city
                upgrades
                {
                    temple_of_yehovah5
                }
            }
            temple_of_yehovah5 requires factions {carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 8
                    law_bonus bonus 8
                }
                construction  6 
                cost  6400 
                settlement_min huge_city
                upgrades
                {
                }
            }
        }
        plugins 
        {
        }
    }

    In data/export_descr_buildings_enums.txt, at the very end I added this

    temple_of_yehovah_name
    temple_of_yehovah1
    temple_of_yehovah1_desc
    temple_of_yehovah1_desc_short
    temple_of_yehovah1_barbarian
    temple_of_yehovah1_barbarian_desc
    temple_of_yehovah1_barbarian_desc_short
    temple_of_yehovah1_carthaginian
    temple_of_yehovah1_carthaginian_desc
    temple_of_yehovah1_carthaginian_desc_short
    temple_of_yehovah1_eastern
    temple_of_yehovah1_eastern_desc
    temple_of_yehovah1_eastern_desc_short
    temple_of_yehovah1_parthia
    temple_of_yehovah1_parthia_desc
    temple_of_yehovah1_parthia_desc_short
    temple_of_yehovah1_egyptian
    temple_of_yehovah1_egyptian_desc
    temple_of_yehovah1_egyptian_desc_short
    temple_of_yehovah1_greek
    temple_of_yehovah1_greek_desc
    temple_of_yehovah1_greek_desc_short
    temple_of_yehovah1_roman
    temple_of_yehovah1_roman_desc
    temple_of_yehovah1_roman_desc_short
    temple_of_yehovah2
    temple_of_yehovah2_desc
    temple_of_yehovah2_desc_short
    temple_of_yehovah2_barbarian
    temple_of_yehovah2_barbarian_desc
    temple_of_yehovah2_barbarian_desc_short
    temple_of_yehovah2_carthaginian
    temple_of_yehovah2_carthaginian_desc
    temple_of_yehovah2_carthaginian_desc_short
    temple_of_yehovah2_eastern
    temple_of_yehovah2_eastern_desc
    temple_of_yehovah2_eastern_desc_short
    temple_of_yehovah2_parthia
    temple_of_yehovah2_parthia_desc
    temple_of_yehovah2_parthia_desc_short
    temple_of_yehovah2_egyptian
    temple_of_yehovah2_egyptian_desc
    temple_of_yehovah2_egyptian_desc_short
    temple_of_yehovah2_greek
    temple_of_yehovah2_greek_desc
    temple_of_yehovah2_greek_desc_short
    temple_of_yehovah2_roman
    temple_of_yehovah2_roman_desc
    temple_of_yehovah2_roman_desc_short
    temple_of_yehovah3
    temple_of_yehovah3_desc
    temple_of_yehovah3_desc_short
    temple_of_yehovah3_barbarian
    temple_of_yehovah3_barbarian_desc
    temple_of_yehovah3_barbarian_desc_short
    temple_of_yehovah3_carthaginian
    temple_of_yehovah3_carthaginian_desc
    temple_of_yehovah3_carthaginian_desc_short
    temple_of_yehovah3_eastern
    temple_of_yehovah3_eastern_desc
    temple_of_yehovah3_eastern_desc_short
    temple_of_yehovah3_parthia
    temple_of_yehovah3_parthia_desc
    temple_of_yehovah3_parthia_desc_short
    temple_of_yehovah3_egyptian
    temple_of_yehovah3_egyptian_desc
    temple_of_yehovah3_egyptian_desc_short
    temple_of_yehovah3_greek
    temple_of_yehovah3_greek_desc
    temple_of_yehovah3_greek_desc_short
    temple_of_yehovah3_roman
    temple_of_yehovah3_roman_desc
    temple_of_yehovah3_roman_desc_short
    temple_of_yehovah4
    temple_of_yehovah4_desc
    temple_of_yehovah4_desc_short
    temple_of_yehovah4_barbarian
    temple_of_yehovah4_barbarian_desc
    temple_of_yehovah4_barbarian_desc_short
    temple_of_yehovah4_carthaginian
    temple_of_yehovah4_carthaginian_desc
    temple_of_yehovah4_carthaginian_desc_short
    temple_of_yehovah4_eastern
    temple_of_yehovah4_eastern_desc
    temple_of_yehovah4_eastern_desc_short
    temple_of_yehovah4_parthia
    temple_of_yehovah4_parthia_desc
    temple_of_yehovah4_parthia_desc_short
    temple_of_yehovah4_egyptian
    temple_of_yehovah4_egyptian_desc
    temple_of_yehovah4_egyptian_desc_short
    temple_of_yehovah4_greek
    temple_of_yehovah4_greek_desc
    temple_of_yehovah4_greek_desc_short
    temple_of_yehovah4_roman
    temple_of_yehovah4_roman_desc
    temple_of_yehovah4_roman_desc_short
    temple_of_yehovah5
    temple_of_yehovah5_desc
    temple_of_yehovah5_desc_short
    temple_of_yehovah5_barbarian
    temple_of_yehovah5_barbarian_desc
    temple_of_yehovah5_barbarian_desc_short
    temple_of_yehovah5_carthaginian
    temple_of_yehovah5_carthaginian_desc
    temple_of_yehovah5_carthaginian_desc_short
    temple_of_yehovah5_eastern
    temple_of_yehovah5_eastern_desc
    temple_of_yehovah5_eastern_desc_short
    temple_of_yehovah5_parthia
    temple_of_yehovah5_parthia_desc
    temple_of_yehovah5_parthia_desc_short
    temple_of_yehovah5_egyptian
    temple_of_yehovah5_egyptian_desc
    temple_of_yehovah5_egyptian_desc_short
    temple_of_yehovah5_greek
    temple_of_yehovah5_greek_desc
    temple_of_yehovah5_greek_desc_short
    temple_of_yehovah5_roman
    temple_of_yehovah5_roman_desc
    temple_of_yehovah5_roman_desc_short

    In data/text/export_buildings.txt , at the very end, I added a description for each of the enumerated descriptions. Example would be:


    {temple_of_yehovah_name} The following of LORD God
    {temple_of_yehovah1} Pious Preaching
    {temple_of_yehovah1_desc}
    WARNING! This baseline short description should never appear on screen!
    {temple_of_yehovah1_desc_short}
    WARNING! This baseline short description should never appear on screen!

    {temple_of_yehovah1_barbarian} Pious Preaching
    {temple_of_yehovah1_barbarian_desc}
    ...text...
    {temple_of_yehovah1_barbarian_desc_short}
    The Fear of the LORD is the beginning of wisdom, and knowledge of the Holy is understanding

    {temple_of_yehovah1_carthaginian} Pious Preaching
    {temple_of_yehovah1_carthaginian_desc}
    ...text...
    {temple_of_yehovah1_carthaginian_desc_short}
    ...text...

    and so on from 1 through 5


    Then, I created a data/ui folder.
    It contains 7 folders: roman, carthaginian, egyptian, greek, barbarian, eastern, parthian
    Each of these folders contains a sub folder called building, which then contains a sub-folder called construction

    In the folder data/ui/roman/building, I have (.tga files)
    #roman_temple_of_yehovah1 (78 x 62 pixels)
    #roman_temple_of_yehovah2 (78 x 62 pixels)
    #roman_temple_of_yehovah3 (78 x 62 pixels)
    #roman_temple_of_yehovah4 (78 x 62 pixels)
    #roman_temple_of_yehovah5 (78 x 62 pixels)
    #roman_temple_of_yehovah1_constructed (361 x 163 pixels)
    #roman_temple_of_yehovah2_constructed (361 x 163 pixels)
    #roman_temple_of_yehovah3_constructed (361 x 163 pixels)
    #roman_temple_of_yehovah4_constructed (361 x 163 pixels)
    #roman_temple_of_yehovah5_constructed (361 x 163 pixels)



    and in the folder data/ui/roman/building/construction, I have (.tga files)
    #roman_temple_of_yehovah1 (64 x 51 pixels)
    #roman_temple_of_yehovah2 (64 x 51 pixels)
    #roman_temple_of_yehovah3 (64 x 51 pixels)
    #roman_temple_of_yehovah4 (64 x 51 pixels)
    #roman_temple_of_yehovah5 (64 x 51 pixels)


    I copied these into each of the other culture's folder, and merely deleted "roman" and replaced it with the name that culture. So all the tga files should be in order.


    I wasn't sure whether I was supposed to do something to descr_ui_buildings.txt


    Could you comment on anything wrong?
    should I rename my building levels to not include the word "temple"?
    Last edited by ThePianist; November 21, 2009 at 09:50 PM.

  2. #2

    Default Re: Aradan, could you help me? (adding a new temple)

    Try going into descr_ui_buildings.txt and deleting either of the lines that mention "carthaginian" and make sure to delete map.rwm in the base folder.

    Expand your borders, a mod based on XGM 5.

  3. #3

    Default Re: Aradan, could you help me? (adding a new temple)

    I have already done both of these.

    (and it's the same result as posted in the initial post: the screen with all the faction symbols would load, but no campaign would load, it would jump back to the menu containing "imperial campaign historical battles...")


    I was wondering, for the descriptions (here are only some of the headers, to save space)

    temple_of_yehovah1
    temple_of_yehovah1_desc
    temple_of_yehovah1_desc_short
    temple_of_yehovah1_barbarian
    temple_of_yehovah1_barbarian_desc
    temple_of_yehovah1_barbarian_desc_short
    temple_of_yehovah1_carthaginian
    temple_of_yehovah1_carthaginian_desc
    temple_of_yehovah1_carthaginian_desc_short
    temple_of_yehovah1_eastern
    temple_of_yehovah1_eastern_desc
    temple_of_yehovah1_eastern_desc_short
    temple_of_yehovah1_parthia
    temple_of_yehovah1_parthia_desc
    temple_of_yehovah1_parthia_desc_short
    temple_of_yehovah1_egyptian
    temple_of_yehovah1_egyptian_desc
    temple_of_yehovah1_egyptian_desc_short
    temple_of_yehovah1_greek
    temple_of_yehovah1_greek_desc
    temple_of_yehovah1_greek_desc_short
    temple_of_yehovah1_roman
    temple_of_yehovah1_roman_desc
    temple_of_yehovah1_roman_desc_short


    Is it necessary that I write a description for
    levelname_culturename
    levelname_culturename_desc
    levelname_culturename_desc_short

    Or is it enough to have
    levelname_culturename_desc
    levelname_culturename_desc_short

    In other words, the bolded parts, are they extra and unneeded?
    Last edited by ThePianist; November 21, 2009 at 09:54 PM.

  4. #4
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Aradan, could you help me? (adding a new temple)

    If it's jumping back to the previous menu (KTM) then you should be getting an error when you exit the program. Make sure you have -show_err on your command line.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  5. #5
    Ramashan's Avatar Artifex
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    4,981

    Default Re: Aradan, could you help me? (adding a new temple)

    Try removing the temple from the Roman faction. In order to get Roman UI to work you have to pack the UI folder.

    Or, go to descr_UI and add the temple and attach it to a vanilla UI.

    But when this has happened to me it the past it gave me a CTD. So, it might be something else. But I would try this just to be sure.
    Under the Patronage of Lord Condormanius

  6. #6

    Default Re: Aradan, could you help me? (adding a new temple)

    Squid,I ran RTW with the -show err in the command line, it still doesn't show any errors when it crashes.
    I looked in the RTW main folder for any .txt file created that would store any error messages. None.

    Ramashan, I don't understand... could you explain each of these?

    -Try removing the temple from the Roman faction
    (should I remove it in the faction requirement for the construction in data/export_descr_buildings.txt, or should I remove roman from all the other files as well, including the pictures?)
    -In order to get Roman UI to work you have to pack the UI folder.
    (how do I pack the folder? And where is the usual ui for the existing factions? I don't see their TGA files anywhere)
    -Or, go to descr_UI and add the temple and attach it to a vanilla UI.
    (what should I add?)
    Last edited by ThePianist; November 22, 2009 at 03:37 PM.

  7. #7
    Ramashan's Avatar Artifex
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    4,981

    Default Re: Aradan, could you help me? (adding a new temple)

    Ramashan, I don't understand... could you explain each of these?
    Sorry, wrote it very quickly, will try to explain.

    Before you do anything, just try doing this in the descr_ui_buildings

    Code:
    temple_of_yehovah1 shrine
    temple_of_yehovah2 temple
    temple_of_yehovah3 large_temple
    temple_of_yehovah4 awesome_temple
    temple_of_yehovah5 pantheon
    This will over ride all the UI icons to use vanilla ones and get that headache out of the way.

    When i said re-pack Rome UI info, I was basically saying that getting Rome UI icons and such is not as easy as all other cultures, so, but adding the lines to descr_ui_buildings eliminates the necessity of having to pack the Rome UI files at all.
    Under the Patronage of Lord Condormanius

  8. #8

    Default Re: Aradan, could you help me? (adding a new temple)

    Wonderful, thanks
    I didn't know about the pack extractor. Now I know where those original TGA files are at!

    I made several mistakes:
    1. I made huge mistakes in data/text/export_buildings.txt
    During my copy and pasting of description paragraphs, I also copied and pasted a {buildingtitle} several times along with the descriptions. This totally made the export_buildings.txt not correspond to the list of building-titles given in export_desc_buildings_enum.txt

    2. I didn't unpack the files and add my custom-made TGA into the "real" ui folder. I instead made an extra ui folder and put the TGA files there.

    As of now, I fixed 1. So the building lists enumerated in export_desc_buildings_enum.txt now correspond exactly to the buildings listed in export_buildings.txt
    Now the campaign does load for each faction!
    But when I look in the build menu for each city, I still don't see the new building's build card.

    This is because I have not added the building cards into the actual ui folder, which is hidden and packed away into those files in data/packs.

    I have downloaded the Vercingetorix Packing tool, and I have unpacked the files. I am in the process of adding the TGAs into the real ui folder. I still have to figure out how to re-pack the folders.

  9. #9

    Default Re: Aradan, could you help me? (adding a new temple)

    I have read some more forum posts, and decided to make a mod folder.

    So I made a mod folder called yehovah
    Within it, I made a folder called data.
    I copied into it the modded text folder and the world folder
    I copied into it the entire unpacked ui folder (with my added TGAs).

    Then I ran RTW with the command line -mod:yehovah -show err -nm

    Now the campaigns again won't load, it jumps back to the menu containing "imperial campaign ... historical battles..."

    how about this, I have put together all my modified data in a data folder:
    and I put it online here (3 mb):
    http://www.megaupload.com/?d=RWO3HUIU


    It's really a very simple mod. Could someone look at my files, and made a mod-folder make them work, and post the working mod-folder on another megaupload account, so that I could get it?

    In other words, I am asking a better (experienced) modder to help with this mini-mod, and essentially do it for me.
    Thanks a lot.
    Last edited by ThePianist; November 23, 2009 at 10:56 PM.

  10. #10
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Aradan, could you help me? (adding a new temple)

    In a mod folder you must have an imperial_campaign or barbarian_invasion folder or else the mod folder won't work.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  11. #11

    Default Re: Aradan, could you help me? (adding a new temple)

    I did that.
    (imperial campaign is included in the world folder).

    Could you help me get the files to work? It's only a few lines of code. I already made all the TGA files, to the correct pixel size.

    Does the game crash if the TGA files are named #lowercaseletters rather than #UPPERCASELETTERS?
    Because I noticed that all the original TGAs are named with uppercase letters. And I looked in the XGM mod's UI folder, their custom-made TGAs are named all uppercase letters.

    self-note: read http://www.twcenter.net/forums/showthread.php?t=86651
    Last edited by ThePianist; November 25, 2009 at 02:00 AM.

  12. #12

    Default Re: Aradan, could you help me? (adding a new temple)

    Windows is case insensitive when it comes to file names, and it seems so is RTW. It does not matter if UI cards are named in upper- or lowercase.

    Expand your borders, a mod based on XGM 5.

  13. #13
    Kylan271's Avatar Domesticus
    Join Date
    Jul 2007
    Location
    Vietnam
    Posts
    2,232

    Default Re: Aradan, could you help me? (adding a new temple)

    Hmmm,curious I heard some files are case sensitive,can't recall which????

    Didn't know Roman files need extra work,lol. Have to keep an eye out on this when changing my EDB etc also.

    Appreciate the extra data. Helpful.


  14. #14

    Default Re: Aradan, could you help me? (adding a new temple)

    Certainly, data within files is often case sensitive, if nothing else than it must match from file to file. But I've not heard of file names being case sensitive, especially not UI files or unit textures.

    Expand your borders, a mod based on XGM 5.

  15. #15

    Default Re: Aradan, could you help me? (adding a new temple)

    Hello, Dear administrators, moderaters and mates

    Having a question: Can't find the file where to choose the capital city for a faction, for my mod. I searched with the search engine here (Rome Workshop), with following tags: capital, choose capital, choose capital city...read plenty of tutorials but didn't find anything...

    May anyone like to help me?

    Looking forward for help

    EDIT: Found out, what to do... no problem anymore
    Last edited by Odoaker; December 03, 2009 at 12:22 AM.
    Developer of Rising Sumer
    Beta-tester for ChC; Mapper of Colonialism-TW;

Posting Permissions

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