Page 7 of 9

Posted: Thu Jan 08, 2009 7:55 am
by Kaelis
I went through the code responsible for shooting and driver weapons, and i didnt find anything. I will need more details.

Posted: Fri Jan 09, 2009 12:15 am
by ArcaneDude
There are none. But now it also seems to happen when I just set shooting to 1 and burst to zero, so it's probably independant from that.

Note; all tests were made with player controlled ships, so I'm not sure about AI's.

EDIT; shall do.

Posted: Fri Jan 09, 2009 2:24 am
by Kaelis
At least give me an sb4.

Posted: Tue Jan 20, 2009 11:50 pm
by Venator
Latest version; old (1.612) sb4 resaved after adding ThrustEx's.

Code: Select all

ERROR in
action number 1
of Create Event
for object __newobject992:

In script nSec2b:
Error in code at line 2:
   obj = l_section[j].id

at position 8: Unknown variable l_section

___________________________________________
ERROR in
action number 1
of Draw Event
for object ctr_GUI:

Error in code at line 292:
                   draw_healthbar(barx + 1 + barlength/2,bary,barx + barlength,bary +GUI_HealthBarHeight*2 ,seltarg.l_syshp/seltarg.l_maxsyshp*100,$000000,$0000FF,$00AA00,0,1,0)

at position 115: Unknown variable l_syshp

___________________________________________
DL (.sb4 and .shp) here: http://www.wyrdysm.com/battleshipsforev ... s/Trig.rar

Required custom sprites:
spr_Core.png, spr_Alien.png, in the /Folder directory.

Posted: Wed Jan 21, 2009 12:14 pm
by Lord-General Thunder
I have the same issue, but I made my ship from scratch.

Posted: Wed Jan 21, 2009 1:15 pm
by Swamp Fox
Well, I have a slight problem. I can't open .sb4 files made with the last version of SM. Open old gives me nonsense and crashes. I would include a sample of it here, but it's acting like it's only a few lines, and if so would stretch the forum a few thousand pixels. I can PM it if you like. It doesn't matter which .sb4 I try to open, this happens with every one I try.

Posted: Wed Jan 21, 2009 2:44 pm
by Arcalane
Have you used the "open old sb4" option? :roll:

Posted: Wed Jan 21, 2009 6:21 pm
by Squishy
Weapon drivers and weapon links in old sb4s make errors, so you need to clear them out and then proceed to open the old sb4.

That's just one of the possibilities, though.

Posted: Wed Jan 21, 2009 9:45 pm
by Kaelis
Swamp Fox wrote:Open old gives me nonsense and crashes. I would include a sample of it here, but it's acting like it's only a few lines, and if so would stretch the forum a few thousand pixels.
...what? Why can't you just upload it like everyone else?

EDIT: Nevermind all bugs with loading and saving. Ive fixed them. don't try load old sb4s and don't make ships with ThrusterEx for now... ill make a new release once im done with triggers.

Posted: Wed Jan 21, 2009 10:35 pm
by Himura.Kenshin
I've been more or less AWOL for just about two months now, so I find myself newb enough to test a release.

First problem: I can only use the twenty-four stock sections. Where did I go wrong?

EDIT: After a bit of snooping, I found that the sections were split into groups, and logic followed that I somehow overlooked the button to switch between the groups. The problem was temporarily fixed by combining every sprite into one master group, changing the numbers correspondingly, of course.

Posted: Wed Jan 21, 2009 10:59 pm
by Venator
EDIT: After a bit of snooping, I found that the sections were split into groups, and logic followed that I somehow overlooked the button to switch between the groups. The problem was temporarily fixed by combining every sprite into one master group, changing the numbers correspondingly, of course.
That's been around for a while. Go to Tools >> Enable 1234 (or some similar option). Then you can go between the groups with the keys 1, 2, 3, and 4.

Also, use z to bring up a menu showing all the sections (in the active group) on the right side of the screen.

Posted: Wed Jan 21, 2009 11:58 pm
by ArcaneDude
Two bugs;

1) Section picker sometimes spawns two sections; the one I'm trying to spawn, and the one next to it, on the right side. This happens only in section picker. The highlight on the section button seems to stick, or lag. I don't know if that's related to it though.

2) After about an hour of building, the mouse cursor dissapeared when I moved it into the SM window. It still functions properly, it's just invisible.

I'll restart SM and see if that gets rid of the bugs.

Posted: Thu Jan 22, 2009 12:48 am
by Kaelis
You will need to be much more specific about the second error. As usual.

Posted: Thu Jan 22, 2009 2:48 am
by Lord-General Thunder
Ships with sections throw errors when they're spawned in-game. I've tested it rather thoroughly. Even a single section breaks the ship. Virtually any number of weapons and modules, including ThrusterEx, can be attached directly to the core without causing trouble, so long as there are no sections.

It also seems that your code for saving the ThrusterEx's is broken. It's a bit hard to explain, but it looks like every ThrusterEx included after the first has the function call and the ThrusterEx designation reversed.

I'll post the exact messages later, I'm just writing from memory.

Posted: Thu Jan 22, 2009 6:25 am
by Kaelis
Sections - No idea, everything works fine on my end. Maybe theres a bug in current ver of BSFCE that i unknowingly fixed in my source.

ThrusterEx - Apparently you missed this:
Kaelis wrote:EDIT: Nevermind all bugs with loading and saving. Ive fixed them. don't try load old sb4s and don't make ships with ThrusterEx for now... ill make a new release once im done with triggers.