Does this effectively give us access to a poles electricity network? Such as max power output, accumulator charge etc?Rseding91 wrote:Added support for LuaFlowStatistics read on electric poles.
0.15 modding related changelog as of March 6, 2017
Re: 0.15 modding related changelog as of March 6, 2017
Re: 0.15 modding related changelog as of March 6, 2017
Not really. That data isn't part of what's exposed.BenSeidel wrote:Does this effectively give us access to a poles electricity network? Such as max power output, accumulator charge etc?Rseding91 wrote:Added support for LuaFlowStatistics read on electric poles.
If you want to get ahold of me I'm almost always on Discord.
Re: 0.15 modding related changelog as of March 6, 2017
NOOOOOOO :*(Rseding91 wrote:Not really. That data isn't part of what's exposed.BenSeidel wrote:Does this effectively give us access to a poles electricity network? Such as max power output, accumulator charge etc?Rseding91 wrote:Added support for LuaFlowStatistics read on electric poles.
Re: 0.15 modding related changelog as of March 6, 2017
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?Rseding91 wrote:
- Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?
Re: 0.15 modding related changelog as of March 6, 2017
Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.Doomquill wrote: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?Rseding91 wrote:
- Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?
If you want to get ahold of me I'm almost always on Discord.
Re: 0.15 modding related changelog as of March 6, 2017
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?Rseding91 wrote:Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.
Re: 0.15 modding related changelog as of March 6, 2017
I'M SO HAPPY! Thanks for answeringRseding91 wrote:Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.Doomquill wrote: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?Rseding91 wrote:
- Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?
- StoneLegion
- Filter Inserter
- Posts: 686
- Joined: Fri Sep 05, 2014 7:34 pm
- Contact:
Re: 0.15 modding related changelog as of March 6, 2017
https://www.youtube.com/watch?v=yfGjLIPRgDARseding91 wrote:Rocket fuel already makes the train go faster in 0.15. That's why I added the mechanics and the lua API.Doomquill wrote: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?Rseding91 wrote:
- Added LuaItemPrototype fuel_category, burnt_result, fuel_acceleration_multiplier, fuel_top_speed_multiplier read.
What I'm really asking is will I have (get) to make a mod that will make Rocket Fuel make trains go faster?
-
- Long Handed Inserter
- Posts: 87
- Joined: Wed Apr 27, 2016 6:30 pm
- Contact:
Re: 0.15 modding related changelog as of March 6, 2017
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?
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?
Re: 0.15 modding related changelog as of March 6, 2017
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 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?
My mods:
-
- Long Handed Inserter
- Posts: 87
- Joined: Wed Apr 27, 2016 6:30 pm
- Contact:
Re: 0.15 modding related changelog as of March 6, 2017
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.
Re: 0.15 modding related changelog as of March 6, 2017
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?
What entity type are you using? Maybe post the data.lu so I can take a look?
My mods:
-
- Long Handed Inserter
- Posts: 87
- Joined: Wed Apr 27, 2016 6:30 pm
- Contact:
Re: 0.15 modding related changelog as of March 6, 2017
Uh. I wanted to make a burner-type generator. The entity type I used was, appropriately, generator.
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.
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.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: 0.15 modding related changelog as of March 6, 2017
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.
Heat powered furnaces does sound like something you should be able to do.
Re: 0.15 modding related changelog as of March 6, 2017
Yes in that it shouldn't crash (assuming the machine supports dynamic energy source types). It's untested thoughbobingabout 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.
If you want to get ahold of me I'm almost always on Discord.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: 0.15 modding related changelog as of March 6, 2017
I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
Is there an alternative to rotate the entity in your cursor?
Re: 0.15 modding related changelog as of March 6, 2017
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.bobingabout wrote:I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
Is there an alternative to rotate the entity in your cursor?
If you want to get ahold of me I'm almost always on Discord.
Re: 0.15 modding related changelog as of March 6, 2017
Easiest alternative would be to switch from an underground pipe to a storage tankbobingabout wrote:I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
Is there an alternative to rotate the entity in your cursor?
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: 0.15 modding related changelog as of March 6, 2017
Pretty much. Though then that would result in a different error... entity type mismatch, so I'll have to rename and migrate it.Nexela wrote:Easiest alternative would be to switch from an underground pipe to a storage tankbobingabout wrote:I used rotate_for_build in one of my mods, which now throws up an error, obviously because rotate_for_build was removed.Rseding91 wrote:Removed LuaPlayer::build_from_cursor + LuaPlayer::rotate_for_build as they aren't replay/MP safe.
Is there an alternative to rotate the entity in your cursor?
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.