[1.0] RWMS -- RimWorld ModSorter .. RimWorld mod sorter (Windows, Linux, OSX)

Started by shakeyourbunny, April 07, 2019, 07:05:28 AM

Previous topic - Next topic

VoidRose

Very will and i try it with wine.. did not worked. Going to do it with my window computer and it keep skipping my mods. Using the .EX file

shakeyourbunny

You just have to install Python 3.7 from python.org: https://www.python.org/downloads/mac-osx/, then download the Python source and follow the provided instructions in the README (use the Terminal for this).

You may also have to configure the paths.


Enervated

Would you be interested into making this with a proper UI in .NET?
Something like this(with a better look): https://i.imgur.com/MF9lTxc.png

Ideally this would include customization rules from a context menu or something of the sort, with a global database of pre-set rules like this has, stored in JSON or something lighter like TOML. It would work something like the LOOT tool for the bethesda games (https://loot.github.io/). It certainly wouldn't be as polished or feature-heavy, especially since load order in rimworld isn't as important as it is in bethesda games, but it would still fill the role.

VoidRose

Quote from: shakeyourbunny on May 12, 2019, 03:53:19 AM
You just have to install Python 3.7 from python.org: https://www.python.org/downloads/mac-osx/, then download the Python source and follow the provided instructions in the README (use the Terminal for this).

You may also have to configure the paths.
Will done what you said and i think i set up the configure paths with the new pyhton up to date. I'm sorry if i'm being a hand full as i lack the experience to do this as will having a hard time following the instructions.

sayheyjay

Quote from: shakeyourbunny on May 12, 2019, 03:53:19 AM
You just have to install Python 3.7 from python.org: https://www.python.org/downloads/mac-osx/, then download the Python source and follow the provided instructions in the README (use the Terminal for this).

You may also have to configure the paths.
That's not all you need to do. Macs have python installed already, but it's the older 2.7. Installing the required 3.7 and them typing python in terminal won't work. You need to type "python3" and then your commands. You also need to install pip and bs4.
After installing python 3.7, open terminal and type
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
then
python3 get-pip.py
then
python3 -m pip install beautifulsoup4
After that you are ready to try the mod, but I still had errors and it wouldn't work. The windows .exe worked fine.

VoidRose

Quote from: sayheyjay on May 12, 2019, 11:53:02 PM
Quote from: shakeyourbunny on May 12, 2019, 03:53:19 AM
You just have to install Python 3.7 from python.org: https://www.python.org/downloads/mac-osx/, then download the Python source and follow the provided instructions in the README (use the Terminal for this).

You may also have to configure the paths.
That's not all you need to do. Macs have python installed already, but it's the older 2.7. Installing the required 3.7 and them typing python in terminal won't work. You need to type "python3" and then your commands. You also need to install pip and bs4.
After installing python 3.7, open terminal and type
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
then
python3 get-pip.py
then
python3 -m pip install beautifulsoup4
After that you are ready to try the mod, but I still had errors and it wouldn't work. The windows .exe worked fine.
Thank you this is what i needed and yes i just got some errors too ^^U now i got to know why it happens. Can't get to use .exe on my mac since i dont have boot camp and wine wont work with it.

Canute

sayheyjay,
could you maybe work together with shakeyourbunny and create a mac executeable ?
I am not a mac user, but i think many mac user would be happy since the terminal command maybe scare some standard user.


shakeyourbunny

I have access to a macOS computer to do a binary, but not on a regularily basis and currently, I'm bargaining with the owner to lend me his machine for testing purposes.

In other news, brace yourself for 1.0 release in about a week.

Among other things, the new database will not be compatible with earlier releases due a massive internal restructuring and preparation for new shiny features. Good News, this new database release will include all ~ 3000 mods (1.0 release) from the Steam Workshop. All current contributors will retain their contribution credit and every user is encouraged to submit future new unknown mods.

And no, there is support for non-workshop mods (for example that mod that may not be named *cough*) and very welcome, as well as support for all platforms and variations of the RimWorld install.

Flavio11113

Quote
G:\RimWorld\RWMS-master>python rwms_sort.py
** RWMS 0.94.4 by shakeyourbunny ***************************************************************************************
bugs: https://github.com/shakeyourbunny/RWMS/issues
database updates: visit https://github.com/shakeyourbunny/RWMSDB/issues

loading database.

Database (v4, date: Sun May 12 11:00:23 2019) successfully loaded.
1890 known mods, 60 contributors.
Top contributors: shakeyourbunny (694), Black Goat (159), czarneski77 (120), Nightliss (63), Dessometrics (57),

Loading and parsing ModsConfig.xml
Loading mod data.
could not find metadata for item HaulToStack-master (skipping, is probably a scenario)!
Sorting mods.

155 subscribed mods, 1 (2 known, 6 unknown) enabled mods
Traceback (most recent call last):
  File "rwms_sort.py", line 260, in <module>
    rimworld_version = xml.find('version').text
AttributeError: 'NoneType' object has no attribute 'text'

G:\RimWorld\RWMS-master>pause
Drücken Sie eine beliebige Taste . . .

Had a hard time to manually path Python37, manually install pip, bs4 and module.

Now this Message finally came up. I have no solution to this:
Quote
AttributeError: 'NoneType' object has no attribute 'text'
pls help :'(

shakeyourbunny


sayheyjay

Quote from: VoidRose on May 13, 2019, 01:11:46 AM
Quote from: sayheyjay on May 12, 2019, 11:53:02 PM
Quote from: shakeyourbunny on May 12, 2019, 03:53:19 AM
You just have to install Python 3.7 from python.org: https://www.python.org/downloads/mac-osx/, then download the Python source and follow the provided instructions in the README (use the Terminal for this).

You may also have to configure the paths.
That's not all you need to do. Macs have python installed already, but it's the older 2.7. Installing the required 3.7 and them typing python in terminal won't work. You need to type "python3" and then your commands. You also need to install pip and bs4.
After installing python 3.7, open terminal and type
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
then
python3 get-pip.py
then
python3 -m pip install beautifulsoup4
After that you are ready to try the mod, but I still had errors and it wouldn't work. The windows .exe worked fine.
Thank you this is what i needed and yes i just got some errors too ^^U now i got to know why it happens. Can't get to use .exe on my mac since i dont have boot camp and wine wont work with it.
What errors are you getting? Are you setting up the config file as mentioned in the readme? I'm surprised Wine won't work; I don't think I've see it balk at anything. Again you need to set the config file up for the .exe to work.

My errors with the Mac version were related to not being able to contact github. Not sure why, but it failed to connect to the required paths. I could ping other sites, but the github links in the script timed out and couldn't be pinged in terminal. Again, no problems with that using the windows .exe.

EDIT: Wait, I'm confusing Wine with Wineskin. Have you tried making a Wineskin with the .exe?

sayheyjay

Quote from: Canute on May 13, 2019, 02:14:22 AM
sayheyjay,
could you maybe work together with shakeyourbunny and create a mac executeable ?
I am not a mac user, but i think many mac user would be happy since the terminal command maybe scare some standard user.
Unfortunately I have no programming skills. I have no problem troubleshooting and running scripts to assist, though.

shakeyourbunny

Quote from: sayheyjay on May 13, 2019, 11:18:51 PM
EDIT: Wait, I'm confusing Wine with Wineskin. Have you tried making a Wineskin with the .exe?
I'll generate a native OSX binary for the terminal when I have some spare time in the work (and my colleague lets me do it).

Flavio11113

Quote from: shakeyourbunny on May 13, 2019, 03:59:34 PM
Can you provide your ModsConfig.xml as it is now?

<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
  <buildNumber>2059</buildNumber>
  <activeMods>
    <li>Core</li>
    <li>HugsLib</li>
    <li>Miscellaneous_Core</li>
    <li>GiddyUpCore-1.1.4</li>
    <li>JecsTools-1.1.0.15</li>
    <li>PrepareLanding</li>
    <li>ExpandedProsthetics&amp;OrganEngineering</li>
    <li>AlienRaces-1.0_v1</li>
    <li>A_Dog_Said_1.0</li>
    <li>Rimsenal</li>
    <li>Rimsenal - Security pack</li>
    <li>Rimsenal - Federation</li>
    <li>Rimsenal - Feral</li>
    <li>Zabrak Race</li>
    <li>Twilek Race</li>
    <li>TwilekEPOE-master</li>
    <li>EdBPrepareCarefully</li>
    <li>Miscellaneous_Robots</li>
    <li>Miscellaneous_BeeAndHoney</li>
    <li>Miscellaneous_TrainingFacility</li>
    <li>Miscellaneous_Incidents</li>
    <li>Misc Robots++</li>
    <li>HaulToStack</li>
    <li>Increased Stack</li>
    <li>AreaUnlocker</li>
    <li>Androids</li>
    <li>Rim-of-Madness---Vampires-1.20.0.1</li>
    <li>Rim of Madness - Werewolves</li>
    <li>Call of Cthulhu – Arachnophobia</li>
    <li>Call of Cthulhu - Straitjackets</li>
    <li>Industrial Age - Objects and Furniture</li>
    <li>Call-of-Cthulhu---Elder-Things-1.21.0.0</li>
    <li>Call-of-Cthulhu---Factions-1.20.0.2</li>
    <li>Call-of-Cthulhu---Cults-1.20.0.4</li>
    <li>RimWriter-master</li>
    <li>Call-of-Cthulhu---Cosmic-Horrors-1.20.0.1</li>
    <li>HP Lovecraft Storyteller</li>
    <li>GeneticRim-4.5</li>
    <li>GeneticRimCosmicHorrorsPatch-3.02</li>
    <li>VariablePopulation</li>
    <li>PRF_Core</li>
    <li>Death Rattle</li>
    <li>Rimworld_IndustrialRoller</li>
    <li>Miniaturisation-1.0.0</li>
    <li>Vegetable Garden</li>
    <li>VGP_Trees_Flowers</li>
    <li>VGP_More Veggies</li>
    <li>VGP_Soylent Production</li>
    <li>VGP_Tools</li>
    <li>VGP_Resources</li>
    <li>VGP_Medicine</li>
    <li>VGP_Fabric</li>
    <li>VGP_Garden_Drinks</li>
    <li>VGP_Garden_Gourmet</li>
    <li>VGP_Canning</li>
    <li>VGP_Garden_Drinks_Bulk</li>
    <li>VGP CoffeeTeaDrugs</li>
    <li>VGP_Garden_Dyes</li>
    <li>Psychology</li>
    <li>QualityBuilder</li>
    <li>QualitySurgeon</li>
    <li>Color Coded Mood Bar</li>
    <li>RelationsTab</li>
    <li>AnimalTab</li>
    <li>WorkTab</li>
    <li>MedicalTab</li>
    <li>RimFridge</li>
    <li>AdjustableTradeShips</li>
    <li>Complex Jobs</li>
    <li>PathAvoid</li>
    <li>MoreTraitSlots</li>
    <li>OmniCoreDrill</li>
    <li>Bulk-Components</li>
    <li>NeurotrainerCrafting</li>
    <li>rimworld-consolidatedtraits-master</li>
    <li>HighTechLaboratoryFacilities-master</li>
    <li>sd_adv_powergen-1-1.0.2</li>
    <li>rim-LinkableDoors-master</li>
    <li>Nature is Pretty Sweet</li>
    <li>Embrasures</li>
    <li>Storage-Solutions-master</li>
    <li>RF - Advanced Bridges</li>
    <li>RF - Fishing</li>
    <li>ImprovedWorkbenches</li>
    <li>More Vanilla Turrets</li>
    <li>DamageIndicators-master</li>
    <li>Therapy</li>
    <li>Turret Collection</li>
    <li>DeadMansClothing</li>
    <li>CentralizedClimateControl</li>
    <li>GlitterTech</li>
    <li>Star Wars Factions</li>
    <li>Realistic Darkness</li>
    <li>Blueprints</li>
    <li>Realistic Rooms</li>
    <li>Fences And Floors</li>
    <li>HMTBLite</li>
    <li>ColonyManager</li>
    <li>DefensivePositions</li>
    <li>FashionRIMsta_1.0</li>
    <li>Hospitality-1.0.16</li>
    <li>T-MoreFloors</li>
    <li>Miscellaneous_MAI</li>
    <li>ExtendedInspectData-1.2.2.4</li>
    <li>TradingSpot</li>
    <li>T-MoreBedsVanilla</li>
    <li>No-Death-Cooties-On-Armour-master</li>
    <li>Additional Joy Objects</li>
    <li>1589401542 Fire Extinguisher</li>
    <li>Rimworld-Shields</li>
    <li>RT_Fuse-1.0-1.2.1</li>
    <li>QC_Quantum_Cooling</li>
    <li>Temperature Control</li>
    <li>Veinminer-R1.0-master</li>
    <li>Ceiling Light</li>
    <li>Floor Lights</li>
    <li>ElectricFence</li>
    <li>Tables+ (1.0) 1.6.1</li>
    <li>More Linkables</li>
    <li>Hunt For Me</li>
    <li>ExpandedRoofing-master</li>
    <li>More Furniture</li>
    <li>RIMkea_1.0</li>
    <li>Snap Out</li>
    <li>AllowTool</li>
    <li>MineItAll</li>
    <li>NamesGalore-master</li>
    <li>AnimalsLogic</li>
    <li>RimWorld-MendAndRecycle-master</li>
    <li>FeedTheColonists-1.0.3</li>
    <li>MarvsUghYouGotMe</li>
    <li>AvoidFriendlyFire</li>
    <li>RT_SolarFlareShield-1.0-1.3.1</li>
    <li>RT_PowerSwitch-1.0-1.0.13</li>
    <li>Rimkit-1.4.763</li>
    <li>Dubs-Mint-Minimap-1.1.71</li>
    <li>Dubs-Mint-Menus-1.0.219</li>
    <li>Dubs-Bad-Hygiene-2.5.733</li>
    <li>BiggerFuses</li>
    <li>BiggerBatteries</li>
    <li>Training Rack</li>
    <li>TilledSoil</li>
    <li>WhatTheHack-1.2.6</li>
    <li>TickMultiThread</li>
    <li>RF - Rim Disorders</li>
    <li>RF - Pawns are Capable!</li>
    <li>Job Splitter</li>
    <li>Hardworking animals</li>
    <li>No more sleeping Zs</li>
    <li>Pharmacist</li>
    <li>PrisonLabor</li>
    <li>Locks</li>
    <li>Dubs-Paint-Shop-1.0.66</li>
    <li>GiddyUpCaravan-1.1.1</li>
    <li>GiddyUpMechanoids-1.1.1</li>
    <li>GiddyUpRideAndRoll-1.1.1</li>
    <li>battlemounts-1.1.2</li>
    <li>Children</li>
    <li>Rimefeller-1.2.428</li>
    <li>RotTickFix</li>
    <li>RuntimeGC</li>
    <li>Smoked-Meat</li>
    <li>Rimatomics-1.6.801</li>
    <li>MoreVanillaTurretsTEPatch</li>
    <li>NonDecayingStorage</li>
    <li>MiningCo. MiningHelmet</li>
    <li>MiningCo. AlertSpeaker</li>
    <li>IdleFix</li>
    <li>GouRIMet_1.0</li>
    <li>T-MoreBedsCloth</li>
    <li>LongRangePodLauncher</li>
    <li>Star Wars Animal Collection</li>
    <li>Faction Discovery</li>
    <li>Miscellaneous_TurretBase</li>
    <li>RepairBench</li>
    <li>FollowMe-master</li>
    <li>Mannable Turrents</li>
  </activeMods>
</ModsConfigData>

Flavio11113

I just enabled those mods yesterday if you are wondering.

New Log is:

G:\RimWorld\RWMS-master>python rwms_sort.py
** RWMS 0.94.4 by shakeyourbunny ***************************************************************************************
bugs: https://github.com/shakeyourbunny/RWMS/issues
database updates: visit https://github.com/shakeyourbunny/RWMSDB/issues

loading database.

Database (v4, date: Sun May 12 11:00:23 2019) successfully loaded.
1890 known mods, 60 contributors.
Top contributors: shakeyourbunny (694), Black Goat (159), czarneski77 (120), Nightliss (63), Dessometrics (57),

Loading and parsing ModsConfig.xml
Loading mod data.
could not find metadata for item RimworldStackXXL-master (skipping, is probably a scenario)!
Sorting mods.

172 subscribed mods, 177 (166 known, 19 unknown) enabled mods
Traceback (most recent call last):
  File "rwms_sort.py", line 260, in <module>
    rimworld_version = xml.find('version').text
AttributeError: 'NoneType' object has no attribute 'text'

G:\RimWorld\RWMS-master>pause
Drücken Sie eine beliebige Taste . . .