roman-murashov / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Entering bad commands in Lua console screw up health bars #872

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start any singleplayer game without any script (“Normal” style)
2. Say “/lua” in chat to activate the Lua console
3. Type in any invalid command, for example “SetGearPos()” (has wrong 
parameters)

What is the expected output? What do you see instead?
Expected: Hedgewars fails gracefully, printing the error messages but not 
behaving otherwise weirdly.
Actual: Hedgewars prints the error message but also screws up the health bars. 
The health bars become very large and extend beyond the screen, there are also 
ugly white sections.

What version of the product are you using? On what operating system?
r73545fd91efa on GNU/Linux.

Original issue reported on code.google.com by almikes@aol.com on 15 Dec 2014 at 10:31

GoogleCodeExporter commented 8 years ago
can't reproduce it :/

do you have any particular graphics/rendering options, zoom, cam or anything 
activated?

How many teams?

Maybe safe file of a game setting where you can reliably reproduce it? :)

Original comment by sheepyluva on 16 Dec 2014 at 2:35

GoogleCodeExporter commented 8 years ago
I have retested it under the same version. This time I have temporarily moved 
my $HOME/.hedgewars directory out of the way to force Hedgewars to use the 
default config. I think this should serve as a clean reference state.

Well, it happens with these settings as well.

My build has no support for video recording. I had no zoom activated. But it 
also happens when I first zoom out or in, then do the 3 steps above.

It does not seem to matter how many teams I use. I tried anything from 2 to 8 
teams, always the same.

Another thing: As soon as the health bar change (i.e. when one hedgehog loses 
health), the health bars go back to normal.

Here’s a screenshot to give you an idea how the health bars look: 
https://i.imgur.com/PmSLY0Y.png

Original comment by almikes@aol.com on 17 Dec 2014 at 2:19