![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Black Magic
![]() |
![]()
Here's a little jewel of a script I wrote to renumber the items in the .ini files. It will renumber them starting with 1 and incrementing the count for each item. This is handy when you insert or delete items from the .ini file so you don't have to manually correct the 'holes' or additions or even worry if you duplicated a number or not.
Take the Page layout.ini file for example. Let's say you add 35 entries to it dealing with adding dials or something. Let's say you added it somewhere in the middle of the file. That file has 442 entries in it stock. Do you really want to manually fix 200+ entries? Hell no!! This is where this little gem shines. You also have the ability to rename the items in the .ini file. Say the same file above we wanted to use D3D instead of G3F...again this little jewel comes to your rescue! I'm writing more scripts to help figure out this mess of a so called sim game we have been handed by Ubi ![]() You have to have python installed on your computer for these to work. Python is a free download. Google it. I'm using version 2.6 http://www.filefront.com/15736129/Page-Renumberer.py/ TheDarkWraith Edit: It does NO error checking to ensure you enter the correct values (user input errors). If you're using it you should know what you're doing and thus shouldn't need the error checking. Plus it's a python script, not an application and thus I didn't bother taking the time to code in user input error checking. It will 'bark' if you do something wrong. Last edited by TheDarkWraith; 03-04-10 at 03:12 AM. |
![]() |
![]() |
![]() |
#2 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]()
Excellent DarkWraith this be of great use, have you had any luck on the interface.
![]() |
![]() |
![]() |
![]() |
#3 | |
Black Magic
![]() |
![]() Quote:
Yes, the script is a wonderful little addition to a modder's toolbox. It is very handy. |
|
![]() |
![]() |
![]() |
#4 |
Seasoned Skipper
![]() Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
|
![]()
I missed this before!
![]() ![]()
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ... ![]() |
![]() |
![]() |
![]() |
|
|