Page 1 of 1

Unknown key:" .......

Posted: Sat Dec 21, 2013 8:49 am
by Animar
Hi there

I Just registered on that Froum so i can't quietly PM one of the bigger Modders, unfortunatly i get forced to open a whole topic to get my problem solved. In the last few hours I made my own first kind a mod for long range rocket towers and all works just fine entitys recepies and all that stuff but there is one thing that bugs me a lot. I can NOT figure out how i add a description to my items and or technologys. For example DyTech uses some .cfg files where he adds all those informations but I didn't get it where he calls them. I'm realy confused right now maybe it's as simple as to breathe, but please give me a hint.

Re: Unknown key:" .......

Posted: Sat Dec 21, 2013 9:00 am
by kovarex
Hello and welcome to the forums.

All the locale files in the locale directory are loaded automatically no need to specify these: https://forums.factorio.com/wiki/inde ... iew#Locale

The key has to be in the correct category, for example, when you are missing item-description.science-pack-1, it has to be specified in the [item-description] cateogory
Example (contents of data/base/locale/en/item-descriptions.cfg):

Code: Select all

[item-description]
science-pack-1=Used by Lab for research.
science-pack-2=Used by Lab for research.
science-pack-3=Used by Lab for research.
alien-science-pack=Used by Lab for research.
....
Same with entity-name, entity-description etc.

Re: Unknown key:" .......

Posted: Sat Dec 21, 2013 9:01 am
by FreeER
hey nice to have fresh modders joining :) As for the descriptions they are auto loaded by Factorio, as long as they exist inside of a "locale" folder inside the mod's folder (or the campaigns). Inside the locale folder are the abbreviated country names (i'm sure there is a proper name for the country's abbreviation but I can't think of it) and inside of there you can have the cfg files, actually you could have a single cfg if I remember correctly, it's the "[entity-description]" tags that define what you are defining, but easier to modify if they are separated

In other words you do not need to "call them" :)

edit: aw Kovarex responded before me :) probably because palemoon froze for a few moments.

Re: Unknown key:" .......

Posted: Sat Dec 21, 2013 9:03 am
by Animar
Damn i'm stupid i should have tried that bevore i post that here :roll:

Thanks a lot for the help

Re: Unknown key:" .......

Posted: Sat Dec 21, 2013 9:08 am
by FreeER
Animar wrote:Damn i'm stupid i should have tried that bevore i post that here :roll:

Thanks a lot for the help
don't be hard on yourself, you'd be surprised at what even the bigger modders forget :) besides, that's what the community is for (well, that and making the devs lots of money so that they can improve the game and make sequels for all eternity as our slaves...did I say that part out loud, shh don't let them know the secret!)

edit: ...maybe I'm a little too tired right now if I actually just posted that, but I'm not going to bother removing it, someone else might find it as funny as I did at the time.

Re: Unknown key:" .......

Posted: Sat Dec 21, 2013 9:12 am
by Animar
FreeER wrote:
Animar wrote:Damn i'm stupid i should have tried that bevore i post that here :roll:

Thanks a lot for the help
don't be hard on yourself, you'd be surprised at what even the bigger modders forget :) besides, that's what the community is for (well, that and making the devs lots of money so that they can improve the game and make sequels for all eternity as our slaves...did I say that part out loud, shh don't let them know the secret!)

edit: ...maybe I'm a little too tired right now if I actually just posted that, but I'm not going to bother removing it, someone else might find it as funny as I did at the time.
nope i save it for all the future generations :D

Re: Unknown key:" .......

Posted: Sat Dec 21, 2013 9:33 pm
by Animar
Only the

Code: Select all

[technology-description]
longrange-defence=Unlocks the LRRL systhem and corresponding Rockets
won't work, but why ?

Re: Unknown key:" .......

Posted: Sat Dec 21, 2013 9:48 pm
by FreeER
well assuming "longrange-defence" is the exact name you gave when creating the technology prototype, I do not see why it would fail, maybe triple check spelling and capitalization?

Re: Unknown key:" .......

Posted: Sun Dec 22, 2013 9:25 am
by Animar
thats the whole poit. I copied the name out of my technology lua file, to be sure the name is 100% the same as i use there. But in game it shows only the name correct and no description.