Page 1 of 1

Sandbox Error

Posted: Thu Jun 20, 2013 4:36 am
by Happycake
Hello.

Recently, I've been having some issues with a custom ship in the BF sandbox. When I try to spawn the ship/select it, it gives numerous divide by zero errors.

It give something like this:

_
ERROR in
action number 1
of Other Event: User Defined 0
for object GUI_HudText:

Error in code at line 55:
draw_healthbar(barx,bary,barx + barlength,bary +GUI_HealthBarHeight ,l_owner.l_weapon.l_hp/l_owner.l_weapon.l_maxhp*100,$000000,$0000FF,$00FF00,0,1,0)

at position 133: Division by 0.



This isn't my first custom ship, and I don't think I'm doing anything wrong with the sprite settings. From my observations, it seems that the issue is mainly due to some kind of drawing error in the HUD side bar, since it fails to show the health of individual ship sections.

I didn't find anything related to this after searching the forums and skimming the FAQ, so any help would be appreciated.

EDIT: I remodeled it and the problem was resolved. Probably a fluke. Thanks for the help, everyone.

Re: Sandbox Error

Posted: Thu Jun 20, 2013 4:48 am
by Doogie12
It has nothing to do with the ship. This was a recurring issue for a while, but as far as I know it's gone since this came out

Re: Sandbox Error

Posted: Thu Jun 20, 2013 4:57 am
by Happycake
Oh. I see. I've been using a ported mac version, so I can't install the fighter update unless I integrate it using wine. Will reinstalling the game help, or will I have to redo & save the entire ship?

Re: Sandbox Error

Posted: Thu Jun 20, 2013 5:29 am
by Necrontyr1998
Well I find that things always seem to work when I integrate using Wine! :lol: jk

Re: Sandbox Error

Posted: Thu Jun 20, 2013 5:31 am
by Doogie12
All ships you made on the newest official version will work in the Fighterbay version.

Re: Sandbox Error

Posted: Thu Jun 20, 2013 5:58 am
by Happycake
Understood. Thanks for the help, everyone.

Re: Sandbox Error

Posted: Fri Jun 21, 2013 6:31 am
by Happycake
I tried it with the new beta release (on a PC) and had the same problem. Is there any reliable fix?

Re: Sandbox Error

Posted: Fri Jun 21, 2013 7:11 am
by Doogie12
Another thing I tried is to never open sandbox first. Do a playtest against the leviathan every time you fire it up, then go to the sandbox. I've never had an issue doing that either.

Re: Sandbox Error

Posted: Fri Jun 21, 2013 7:12 am
by Zalausai
It may be that one of the weapons have zero HP or something. Check their settings. HP is found in the EDIT tab with the weapon selected.