Page 1 of 2 12 LastLast
Results 1 to 20 of 26

Thread: Adding Trade Resources

Hybrid View

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

    Default

    Other than editing and adding in the following files:
    descr_sm_resources.txt
    resource_x.cas
    resource_x.tga

    what files need to be altered in order to add a new trade resource into the game?

    And if none, why doesn't geomod recognize the new resources in name or graphic?

    Thanks!
    -Raz
    Last edited by Ishan; April 15, 2011 at 10:04 PM. Reason: Double Post

  2. #2
    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: Adding Trade Resources

    Moved out of tutorial section.
    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

  3. #3

    Default Re: Adding Trade Resources

    You forgot descr_strat.txt!

  4. #4

    Default Re: Adding Trade Resources

    Ah yes, of course, is there anything besides those listed above, plus descr_strat.txt? It seems I have everything added, but geomod doesn't recognize them. It also seems that Geomod is showing the graphic for tobacco on the strat map, but the mouse-over reads "glass."

    Thoughts?

  5. #5

    Default Re: Adding Trade Resources

    Quote Originally Posted by Razorius View Post
    It seems I have everything added, but geomod doesn't recognize them. It also seems that Geomod is showing the graphic for tobacco on the strat map, but the mouse-over reads "glass."
    It could be tobacco only meaning the .cas model for it and in the text file it says glass you can change that:-
    Open the strat.txt file in the data\text folder and you will find this:-
    Code:
    {SMT_RESOURCE_TOBACCO}Glass
    ^Change that if you want.

  6. #6

    Default Re: Adding Trade Resources

    Hmm, I'm not familiar with Geomod at all --- but if there are problems with it, maybe you should post at the Geomod thread at http://www.twcenter.net/forums/showthread.php?t=201955 ? You'll get much more visibility there...

  7. #7
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Adding Trade Resources

    I do it the Old Skool way - pick a spot, use show_cursorstat to get my x,y coordinates, and enter them in the descr_strat. Geo-mod and me are not friends.

  8. #8
    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: Adding Trade Resources

    By the way you cannot add more resources than are already in descr_sm_resources file. There's a hardcoded limit of 26 resources. The only thing you can do is repurpose existing resources.
    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

  9. #9

    Default Re: Adding Trade Resources

    The hardcode limit of 26 is wrong, I've got 27.

  10. #10

    Default Re: Adding Trade Resources

    Quote Originally Posted by Eothese View Post
    The hardcode limit of 26 is wrong, I've got 27.
    , Lol thanks eothese i will spam one new resource in my mod.

  11. #11
    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: Adding Trade Resources

    Quote Originally Posted by Eothese View Post
    The hardcode limit of 26 is wrong, I've got 27.
    Geomod likely codes to the listed hardcoded limits, I know I do. So if the limits are wrong then geomod will probably not recognize more than 26 resources anyways.

    That being said so what is the real limit on resources?
    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

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

    Default Re: Adding Trade Resources

    Quote Originally Posted by Eothese View Post
    The hardcode limit of 26 is wrong, I've got 27.
    Not what this says.

  13. #13

    Default Re: Adding Trade Resources

    Quote Originally Posted by Moon View Post
    Not what this says.
    I wasn't aware of that...thanks for the update...

  14. #14

    Default Re: Adding Trade Resources

    I just gave it a try and can't get past 27. The problem seems to be the name of the resourse itself rarther than the number, as it throws an error no matter where I place the new entry in the file and always indicates that entry. I even tried with some of the RTW leftovers found in the models_strat folder...

  15. #15
    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: Adding Trade Resources

    Are you sure you have 27 then and all of them appear in game? It would seem very odd for them to have increased the limit from RTW by just 1.
    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

  16. #16

    Default Re: Adding Trade Resources

    Yeah, I had my own doubts after I'd counted for the 1st, 2nd, and 3rd time. But I'm as sure as can be. 24 from vanilla, plus the 3 that are unused, elephants, camels and dogs.

  17. #17

    Default Re: Adding Trade Resources

    Where is the working descr_strat file in a mod foldered? I have the one I edited but then I changed mod folder and wanted to use new resources in the new folder but can't find where to replace the descr_strat?

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

    Default Re: Adding Trade Resources

    In here.
    data\world\\maps\campaign\imperial_campaign\descr_strat

  19. #19

    Default Re: Adding Trade Resources

    Quote Originally Posted by Moon View Post
    In here.
    data\world\\maps\campaign\imperial_campaign\descr_strat
    Thanks! Forgot where I had originally gotten the file as I made backups and then hadn't edited it for awhile. This file and sm_resources are all I should need to change right? I did it correctly earlier to test something and it seemed to work with just changing those but my new changes are much bigger.

  20. #20

    Default Re: Adding Trade Resources

    Quote Originally Posted by Ichon View Post
    Thanks! Forgot where I had originally gotten the file as I made backups and then hadn't edited it for awhile. This file and sm_resources are all I should need to change right? I did it correctly earlier to test something and it seemed to work with just changing those but my new changes are much bigger.
    Just remember that there are hard-coded limits to how many resources you can have...the max is 26...

Page 1 of 2 12 LastLast

Posting Permissions

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