Modernised website for easier use#2
Conversation
- Added configuration module for global variables and settings. - Created data processor module for handling save file data manipulation. - Developed file handler module for file upload, processing, and download functionality. - Introduced main module as the entry point for the application. - Built UI controller module to manage user interface interactions and character display. - Added utility functions for error handling, message display, and XML tag isolation. - Refactored legacy code into a modern structure, supporting ZIP file handling and improved save file processing.
- Translated comments and documentation from Spanish to English across multiple modules for better accessibility. - Improved code readability by standardizing import statements and removing unnecessary comments. - Enhanced error handling and user feedback messages to provide clearer guidance. - Updated UI handling functions to ensure compatibility with the new structure. - Refactored file handling logic to streamline the process of uploading and processing save files. - Improved the ZIP file generation process to ensure better compression and organization of modified files.
…ders in createDownload function
|
Wow, this looks incredible! Thank you for doing all this, so glad that my old code is still helping people! I'll take a look when I get a chance. |
|
I'm really glad you like it! I just modified the code again to fix a bug that prevented the modified content from being written to the .zip that the user downloads. I didn't post it before, but you can see the live version at this URL of my fork: https://joseleelsuper.github.io/stardew-host-swap/ In addition, there are certain events and mails that are also transferred to try to fix possible errors. I discovered this by having the artificial intelligence fully parse the XML and how it works, so I don't have proof that it works completely correctly. Anyway, these are the changes: Main structural changes
Progression data transferred
Housing data
|
fsih
left a comment
There was a problem hiding this comment.
Thank you for all your contributions here, the new interface looks great! And the video tutorials will be a huge help for a lot of people.
My initial thinking behind having players copy and paste text was so that they wouldn't be scared that they were downloading a virus or something, but it's probably fine.
I actually haven't played Stardew Valley in a really long time, so I'll trust that you tested out the transferred save file in-game. If you want, I can add you as a manager of this repo, since after this pull request you would own it more than I do :p
I did test my 7-years-old save files on https://joseleelsuper.github.io/stardew-host-swap/. The zip file seemed to work well, but when I used the legacy mode, the interface froze after the processing was completed, and my Chrome tab crashed. I didn't see any errors in the console. I vaguely remember encountering this issue with the old site, and fixing it by emptying out the input field. You could also possibly ditch the legacy mode, or keep the old site around and simply link to it from the new one.
| <li>New host may get outdated mail</li> | ||
| </ul> | ||
|
|
||
| <h3>Issues Fixed</h3> |
There was a problem hiding this comment.
You could add your new fixes here, like house upgrade level
| const farmhandContent = farmhandMatch[1]; | ||
| const nameMatch = farmhandContent.match(/<name>(.*?)<\/name>/); | ||
|
|
||
| if (nameMatch && nameMatch[1] !== "Axe" && nameMatch[1] !== "Pickaxe") { |
There was a problem hiding this comment.
Why the special cases here? What happens when farmhands are named "axe" and "pickaxe"?
There was a problem hiding this comment.
At first, I thought it was a regex error that I had generated by not programming it correctly.
When I realised, it seemed that the empty slots in a save game were responsible for generating the ‘users’ called the tools.
This will be a bug that I should keep an eye on, not only because I probably missed something, but also because if the steam user called ‘Axe’ comes, he might freak out because he doesn't see his name.
… correct zip file Solvied issue where the information of the zip file do not update when there was used the legacy paste.
…e files modified.
…f the old and new host.
|
For now, I think I cover all the critical elements, in this last update I added a few more console logs and errors, apart from having more tags transferred between the new host and the old one. From now on, the only thing left for me to do is to make a final long video of the correct functioning of the page with all its functionalities and wait for some user to find bugs. |


Description
I recently set up a server with friends and had to investigate how to change the host to a 24/7 server.
I found your code and decided to update it to make it easier for people to change the host of their games.
The summary of the changes are:
If you have any questions, don't hesitate to ask so that we can merge this pr and help more people.
Images
Video Tutorial
2025-07-16.18-48-02.mp4