Used to preload assets before they get loaded regularly use mainly for modifying loading screen tip icons Local function InsertPostInitFunctions( env, isworldgen, isfrontend) Local function AddGlobalClassPostConstruct( package, classname, postfn)Īssert( type(classdef) = "table ", "Class ' ". ")ĭoAddClassPostConstruct(classdef, postfn) Local function AddClassPostConstruct( package, postfn)Īssert( type(classdef) = "table ", "Class file path ' ". Local function DoAddClassPostConstruct( classdef, postfn) Local modname = getfenvminfield( 3, "modname ") If KnownModIndex: IsModInitPrintEnabled() then " not found in callstack's functions' environments ") func = nil or rawget( getfenv(level), fieldname) = nil) doĪssert( debug.getinfo(level) ~= nil, "Field ". While debug.getinfo(level) ~= nil and ( debug.getinfo(level). use rawget to circumvent a's checks of _G that we might hit
Robot dont starve wiki full#
tail call doesn't have full debug info, its func is nil Level = level + 1 - increase level due to this function call Local function getfenvminfield( level, fieldname) If KnownModIndex: IsModErrorEnabled() then Local message = string.format( "MOD ERROR: %s: %s ", ModInfoname(modname), tostring(message)) Local modname = ( global( 'env ') and env. Will assert if the modder has EnableModDebugPrint turned on, otherwise just print a warning for normal users. Table.insert(MODCHARACTEREXCEPTIONS_DST, name) contains(MODCHARACTEREXCEPTIONS_DST, name) then Local function RemoveDefaultCharacter( name) You only need to call AddModCharacter now. It was either added previously, or added twice. " already exists in the CHARACTER_GENDERS table.
Robot dont starve wiki update#
Please update the call to AddModCharacter to include a gender. If not DoesCharacterExistInGendersTable(name) then Local function AddModCharacter( name, gender, modes) Local function DoesCharacterExistInGendersTable( charactername)įor gender,characters in pairs(CHARACTER_GENDERS) do saved_client ~= nil and get_local_config then saved_server ~= nil and not get_local_config thenĮlseif v. If config and type(config) = "table " then
![robot dont starve wiki robot dont starve wiki](http://vignette3.wikia.nocookie.net/dont-starve-game/images/9/95/WX-78_WIP_Skin.png)
Local config, temp_options = KnownModIndex: GetModConfigurationOptions_Internal(modname, force_local_options) If get_local_config ~= nil then force_local_options = get_local_config end Use ModIndex:GetModActualName(fancyname) function. This isn't for modders to use: see environment version added in InsertPostInitFunctionsįunction GetModConfigData( optionname, modname, get_local_config)Īssert(modname, "modname must be supplied manually if calling GetModConfigData from outside of modmain or modworldgenmain. Local prettyname = KnownModIndex: GetModFancyName(name) Local modcompatability = require "modcompatability "