View Full Version : [REL] JTxE - Textenabler to merge lines in ini-Files
jimimadrid
10-15-07, 01:20 AM
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.
http://jimimadrid.bplaced.net/Download/Bilder/JTxE_image.jpg
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.
http://jimimadrid.bplaced.net/Download/Bilder/Folder%20JTxE.jpg
This Mod.ini-Files needed an special form.
http://jimimadrid.bplaced.net/Download/Bilder/Ini-Mod.jpg
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.
http://jimimadrid.bplaced.net/Download/Bilder/Ini_Mods%20Folder.jpg
The user has first to install via JSMGE.exe and than the Mod.ini via the JTxE.exe.
1. Link to JTxE V1.0a -> http://jimimadrid.bplaced.net/Download/JTxE.exe
(http://jimimadrid.ohost.de/downloads/SH/JTxE.zip)
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
leovampire
10-15-07, 01:42 AM
Anyone who needs to make Menu changes in the game to make a mod work ABSOLUTLY MUST HAVE THIS!
No more over write's in the file simply changes the line's that need to be changed in the menu files to make mod's work.
Next best tool to have guy's for adding things to the game to work along side of the JSGME tool.
jaketoox
10-15-07, 07:31 AM
No more tinkering with that menu.ini, just enable changes with this tool....what would be easier than that???:rock:
I will add required files and a link to this thread on my MetalHud thread ASAP:yep:
Many thanks:up:
Jake
Digital_Trucker
10-15-07, 07:45 AM
This will make all those mod merges so much easier (and more trouble free). All I can say, Jimi, is thank you, thank you, thank you (and viele dank).:up: :rock:
AVGWarhawk
10-15-07, 07:47 AM
Basically what you are saying is this will just change the line and not the whole folder?
jimimadrid
10-15-07, 08:17 AM
Basically what you are saying is this will just change the line and not the whole folder?
Yes, it changes only the desired lines. Therefore modder will be able to merge their mods without getting trouble in the ini's.
Like in JSMGE the user can easily switch on or off the mods.
AVGWarhawk
10-15-07, 08:23 AM
Great! Sorry for my confusion here. Do we put all the mods in the ini folder or just mods that change ini in within the game?
jimimadrid
10-15-07, 08:47 AM
The JTxE is not an replacement for the JSMGE. They will both work together.
The JSMGE will change all needed graphical or other files, but instead to let JSMGE change (often by mods used) ini's, now you write an extra textfile with the needed changed lines like described above.
Tell the people in the description to use the JTxE after the JSMGE.
So a lot of mods will live together all modifying the same ini's.
Also a chance to change part of dds Files. Copy and rename the desired dds-file. Make an JTxE ini with the desired line changes in the menu.ini (showing the new dds File)
Tell the people in the description to use the JTxE after the JSMGE.
No more trouble.
Greetz
jimimadrid
MONOLITH
10-15-07, 09:18 AM
Bravo Sir. Well done.
:up:
bigboywooly
10-15-07, 01:15 PM
Now I have to say thats a brilliant idea :up:
Kudos
Kpt. Lehmann
10-15-07, 05:21 PM
I think jimimadrid just cured a lot of future headaches.
Good stuff man. :up: :up: :up:
Awesome brilliant!!! Thanks man :rock:
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.
http://img230.imageshack.us/img230/8729/jtex1pn1.jpg
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.
http://img153.imageshack.us/img153/5088/folderjtxeuj5.jpg
This Mod.ini-Files needed an special form.
http://img502.imageshack.us/img502/6088/inimodyn0.jpg
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.
http://img88.imageshack.us/img88/4529/inimodsfolderuc1.jpg
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-447580/JTxE.exe.html
2. Link to JTxE -> http://hosted.filefront.com/jimimadrid/ (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!!!:up:
Bill
poor sailor
10-16-07, 02:55 PM
Many thanks for this great tool!
This is a must have! :up::up::up:
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 (http://www.subsim.com/radioroom/showpost.php?p=592296&postcount=2)
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;
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 :up:
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.:up:
DrBeast
11-06-07, 06:19 AM
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 (http://www.subsim.com/radioroom/showpost.php?p=592296&postcount=2)
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 :up:
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.
leovampire
11-06-07, 01:47 PM
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.:up:
Since the 1.3 patch what has to be changed to down size the watch has also changed.
DrBeast
11-07-07, 05:40 AM
The values in Captain Cox's post (http://www.subsim.com/radioroom/showpost.php?p=592296&postcount=2) 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.
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
The values in Captain Cox's post (http://www.subsim.com/radioroom/showpost.php?p=592296&postcount=2) 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 (http://www.subsim.com/radioroom/showthread.php?t=111387&highlight=smaller+tools) 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
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
DrBeast
11-08-07, 05:49 AM
Cheers, I was thinking of trying that mod out the other day. :up:
Killjoy12
03-18-08, 07:16 PM
The link for this in the first post does not work.
jimimadrid
03-19-08, 02:42 AM
The link for this in the first post does not work.
Oh, the transferlimit of my page has been reached this month. So Arcor has closed my account for this month.
I have open an additional link on my first post.
Sorry for the trouble.
Killjoy12
03-19-08, 11:53 PM
Thanks for updating the link.
scrapser
04-03-08, 12:47 PM
Question...could this tool be used to add CaptainCox's small navigation tools? It would seem to me your tool is good for replacing existing lines but what about adding new sections of code to the INI file? Seems like that would still have to be a manual process.
Thanks
jimimadrid
04-03-08, 01:20 PM
No for this version. The 2.0 will be able to do it. At the moment you should do it manually. Sorry
scrapser
04-03-08, 01:52 PM
Okay...no worries. How's the 2.0 progress coming along?
JoeCorrado
07-05-10, 10:14 AM
Download Link is dead. Anybody have this?
JoeCorrado
07-07-10, 04:07 AM
Got a new and working download link from jimimadrid:
http://www.jimimadrid.kilu.de/SilentHunter/JTxE.exe
Mikemike47
12-04-13, 09:33 AM
Got a new and working download link from jimimadrid:
http://www.jimimadrid.kilu.de/SilentHunter/JTxE.exe
This link does not work now. Download links did not work from 1st post either.
I PM'd jimimadrid asking for permission for me to upload JTxE and misc ini mods to subsim download utilities section. I have not researched yet if misc ini mods are still available somewhere.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.