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 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-30-18, 06:13 PM   #1
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
Default SH3rryPick

makman94 sent me a message a month ago which reminded me of SH3. I couldn't resist to dust off that captains hat again off course. Ahead full with it again.

I'm messing around with mods to build my setup and started to write a tool to ease the pain. It's a sorry little bastard but if you find it useful, you're more than welcome to use it.

Precondition Rules for ini-files:
  • Line length MUST NOT be longer than 255 bytes
  • Items MUST be separated by -at least - one blank line
  • Item data MUST NOT contain a blank line
  • Text UP TO the first item ([Gxx Ix]) is left as is

Help:
Code:
Usage: SH3rryPick [options] base_file [file1, file2, ...]

  Options:

    -d        diff a file with base_file
    -m        merge a file with base_file
    -o fn     output to file instead of stdout
    -h        print this help and exit
    -r        renumber items in base_file
    -v        print version and exit
Diff:
Compares two main.ini-files and outputs items that are different to the ones- or non-existent; in the base_file. Comments, group- and id number set aside.

Code:
SH3rryPick -d menu_1024_768.ini other_menu.ini > menu_diff.ini
Merge:
Merges items in a file to the ones in the base_file and outputs a renumbered version containing all items.

Code:
SH3rryPick -m menu_1024_768.ini other_menu.ini > new_menu.ini
Renumber:
Outputs a renumbered version of base_file.

Code:
SH3rryPick -r menu_1024_768.ini > menu_new.ini
Don't look straight at the bugs. You have been warned.


Download:

r26 : https://fb.tuxxor.net/SH3rryPick.exe


Appendix:
  • Windows Command Line Tutorial - #13
  • A modest guide - #14
__________________
patSH3r-developer, (https://fb.tuxxor.net)
Type II junkie

Last edited by Fader_Berg; 06-18-19 at 12:13 PM.
Fader_Berg is offline   Reply With Quote
 


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 08:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.