In the past I was editing stuff like size of chest/vagons, energy comsumsion of machines, maximum number of modules per machine etc.
But I can figure out, how to hack fluids system.
![Geek :geek:](./images/smilies/icon_e_geek.gif)
![Geek :geek:](./images/smilies/icon_e_geek.gif)
![Geek :geek:](./images/smilies/icon_e_geek.gif)
A fluid box is represented as a table:
name :: string: Fluid prototype name of the fluid contained in this fluid box.
amount :: double: Amount of the fluid in this box.
temperature :: double (optional): The temperature. When reading from LuaFluidBox, this field will always be present. It is not necessary to specify it when writing, however. When not specified, the fluid box will be set to the fluid's default temperature as specified in the fluid's prototype.
Code: Select all
/c psd={comment=false,nocode=true} function gpsl(p,k) return game.print(serpent.line(p,k or psd)) end
Code: Select all
/c gpsl(game.player.selected.fluidbox[1])
Code: Select all
/c gps=game.player.selected gps.fluidbox[1]={name='crude-oil',amount=gps.fluidbox.capacity(1)}