Hello!
Distro: TFS 1.3(newest repo) trying to add new functions/commits by OTCv8.
Added these 4 commits in hope of getting wings, auras & shaders to work properly.
Well they do but other functions took damage as shown below in console errors.
No bugs when compiling however, but running a backup TFS version without the last three commits will not give any error at all.
1. OTCv8 detection, custom features packet, bigget packet size and bug f… · OTCv8/forgottenserver@2839d4d (https://github.com/OTCv8/forgottenserver/commit/2839d4d7a8ad3597eff6c786f4ceb9b1b4b4456b)
2. Added early wings and aura support · OTCv8/forgottenserver@866a98f (https://github.com/OTCv8/forgottenserver/commit/866a98f13d17e36c33c3db107a65fc54c26203bf)
3. Early shaders supports, better aura & wings support · OTCv8/forgottenserver@2f494dc (https://github.com/OTCv8/forgottenserver/commit/2f494dcbe742a09afd6a3e93e5abcea8c821f8fd)
4. Crash bug fix for outfit shaders · OTCv8/forgottenserver@239f555 (https://github.com/OTCv8/forgottenserver/commit/239f555b0f71cfe0e17b6e5012518b25696d2f76)
Here's my "isScriptsInterface" in C.
luascript.h
luascript.cpp
Any ideas?
Distro: TFS 1.3(newest repo) trying to add new functions/commits by OTCv8.
Added these 4 commits in hope of getting wings, auras & shaders to work properly.
Well they do but other functions took damage as shown below in console errors.
No bugs when compiling however, but running a backup TFS version without the last three commits will not give any error at all.
1. OTCv8 detection, custom features packet, bigget packet size and bug f… · OTCv8/forgottenserver@2839d4d (https://github.com/OTCv8/forgottenserver/commit/2839d4d7a8ad3597eff6c786f4ceb9b1b4b4456b)
2. Added early wings and aura support · OTCv8/forgottenserver@866a98f (https://github.com/OTCv8/forgottenserver/commit/866a98f13d17e36c33c3db107a65fc54c26203bf)
3. Early shaders supports, better aura & wings support · OTCv8/forgottenserver@2f494dc (https://github.com/OTCv8/forgottenserver/commit/2f494dcbe742a09afd6a3e93e5abcea8c821f8fd)
4. Crash bug fix for outfit shaders · OTCv8/forgottenserver@239f555 (https://github.com/OTCv8/forgottenserver/commit/239f555b0f71cfe0e17b6e5012518b25696d2f76)
Lua:
Lua Script Error: [Scripts Interface]
C:\forgottenserver-master\vc14\x64\Release\data\scripts\eventcallbacks\player\default_onReportRuleViolation.lua
...er\vc14\x64\Release\data\scripts/lib\event_callbacks.lua:111: attempt to call global 'isScriptsInterface' (a nil value)
stack traceback:
[C]: in function 'isScriptsInterface'
...er\vc14\x64\Release\data\scripts/lib\event_callbacks.lua:111: in function '__newindex'
...\eventcallbacks\player\default_onReportRuleViolation.lua:39: in main chunk
> default_onReportRuleViolation.lua [error]
^
Lua:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/effects/textEffects.lua:onThink
data/lib/compat/compat.lua:668: attempt to call field 'sendAnimatedText' (a nil value)
stack traceback:
[C]: in function 'sendAnimatedText'
data/lib/compat/compat.lua:668: in function 'doSendAnimatedText'
data/globalevents/scripts/effects/textEffects.lua:19: in function <data/globalevents/scripts/effects/textEffects.lua:1>
[Error - GlobalEvents::think] Failed to execute event: textEffects
Here's my "isScriptsInterface" in C.
luascript.h
C++:
static int luaIsScriptsInterface(lua_State* L);
};
luascript.cpp
C++:
//isScriptsInterface()
lua_register(luaState, "isScriptsInterface", LuaScriptInterface::luaIsScriptsInterface);
int LuaScriptInterface::luaIsScriptsInterface(lua_State* L)
{
//isScriptsInterface()
if (getScriptEnv()->getScriptInterface() == &g_scripts->getScriptInterface()) {
pushBoolean(L, true);
} else {
reportErrorFunc(L, "EventCallback: can only be called inside (data/scripts/)");
pushBoolean(L, false);
}
return 1;
}
Any ideas?