Simple question, which inventory is described by defines.inventory.player_vehicle (7).
http://lua-api.factorio.com/0.12.30/def ... #inventory
I tried getting this inventory on a player, character or a vehicle, and all return the error "... doesn't have an inventory with index(7)".
What is the inventory define "player_vehicle" for?
What is the inventory define "player_vehicle" for?
My mod: "Auto Deploy Destroyers" (follower robots) viewtopic.php?f=97&t=24545
Re: What is the inventory define "player_vehicle" for?
I guess its active if the character is in a vehicle.
There are only 2 slots in the down right bar, one with the vehicle and one with a tool.
Greetings steinio
There are only 2 slots in the down right bar, one with the vehicle and one with a tool.
Greetings steinio
Re: What is the inventory define "player_vehicle" for?
Right, but like i said, i tried to access this when in a vehicle, and nothing returned an inventory
My mod: "Auto Deploy Destroyers" (follower robots) viewtopic.php?f=97&t=24545
Re: What is the inventory define "player_vehicle" for?
Sorry read only the first sentence
If anyone is doing two things at the same time, only one half of each is done.
Did you specify an index/slot [1] ?
https://wiki.factorio.com/index.php?title=Lua/Inventory
If anyone is doing two things at the same time, only one half of each is done.
Did you specify an index/slot [1] ?
https://wiki.factorio.com/index.php?title=Lua/Inventory
Re: What is the inventory define "player_vehicle" for?
No, im trying to get the inventory in the first place.
With
http://lua-api.factorio.com/0.12.30/Lua ... _inventory
or
http://lua-api.factorio.com/0.12.30/Lua ... _inventory
With
http://lua-api.factorio.com/0.12.30/Lua ... _inventory
or
http://lua-api.factorio.com/0.12.30/Lua ... _inventory
My mod: "Auto Deploy Destroyers" (follower robots) viewtopic.php?f=97&t=24545
Re: What is the inventory define "player_vehicle" for?
Perhaps one of the devs can comment on this, since I'm also curious on that inventory it actually tries to access.
Re: What is the inventory define "player_vehicle" for?
It's actually only used internally when the character transfers from the vehicle they're in to their own inventory through shift click to prevent putting the items back into the vehicle ammo slots. It was included with the defines list because I setup all of the defines from everything that had defines without checking if they where actually useful to the scripts
Also what version are you running? I changed get_inventory() to return nil a while ago instead of giving an error.
Also what version are you running? I changed get_inventory() to return nil a while ago instead of giving an error.
If you want to get ahold of me I'm almost always on Discord.
Re: What is the inventory define "player_vehicle" for?
This was a very old topic, i think this was in the period when we got from 0.12.x to 0.13.x
It's not relevant anymore for me, but thanks for clearing it up! Always nice to get some looks under the hood .
It's not relevant anymore for me, but thanks for clearing it up! Always nice to get some looks under the hood .
My mod: "Auto Deploy Destroyers" (follower robots) viewtopic.php?f=97&t=24545