0.15 modding related changelog as of March 6, 2017

Place to post guides, observations, things related to modding that are not mods themselves.
BenSeidel
Filter Inserter
Filter Inserter
Posts: 584
Joined: Tue Jun 28, 2016 1:44 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by BenSeidel »

Rseding91 wrote:Added support for LuaFlowStatistics read on electric poles.
Does this effectively give us access to a poles electricity network? Such as max power output, accumulator charge etc?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Rseding91 »

BenSeidel wrote:
Rseding91 wrote:Added support for LuaFlowStatistics read on electric poles.
Does this effectively give us access to a poles electricity network? Such as max power output, accumulator charge etc?
Not really. That data isn't part of what's exposed.
If you want to get ahold of me I'm almost always on Discord.

BenSeidel
Filter Inserter
Filter Inserter
Posts: 584
Joined: Tue Jun 28, 2016 1:44 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by BenSeidel »

Rseding91 wrote:
BenSeidel wrote:
Rseding91 wrote:Added support for LuaFlowStatistics read on electric poles.
Does this effectively give us access to a poles electricity network? Such as max power output, accumulator charge etc?
Not really. That data isn't part of what's exposed.
NOOOOOOO :*(

Doomquill
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat Apr 16, 2016 7:03 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Doomquill »

Rseding91 wrote:
  • Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
Sorry to ask something so long after you posted this, but does fuel already in the game utilize these parameters? Presumably nuclear fuel will use burnt_result, but how about the others?

What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Rseding91 »

Doomquill wrote:
Rseding91 wrote:
  • Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
Sorry to ask something so long after you posted this, but does fuel already in the game utilize these parameters? Presumably nuclear fuel will use burnt_result, but how about the others?

What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?
Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.
If you want to get ahold of me I'm almost always on Discord.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by daniel34 »

Rseding91 wrote:Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.
I realize this is not the correct forum to ask, but since we're already talking about this are there also differences when using wood vs. coal vs. solid fuel?
quick links: log file | graphical issues | wiki

Doomquill
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat Apr 16, 2016 7:03 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Doomquill »

Rseding91 wrote:
Doomquill wrote:
Rseding91 wrote:
  • Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
Sorry to ask something so long after you posted this, but does fuel already in the game utilize these parameters? Presumably nuclear fuel will use burnt_result, but how about the others?

What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?
Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.
I'M SO HAPPY! Thanks for answering :)

Kane
Filter Inserter
Filter Inserter
Posts: 666
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Kane »

Rseding91 wrote:
Doomquill wrote:
Rseding91 wrote:
  • Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
Sorry to ask something so long after you posted this, but does fuel already in the game utilize these parameters? Presumably nuclear fuel will use burnt_result, but how about the others?

What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?
Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.
https://www.youtube.com/watch?v=yfGjLIPRgDA

Sean Mirrsen
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Apr 27, 2016 6:30 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Sean Mirrsen »

I spent fifteen minutes trying to make a simpler burner generator (a stirling generator, if you will) after I got 0.15.

Took me a reread of the changelog afterwards to notice that it says "burner type generator-equipment".

How has burner type wearable generator equipment been made a thing before burner type regular generators? :(

321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by 321freddy »

Sean Mirrsen wrote:I spent fifteen minutes trying to make a simpler burner generator (a stirling generator, if you will) after I got 0.15.

Took me a reread of the changelog afterwards to notice that it says "burner type generator-equipment".

How has burner type wearable generator equipment been made a thing before burner type regular generators? :(
IIRC Some entities have a energy_source parameter which you can set to either burner or electric. Open entities.lua from the base mod and have a look at the furnace for an example definition. I don't know if equipment was possible before.

Sean Mirrsen
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Apr 27, 2016 6:30 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Sean Mirrsen »

That's exactly what I tried. Both using burner type energy like in the current boilers, and burner as a separate parameter field like it was in the boilers before this version, all copied from respective entity prototypes. Neither works. No UI opens to add fuel, can't add fuel through other means, etc.

321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by 321freddy »

It does not work for all entity tyoes (again check entities.lua to see if your type support an energy source)
What entity type are you using? Maybe post the data.lu so I can take a look?

Sean Mirrsen
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Apr 27, 2016 6:30 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Sean Mirrsen »

Uh. I wanted to make a burner-type generator. The entity type I used was, appropriately, generator. :P

It used to be that the game complained if you put the burner energy source type into a generator. It doesn't seem to do that now. Instead it just refuses to do anything.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7351
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by bobingabout »

Q: Can you use energy_source type = "heat" on anything other than a boiler? EG, a furnace or assembling machine?

Heat powered furnaces does sound like something you should be able to do.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Rseding91 »

bobingabout wrote:Q: Can you use energy_source type = "heat" on anything other than a boiler? EG, a furnace or assembling machine?

Heat powered furnaces does sound like something you should be able to do.
Yes in that it shouldn't crash (assuming the machine supports dynamic energy source types). It's untested though :)
If you want to get ahold of me I'm almost always on Discord.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7351
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by bobingabout »

Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.

Is there an alternative to rotate the entity in your cursor?
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Rseding91 »

bobingabout wrote:
Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.

Is there an alternative to rotate the entity in your cursor?
Nope. The cursor rotation isn't part of the game state until after the player has clicked to build and the action was processed by the game to the point it builds the entity.
If you want to get ahold of me I'm almost always on Discord.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by Nexela »

bobingabout wrote:
Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.

Is there an alternative to rotate the entity in your cursor?
Easiest alternative would be to switch from an underground pipe to a storage tank

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7351
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: 0.15 modding related changelog as of March 6, 2017

Post by bobingabout »

Nexela wrote:
bobingabout wrote:
Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.

Is there an alternative to rotate the entity in your cursor?
Easiest alternative would be to switch from an underground pipe to a storage tank
Pretty much. Though then that would result in a different error... entity type mismatch, so I'll have to rename and migrate it.
Fortunately, the main reason why I didn't use a storage tank in the first place has been removed, and would give the advantage of being able to connect the valve to the logistic network.
It's a good solution.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Modding discussion”