![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Watch
![]() Join Date: Jan 2011
Posts: 20
Downloads: 29
Uploads: 0
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
CTD - it's not just a job
|
![]()
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 |
![]() |
![]() |
![]() |
#3 |
GLOBAL MODDING TERRORIST
|
![]()
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. |
![]() |
![]() |
![]() |
#4 |
GLOBAL MODDING TERRORIST
|
![]()
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. |
![]() |
![]() |
![]() |
#5 |
GLOBAL MODDING TERRORIST
|
![]()
//------------------------------------------------
//--- 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 ); |
![]() |
![]() |
![]() |
#6 |
GLOBAL MODDING TERRORIST
|
![]()
The script above is undergoing changes to try something gap and I are working on.
![]() |
![]() |
![]() |
![]() |
#7 |
GLOBAL MODDING TERRORIST
|
![]()
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 ); |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|