Check mod-global values with console

Place to get help with not working mods / modding interface.
Post Reply
rldml
Fast Inserter
Fast Inserter
Posts: 179
Joined: Sun Mar 06, 2016 2:38 am
Contact:

Check mod-global values with console

Post 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


chrisgbk
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Mon Jan 02, 2017 4:31 am
Contact:

Re: Check mod-global values with console

Post 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.

rldml
Fast Inserter
Fast Inserter
Posts: 179
Joined: Sun Mar 06, 2016 2:38 am
Contact:

Re: Check mod-global values with console

Post 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.

Post Reply

Return to “Modding help”