Difference between revisions of "Talk:Tutorial:Modding Tutorial"

From Official Factorio Wiki
Jump to: navigation, search
(Future of this page: new section)
m (Reply)
 
(9 intermediate revisions by 4 users not shown)
Line 5: Line 5:
  
 
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. [[User:BenWo|BenWo]] ([[User talk:BenWo|talk]]) 06:47, 15 May 2014 (CEST)
 
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. [[User:BenWo|BenWo]] ([[User talk: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 as 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)
 +
 +
== Events ==
 +
 +
It's a very big topic, but there is not enough examples for it. Maybe it need a separate article for this? [[User:Darkfrei|Darkfrei]] ([[User talk:Darkfrei|talk]]) 13:56, 4 February 2017 (UTC)
 +
: The tutorial is currently being updated by another user, so we'll have to see what they do with the events part of it. --[[User:Gangsir|Gangsir]] ([[User talk:Gangsir|talk]]) 14:32, 4 February 2017 (UTC)
 +
 +
== Example provides no direct API references and links ==
 +
 +
To be more useful, this mod tutorial should provide exact links into the API documentation showing where the code examples are coming from, to make it easier to learn what functions and parameters are being used.
 +
 +
Just waving a hand at the front page of the API documentation and saying "It's all in there!" does not provide much guidance. -- [[User:Plawerth|Plawerth]] ([[User talk:Plawerth|talk]]) 21:34, 27 March 2017 (UTC)
 +
 +
: Hey there Plawerth. This entire modding tutorial is being rewritten for 0.15, so there's no point in improving it. Appreciate the concern, however. --([[User:Gangsir|Gangsir]]) ([[User talk:Gangsir|talk]]) - <span style="color:#FF0000">Admin</span> 22:56, 27 March 2017 (UTC)

Latest revision as of 22:56, 27 March 2017

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 as 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)

Events

It's a very big topic, but there is not enough examples for it. Maybe it need a separate article for this? Darkfrei (talk) 13:56, 4 February 2017 (UTC)

The tutorial is currently being updated by another user, so we'll have to see what they do with the events part of it. --Gangsir (talk) 14:32, 4 February 2017 (UTC)

Example provides no direct API references and links

To be more useful, this mod tutorial should provide exact links into the API documentation showing where the code examples are coming from, to make it easier to learn what functions and parameters are being used.

Just waving a hand at the front page of the API documentation and saying "It's all in there!" does not provide much guidance. -- Plawerth (talk) 21:34, 27 March 2017 (UTC)

Hey there Plawerth. This entire modding tutorial is being rewritten for 0.15, so there's no point in improving it. Appreciate the concern, however. --(Gangsir) (talk) - Admin 22:56, 27 March 2017 (UTC)