Page 1 of 1

Check mod-global values with console

Posted: Wed Mar 28, 2018 8:12 am
by rldml
is there already a command to get the contents of the global-part of a mod via console or have i write a command of my own?

Greetings, Ronny

Re: Check mod-global values with console

Posted: Wed Mar 28, 2018 10:42 am
by darkfrei

Re: Check mod-global values with console

Posted: Wed Mar 28, 2018 10:44 am
by chrisgbk
You have to write a function inside the mod that dumps the global table, and either add a console command or a remote interface to invoke it.

If you don't wish to do this yourself, the standard library includes a console GUI that you can add to each mod, adapted from another author, accessible via remote interface IIRC. See the sticky at the top of the forum if this is appealing and you would like to download that library.

Re: Check mod-global values with console

Posted: Wed Mar 28, 2018 11:13 am
by rldml
Thx for reply.

I'll try it with registering a command to call a function that prints the stuff to the requesting player.