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 10-16-07, 02:40 PM   #1
billko
中国水兵
 
Join Date: Jul 2007
Posts: 275
Downloads: 21
Uploads: 2
Default

Quote:
Originally Posted by jimimadrid
All Modders knows the problem that some Mods will conflict with other Mods because of using the same dds-File or ini-File.

JTxE will be the solution to solve this problems.



It will act as the same way JSGME do, but it will change only lines in ini-Files.

The idea is to write the necessary lines in an extra Mod.ini-File and put this file an the Folder Ini_Mods ( like the Mods-Folder from JSGME).
JTxE need to be installed in the Silent Hunter Main Folder like JSGME - the ini_Mods Folder also.




This Mod.ini-Files needed an special form.



The "targetfile=" Line -> the path and name of the ini that should be changed.
There can be several targetfiles in one Mod.ini.

The chapter-line -> is marked by Brackets [] . If there is no Chapterline JTxE will search in the lines before the first chapter of the targetfile.

The targetline -> For this line JTxE will search in the chapter (like: "Mat 0 =" or "Zone=")
All writen behind the = will be changed.

There can be several targetlines and several Chapterlines in one Mod.ini

JTxE will hold a logfile, and therefore will be able to noticed if a Mod tried to change the same line as another Mod has done before.
JTxE will ask you to overwrite. But with the stored logs you will be able to deinstall all Mod.ini's.

The easiest way will be to add an Ini_Mods Folder to your Mod with the graphical changes and made it JSGME ready.



The user has first to install via JSMGE.exe and than the Mod.ini via the JTxE.exe.

1. Link to JTxE -> http://www.file-upload.net/download-.../JTxE.exe.html
2. Link to JTxE -> http://hosted.filefront.com/jimimadrid/

You can add to your Mod different Mod.ini Files to let the user select beetween different graphical changes in one Mod.


Modders try JTxE out and you will see the new possibilities you can get with this tool.

Thanks to leovampire for testing and holding hands.

Greetz
jimimadrid


PS. I hope this description helps to understand how JTxE works. Sorry for my bad english.


Here is a little Demonstration -> http://www.subsim.com/radioroom/showthread.php?t=123470
Bravo, Jimimadrid!

I was thinking of writing something like this but I was too scared. Thumbs up for having the courage to write this much-needed tool!!!

Bill
__________________
Damage Control 1.1 - LeoVampire Edition - Can you trust the experience of your crew to inform you of how deep you can really dive?
billko is offline   Reply With Quote
Old 10-16-07, 02:55 PM   #2
poor sailor
XO
 
Join Date: May 2006
Location: Serbia
Posts: 420
Downloads: 15
Uploads: 0
Default

Many thanks for this great tool!
This is a must have!
poor sailor is offline   Reply With Quote
Old 10-27-07, 08:35 PM   #3
ben cg
Swabbie
 
Join Date: Oct 2007
Posts: 13
Downloads: 0
Uploads: 0
Default

This a great tool, thanks

I couldn't get the existing mini-chrono.ini mod to work (it just enlarged a square section in the middle of the chrono, probably a 1.3 thing?). After some hunting around I found some working code posted by CaptainCox in this post

I just cut his code down to the relevant zone lines and put it in an ini mod file and it appears to work fine, red target time hand and everything. Here is the text for the mini chrono.ini file for anyone who wants a 75% clock mod;

Quote:
Targetfile=Data\Menu\menu_1024_768.ini

[G29 I2]
Zone= 412 768 312 300 0 1 0x29000000 1 0 0x29020000 -1 0 -300 0

[G29 I3]
Zone= 566 596 4 4 0 1 0x2902000C 0.5 -0.5 0x29020006 -0.5 0.5 0 0

[G29 I4]
Zone= 562 686 12 184 0 1 0x2902000C 0.5 -0.5 0x2902000E -0.5 0.5 0 0

[G29 I5]
Zone= 562 686 12 184 0 1 0x2902000C 0.5 -0.5 0x29020010 -0.5 0.5 0 0

[G29 I6]
Zone= 557 681 22 174 0 1 0x2902000C 0.5 -0.5 0x29020008 -0.5 0.5 0 0

[G29 I7]
Zone= 560 692 16 196 0 1 0x2902000C 0.5 -0.5 0x29020009 -0.5 0.5 0 0

[G29 I8]
Zone= 563 567 8 60 0 1 0x2902000C 0.5 -1 0x29020011 -0.5 1 -1 11

[G29 I9]
Zone= 564 674 8 52 0 1 0x2902000C 0.5 -0.09 0x2902000F -0.5 0 0 0

[G29 I10]
Zone= 564 567 10 62 0 1 0x29020007 0.5 -0.5 0x29020002 -0.5 0.5 0 -7

[G29 I11]
Zone= 565 583 8 80 0 1 0x29020007 0.5 -0.5 0x29020003 -0.5 0.5 0 0

[G29 I12]
Zone= 564 573 10 60 0 1 0x29020007 0.5 -0.5 0x29020004 -0.5 0.5 0 0

[G29 I13]
Zone= 564 674 8 52 0 1 0x2902000F 0.5 -0.5 0x29020005 -0.5 0.5 0 0

[G29 I14]
Zone= 529 583 80 80 0 1 0x2902000C 0.5 -0.965 0x29020007 -0.5 1 1 0

[G29 I15]
Zone= 558 720 20 18 0 1 0x29020000 0.5 -0.16 0x2902000D -0.5 0 0 0

[G29 I16]
Zone= 470 692 196 196 0 1 0x29020001 0.5 -0.505 0x2902000C -0.5 0.5 0 0

[G29 I17]
Zone= 450 702 236 234 0 1 0x29020001 0.5 -1 0x2902000B -0.5 1 0 0

[G29 I18]
Zone= 450 722 236 254 0 1 0x29020000 0.5 -1 0x29020001 -0.5 1 0 0

[G29 I19]
Zone= 544 758 48 36 0 1 0x29020001 0.5 0 0x2902000A -0.5 1 0 0
I hope modders make use of this great tool, theoretically we could combine bits from different interface/hud/map mods if everyone plays along
ben cg is offline   Reply With Quote
Old 11-04-07, 04:03 PM   #4
Metl
Bosun
 
Join Date: Apr 2007
Posts: 67
Downloads: 166
Uploads: 0
Default

I couldn't get the included mini chrono mod to work right... It just displayed a greyish flashing box, no more watch. Any idea what might have went wrong? I'm going to try again without any mods enabled and see if it works then. Great tool idea, hopefully I'll get it working right.
Metl is offline   Reply With Quote
Old 11-06-07, 01:47 PM   #5
leovampire
Eternal Patrol
 
Join Date: Apr 2007
Location: Waterbury, CT. USA
Posts: 2,336
Downloads: 0
Uploads: 0
Default are those pre patch 1.3 value's?

Quote:
Originally Posted by Metl
I couldn't get the included mini chrono mod to work right... It just displayed a greyish flashing box, no more watch. Any idea what might have went wrong? I'm going to try again without any mods enabled and see if it works then. Great tool idea, hopefully I'll get it working right.
Since the 1.3 patch what has to be changed to down size the watch has also changed.
leovampire is offline   Reply With Quote
Old 11-07-07, 05:40 AM   #6
DrBeast
The Old Man
 
Join Date: Oct 2007
Location: Somewhere Out In Space
Posts: 1,408
Downloads: 36
Uploads: 0
Default

The values in Captain Cox's post work. I copy/pasted those values to my .ini file and my clock works like a charm. Using v1.3.

Here, corrected "70% shrinkage" values. Try it out.

Code:
Targetfile=Data\Menu\menu_1024_768.ini

[G29 I2]
Zone= 412 768 234 225 0 1 0x29000000 1.23 0 0x29020000 -1 0 -300 0

[G29 I3]
Zone= 566 596 3 3 0 1 0x2902000C 0.5 -0.5 0x29020006 -0.5 0.5 0 0

[G29 I4]
Zone= 562 686 9 138 0 1 0x2902000C 0.5 -0.5 0x2902000E -0.5 0.5 0 0

[G29 I5]
Zone= 562 686 9 138 0 1 0x2902000C 0.5 -0.5 0x29020010 -0.5 0.5 0 0

[G29 I6]
Zone= 557 681 16.5 130.5 0 1 0x2902000C 0.5 -0.5 0x29020008 -0.5 0.5 0 0

[G29 I7]
Zone= 560 692 12 147 0 1 0x2902000C 0.5 -0.5 0x29020009 -0.5 0.5 0 0

[G29 I8]
Zone= 563 567 6 45 0 1 0x2902000C 0.5 -1 0x29020011 -0.5 1 -1 11

[G29 I9]
Zone= 564 674 6 39 0 1 0x2902000C 0.5 -0.09 0x2902000F -0.5 0 0 0

[G29 I10]
Zone= 564 567 7.5 46 0 1 0x29020007 0.5 -0.5 0x29020002 -0.5 0.5 0 -7

[G29 I11]
Zone= 565 583 6 60 0 1 0x29020007 0.5 -0.5 0x29020003 -0.5 0.5 0 0

[G29 I12]
Zone= 564 573 7.5 45 0 1 0x29020007 0.5 -0.5 0x29020004 -0.5 0.5 0 0

[G29 I13]
Zone= 564 674 6 39 0 1 0x2902000F 0.5 -0.5 0x29020005 -0.5 0.5 0 0

[G29 I14]
Zone= 529 583 60 60 0 1 0x2902000C 0.5 -0.965 0x29020007 -0.5 1 1 0

[G29 I15]
Zone= 558 720 15 14 0 1 0x29020000 0.5 -0.16 0x2902000D -0.5 0 0 0

[G29 I16]
Zone= 470 692 147 147 0 1 0x29020001 0.5 -0.505 0x2902000C -0.5 0.5 0 0

[G29 I17]
Zone= 450 702 177 176 0 1 0x29020001 0.5 -1 0x2902000B -0.5 1 0 0

[G29 I18]
Zone= 450 722 177 191 0 1 0x29020000 0.5 -1 0x29020001 -0.5 1 0 0

[G29 I19]
Zone= 544 758 36 27 0 1 0x29020001 0.5 0 0x2902000A -0.5 1 0 0
__________________



Let the Beast inside you free!
DrBeast is offline   Reply With Quote
Old 11-07-07, 03:08 PM   #7
ben cg
Swabbie
 
Join Date: Oct 2007
Posts: 13
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by DrBeast
The values in Captain Cox's post work. I copy/pasted those values to my .ini file and my clock works like a charm. Using v1.3.

Here, corrected "70% shrinkage" values. Try it out.
Thanks, careless of me to post the wrong code!

I think what happened is I had the mod installed and the .bak and .used files in the ini_Mods directory are ambiguously labelled; on examination the .bak file is what is being used in the current menu_1024_768.ini file and and the .used file is the original code.

In repentance for not double checking before I posted the chrono code :hmm: here is the ini mod code for a smaller Nav Tools from CaptainCox's original code from this mod but all are scaled to 70% (iirc one or two were at 50% and others at 70% I just made them all 70% - all credit to CaptainCox for code);

70% smaller nav tools
Code:
Targetfile=Data\Menu\menu_1024_768.ini


[G31 I16]
Zone= 20 506 112 56 0 1 0x31010001 0.1 -0.1 0x3101000A 0.5 1 0 0
Display=2;Linear
Crop 0=0.673828,0.859375,0.15625,0.078125
Crop 1=0.673828,0.774414,0.15625,0.078125
Crop 2=0.673828,0.859375,0.15625,0.078125
Crop 3=0.673828,0.774414,0.15625,0.078125
Crop 4=0.835938,0.859375,0.15625,0.078125
Crop 5=0.835938,0.774414,0.15625,0.078125
Crop 6=0.673828,0.859375,0.15625,0.078125
Crop 7=0.673828,0.774414,0.15625,0.078125

[G31 I17]
Zone= 140 236 77 168 0 1 0x31010000 0.3 -0.8 0x31010005 -0.6 0.9 6 0
Display=2;Linear 
Crop 0=0.820313,0,0.107421875,0.234375
Crop 1=0.820313,0,0.107421875,0.234375
Crop 2=0.820313,0.432617,0.107421875,0.234375
Crop 3=0.820313,0,0.107421875,0.234375

[G31 I18]
Zone= 110 230 67 157 0 1 0x31010000 0.3 -0.7 0x31010004 -1 1 0 0
Display=2;Linear 
Crop 0=0.726563,0,0.087890625,0.205078125
Crop 1=0.726563,0,0.087890625,0.205078125
Crop 2=0.726563,0.432617,0.087890625,0.205078125
Crop 3=0.726563,0,0.087890625,0.205078125

[G31 I19]
Zone= -27 273 117 115 0 1 0x31010000 0.2 -0.8 0x31010003 -1 1.1 20 0
Display=2;Linear 
Crop 0=0.475586,0,0.228515625,0.224609375
Crop 1=0.475586,0,0.228515625,0.224609375
Crop 2=0.475586,0.432617,0.228515625,0.224609375
Crop 3=0.475586,0,0.228515625,0.224609375

[G31 I20]
Zone= 8 340 28 50 0 1 0x31010000 0.08 -0.4 0x31010006 0.07 1.7 0 0
Display=2;Linear 
Crop 0=0.9375,0,0.0546875,0.09765625
Crop 1=0.9375,0,0.0546875,0.09765625
Crop 2=0.9375,0.432617,0.0546875,0.09765625
Crop 3=0.9375,0,0.0546875,0.09765625

[G31 I21]
Zone= -88 218 132 132 0 1 0x31010000 0.3 -1 0x31010002 -0.4 0.9 0 0
Display=2;Linear 
Crop 0=0.238281,0.0449219,0.21484375,0.21484375
Crop 1=0.238281,0.0449219,0.21484375,0.21484375
Crop 2=0.238281,0.477539,0.21484375,0.21484375
Crop 3=0.238281,0.0449219,0.21484375,0.21484375

[G31 I22]
Zone= -60 426 140 284.2 0 1 0x31010000 0 -1 0x31010001 -0.3 1 0 0
Display=2;Linear 
Crop 0=0,0,0.1953125,0.396484375
Crop 1=0,0,0.1953125,0.396484375
Crop 2=0,0.432617,0.1953125,0.396484375
Crop 3=0,0,0.1953125,0.396484375
ben cg is offline   Reply With Quote
Old 11-06-07, 06:19 AM   #8
DrBeast
The Old Man
 
Join Date: Oct 2007
Location: Somewhere Out In Space
Posts: 1,408
Downloads: 36
Uploads: 0
Default

Quote:
Originally Posted by ben cg
This a great tool, thanks

I couldn't get the existing mini-chrono.ini mod to work (it just enlarged a square section in the middle of the chrono, probably a 1.3 thing?). After some hunting around I found some working code posted by CaptainCox in this post

I just cut his code down to the relevant zone lines and put it in an ini mod file and it appears to work fine, red target time hand and everything. Here is the text for the mini chrono.ini file for anyone who wants a 75% clock mod;

*snip!*

I hope modders make use of this great tool, theoretically we could combine bits from different interface/hud/map mods if everyone plays along
Uh...those appear to be the original values I added them in manually, my watch appeared the same size as before (well, I got CTDs at first, but that was cause I pulled a stupid during the pasting!), so I compared my edited file against the one I was using before...values were exactly the same. I also checked out the values in the link you provided, and they're the "shrunk" ones.
__________________



Let the Beast inside you free!
DrBeast is offline   Reply With Quote
Reply


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