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 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07-27-10, 01:42 PM   #8
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 72
Uploads: 0
Quote:
Originally Posted by Royale-Adio View Post
I think they are hard coded too. I took a glance at them also, and I saw exactly what you described. Theres the Shapes folder which contains SHP files that, when opened with text, looks like jibberish. It look like HEX, but I'm no expert so I'm not sure.
I looked into the .shp files, that is what I found:
Not sure about the first number, maybe it is a color.

The second number gives you number of dots. I.e. 28 means that there are 28 dots.
The three-numbers rows following are the XYZ coordinates of those dots. Since we are talking about 2d shapes - z is always 0. X and Y are just that - X and Y. So if you take MS Excel or OO Calc and make it to plot XY graph on the coordinates given in the first part of our file - you can roughly see the actual shape coded in the file. Try it for example on the ring.shp file - the name is self-explanatory.

I guess the second part gives you shapes (thickness, maybe color) of the lines between the dots. But I cannot figure out what do the numbers mean.

However even knowing this I just do not undertand how and what to those .shp files are used in the game,
Vanilla is offline   Reply With Quote
 

Thread Tools
Display Modes

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 06:38 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.