Sandbox Error

Got questions about Shipmaker? Get answers here. Please read the stickied topics first!

Moderators: th15, Moderators

Post Reply
User avatar
Happycake
Lieutenant
Lieutenant
Posts: 29
Joined: Thu Jun 20, 2013 4:11 am

Sandbox Error

Post 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.
Last edited by Happycake on Fri Jun 28, 2013 8:53 am, edited 1 time in total.
Look At Me Still Talking When There's Science To Do...
Doogie12
Admiral
Admiral
Posts: 1508
Joined: Sun Aug 30, 2009 1:14 am
Location: Castle Anthrax

Re: Sandbox Error

Post 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
naysayers will be shot
User avatar
Happycake
Lieutenant
Lieutenant
Posts: 29
Joined: Thu Jun 20, 2013 4:11 am

Re: Sandbox Error

Post 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?
Look At Me Still Talking When There's Science To Do...
User avatar
Necrontyr1998
Rear Admiral
Rear Admiral
Posts: 972
Joined: Fri Jul 27, 2012 3:30 am

Re: Sandbox Error

Post by Necrontyr1998 »

Well I find that things always seem to work when I integrate using Wine! :lol: jk
Deus Est Mechanicus

Owner of 'The Novian Empire', a Delphinius Gulf Wars faction.
Fleet Version 1.8 is finally available for download!
viewtopic.php?f=70&t=7081
Doogie12
Admiral
Admiral
Posts: 1508
Joined: Sun Aug 30, 2009 1:14 am
Location: Castle Anthrax

Re: Sandbox Error

Post by Doogie12 »

All ships you made on the newest official version will work in the Fighterbay version.
naysayers will be shot
User avatar
Happycake
Lieutenant
Lieutenant
Posts: 29
Joined: Thu Jun 20, 2013 4:11 am

Re: Sandbox Error

Post by Happycake »

Understood. Thanks for the help, everyone.
Look At Me Still Talking When There's Science To Do...
User avatar
Happycake
Lieutenant
Lieutenant
Posts: 29
Joined: Thu Jun 20, 2013 4:11 am

Re: Sandbox Error

Post by Happycake »

I tried it with the new beta release (on a PC) and had the same problem. Is there any reliable fix?
Look At Me Still Talking When There's Science To Do...
Doogie12
Admiral
Admiral
Posts: 1508
Joined: Sun Aug 30, 2009 1:14 am
Location: Castle Anthrax

Re: Sandbox Error

Post 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.
naysayers will be shot
User avatar
Zalausai
The Tutorialist
The Tutorialist
Posts: 939
Joined: Tue Feb 12, 2013 11:42 am
Location: Looking for angels in the Maze of the Dead.

Re: Sandbox Error

Post 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.
Has written a series of tutorials for the newbies
Zalausai's Tutorial Index

Created: Elements of Discord, Heaven's Grace, and Hell's Last Battalion.

I stop in from time to time to check in on the community. Though I don't spend much time with shipmaker anymore.
Proud parent since: 8/15/2013 (Baby Boy)

Good shipbuilders never die . . . they just fade away.
Post Reply