Page 1 of 1

[0.12.3] [kovarex] Radar in a force with no player

Posted: Thu Aug 13, 2015 9:28 pm
by jorgenRe
Using the game.create_entity function to spawn a radar in the enemy force(when no force is set) equals to a crash(instantly with no log)
edit:

Edit i'm really sorry for the confusion, but its not the turrets that are faulty basically the bug relies with when there is a radar in a faction with no players in them
I tested it by setting my force to the enemy force and when i did that the crashes did not happen.
BTW after changing back to the player force the radar in an enemy faction did no longer crash.

Just remember it must be active with power
One more thing enemy structures(including yours) can use power from any faction.

I guess the next time(s) i report a bug i should probably take a notebook and write down everything that happens and make it as clear as possible to pin point excactly where the bug lies so that the bug report will stay easy and clean :(

Re: [0.12.3][veryMinor]Radar spawned as default enemy force

Posted: Thu Aug 13, 2015 9:41 pm
by Klonan
You can spawn it as a player_force radar, and then change its force via script. You can also set player_mineable, indestructible etc., though i don't know the exact commands offhand

Re: [0.12.3][veryMinor]Radar spawned as default enemy force

Posted: Thu Aug 13, 2015 9:51 pm
by jorgenRe
Klonan wrote:You can spawn it as a player_force radar, and then change its force via script. You can also set player_mineable, indestructible etc., though i don't know the exact commands offhand
That sounds like a good idea for the radar, but I like the spawned in turrets pointing at me ^_^.

But yea I will do indestructible for all blocks when they are downloaded as I call it. 6 files = 1 building. Its insane how much info it takes to store just 1 tiny 50 by 45 big Base :lol:

Re: [0.12.3][veryMinor]Radar spawned as default enemy force

Posted: Fri Aug 14, 2015 9:11 am
by Oxyd
I just ran /c game.player.surface.create_entity{name="radar", position={game.player.position.x+10, y=game.player.position.y}} and it didn't crash, so the problem must be elsewhere. What else did you do? Post the log. Preferrably also the map just before the crash.

Re: [0.12.3][veryMinor]Radar spawned as default enemy force

Posted: Fri Aug 14, 2015 10:27 am
by jorgenRe
Oxyd wrote:I just ran /c game.player.surface.create_entity{name="radar", position={game.player.position.x+10, y=game.player.position.y}} and it didn't crash, so the problem must be elsewhere. What else did you do? Post the log. Preferrably also the map just before the crash.
How odd, ok i found out what it was(sorry for not testing it fully :( )
Explained abow^^^^

Re: [0.12.3] [kovarex] Radar in a force with no player

Posted: Fri Aug 14, 2015 11:27 am
by kovarex
Thx for the report, it is fixed for 0.12.4