Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Water on June 12, 2008, 04:27:47 am

Title: Detail box bug
Post by: Water on June 12, 2008, 04:27:47 am
Detail boxes get flipped depending on text input.
High quality boxes get flipped to low and vice versa.

$detail_box:1 - causes problems, lack of single space
$detail_box: 1 - works fine

Tested on: fs2_open_3_6_9.exe + fs2_open_3_6_10-Xt_0314.exe

PCS2 defaults to no space.

(Not Mantised - no confirmation email so far.)
Title: Re: Detail box bug
Post by: Wanderer on June 12, 2008, 04:59:56 am
Hmmm... on a very, very brief check.. seems like pof data parsing doesn't really handle empty spaces too well.. and assumes a single empty space after the $detail_box:
Title: Re: Detail box bug
Post by: Water on June 12, 2008, 06:13:04 am
Hmmm... on a very, very brief check.. seems like pof data parsing doesn't really handle empty spaces too well.. and assumes a single empty space after the $detail_box:
That explains why the high quality box didn't act like a detail box, and only the low one was changing state.
Title: Re: Detail box bug
Post by: Wanderer on June 12, 2008, 08:51:43 am
Try this build (http://koti.mbnet.fi/vekkup/FS2/Arkisto/fs2_open_3_6_9d_dbox.zip)... with and without empty space(s).
Title: Re: Detail box bug
Post by: Water on June 13, 2008, 01:44:46 am
Try this build (http://koti.mbnet.fi/vekkup/FS2/Arkisto/fs2_open_3_6_9d_dbox.zip)... with and without empty space(s).
Done -  :yes: the detail boxes worked fine with that.
There are other issues with detail boxes, but need to rule out some stuff first.
Title: Re: Detail box bug
Post by: Wanderer on June 13, 2008, 04:27:03 am
ok... i'll commit that change then to SVN unless i can find some issues with it...