A way to reload MD/UI scripts

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

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

Post Reply
MuxauL
Posts: 6
Joined: Wed, 3. Dec 08, 14:40
x4

A way to reload MD/UI scripts

Post by MuxauL » Mon, 10. Dec 18, 21: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, 12: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, 15:51, edited 4 times in total.

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

Re: [QUESTION] Reload UI/MD scripts?

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

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

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

Re: [QUESTION] Reload UI/MD scripts?

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

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

morbideth
Posts: 389
Joined: Sun, 9. Nov 08, 04:07
x3tc

Re: A way to reload MD/UI scripts

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

MuxauL wrote:
Mon, 10. Dec 18, 21: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, 14:40
x4

Re: A way to reload MD/UI scripts

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

morbideth wrote:
Wed, 12. Dec 18, 15: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, 15:50, edited 1 time in total.

User avatar
Depleted
Posts: 47
Joined: Wed, 5. Dec 18, 07:53
x4

Re: A way to reload MD/UI scripts

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

nice one thanks!

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

Re: A way to reload MD/UI scripts

Post by Chair5768 » Fri, 14. Dec 18, 12: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.

Post Reply

Return to “X4: Foundations - Scripts and Modding”