Ghost controller saves=crash

This subforum contains all the issues which we already resolved.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Ghost controller saves=crash

Post by ficolas »

When you save the game while with the ghost controller, when you load it, the game crashes.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Ghost controller saves=crash

Post by Nirahiel »

Just curious, what's the ghost controller ?
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Ghost controller saves=crash

Post by ficolas »

Nirahiel wrote:Just curious, what's the ghost controller ?
Its like the god mode (the sandbox scenary, no player), but that cant interact with entities.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Ghost controller saves=crash

Post by Nirahiel »

Oh, to make camera effects ?
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Ghost controller saves=crash

Post by ficolas »

Nirahiel wrote:Oh, to make camera effects ?
Yea basically, I think is the controller used in the replays
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Ghost controller saves=crash

Post by ficolas »

Also this seems to crash the game when run (not if done with the console? :S)

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"})
Edit: this is what crashes the game:

Code: Select all

game.player.setcontroller{type=defines.controllers.ghost}
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
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Ghost controller saves=crash

Post by Nirahiel »

setcontroller() instead of setcontroller{} ?
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Ghost controller saves=crash

Post by ficolas »

Nirahiel wrote:setcontroller() instead of setcontroller{} ?
thats the same, when a function needs a table, and just a table you can use {}
Also you would need ({}), not just (), that function asks for a table.
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Ghost controller saves=crash

Post by slpwnd »

This will be fixed in the 0.7.1.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Ghost controller saves=crash

Post by ficolas »

setcontroller() still seems to crash my game when used on the control.lua :(
Post Reply

Return to “Resolved Problems and Bugs”