News:

Welcome to World of Banished!

Main Menu

Create sorted list of Banished mods (by Gordon Dry - release 6b)

Started by Gordon Dry, March 01, 2015, 08:16:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gordon Dry

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):
#######################################################
#    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:

Paeng

Quote from: Gordon Dry on March 01, 2015, 08:10:31 AMI 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...?

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.?
[i]Heads are round so thoughts can take a turn[/i]
[color=teal][size=8pt]Editor's Choice [b]here[/b][/size][/color]

Gordon Dry

#2
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!

Paeng

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) -

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?


[i]Heads are round so thoughts can take a turn[/i]
[color=teal][size=8pt]Editor's Choice [b]here[/b][/size][/color]

Gordon Dry

Quote from: Paeng on March 03, 2015, 11:13:53 PM
Not sure if this is relevant, but  the script complains (see attached image) -

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.

Quote from: Paeng on March 03, 2015, 11:13:53 PM
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

Paeng

Quote from: Gordon Dry on March 04, 2015, 11:33:16 AMrelease 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!
[i]Heads are round so thoughts can take a turn[/i]
[color=teal][size=8pt]Editor's Choice [b]here[/b][/size][/color]

chillzz

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

michbret

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

Gordon Dry

Quote from: michbret on June 26, 2015, 08:23:16 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.

Gordon Dry

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

Gordon Dry

Updated to release 6a:

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

Gordon Dry

Updated to release 6b:

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

gerns

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

RedKetchup

Quote from: gerns 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

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

irrelevant

@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?