1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[GS] Change Name

Discussion in 'Mod Creation Help' started by Riker13, Dec 4, 2019 at 6:26 AM.

  1. Riker13

    Riker13 King

    Joined:
    Nov 9, 2001
    Messages:
    771
    Location:
    UK
    Hi All,
    I would like to change the name of Ivory to Elephants and make them a strategic resource, I know how to do the last part but not sure about changing the name.
    Can anybody assist.

    Regards
    Riker13:crazyeye:
     
  2. criZp

    criZp Emperor

    Joined:
    Jul 19, 2013
    Messages:
    1,349
    Location:
    Nidaros, Norway
    check for a file called resources_text.xml or types_text.xml
     
  3. Riker13

    Riker13 King

    Joined:
    Nov 9, 2001
    Messages:
    771
    Location:
    UK
    Thanks but apart from going in to the main files and changing the name I was thinking like an <Update> or <Replace> just don't know how to word it correctly.
     
  4. Laurana Kanan

    Laurana Kanan Don’t underestimate who I am.

    Joined:
    Apr 10, 2014
    Messages:
    1,871
    Gender:
    Female
    Location:
    Near the Greatest Snow on Earth
    Code:
    UPDATE LocalizedText SET Text = 'Elephants' WHERE Tag = 'LOC_RESOURCE_IVORY_NAME';
    You could also use an INSERT OR REPLACE INTO statement. There's also a pedia entry if you wanted to adjust that as well.
     
  5. criZp

    criZp Emperor

    Joined:
    Jul 19, 2013
    Messages:
    1,349
    Location:
    Nidaros, Norway
    Editing with xml, the file would look like this:

    Code:
    <GameData>
    <BaseGameText>
    
    <Replace Tag="LOC_RESOURCE_IVORY_NAME">
    <Text>Elephants</Text>
    </Replace >
    
    </BaseGameText>
    </GameData>
    
     
  6. Riker13

    Riker13 King

    Joined:
    Nov 9, 2001
    Messages:
    771
    Location:
    UK
    Laurana/criZo,
    Thanks so much
     

Share This Page