Where in data i can find events?

Place to get help with not working mods / modding interface.
robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

Where in data i can find events?

Post 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

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5243
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Where in data i can find events?

Post 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

robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

Re: Where in data i can find events?

Post 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

d3x0r
Filter Inserter
Filter Inserter
Posts: 316
Joined: Sun Jun 04, 2017 8:56 am
Contact:

Re: Where in data i can find events?

Post 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

robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

Re: Where in data i can find events?

Post 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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3307
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Where in data i can find events?

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

Re: Where in data i can find events?

Post 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

Post Reply

Return to “Modding help”