SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 01-29-07, 08:07 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default Dat and obj question.

When I do a conversion from standard obj file to import to a dat
9/1 13/2 12/3 converts to hex = 8 12 11 0 1 2
Haveing not looked at all dats, is this standard game wide?
The fact that it drops a full point?

Then the other 2 conversions.
Standard game wide?
Or do I need to dig a bit deeper?

Don't want how to do it, just a pointer.
I learn better that way.

Last edited by Madox58; 01-29-07 at 08:46 PM.
  Reply With Quote
Old 01-29-07, 09:32 PM   #2
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

Moin,

can you be a bit more precise?

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 01-29-07, 09:44 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

OK, I'll start with the first question I asked.

f 13/12 26/25 14/13

The above, when imported with Pack 3d, is converted to hex.
You get 13 26 14 then 12 25 13
But the file I'm look at is comeing out
12 25 13 11 24 12

The coords to the left of / are first then the coords to the right of / come next.
Notice they are -1

Is this game wide?

By the way, DD, I have eveything you've posted saved to my HD!
You are the Hex Master!!!
  Reply With Quote
Old 01-29-07, 09:55 PM   #4
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

Hi privateer,

where do you have these coords from???

As for coordinates I can tell you that X/Y/Z are not carried straight forward from your 3d program to the *.dat.
  • X remains X
  • Y becomes -Z
  • Z becomes Y
Coordinates are stored as float32 data type. Means that each value (X/Y/Z) is represented by 4 bytes in the *.dat.

Hope that´s the info your looking for. Go ahead with your next question!

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 01-29-07, 10:10 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Yes Sir, I understand all this. (Thanks to you!)
The files I'm looking at are my K-Ship files.
As I said, I have not looked farther yet.
Does this area, infact, drop a full point in all dat files?

I can now "read" objects inside of the dats but I haven't looked at any but
my K-ship dat.

If it's game wide, no reason to.
If not, back to work!!

Thanks again DD!!!
  Reply With Quote
Old 01-29-07, 10:27 PM   #6
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

Hi again,

Quote:
By the way, DD, I have eveything you've posted saved to my HD!
You are the Hex Master!!!
Thanks, I feel dignified. But I think I´m not. There are others who deserve this title more than me. I´ve no experience in programming, I´m just analyzing and editing.

As far as I know there´s no "standard" drop. I´ve never heard of one nor did I encounter a problem like that. So, what are these values for and what are you planning to do? Maybe we can isolate the problem by another approach.

Regards,
DD
DivingDuck is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.