SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   [REL] SH3rryPick (https://www.subsim.com/radioroom/showthread.php?t=239293)

Fader_Berg 11-30-18 06:13 PM

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

Anvar1061 11-30-18 11:52 PM

http://www.subsim.com/radioroom/imag...humbs_Up-1.gifhttp://www.subsim.com/radioroom/imag...humbs_Up-1.gifhttp://www.subsim.com/radioroom/imag...humbs_Up-1.gif

Fader_Berg 12-01-18 12:37 PM

Updated to r15.

[more info]

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]

Anvar1061 12-02-18 12:42 PM

I install this program but nothing happens.
http://www.subsim.com/radioroom/imag...n_Confused.gif

Fader_Berg 12-02-18 12:57 PM

Quote:

Originally Posted by Anvar1061 (Post 2579825)
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:
Code:

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

Quote:

Originally Posted by Jeff-Groves (Post 2579835)
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

Quote:

Originally Posted by Jeff-Groves (Post 2579880)


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

Quote:

Originally Posted by Fader_Berg (Post 2579830)
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:
Code:

SH3rryPick -h
...and go from there.

:)

http://www.subsim.com/radioroom/imag...n_Confused.gif
Nothing's happening. "Cannot find SH3rryPick"

Fader_Berg 12-03-18 03:32 AM

Updated to r25
  • Major bug-fixes.

[more info]

Fader_Berg 12-03-18 03:46 AM

Quote:

Originally Posted by Anvar1061 (Post 2579904)
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...

Fader_Berg 12-08-18 04:31 AM

Keeping your s*it together
 
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.


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.

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

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.

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

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

Nice again... :)


All times are GMT -5. The time now is 03:57 PM.

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.