Any way to reload mod while game is running

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

thomasbkdk
Posts: 180
Joined: Wed, 8. Jan 20, 07:34
x4

Any way to reload mod while game is running

Post by thomasbkdk »

I'm a newbie at trying to do a bit of modding in x4.

So i need to ask, is there anyway to run the game and while in game reload the mod i'm testing?
So not to close the game entirely and start it again.
AMD 3700X|GSKILL 2x32GB 3600C17|MSI X570 UNIFY|MSI RX 6800|SAMSUNG NVME 990 PRO|RAZER TARTARUS PRO|AOC AGON AG273QX 2560x1440@165|STREAM DECK XL+PEDAL|CORSAIR K95 PLATINUM RGB
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13486
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Any way to reload mod while game is running

Post by euclid »

AfaIk the short answer is No. Mods may leave all types of traces like global parameters, running cues and scripts, new ships and moduls. The safest way is to load a "clean" (i.e. where your mod is not running) saved game. However, if you want to test only a script then you could use abort_script and then start the script on the entity again. For that you need either an own MD script that triggers the abort and restart, or you incorporate these options in your own script.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Return to “X4: Foundations - Scripts and Modding”