A way to reload MD/UI scripts

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

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

Locked
MuxauL
Posts: 6
Joined: Wed, 3. Dec 08, 13:40
x4

A way to reload MD/UI scripts

Post by MuxauL » Mon, 10. Dec 18, 20:09

Set a key for Toggle Chat Window in Controls -> General -> Expert settings.
Open that window with that key =).
And you can now execute commands like /REFRESHMD /RELOADUI. I think just the same command like in XR but with / in the beginning.
  • refreshmd - to refresh mission Director xml's (md folder)
  • reloadui - to reload ui and all lua files.
  • refreshai - reload aiscripts.
More commands: viewtopic.php?t=366657
Chair5768 wrote:
Fri, 14. Dec 18, 11:18
It's worth noting here that if you give it a command that it doesn't recognize then it will toss and error with the command into your debug log. If your logs start getting big, it can be a timesaver to throw a label or two into the log file to break it up a bit.
Last edited by MuxauL on Sun, 16. Dec 18, 14:51, edited 4 times in total.

MuxauL
Posts: 6
Joined: Wed, 3. Dec 08, 13:40
x4

Re: [QUESTION] Reload UI/MD scripts?

Post by MuxauL » Mon, 10. Dec 18, 21:37

del. Replaced question with answer
Last edited by MuxauL on Mon, 10. Dec 18, 22:19, edited 2 times in total.

User avatar
MegaJohnny
Posts: 2195
Joined: Wed, 4. Jun 08, 22:30
x4

Re: [QUESTION] Reload UI/MD scripts?

Post by MegaJohnny » Mon, 10. Dec 18, 21:49

YES! You're a lifesaver. I really needed those commands.

morbideth
Posts: 391
Joined: Sun, 9. Nov 08, 03:07
x3tc

Re: A way to reload MD/UI scripts

Post by morbideth » Wed, 12. Dec 18, 14:49

MuxauL wrote:
Mon, 10. Dec 18, 20:09
I think just the same command like in XR but with / in the beginning.
Do you have a list of those commands? I only played X:R for about 30 mins on release day and never touched it again.

MuxauL
Posts: 6
Joined: Wed, 3. Dec 08, 13:40
x4

Re: A way to reload MD/UI scripts

Post by MuxauL » Wed, 12. Dec 18, 21:42

morbideth wrote:
Wed, 12. Dec 18, 14:49
Do you have a list of those commands? I only played X:R for about 30 mins on release day and never touched it again.
  • refreshmd - to refresh mission Director xml's (md folder)
  • reloadui - to reload ui and all lua files.
  • refreshai - reload aiscripts.
More commands: viewtopic.php?t=366657
Last edited by MuxauL on Sun, 16. Dec 18, 14:50, edited 1 time in total.

User avatar
Depleted
Posts: 49
Joined: Wed, 5. Dec 18, 06:53
x4

Re: A way to reload MD/UI scripts

Post by Depleted » Thu, 13. Dec 18, 09:04

nice one thanks!

Chair5768
Posts: 36
Joined: Sun, 15. Jan 06, 06:43
x3

Re: A way to reload MD/UI scripts

Post by Chair5768 » Fri, 14. Dec 18, 11:18

It's worth noting here that if you give it a command that it doesn't recognize then it will toss and error with the command into your debug log. If your logs start getting big, it can be a timesaver to throw a label or two into the log file to break it up a bit.

User avatar
peroxyde
Posts: 2230
Joined: Sun, 2. Apr 06, 00:12
x3tc

Re: A way to reload MD/UI scripts

Post by peroxyde » Sun, 13. Jun 21, 16:52

Hello there...
Is there a way to reload also t-files without exit the game?
i didnt find any command in the common.xsd that might look like the "Load text : id=XXXX" from the MSCI in old time...
The /reloadui & /refreshai seems working but don't do this job and /refreshmd freeze the game (i reload the save instead, but it doesn't reload t-files)
Does i miss something?
(i never script with MD, so i learn slowly...)

Thank you!
[ external image ]
"On apprend en faisant des erreurs, mais le problème c'est qu'en explosifs, l'erreur est fatale." Aldébaran v10
[ external image ]<-- Clef Des Toilettes Privées Du Forum Français décernée par Thoto le 23/06/07

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Re: A way to reload MD/UI scripts

Post by euclid » Mon, 14. Jun 21, 03:40

Please do not revive years old threads. For the future just make a new post ;-)

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

Locked

Return to “X4: Foundations - Scripts and Modding”