Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Number format in zon files?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
Grayarea



Joined: 11 May 2005
Posts: 12

PostPosted: Fri Jul 01, 2005 7:55 am    Post subject: Number format in zon files? Reply with quote

Hi All,

I have been poking about in the config files looking for data related to the ship acceleration issue.

The number format is not one I have come across before and even with the help of a hex editor I am still unable to work out the encoding.

In the zone file the fields look like this

^Crashdepth^1234^^^

^=null
1234=four byte number

The three nulls seem to be being used as field seperators?

I have been using the crush depth mod to try and figure out what is happeneing but am quite confused!

Anyone give me a push in the right direction?

Thanks,

Grayarea.
Back to top
View user's profile Send private message
Grayarea



Joined: 11 May 2005
Posts: 12

PostPosted: Mon Jul 04, 2005 3:31 pm    Post subject: Reply with quote

Update:


The number would appear to be a float scaled by a factor of 1.4. I don't understand the reason for the scaling, anyone have an idea?

A couple of examples to show what I mean.

Crush depth file data float Crush*1.4
100 00000c43 1.40^2 140
200 00008c43 2.80^2 280
175 00007543 2.45^2 245

Seems consistant with more tests.

Later,

Grayarea.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group