Page 1 of 1

[Oxyd] Game crash when set_command invoked on empty group

Posted: Tue Aug 11, 2015 8:31 am
by Kevin94
I'm currently programming my own scenario and trying to command the biters. As it seems this doesn't work if the attack target is more then 50 tiles away, so I'm planning to guide them myself to the target. Everything is still very WIP and I encountered a crash when setting the command on an empty unitgroup (because all members where killed). It isn't a problem to check that manually, but nonetheless needs to be fixed. You can find the scenario script in the attached savegame.

And another request: Could you provide more details about the different commands and their parameters, the wiki is not helpful here. I haven't found any use of the options except "attack". How go_to_location, build_base and wander work is quite obivious, but compound and group are not.

Re: [Oxyd] Game crash when set_command invoked on empty group

Posted: Thu Aug 13, 2015 3:12 pm
by Oxyd
Fixed in 0.12.4. Calling set_command will now make the unit group invalid, so your script still fails on the following line as you're now accessing an invalid Lua object. But the game now doesn't crash.

Re: [Oxyd] Game crash when set_command invoked on empty group

Posted: Sun Aug 16, 2015 3:11 pm
by SHiRKiT
Kevin94 wrote:And another request: Could you provide more details about the different commands and their parameters, the wiki is not helpful here. I haven't found any use of the options except "attack". How go_to_location, build_base and wander work is quite obivious, but compound and group are not.
They are still working on it, for now, if you find something new, please post on the wiki. Also, try making the use of the help() method on most objects, they should guide you. Print it at the console a bit and you'll see.