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

Invalid references

Discussion in 'Civ5 - Creation & Customization' started by Frossa, Aug 3, 2014.

  1. Frossa

    Frossa Chieftain

    Joined:
    Apr 29, 2012
    Messages:
    409
    Gender:
    Male
    Location:
    Sweden
    Ever since I realized you could type in Descriptions, Civilopedia entries, Help and Strategy texts straight into new Buildings and Units without using TXT_KEY tags, I've become kind of lazy and stopped creating TXT_KEY tags completely. Now my Database.log is full of Invalid reference errors, which is to be expected. I'm however wondering if there are any other side effects to doing it this way, or are text key tags just there to ease editing? Could too many Invalid references cause problems with the mod eventually?
     
  2. S3rgeus

    S3rgeus Chieftain

    Joined:
    Apr 10, 2011
    Messages:
    1,270
    Location:
    London, United Kingdom
    You've encountered one of the problems all ready - debugging errors in database.log is more difficult when there are a bunch of TXT_KEY errors in there already. The other main issue is localization, which is what the text keys are for. If you want to localize your mod into another language (or if someone else does) then you need to substitute in text keys for all of the raw text to be able to create entries for the separate languages.
     
  3. Frossa

    Frossa Chieftain

    Joined:
    Apr 29, 2012
    Messages:
    409
    Gender:
    Male
    Location:
    Sweden
    I see, that makes sense. I've never had any trouble finding other errors despite the text errors though, and I'm not planning on translating my mod, so there's no harm really. Thanks.
     
  4. S3rgeus

    S3rgeus Chieftain

    Joined:
    Apr 10, 2011
    Messages:
    1,270
    Location:
    London, United Kingdom
    Ah, there's also Lua formatting. If you want people to be able to insert your given text into anything from Lua (or make use of the substitution system for gender/plurality), then text keys are what provides that.
     

Share This Page