Log in

View Full Version : [REL] SH3rryPick


Fader_Berg
11-30-18, 06:13 PM
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:
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 exitDiff: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.

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

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

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


Download:

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


Appendix:


Windows Command Line Tutorial - #13 (http://www.subsim.com/radioroom/showpost.php?p=2579907&postcount=13)
A modest guide - #14 (http://www.subsim.com/radioroom/showpost.php?p=2580768&postcount=14)

Anvar1061
11-30-18, 11:52 PM
http://www.subsim.com/radioroom/images/smilies/Kaleun_Thumbs_Up-1.gifhttp://www.subsim.com/radioroom/images/smilies/Kaleun_Thumbs_Up-1.gifhttp://www.subsim.com/radioroom/images/smilies/Kaleun_Thumbs_Up-1.gif

Fader_Berg
12-01-18, 12:37 PM
Updated to r15.

[more info] (http://www.subsim.com/radioroom/showpost.php?p=2579540&postcount=1)

Fader_Berg
12-02-18, 12:22 PM
Updated to r20


Added 'merge' option


Put items from one file into another and renumber the result.

[more info (http://www.subsim.com/radioroom/showpost.php?p=2579540&postcount=1)]

Anvar1061
12-02-18, 12:42 PM
I install this program but nothing happens.
http://www.subsim.com/radioroom/images/smilies/Kaleun_Confused.gif

Fader_Berg
12-02-18, 12:57 PM
I install this program but nothing happens.

Hi Anvar1061.

This is not a program you need to install. You just download it, put i where you want and run it from there.
You have to run it from the command prompt (CMD) though. If you double click it, it will start a command prompt window and shut it down again so fast that you won't be able to see it.

Say you've downloaded it and put it in your SH3-folder. Open a command prompt and CD your way to your SH3-folder.

Type:
SH3rryPick -h...and go from there.

:)

Jeff-Groves
12-02-18, 01:17 PM
Write a few batch files. Lots easier then the cmd stuff.

Fader_Berg
12-02-18, 05:52 PM
Write a few batch files. Lots easier then the cmd stuff.


Yes. Those who thinks cmd is hard can write batch-files, which in turn has nothing to do with cmd at all.


Good point. :doh:

Jeff-Groves
12-02-18, 05:58 PM
http://codecaged.com/visual-command-line

Fader_Berg
12-02-18, 07:03 PM
http://codecaged.com/visual-command-line


Ha, ha, ha... omfg. Is that convenient?



Have a look at the producers 'Window Hider' while you're at it. Amazing ideas... He's probably working on a 'Icon Clicker' too.

Anvar1061
12-03-18, 02:46 AM
Hi Anvar1061.

This is not a program you need to install. You just download it, put i where you want and run it from there.
You have to run it from the command prompt (CMD) though. If you double click it, it will start a command prompt window and shut it down again so fast that you won't be able to see it.

Say you've downloaded it and put it in your SH3-folder. Open a command prompt and CD your way to your SH3-folder.

Type:
SH3rryPick -h...and go from there.

:)
http://www.subsim.com/radioroom/images/smilies/Kaleun_Confused.gif
Nothing's happening. "Cannot find SH3rryPick"

Fader_Berg
12-03-18, 03:32 AM
Updated to r25


Major bug-fixes.


[more info (http://www.subsim.com/radioroom/showpost.php?p=2579540&postcount=1)]

Fader_Berg
12-03-18, 03:46 AM
Nothing's happening. "Cannot find SH3rryPick"

I have no clue what's generating that error message. It's not from the Windows Command Line.

Check out a tutorial...


Windows Command Line Tutorial - 1 (https://www.youtube.com/watch?v=MBBWVgE0ewk)

Fader_Berg
12-08-18, 04:31 AM
A modest guide

I've just installed NYGM to a setup 'cause I want to try it out. I normally play GWX and it's been a while since I've been around.


http://fb.tuxxor.net/misc/jsgme-1.png


I've got a couple setups for SH3, and there is some stuff I always want to use in my SH3-setups. So I've copied them into a MOD-like structure.


http://fb.tuxxor.net/misc/files-1.png


One thing needs to be added to the menu.ini-file. And I put it in a file called 'fader_bergs-setup.ini'.


http://fb.tuxxor.net/misc/ini-1.png


Now I want to make a 'Fader_Berg-setup'-MOD that seamlessly adds my items. So I run SH3rryPick to generate a new menu.ini-file with my nomograph added.


http://fb.tuxxor.net/misc/cmd-1.png


Now my stuff is JSGME-compatible, so I copy the 'Fader_bergs-setup'-folder to the MODS-directory and install it.


http://fb.tuxxor.net/misc/jsgme-2.png


Nice...


Later on, I decide to install the widescreen stuff too. I remove my Fader_bergs-mod with JSGME and install the WYGM instead. I rerun SH3rryPick with my little ini-file against the latest menu.ini in the SH3-data\Menu-directory and get a updated Fader_bergs-mod to install


http://fb.tuxxor.net/misc/jsgme-4.png


Nice again... :)