Page 1 of 1

Where in data i can find events?

Posted: Sat Jul 22, 2017 2:27 pm
by robertpaulson
Where in the base game events are located? I am looking in particular anything related to entering a vehicle or "changing drive state". I looked through a data.raw but I can't find anything

Re: Where in data i can find events?

Posted: Sat Jul 22, 2017 2:32 pm
by Klonan
robertpaulson wrote:Where in the base game events are located? I am looking in particular anything related to entering a vehicle or "changing drive state". I looked through a data.raw but I can't find anything
http://lua-api.factorio.com/latest/index.html

Re: Where in data i can find events?

Posted: Sat Jul 22, 2017 2:48 pm
by robertpaulson
Klonan wrote:
robertpaulson wrote:Where in the base game events are located? I am looking in particular anything related to entering a vehicle or "changing drive state". I looked through a data.raw but I can't find anything
http://lua-api.factorio.com/latest/index.html
Well I'm not sure how this answers my question. Let me specify:

I would like to know where in the game this event is used to look what exactly it triggers. Looking it up wont really help me. But thank you

Re: Where in data i can find events?

Posted: Sat Jul 22, 2017 2:59 pm
by d3x0r
Ya from that link you have to go to LuaBootstrap -> on_event ->list of events

http://lua-api.factorio.com/latest/events.html

Re: Where in data i can find events?

Posted: Sat Jul 22, 2017 6:39 pm
by robertpaulson
d3x0r wrote:Ya from that link you have to go to LuaBootstrap -> on_event ->list of events

http://lua-api.factorio.com/latest/events.html
Hmmm, ok well I'm looking there at:

Code: Select all

on_player_driving_changed_state

Called when the player's driving state has changed, this means a player has either entered or left a vehicle.
Contains
player_index :: uint
But the information i'm after is what happens when this event is triggered.... unless I am missing something here, but I don't see it.

i.e- when the player enters/leaves a car, a car mask has a player specific tint applied to it, there is also bunch of other things happening when player enters/exits vehicles and I would like to see what those things are.

Re: Where in data i can find events?

Posted: Sat Jul 22, 2017 6:41 pm
by Bilka
Those things aren't coded in lua. They can only be seen in the source code of the game, which only the devs have access to.

Re: Where in data i can find events?

Posted: Sat Jul 22, 2017 9:42 pm
by robertpaulson
Bilka wrote:Those things aren't coded in lua. They can only be seen in the source code of the game, which only the devs have access to.

ah crap. Well i need to find some weird workaround then lol.... but now I get why i can't find certain things lol.... thank you for your help guys