Ghost controller saves=crash
Ghost controller saves=crash
When you save the game while with the ghost controller, when you load it, the game crashes.
Re: Ghost controller saves=crash
Just curious, what's the ghost controller ?
Re: Ghost controller saves=crash
Its like the god mode (the sandbox scenary, no player), but that cant interact with entities.Nirahiel wrote:Just curious, what's the ghost controller ?
Re: Ghost controller saves=crash
Oh, to make camera effects ?
Re: Ghost controller saves=crash
Yea basically, I think is the controller used in the replaysNirahiel wrote:Oh, to make camera effects ?
Re: Ghost controller saves=crash
Also this seems to crash the game when run (not if done with the console? :S)
Edit: this is what crashes the game:
But it doesnt crash it if done with the console... :s
Edit: It also crashes it with the god controller so I guess im doing something wrong...
There is no error message or something, just factorio stop working and ctd
Code: Select all
glob.missile=true
glob.missilecount=0
glob.character=game.player.character
game.player.setcontroller{type=defines.controllers.ghost}
game.player.controller.teleport(glob.character.position)
cap=tostring(math.ceil(game.player.controller.position.x))..", "..tostring(math.ceil(game.player.controller.position.y)).." "..tostring(math.ceil(glob.character.position.x)).."±100, "..tostring(math.ceil(glob.character.position.y)).."±100"
game.player.gui.center.add({type="frame", name="menus", caption=cap,direction="vertical",style="missile_menu"})
game.player.gui.center.menus.add({type="button", name="missile", caption=" ",style="inv_button"})
Code: Select all
game.player.setcontroller{type=defines.controllers.ghost}
Edit: It also crashes it with the god controller so I guess im doing something wrong...
There is no error message or something, just factorio stop working and ctd
Re: Ghost controller saves=crash
setcontroller() instead of setcontroller{} ?
Re: Ghost controller saves=crash
thats the same, when a function needs a table, and just a table you can use {}Nirahiel wrote:setcontroller() instead of setcontroller{} ?
Also you would need ({}), not just (), that function asks for a table.
Re: Ghost controller saves=crash
This will be fixed in the 0.7.1.
Re: Ghost controller saves=crash
setcontroller() still seems to crash my game when used on the control.lua 
