Jump to content

LML Function Request to reload/reboot the game on the fly


AnymYo
 Share

Recommended Posts

@LMS
I saw that the "Rampage Trainer" allows you to reload the current game per button push (like you are in story mode and go back to the main menue and press "story mode" again).
According to vfs.log, this causes the game to reload certain files/mods. This is super usefull if you working on files and want to test the result ingame. You can do a change in the file while the game is running in the background and if you want to see the result ingame, you just press the reload button and after a few seconds of loading screen, the game is using the updated file. Really time saving.

Unfortunately, there are some files which will be reloaded each time, others not (just at the first game boot but AFTER you choose "story mode" in the main menue).
Is it possible to implement a LML function which gives you the option to reload the game including ALL mods like a initial reboot per button push?

Thanks!

Link to comment
Share on other sites

You cannot as there are many files that the game never unloads so they cannot be reloaded. This depends on the specific file type and mostly affects data files although some streaming assets that are used early on can also probably never be drained properly. If you need hot-reload support for a specific data file you would have to look at its internal parser to see how the data structure is written/updated and then sync your changes that way. Some parsers allow you to overwrite entries but most reject entries with the same name so you need to manually do it or patch the parser.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...