Author Topic: Is there a list of ''known'' variables for TS?  (Read 1415 times)

Do export("$*"); and read console.log?
It does not even print the export line.

It does not even print the export line.
weird. It works perfectly for me, printing out all variables with zero lag.

weird. It works perfectly for me, printing out all variables with zero lag.
Did you have a server running at the time?

Did you have a server running at the time?
I'll host a server and try again right now

I'll host a server and try again right now
I tried again with a server running, again, worked perfectly


Strange, export worked for me before when I was under Ubuntu, but when I was under Windows it crashed me.
Could it have something to do with the OS?

-ow.-

The S isn't the problem, it's the quantity of variables.

function exportAllByLetter()
{
    %letters = "QWERTYUIOPASDFGHJKLZXCVBNM_";
    for(%i=0;%i<26;%i++)
        export("$"@(%char = getSubStr(%letters, %i, 1)), "config/LetterDump "@%char@".cs");
}
exportAllByLetter();

Ran client+server with only default add-ons/music.

Didn't crash when exporting everything.

Anything from add-ons you could probably find through the add-ons scripts.

Edit: Add-on count and some disabled add-ons will still clog up the list though.

-snip-
Code: [Select]
function exportGlobalVars(%letter)
{
export("$"@%letter@ "*","config/varlists/list_"@%letter@ ".cs");
}

%s="abcdefghijklmnopqrtuvwxyz";
for(%a=0;%a<25;%a++)
exportGlobalVars(getsubstr(%s,%a,1));

Worked fine for me. Here is the dump for a fresh blockland

well, what i'm looking for is the list of fields/methods (or whatever) for variables. e.g %variable.bl_id or %variable.isAdmin.

Dump the specific object with .dump();

well, what i'm looking for is the list of fields/methods (or whatever) for variables. e.g %variable.bl_id or %variable.isAdmin.
Those are objects.