Home › Forums › General I-War Talk › Mods › Modifying default ship.ini’s
- This topic has 22 replies, 5 voices, and was last updated 3 years, 1 month ago by IronDuke.
-
AuthorPosts
-
28. October 2016 at 1:35 #19401IronDukeParticipant
Hah, no, not related. If I don’t play I-War 2 for a couple months, the install often gets queer. Games installed on the hard drive corrupt anyway after a few years, and I haven’t reinstalled this particular location for at least five. To top it off, I’ve been tinkering with some other stuff, so it’s no surprise that it copped out on me.
I’ll install it on the SSD this time, as it’s so small.I agree this should be simpler. I don’t have a clue why it’s not working as I gave it to you, but I’ll find out. *mutters incoherently about racks and stocks* I’ll find out… muhahahaha…
You’ve probably noticed that if something with I-War 2 does not go EXACTLY as it’s supposed to, I mobilize my armies. :silly: It’s an effect of knowing so much about the game that you can’t rest if it misbehaves and you don’t know why. :whistle:
Edit: My struggles have borne fruit! πΏ Actually, I just checked to see if compatibility mode was still on, and it seems Windows managed to turn it off somehow, so I switched it back on and the game ran fine. I tested the mod, the exact one that’s in the .zip I attached, and it works. The tug handles like a patcom.
Bear in mind that it only affects the normal tug in game. The instant action tug is unaffected, and the tug you use when busting out of jail also is unaffected, as it’s a different file.
Oh, I just remembered something! The game reads the .ini file only when you select which ship to use! The .ini file is actually copied to the save. I only remembered because I was thinking about this one other mod I made. Every time I changed a stat on the corvette, in order for the game to notice, I had to switch to another ship in the hanger, and then back to the corvette so it would reload the file. Try this! Switch to the command section, then back to the tug, and launch to see if it works! π
–IronDuke
I-War 2 Discord: https://discord.gg/RWaabWB
Very little about the game is not known to me. Any questions you got, throw them at me. π28. October 2016 at 6:10 #19402IronDukeParticipantPosting because I just remembered edits don’t send emails to those subbed to the thread. Ataraiym, check my edit on the post above. B)
–IronDuke
I-War 2 Discord: https://discord.gg/RWaabWB
Very little about the game is not known to me. Any questions you got, throw them at me. π28. October 2016 at 8:08 #19403BozobubParticipantBy the by, usually if IWar 2 (and its variants) fail, after working previously, it’s due to a corrupted registry entry. You can often copy out those keys while it’s working, then simply reapply them if there’s an issue, and *pouf* it works!
You can also do something similar to switch between multiple installs of IWar 2 (say, Torn Stars and the Vanilla game), by making multiple .reg files, one for each install. I posted the following 11 years ago(!) on the old Torn Stars subforum (thank heaven it was still there to copy/paste, with a couple of changes):
First, you need one copy of EOC modded to Torn Stars (or w/e variant), and another copy in its original (fully patched! :D) form. I installed EOC to the path: “C:program FilesgamesIndependence War 2 -Edge of Chaos” and Torn Stars to the path “F:More GamesIWAR 2 – Torn Stars”. It doesn’t really matter which is which, so if you’ve already installed Torn Stars over your old EOC game, just reinstall EOC to a new folder with a new name/path of your choice.
OK, now whichever executable you run in either install, your system will actually execute the version you installed MOST RECENTLY. Bummer. There is, however, a reasonably easy solution. All it takes is a little registry hackin’ :). In fact, just copy each of the two text bits below (including “Windows Registry Editor Version 5.00”) and save with the extension “.reg” (not “.txt”!)to two separate files and you’re set! I used the filename “EOC.reg” for the first one and “Torn Stars.reg” for the second. Yeah, I know, imaginative – lol. π
OK, this 1st bit will be to set your game to run your original EOC. You’ll need to change all instances where I show ‘C:\PROGRA~1\GAMES\INDEPE~1’ to your actual install path for EOC. Yes, the backslashes are doubled! Keep in mind that these are old-school path names that are truncated to 8 characters; you MUST keep the tilde, as well:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstallIndependence War 2 - Edge of Chaos]
"DisplayName"="Independence War 2 - Edge of Chaos"
"UninstallString"="C:\PROGRA~1\GAMES\INDEPE~1\UNWISE.EXE C:\PROGRA~1\GAMES\INDEPE~1\INSTALL.LOG"[HKEY_LOCAL_MACHINESOFTWAREParticle SystemsEdge of ChaosSettings]
"Options"=dword:00000001
"InstallPath"="C:\PROGRA~1\GAMES\INDEPE~1\"
"Version"=dword:0000000eAnd now the version to set your system to run Torn Stars. Again, you’ll need to change all instances where I show ‘F:\MOREGA~1\IWAR2-~1’ to your actual install path for Torn Stars.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstallIndependence War 2 - Edge of Chaos]
"DisplayName"="Independence War 2 - Edge of Chaos"
"UninstallString"="F:\MOREGA~1\IWAR2 ~1\UNWISE.EXE F:\MOREGA~1\IWAR2 ~1\INSTALL.LOG"[HKEY_LOCAL_MACHINESOFTWAREParticle SystemsEdge of ChaosSettings]
"Options"=dword:00000001
"InstallPath"="F:\MOREGA~1\IWAR2 ~1"
"Version"=dword:0000000e
That’s it! I’ve tested it and it works dandy. Just double-click (or right-click and select “Open”) to activate the corresponding .reg file whenever you want to change the version that runs, then click “Yes” when it asks if you want to add the data to the registry. It’s probably advisable to use a separate shortcut to each version – I do – but AFAIK you actually only need ONE; it’ll run the version most recently switched to, whichever you choose. As a nice little bonus, as long as you switch to the correct version before you do so, uninstalling will also work correctly on that version…Hope that helps.
________________
Wipe thine ass with what is Written and grin like a ninny at what is Spoken. Take thine refuge with thine wine in the Nothing behind Everything, as you hurry along the Path.28. October 2016 at 9:28 #19404ChesskingParticipantThanks for the tip! I will copy your message into a text document for when I might need it, and so I don’t forget where it is.
This is one tough navy, boy. They donβt give you time off, even for being dead. -Clay
Storm Petrel
7. November 2016 at 8:22 #19435ataraiymParticipantFinally got some time to try this again… and I dunno what you did Ironduke, but she flies great!
REALLY appreciate the efforts you made – I was determined to play this all the way through only hitting Mass and Marauders, but it was heavy going…. now I can fly without losing 30 minutes salvaged pods because of too many marauders at once.
I’d buy you a beer if I could π
!(>..<)!
7. November 2016 at 21:30 #19438IronDukeParticipant[quote=”ataraiym” post=20480]
I’d buy you a beer if I could :)[/quote]
I don’t drink anyway. π Although… if you’re serious about that form of appreciation, I may call in a favor one day… :whistle:–IronDuke
I-War 2 Discord: https://discord.gg/RWaabWB
Very little about the game is not known to me. Any questions you got, throw them at me. π18. August 2021 at 8:43 #19991Atheist AntichristParticipantI have a semi-related question…it is about .ini’s so this seemed to be the best place to post. ..assuming anyone is around to respond. The Gatling Cannon: where exactly is the ini for it? Or is the “assault_cannon” actually the Gatling? What about the assault_cannon_ring? I can’t make heads or tails of it and I would really like to increase the ammo available for the gatling cannon because it runs out so quickly.
Regarding the assault cannon it has these lines under properties:
max_ammo_count=
ammo_count =
What is that about? It’s the only ini I’ve seen that has it and I’m curious as to the reason.
I was screwing around with the files and now my gatling ammo count is at 9999 and doesn’t count down as I use it until I run out of gatling ammo crates. It’s weird and I kind of like not running out of ammo, but I want to fix it anyway but I”m having trouble figuring figuring out where to fix it. I guess I could pull the original files from the resource.zip but then I have to rebuild my enhancement mod. Also rebuilding it would leave me back into the position of not really knowing where the gatling cannon ini is.
[img]https://i.ibb.co/NpPkGh7/Sig-I-Wafinal.png[/img]
βItβs better to be silent and thought a fool than to speak and remove all doubtβ
-Mark Twain6. October 2021 at 8:26 #20009IronDukeParticipant“assault_cannon” is the ammo-consuming Gatling cannon
“assault_cannon_ring” is the energy-consuming Assault cannon, only available late in Act 3. The name refers to the reactor ring built into the weapon providing it enough power not to require ammo shells. Originally the Gatling was called the Assault cannon during development, and because of this some legacy references such as this one still remain.
I don’t exactly know the difference between max_ammo_count and ammo_count, but if I had to take a guess I’d wager the latter is how many rounds the weapon has by default and the former is the highest amount it can carry, example being from restocking at the instant action supply vessel. Someone would have to test it out.
An ammo display of 9999 and not counting down is simply because that’s the highest value the hud can display, so maybe you have, for example, 15,000 rounds. It will eventually begin to count down once the ammo count drops below 10,000.
Hope that helps
I-War 2 Discord: https://discord.gg/RWaabWB
Very little about the game is not known to me. Any questions you got, throw them at me. π -
AuthorPosts
- You must be logged in to reply to this topic.