Tutorial:Modding FAQ: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "== '''Modding FAQ''' == {{sublinks|Main Page}} Welcome to the modding FAQ. Here we have a list of questions that are common to get while writing a mod. And the fix for the pr...")
 
No edit summary
Line 2: Line 2:
{{sublinks|Main Page}}
{{sublinks|Main Page}}


Welcome to the modding FAQ.
Welcome to the modding FAQ. (work in progress)
Here we have a list of questions that are common to get while writing a mod.
Here we have a list of questions that are common to get while writing a mod.
And the fix for the problem (if someone managed to find a fix)
And the fix for the problem (if someone managed to find a fix)

Revision as of 11:36, 14 February 2014

Modding FAQ

< Main Page

Welcome to the modding FAQ. (work in progress) Here we have a list of questions that are common to get while writing a mod. And the fix for the problem (if someone managed to find a fix) feel free to edit this page and add more Q and A's.

Questions / Fix
  • Q : my item / entity wont load the sprite I made.
  • Fix :
Make sure your path is right : __mod-name__/map-name/2nd-map-name/sprite.png
  • Q : my item gives a : unknown key :"items.name.item-x", in game.
  • Fix :
make sure you have a "local" map in your mod that contains an "en"(English) file and put an item-name.lua file in ther.
The item-name.lua sould contain :
[item-name]
item-x=Item x
item-y=Item y
  • Q : Error while loading prototype "entity-name": No such node (pictures).
  • Fix :
Make sure your entity contains the right amount of lines for that type of entity, 
for example a chest needs 1 picture for the entity to work but a wall needs 20. 
Look in the factorio base/prototypes/entity/entity.lua.
And you can see that difrend entitys need difrend amounds of pictures.