Author Topic: Create sorted list of Banished mods (by Gordon Dry - release 6b)  (Read 2129 times)

0 Members and 1 Guest are viewing this topic.

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Finally!

I created a batch script to create a text file with a sorted list of mods in it.

I should mention that you have to unpack it into the main Banished folder.

Right click on the "Create sorted list of Banished mods.cmd" and choose "Run as Administrator".

The list is sorted by load order.
  • only the filenames, now without the extension (.pkm)
  • it shows if mods are listed but no more in the WinData folder
  • it shows if mods are disabled
  • a backup of the registry key is created
  • obsolete registry entries of deleted mods can be deleted from the registry now
  • the script checks itself if it's run with administrative privileges
  • the text file output now contains information where to get the script                                   <---- NEW!
For testing I added a dummy entry to the registry with load order 999.
It looks like this (by 2016-07-30):
Code: [Select]
#######################################################
#    List of Banished mods sorted by load order       #
#                    created with                     #
#       'Create sorted list of Banished mods'         #
#                     release 6b                      #
#                    by Gordon Dry                    #
#######################################################
################### ugly simple soft ##################
#  http://worldofbanished.com/index.php?topic=790.0   #
#######################################################

debugging - - - - - - MOD DISABLED
Deutschmod
CategoryNames
ColonialHouse
BlacksmithTools
SettlersTents
InedibleCoffeeBeans
InedibleGrapes
InedibleOlives
InedibleVegetableOil
InedibleSoybeans
InedibleSugarBeets
InedibleSunflowers
InedibleChicken
InedibleBeef
InedibleBisonMeat
InedibleCharki
InedibleCheval
InedibleDuckMeat
InedibleFish
InedibleMutton
InediblePork
InedibleVenison
InedibleBarley
InedibleCanola
InedibleCorn
InedibleOats
InedibleRice
InedibleRye
InedibleSorghum
InedibleWheat
InedibleButter
InedibleCheese
InedibleCream
InedibleMilk
CastleSlightlyRidiculousStorage
SlightlyRidiculousStorage
BakeryPlus
Charburner
GoHunting
HappinessRadius
UnhappinessRadius
MyPrecious
CCNoSmoke
HotCrops
BlackLiquidRain
DSStorage
DSFences
DSRoads
OldBakeryHouse
OldBlacksmith
OldHunterHut
OldTailorHouse
BasicClothes
TequilaMod
MWPlants
TentWithFire
TreeGrowth
NewFlora
banishedUI
warehouse
coalfurnace
ToolbarButtons
FCastle
gardenshed
RedCottage
nordichouses
StatuePlus
CallofNatureSoundtrack
ColonialCharterIcon
CCMineQuarryOverride
Radius
bigminimap
oneyearisoneyear
FirebundlerFirewood
betterharvesting
GrassyRoads
wintinAudioTweak
vBetterRainSound
JapaneseFacilities
Covering
ForestOutpost
marketpuzzle
rowhouse
elfStorageCarts
ebbarn
SJGL_Small_Markets
ebfarmstand
EBFarmhouses
wintinCoastalhouse
littlehouse
zSoapiary
coldrealism
BrusselSprouts
IdleCamellia
IdleJatrophaIntegerrima
IdleRose
IdleViolet
HorsesForTrade
TradersAcceptAll
MagazineMaterials
MiniBuildings
big_rings
elfSmallerVendors
extleather
BusyPastures
LegalizedMarijuana
TownArrivalNomads
ManyTownArrival
EasyMenus
ColonialCharterTFA
newmedievaltown
TropicalGreenhouse
Stable
RiceCrop
newmedievalCastle
FastFoodStand
SoupKitchen
GrowGinger
GrowRoots
FishFarmEdit
FishFarm
Cathedral
DUMMY - - - - - - NO MORE in WinData folder

Ah!

If you don't trust me, here is the script alone:
http://pastebin.com/k25t3Usd

There is also a folder cmsort in with the "Freeware Command Line Sort Utility CMSort" by Christian Maas.
a readme.txt, a .pdf and an .url is included.

Here it is:
« Last Edit: July 30, 2016, 01:53:56 PM by Gordon Dry »

Offline Paeng

  • Banished Expert
  • *****
  • Posts: 1283
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry)
« Reply #1 on: March 02, 2015, 07:28:42 AM »
I created a batch script to create a text file with a sorted list of mods in it.

Good idea.

Hmmm... when I run the cmd I get a textfile back as expected, but it lists only one mod - but I have plenty installed...?

Code: [Select]
D:\Shining Rock Software LLC\Banished
      |_ Sorted List of Banished mods.txt      <-  generated file
      |_ Create sorted list of Banished mods.cmd
      |_ cmsort
                  |_ cmsort.exe

Am I missing sth.?
Heads are round so thoughts can take a turn

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry)
« Reply #2 on: March 03, 2015, 02:02:02 PM »
Hmm.

Is it a limited windows account?
I mean no admin account, limited rights or something?

That sounds odd to me.

Did you try to right click the 'Create sorted list of Banished mods.cmd' and launch as administrator?

Edit:

Or is it THE administrator account and no more accounts existing?

It could be that in this case banished writes to the HKML path inside the registry...


I just updated the thing, please tell me if that works better for you!
« Last Edit: March 03, 2015, 02:56:41 PM by Gordon Dry »

Offline Paeng

  • Banished Expert
  • *****
  • Posts: 1283
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry - release 3)
« Reply #3 on: March 03, 2015, 11:13:53 PM »
No, doesn't make a difference whether as admin or not... and yes, I got another "user" as well...


Okay, now I got a listing... that's good, for starters  ;)


Not sure if this is relevant, but  the script complains (see attached image) -

Code: [Select]
Temp List of...Mods.txt could not be found
Temp2 List of...Mods.txt could not be found
Temp3 List of...Mods.txt could not be found


And after what criteria is it sorted? Could you make it alphabetical?


Heads are round so thoughts can take a turn

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry - release 4)
« Reply #4 on: March 04, 2015, 11:33:16 AM »
Not sure if this is relevant, but  the script complains (see attached image) -

Code: [Select]
Temp List of...Mods.txt could not be found
Temp2 List of...Mods.txt could not be found
Temp3 List of...Mods.txt could not be found

Everything is okay. But to make it clear in release 4 it checks if the file exists before the deletion attempt.

And after what criteria is it sorted? Could you make it alphabetical?

It is of course sorted by the load order - that was the reason to create the whole thing initially...

Edit:

release 5 says "List of Banished mods sorted by load order:" in first line
« Last Edit: March 04, 2015, 12:37:16 PM by Gordon Dry »

Offline Paeng

  • Banished Expert
  • *****
  • Posts: 1283
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry - release 4)
« Reply #5 on: March 04, 2015, 10:43:15 PM »
release 5 says "List of Banished mods sorted by load order:" in first line

Cool... yeah, I had misunderstood that.

Just shows that for us 'typing monkeys' such things need to be spelled out in the most precise manner possible!  ;)

Thanks!
Heads are round so thoughts can take a turn

Offline chillzz

  • Trader
  • ****
  • Posts: 471
  • Country: nl
Re: Create sorted list of Banished mods (by Gordon Dry - release 5b)
« Reply #6 on: March 10, 2015, 12:08:51 PM »
awsome! even a reg "cleaner" for removed mods..

lol @ 20 seconds to comply by silver bullet ;) nice old school hip hop / hip house breakbeat  8)
support New Medieval Town development!
click here to donate via PayPal to RedKetchup

Offline michbret

  • Laborer
  • **
  • Posts: 29
Re: Create sorted list of Banished mods (by Gordon Dry - release 5b)
« Reply #7 on: June 26, 2015, 08:23:16 AM »
Hello Gordon Dry

Nice work but a minor improvement is needed to make it more robust (and less dangerous):

If Steam (or banished) is not installed on drive C: the batch file fails miserably and if you are not cautious it will delete a lot of registry settings.

So I have to add the following line near the beginning of the file (after cls):
cd /d "%~dp0"

With this small add it works.


IMPORTANT:
All the files must be installed in the game directory
You must right click and select "run as an administrator" to launch it.

My configuration is Win 7 pro, 64 bit with Steam and Banished installed on drive K:

Thanks for sharing this useful tool.

Best regards

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry - release 5b)
« Reply #8 on: June 26, 2015, 08:35:31 AM »
If Steam (or banished) is not installed on drive C: the batch file fails miserably and if you are not cautious it will delete a lot of registry settings.

Okay, the "Run as Administrator" thing I could add to the description.

But about the other points you mentioned - I don't think so:

Neither my Steam nor my games are on partition C: and it works for me.

And about the registry settings - why do you say it deletes a lot of them?

But okay, I changed it.
« Last Edit: June 26, 2015, 09:22:28 AM by Gordon Dry »

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry - release 6)
« Reply #9 on: August 23, 2015, 08:45:05 AM »
Updated to release 6.

- It now shows the mods' file name without extension (.pkm) inside the list
- It now shows if a mod is disabled

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry - release 6a)
« Reply #10 on: August 23, 2015, 01:42:40 PM »
Updated to release 6a:

- the script checks itself if it's run with administrative privileges

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Re: Create sorted list of Banished mods (by Gordon Dry - release 6b)
« Reply #11 on: August 29, 2015, 01:51:23 PM »
Updated to release 6b:

- the text file output now contains information where to get the script

Offline gerns

  • Vendor
  • ***
  • Posts: 75
Re: Create sorted list of Banished mods (by Gordon Dry - release 6b)
« Reply #12 on: September 02, 2015, 01:56:18 PM »
i need help .i have 2 mods i use all the time and they show up green in my mod list but dont show up in game since i put in colonial 1.5 ,does anyone have any ideas

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9469
  • Country: ca
Re: Create sorted list of Banished mods (by Gordon Dry - release 6b)
« Reply #13 on: September 02, 2015, 05:52:56 PM »
i need help .i have 2 mods i use all the time and they show up green in my mod list but dont show up in game since i put in colonial 1.5 ,does anyone have any ideas

which ones ?
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline irrelevant

  • Champion
  • Banished Expert
  • *****
  • Posts: 2748
  • Country: us
Re: Create sorted list of Banished mods (by Gordon Dry - release 6b)
« Reply #14 on: September 18, 2015, 05:08:58 PM »
@Gordon Dry Apologies, I don't understand the instructions. It says to unpack the .zip into the Banished folder. But when I do that and then run it, it gives me a report of the mods that are in that folder. All I have in that folder is the ones I'm not using, the active mods are in the WinData folder that is in the Banished folder.

What are the correct instructions?
« Last Edit: September 18, 2015, 05:11:04 PM by irrelevant »