When I develop games in Unity, I always use "Debug.Log()" to print out a message right after a function or a condition, to check if that line of code is working. Or, I print out values of variables to check how they are responding to my script. These logs would always be easily readible at the below of the screen in console window.
I saw that there were core.log and core.chat_send_all, core.log, core.debug. But I couldnt properly run them also. I only managed to run chat_send_all just once and never more. I tried it on new worlds also but still couldnt run it again. I cant run my code probably and cant even run my debug functions to find the problem and fix it.
So what can I do? Thanks.
Code: Select all
core.chat_send_all("AAAAAA MOD STARTED")
local modname = "arachnophobia_mode"
core.chat_send_all(modname)
local path = core.get_modpath(modname)
core.chat_send_all(path)
local greedy_cows_def = {
-- visual_size = {x=3, y=3, z=3}
follow = "mcl_core:diamond",
drops = {
{name = "mcl_core:dirt",
chance = 1,
min = 1,
max = 3,
looting = "common",}
},
}
core.chat_send_all("greedy def")
override:rewrite("mobs_mc:cow", greedy_cows_def)
--dofile(path .. "/entity_override_tables/attempt_on_cow.lua")
core.chat_send_all("init.lua dofile")
maybe off topic but i feel like even if I change the code, save it and reopen the world. My code doesnt get updated. maybe i should start another topic for this.