arunkumarmunusamy / bitfighter

Automatically exported from code.google.com/p/bitfighter
Other
0 stars 0 forks source link

Setting Incorrect Loadout Will Hard Crash (bot) #413

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. For example: loadout = {Module.Repair, Module.Shield, Weapon.Phaser, 
Weapon,Triple, Weapon.Burst}
2. bot:setLoadoutNow
3. Crash!
4. Please note that I wrote Weapon,Triple, instead of Module.Triple

What is the expected output? What do you see instead?
The expected output is a beautiful triple-shooting bot. Instead, the bot works 
for a few seconds (without shooting anything), and then Bitfighter crashes 
(Hard Crash).

What version of the product are you using? On what operating system?
Bitfighter 019b Windows 8.1

Please provide any additional information below.
There is a mistake on this page: 
http://bitfighter.org/luadocs/class_ship.html#a0f7144d43dd2c86df30254579a9064a3

You have 2 modules and 3 weapons, not the other way around!

Original issue reported on code.google.com by corteocarl on 16 Mar 2014 at 4:46

GoogleCodeExporter commented 9 years ago
This may be related to issue 411.  It doesn't crash on my Linux box, but I 
suspect it has to do with messed up char pointers somewhere.

Original comment by buckyballreaction on 22 Mar 2014 at 4:31

GoogleCodeExporter commented 9 years ago
if you try to use a weapon you don't have in your current loadout, that will 
crash too. don't know about modules

I don't know about the original post, can you share the whole bot? might be 
some other code

Original comment by zitotho...@gmail.com on 25 Mar 2014 at 10:18

GoogleCodeExporter commented 9 years ago

Original comment by buckyballreaction on 27 Mar 2014 at 3:58

GoogleCodeExporter commented 9 years ago
The cause is a LuaException in anything that is called from the static game 
timer.  I will probably revert r0d961b6ed24c and load the Lua Timer class in 
each script.

Original comment by buckyballreaction on 27 Mar 2014 at 11:59

GoogleCodeExporter commented 9 years ago
Fixed with changes in r8c14ffc2727e

Original comment by buckyballreaction on 28 Mar 2014 at 5:17