[Question] Consistency Whitelist?
Hi, i have been looking around and toying with lua for a a few hours.
Haven't found the internal Whitelist for Consistency Checks, is this info public somewhere / readable in the files?
Or is there a call that would give you the list?
I've tried to extract it by Reflection but it's not enabled in the environment for some "odd" *rolleyes* reason
Might also have missed something, if someone cares to see the attempt:
Haven't found the internal Whitelist for Consistency Checks, is this info public somewhere / readable in the files?
Or is there a call that would give you the list?
I've tried to extract it by Reflection but it's not enabled in the environment for some "odd" *rolleyes* reason
Might also have missed something, if someone cares to see the attempt:
local function dump(stuff)
¸¸¸¸if type(stuff) == "metatable" then
¸¸¸¸¸¸¸¸Shared.Message("stuff is meta")
¸¸¸¸¸¸¸¸stuff = getmetatable(stuff)
¸¸¸¸end
¸¸¸¸if type(stuff) == "table" then
¸¸¸¸¸¸¸¸for k, v in ipairs(stuff) do
¸¸¸¸¸¸¸¸¸¸¸¸if k == nil then
¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸-- weird
¸¸¸¸¸¸¸¸¸¸¸¸elseif v == nil then
¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸Shared.Message(tostring(k) .. " is nil")
¸¸¸¸¸¸¸¸¸¸¸¸elseif type(v) == "table" then
¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸Shared.Message("table=" .. k)
¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸dump(v)
¸¸¸¸¸¸¸¸¸¸¸¸else
¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸¸Shared.Message(tostring(k) .. " " .. type(v) .. "=" .. tostring(v))
¸¸¸¸¸¸¸¸¸¸¸¸end
¸¸¸¸¸¸¸¸end
¸¸¸¸else
¸¸¸¸¸¸¸¸Shared.Message("type:" .. type(stuff) .. tostring(stuff))
¸¸¸¸end
end
--dump(config)
--dump(Server)
dump(Shared)
Comments
If you mean the default config, thats can be looked up easy. Its in the standard server install.
[edit] might be packaged into the client, could've thought about that & checked the server anyways. Atleast now i know that doing a Debugger-Window might not be possible with lua itself - worth it.
[edit2] almost forgot... Thanks for the info!
So in the end best is to use hotloading to test changes directly in-game.
I'll keep digging then what's doable, need more reading first how scripts are loaded and so on (for pure client side stuff, since i need some side-project to really have a target while looking through the codebase)
Still setting a dev-environment for myself up. Need to figure out how to change the IDE-plugin i'm using to understand // comment style... (IntelliJ IDEA, in case someone uses it & has got it working properly)
[edit] after a second thought, i guess the system works in both ways. Mod-Scripts might be sent to another VM though, ... i'm babbling sorry, need my 4h sleep now
Consistency checks the servers file with the clients. So if the server runs the same mod, all is well.
If you want to change it only locally it is still not a problem as long as you do not connect to a server.
Not completely true. You can still mod the main menu just fine (while client is not connected)
Here is a client-side code tribute to say goodbye to client-side modding when they removed it from the game in Beta. @Dghelneshi wrote this and we did the video in the final client-side build.