Page 1 of 2

Re: Mod changes in 0.12

Posted: Wed Jul 08, 2015 4:21 pm
by orzelek
Thanks for the explanation - seems that safest way to go is to use event provided surface. Later might need to make sure I'm not generating ore on surface that represents the space platform I guess.

Re: Mod changes in 0.12

Posted: Fri Jul 17, 2015 4:57 pm
by GotLag
game.alwaysday=true no longer works in console, is there a new way to do this or has it been disabled?

Re: Mod changes in 0.12

Posted: Fri Jul 17, 2015 5:00 pm
by orzelek
GotLag wrote:game.alwaysday=true no longer works in console, is there a new way to do this or has it been disabled?
Try game.always_day=true - global change to add separator.

Re: Mod changes in 0.12

Posted: Fri Jul 17, 2015 5:19 pm
by GotLag
Cheers, it works. Hadn't thought to try that.

A more serious problem: the changes to belt mechanics have completely broken my lane splitters. I was spawning invisible decoration entities to block half of each output belt, but the new belts seem to ignore collisions entirely.

Re: Mod changes in 0.12

Posted: Fri Jul 17, 2015 5:28 pm
by ratchetfreak
GotLag wrote:Cheers, it works. Hadn't thought to try that.

A more serious problem: the changes to belt mechanics have completely broken my lane splitters. I was spawning invisible decoration entities to block half of each output belt, but the new belts seem to ignore collisions entirely.
isn't that kinda the point of the new belt system.

can you rearrange the "rails" of the belts instead?

Re: Mod changes in 0.12

Posted: Fri Jul 17, 2015 5:55 pm
by GotLag
Oh no doubt it's more efficient the new way. It's just that the old way let me tinker with belt outputs without having to add any real event handling (other than placement and removal of the modified splitters).

Re: Mod changes in 0.12

Posted: Fri Jul 17, 2015 8:21 pm
by yeganer
I may be wrongt but it seems that LuaTrain.locomotives is broken. At least i'm failing to access locomotives.frontmovers and locomotives.backmovers

Re: Mod changes in 0.12

Posted: Fri Jul 17, 2015 8:55 pm
by orzelek
yeganer wrote:I may be wrongt but it seems that LuaTrain.locomotives is broken. At least i'm failing to access locomotives.frontmovers and locomotives.backmovers
You need underscores - front_movers and back_movers will work most likely.

Re: Mod changes in 0.12

Posted: Sat Jul 18, 2015 9:37 am
by Choumiko
Rseding91 wrote:
  • Added on_player_driving_changed_state event - passes the player_index who's driving state changed.
So, my quick test revealed that this event triggers whenever a player enters or leaves a vehicle right? Would it be possible to pass the entity that was entered/left too? For entered it's not that important as it's just player.vehicle, when leaving it's not that clean.
Also, the same thing for opening/closing a GUI/inventory of an entity would be awesome.

Re: Mod changes in 0.12

Posted: Tue Jul 28, 2015 4:32 pm
by Ty94
New object LuaTransportLine, accessible from entity as read method get_transport_line(index) - an interface to the items on transport belts.
Can someone explain what methods and properties the LuaTransportLine object has. Because when I run get_transport_line, all I get is an empty table.

Re: Mod changes in 0.12

Posted: Tue Jul 28, 2015 6:58 pm
by ratchetfreak
Ty94 wrote:
New object LuaTransportLine, accessible from entity as read method get_transport_line(index) - an interface to the items on transport belts.
Can someone explain what methods and properties the LuaTransportLine object has. Because when I run get_transport_line, all I get is an empty table.
call help() on it and print the results

Re: Mod changes in 0.12

Posted: Tue Jul 28, 2015 7:20 pm
by Ty94
Thanks, I wasn't aware of that.