Homesource Forums
http://homesource.nekomimicon.net/sourceforum/

Tutorial and Launch Manager
http://homesource.nekomimicon.net/sourceforum/viewtopic.php?f=16&t=425
Page 1 of 1

Author:  emile_b [ Tue Jun 10, 2014 10:31 pm ]
Post subject:  Tutorial and Launch Manager

Hi,
I am building for Android and have it working mostly, but there are a couple of strange bugs which I can not figure out, seems to be in the engine, but could be something I have done?!

1. The tutorial runs OK from the beginning, but if you try and restart the tutorial, or load a lesson, it will crash with a segfault.

2. The launch manager crashes out when I try and open it, whats happening is the 'staticinfo' struture is NULL for some reason here:

LaunchMgr.c
if (shipsavailable[PrintOrder[index]].ship->staticinfo->shipclass==CLASS_Corvette)
{
is_corv = TRUE;
}
else if (shipsavailable[PrintOrder[index]].ship->staticinfo->shipclass==CLASS_Fighter)
{
is_fight = TRUE;
}

Any idea how this may have happened?

Thanks!

Author:  emile_b [ Wed Jun 11, 2014 3:22 pm ]
Post subject:  Re: Tutorial and Launch Manager

2. Launch manager crash is a bug in the source code, it accesses index -1 of shipsavailable array, need to modify for loop or check for (PrintOrder[index]!=-1) near lines 845 and 1549. Crash will not show depending on how compiler lays out memory which is why not a problem so far.


Still issue with Tutorials not resuming, anyone confirm it works?

Thanks

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/