ModOrganizer2 / modorganizer

Mod manager for various PC games. Discord Server: https://discord.gg/ewUVAqyrQX if you would like to be more involved
http://www.nexusmods.com/skyrimspecialedition/mods/6194
GNU General Public License v3.0
2.23k stars 163 forks source link

Unofficial Stardew Valley #1559

Open peizp opened 3 years ago

peizp commented 3 years ago

Unofficial Stardew Valley 64bit \https://stardewvalleywiki.com/Modding:Migrate_to_64-bit_on_Windows Is there a way to get support? I cannot get support for the game through MO2

EzioTheDeadPoet commented 3 years ago

Hi @peizp, I made that plugin for a friend. I don't own the game myself. But I can work with you on adding and testing the support, when I am back home from my holidays.

Al12rs commented 3 years ago

In the meantime you can try looking at the plugin yourself if you are interested @peizp . Here are the instructions for python game plugins https://github.com/ModOrganizer2/modorganizer-basic_games#mod-organizer-2---simple-games-plugin

You can see the current stardew vally one in there. You can try changing the one you have in your mo2 install folder/plugins/basic_games/games/game_stardewvalley.py

peizp commented 3 years ago

GameDocumentsDirectory = "%DOCUMENTS%/StardewValley" Is this the location of the designated game directory? I don’t know Python very well. If my game is in D:\steam\steamapps\content\app_413150\depot_413153, how can I change the specified folder?

Holt59 commented 3 years ago

GameDocumentsDirectory is the folder for the game in your "My Documents" folder. What difference are there between the 32 and 64 bits version of the game? Maybe the current plugin already works with the 64-bits version.

peizp commented 3 years ago

There is only a difference in name and a space between the two versions, but when running from MO2, the managed game is 32bit ''Stardew Valley.exe'', not 64bit ''StardewValley.exe''

Holt59 commented 3 years ago

If it's only the name of the executable, then you can simply change this line in the plugin https://github.com/ModOrganizer2/modorganizer-basic_games/blob/master/games/game_stardewvalley.py#L54

Or you could simply change or add the 64bits executable from MO2 since the executables from the plugin are only used to populate the initial list.

Al12rs commented 3 years ago

If you are already managing the 32 bit version somewhere else, you need to press the top left button in MO2 to create a new instance to manage the new game version, this way you can start with a clean setup for the game in the content/depot/etc folder. Or if you want to keep your mods from the 32 bit version you need to go into the Mo2 settings, under Paths and change the managed game folder to point to the 64bit install folder.

peizp commented 3 years ago

I created a new ''game_stardewvalley64.py''. And create a new instance, rename these two. GameName = "Stardew Valley 64" \ mobase.ExecutableInfo( "Stardew Valley", QFileInfo(self.gameDirectory(), "StardewValley.exe") Then reopen MO2, the game directory that I took over is still the official steam "Stardew Valley.exe", which is not the 64bit copy I downloaded. After opening the game, I cannot read the MOD I downloaded.

peizp commented 3 years ago

Is there a way to modify the directory taken over by MO2? if so...

Al12rs commented 3 years ago

image

Al12rs commented 3 years ago

It will ask you to select the folder for it

Holt59 commented 3 years ago

@peizp

Is there a way to modify the directory taken over by MO2? if so...

Depends what do you mean by "taken over"? If you mean the directory of the game, then see @AL comment, if you mean the directory containing mods, then you need to change the GameDataPath in the plugin.

peizp commented 3 years ago

There is a ``MODS'' folder, the two versions are in different directories, The 64bit game directory cannot be found. When running the game, only the official game files will be read 1 2

peizp commented 3 years ago

When running a 64bit game program, it reads the MODS folder in the official game (32Bit) directory

Al12rs commented 3 years ago

image

Al12rs commented 3 years ago

Your plugin is detecting the 32 bit folder by default so you need to manually browse for the second install

peizp commented 3 years ago

GameBinary = "Stardew Valley.exe" I think I found it. After deleting the space here, MO2 will be able to find it. thank you all