Talk:Tutorial:Modding Tutorial: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
Line 8: Line 8:
----
----


Going through it now, making notes on what doesn't work. I'm brand new to modding, total rookie.  
Going through it now, making notes on what doesn't work. I'm brand new to modding, total rookie. Here's my summary so far, I don't know enough to rewrite the article yet.


* version number needs to be in Mod folder name
* version number needs to be in Mod folder name


* After Completing Chapter 5, crash error:  "Error while loading entity prototype "bomber" (car): No such node (energy_per_hit_point) Modifications: Bombertutorial" Another similar error for (animation).(looking into the fixes for these)
* After Completing Chapter 5, crash error:  "''Error while loading entity prototype "bomber" (car): No such node (energy_per_hit_point) Modifications: Bombertutorial''" Easy copy paste from base data on this property. Must be a new required property?
 
* Another similar error for (''animation''). This doesn't look as simple. Will see if I can sub the car animation in for the bomber. Classy.
 
* Copy paste car animation got me past, now (''effectivity'')... Copied from inside Burner to after Selection box (closer to car in base game)
 
* (''Braking_power'') Looks like "breaking_speed" (sic) got replaced. I dumped the car's stat in.
 
*Game loaded and let me build the bomber. I noticed ''Unknown Key:"Entity-name.bomber"'' in the hover text. It appeared at the car, drove slow (2km/h) and could not pass over walls or trees. It got "kind of" over, then would hit close to the center of the vehicle.
 


--[[User:Archon286|Archon286]] ([[User talk:Archon286|talk]]) 01:16, 11 May 2016 (UTC)
--[[User:Archon286|Archon286]] ([[User talk:Archon286|talk]]) 01:16, 11 May 2016 (UTC)

Revision as of 01:47, 11 May 2016

Chapter 6 The Lua code

I would like to point out that it is not mandatory to use require util/defines. Require gives no additional access to game. Just access to the file it loads. In your code you need require defines because you use defines.events.ontick, but you could just use number to avoid need of defines just like you have in getinventory(). Now i dont remember what was in utils, but you can check it out in core/lualib -folder and if there is some function you need you have option to require the file, copy/paste the function or write your own function. Rk84 (talk) 00:26, 7 May 2013 (CEST)

Future of this page

Anyone knowledgeable or interested enough to check out how much of this page is out of date? I like the format of guiding you through the creation of a very simple mod, good for beginners to get an idea. So I do think this page or something like it should be included for modding. I'm adding a link to this page from the main Modding page to keep it on the radar. BenWo (talk) 06:47, 15 May 2014 (CEST)


Going through it now, making notes on what doesn't work. I'm brand new to modding, total rookie. Here's my summary so far, I don't know enough to rewrite the article yet.

  • version number needs to be in Mod folder name
  • After Completing Chapter 5, crash error: "Error while loading entity prototype "bomber" (car): No such node (energy_per_hit_point) Modifications: Bombertutorial" Easy copy paste from base data on this property. Must be a new required property?
  • Another similar error for (animation). This doesn't look as simple. Will see if I can sub the car animation in for the bomber. Classy.
  • Copy paste car animation got me past, now (effectivity)... Copied from inside Burner to after Selection box (closer to car in base game)
  • (Braking_power) Looks like "breaking_speed" (sic) got replaced. I dumped the car's stat in.
  • Game loaded and let me build the bomber. I noticed Unknown Key:"Entity-name.bomber" in the hover text. It appeared at the car, drove slow (2km/h) and could not pass over walls or trees. It got "kind of" over, then would hit close to the center of the vehicle.


--Archon286 (talk) 01:16, 11 May 2016 (UTC)