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

Reply
 
Thread Tools Display Modes
Old 01-05-19, 06:41 AM   #1
oskar123
Watch
 
Join Date: Jan 2011
Posts: 20
Downloads: 29
Uploads: 0
Default

I looked through their site but I have to say this looks complicated and I don't really understand it. I'm willing to learn of course but I don't really know where to start.
__________________
I will always input AoB backwards.
oskar123 is offline   Reply With Quote
Old 01-05-19, 09:49 AM   #2
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,100
Downloads: 451
Uploads: 2


Default

It is not something that can be "mastered", or even used efficiently in just a few mouse clicks, unless you are already familiar with a similar proggie. At its basic level, it is a text editor, and can be used as an editor for programming C or Basic (and hex) or a myriad other programming languages, including scripting, or used just with plain text files. It can use templates to open files so that the user can more easily "see" a files structure, and it can use scripts to more easily utilize said file structure in a semi-automatic way.

010 is a tool, such as an electric saw with changeable blades. You can con-struct something, or you can de-struct something. I've been attempting to use it to pull certain data from certain files for studying and comparing. Thus far though, I'm having to take baby steps, even though I used to do C programming many many moons ago. I am better at getting "Invalid data type" or other error messages, than I am at getting usable results. It takes a while, and a lot of reading of the 010 documentation - and they have a lot of it. Most of us will probably never reach the level of understanding of the editor that Jeff-Groves has, but we can try, and have fun along the way...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 01-06-19, 01:16 PM   #3
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

s7rikerback,

On the search for a dds file of a certain size? The opensearch.1sc can do it as is. Now I will refine it a bit to be more specific but it does work.

Put *.dds as the files to search and the size would be in what to look for.

Say you want to find dds files of 512
It will pull all dds files with 512 in the file size.
BUT! It will find the 512x1024 and such files. Thus the need to refine the search code a bit.

On the date of files search. 010 could be scripted to do this.
BUT!
Since that type info is stored in the hidden areas of a hard drive? It may be better to use other programs to do that for now.
Reason I say that is IF you make a mistake in that area you can easily trash a HD!
What I'm working with now is to copy FotrsU to a removable drive that has been formatted so it's clean. Nothing else is on it.
I can open and scan the dates of files in the hidden area of the master file table. This gives me the names and all the info we need.
As an example, put a usb stick in your computer. Open 010 and select open drive.
You'll get a prompt to install a template file. Do that then browser what pops up.
Best way to do that is format a usb stick then copy one file to it. Makes it easier to see and understand.
I'd suggest checking the read only box at first!

Now, my system has an SSD drive. Not sure why but I can not open that drive. Thus the copy to a removable drive.
What I'm looking at doing is to just copy the info (Names and dates stuff) we want to a file that you can then sort or search.

Last edited by Jeff-Groves; 01-06-19 at 01:27 PM.
Jeff-Groves is offline   Reply With Quote
Old 01-06-19, 03:11 PM   #4
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

Saw a post about black units in SH5.
Did a quick look at files and saw a problem with the Units mentioned.
Pointers in the Rosters file to a file that does not exist.
Offered a 010 help on how to find any Units that do not have Normals UV mappings.
http://www.subsim.com/radioroom/show...8&postcount=37

Granted many Units from SH3 have TMAPs? most don't have Normals and most custom or modified have NO TMAPS.
But it will cut HOURS checking files!

This also applies to SH4!

Last edited by Jeff-Groves; 01-06-19 at 03:20 PM.
Jeff-Groves is offline   Reply With Quote
Old 01-23-19, 07:37 AM   #5
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
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
Old 01-23-19, 10:12 AM   #6
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

The script above is undergoing changes to try something gap and I are working on.
Jeff-Groves is offline   Reply With Quote
Old 01-23-19, 02:08 PM   #7
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,654
Downloads: 137
Uploads: 0


Default

Here are 2 scripts I did for 010
Tangent and Cosine

010 does not use a perfect C code so I had to adjust.
Cosine corrected..............

#define PI 3.14159265

double param, result;
param = 60.0;
result = Cos ( param );// Correct for SweetScape 010
Printf ("The cosine of %f degrees is %f.\n", param, result );


Tangent corrected..........


#define PI 3.14159265

double param, result;
param = 60.0;
result = Tan ( param );// Correct for SweetScape 010
Printf ("The Tangent of %f degrees is %f.\n", param, result );
Jeff-Groves is offline   Reply With Quote
Reply

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 04:08 PM.


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.