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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-23-19, 07:37 AM   #16
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

//------------------------------------------------
//--- 010 Editor Script File
// RAW file reader .001
// Reads the DetailMask RAW files in SH5 and outputs the height values
// Outputs 101 lines of 101 floats
//------------------------------------------------

int i, l, t, s=101;
char W[40];


float r;
for( i = 0; i < s; i++)
{
l=101;
Printf( "Line %d\n", i);
{
for( t = 0; t < l; t++)
{
r = ReadFloat();
Printf( "%f ", r );
FSkip(4);
}
}
}
W = InputString("Save File", "Name your save file", "c:\\temp\\");// You can change the path when saving.
OutputPaneSave( W );
Jeff-Groves is offline   Reply With Quote
 


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:53 AM.


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