![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Seaman
![]() Join Date: Mar 2007
Location: NORFOLK UK
Posts: 42
Downloads: 33
Uploads: 0
|
![]()
Does anybody out there know where I can get information on CREATING Tweaker files. I found a post That enabled me to use existing files but not how to Create one. All relevant info greatfully recieved.
|
![]() |
![]() |
![]() |
#2 | ||||||||||||
Sea Lord
![]() Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
|
![]()
1.You need a hexeditor to look at the stuff
2.Windows/XP/VISTA Notepad 3.You need a lot of patience and coffee! There is a small tut in the top of the tweak files from timetraveller. Quote:
Lets say i want to tweak the crash depth of a sub. Where could this data be?, this is where you have to use a bit of imagination and logic (logic sometimes don't work, but its good to have ![]() It should be something with subs so lets look in the sub files for it. C:\Program Files\Ubisoft\Silent Hunter 4 Wolves of the Pacific\Data\Submarine\NSS_Gato Ok there are a lot of stuff there, but normally it should be in the .sim .dat .zon etc, we have to look plain and simple (here also the tweak files already made by various ppl will give you clues as to where these are) Lets check the NSS_Gato.zon using a hex editor. I am using the search function in the hexeditor and do a search for "crash" ![]() WOW! we found it directly :p Ok what does this tell us ![]() Well it tells us that we a have a "SINGLE FLOAT VALUE of 190 AT THE 2ND BYTE PAST!!!! the SEARCH TERM, in this case "CrashDepth" ( I think the high value here is due to a mod I am using, no matter) Ok so how does one put this info in to a tweak file. 1. You have to specify the version of the game In this case 1.2 Quote:
in this Case it would be Quote:
3. We have to specify in the tweak file what line of code we want to change (elementary) So we wanted to change the "Crush Depth". So lets start. 3.1 We will have to put in a drop down name, this is the name of the group or part that will appear when we start the Minitweaker, this can contain as many groups as you like but as we only have one "Crush depth" we will settle with that for now. So in this case we put Quote:
3.2 Lets put in the search string to get the " Crash depth" Quote:
Quote:
Quote:
Quote:
If there are more instances we make another search line and put 2 in that case etc etc Quote:
![]() Quote:
Quote:
So the code looks like this (including all of above) Quote:
![]() Now look at that its 190!!!!! we are ready to set it to 1000 if we want ![]() Hope this will help you a bit. Last edited by CaptainCox; 06-10-07 at 06:19 AM. |
||||||||||||
![]() |
![]() |
![]() |
#3 |
Seaman
![]() Join Date: Mar 2007
Location: NORFOLK UK
Posts: 42
Downloads: 33
Uploads: 0
|
![]()
Vielen Dank Herr Kapitan Cox, this will get me started, will probably require some serious brain lubricant as I have'nt messed with MC for over 20 years. Again many thanks for your prompt reply.
|
![]() |
![]() |
![]() |
#4 |
Nub
![]() Join Date: May 2007
Posts: 2
Downloads: 0
Uploads: 0
|
Maybe I'm missing something important here, but help an amateur modder out... if we have to do all the work of finding the value in a hex editor anyway... why not just edit the hex THEN? Is it simply so it can be found later for subsequent modding?
(ie. Why use the tweaker at all, if we have to do the searching and guessing ourselves?) |
![]() |
![]() |
![]() |
#5 |
Sea Lord
![]() Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
|
![]()
Well not all ppl know how or have the time to learn to look for this stuff, but with the tweaker file anybody can change the values etc. And if you start changing the hex directly it will be alot of searching if and when one would like to undo stuff. But in theory, yes, one can change the hex directly.
To your 2nd comment. There is no program in the world that do anything by it self (maybe ufo technology :p) but there always some sad guy that have to program the software to maybe look like its doing it by it self ![]() |
![]() |
![]() |
![]() |
#6 |
Canadian Wolf
|
![]()
Interesting stuff lads
![]() RDP |
![]() |
![]() |
![]() |
#7 |
XO
![]() Join Date: Mar 2007
Location: In your baffles...
Posts: 434
Downloads: 624
Uploads: 7
|
![]()
Yes!...very interesting , indeed.
Really makes me appreciate all the effort that goes in to making a tweak file. I say , Thanks!... to all who have the gray matter to do it! ![]() |
![]() |
![]() |
![]() |
#8 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
thats how timetraveler ended up with his tweak files, many contributers added their hard work to his and it became the best tool a modder could ever have. i will pm the moderator and ask this to be a sticky, it is a wonderfull guide to willing people who want to try making the tweak files we all need. not that i wish to discourage anything but if captain cox is right about the file being version specific then any tweak file made now might need minor fix to work with the next update patch from ubi. |
|
![]() |
![]() |
#9 |
Sea Lord
![]() Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
|
![]()
EDIT:Fixed the missing pics.
We sometimes need to do this again as values might have changed due to tweaks in the patch, or the location of the code moved due to code added etc etc. Last edited by CaptainCox; 06-10-07 at 07:12 AM. |
![]() |
![]() |
![]() |
|
|