Unknown key:" .......

Place to get help with not working mods / modding interface.
User avatar
Animar
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sat Dec 21, 2013 8:06 am
Contact:

Unknown key:" .......

Post 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.
kovarex
Factorio Staff
Factorio Staff
Posts: 8292
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post 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.
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post 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.
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
User avatar
Animar
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sat Dec 21, 2013 8:06 am
Contact:

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

Post by Animar »

Damn i'm stupid i should have tried that bevore i post that here :roll:

Thanks a lot for the help
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post 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.
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
User avatar
Animar
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sat Dec 21, 2013 8:06 am
Contact:

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

Post 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
User avatar
Animar
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sat Dec 21, 2013 8:06 am
Contact:

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

Post by Animar »

Only the

Code: Select all

[technology-description]
longrange-defence=Unlocks the LRRL systhem and corresponding Rockets
won't work, but why ?
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post 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?
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
User avatar
Animar
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sat Dec 21, 2013 8:06 am
Contact:

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

Post 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.
Post Reply

Return to “Modding help”