Ezzz
Developer of Nostalrius and The Violet Project
Can you still load the .xml npcs in this distro or was the support for it ripped out
It was ripped off, but it can be easily re-implemented
Can you still load the .xml npcs in this distro or was the support for it ripped out
data/globalevents/globalevents.xml
XML:<globalevent name="Player Save" interval="1800000" script="playersave.lua" />
data/globalevents/scripts/playersave.lua
Lua:local function serverSave() Game.saveGameState() broadcastMessage("Server saved, next save in 30 minutes.", MESSAGE_STATUS_WARNING) return true end function onThink(interval, lastExecution, thinkInterval) broadcastMessage("Automatic Serversave in 10 seconds!", MESSAGE_STATUS_WARNING) addEvent(serverSave, 10000) end
data/talkactions/scripts/saveserver.lua
Lua:function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end Game.saveGameState() player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Server is now saved.") end
data/talkactions/talkactions.xml
XML:<talkaction words="/saveserver" script="saveserver.lua" />
src/luascript.cpp add on line 1635 ~
and add on line 3939 (after luaGameSetGameState)C++:registerMethod("Game", "saveGameState", LuaScriptInterface::luaGameSaveGameState);
C++:int LuaScriptInterface::luaGameSaveGameState(lua_State* L) { // Game.saveGameState() g_game.saveGameState(); pushBoolean(L, true); return 1; }
src/luascript.h add on line 538 ~
C++:static int luaGameSaveGameState(lua_State* L);
enjoy
Why , was nostalrius discontinued?
Please, remove werror from your cmakelists files.
add_compile_options(-Wall -Werror -pipe -fvisibility=hidden) | |
add_compile_options(-Wall -pipe -fvisibility=hidden) | |
include(cotire)
add_compile_options(-Wall -pipe -fvisibility=hidden)
if (CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-fno-strict-aliasing)
endif()
Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
the Sex is Int(11) in schema
View attachment 52416
I used the last version of mysql installed by Xampp.
I try install the last version of MariaDB in port 3307, but the same error occurs.
I have a problem with keyboard walking using otclient (edubart).
When using autowalk (click on the map) it works well
On otclientv8 it is smoother when walking through the keyboard
Is there anything i can do on the server / protocol to improve or is it on the client?
Here my post with some videos about problem:
OTClient - Screen render freezing while keyboard walking
Hello, I'm using 772 client (edubart otclient) with Nostalrius server (772) When I walking on otclient using keyboard happens small cuts for each walking SQM: Another example on different ground: But on click map (autowalk) this work very well: I tested keyboard walking on otclientv8 and...otland.net
Nostalrius is much slower / freezing when using otclient.
Does it work compile with visual studio 2019? Or do i need a earlier version?
I can't find the problem, I tested OTHire with the same OTClient and it is much smoother with fewer frames locking when walking.
I tried to change the getSpeedDuration method of creature.cpp and leave the duration equal to that of OTHire, but that didn't work either.
I tried to change several parts of the code from player.cpp, creature.cpp and even OTClient but nothing works. Nostalrius is much slower / freezing when using otclient.
@Ezzz do you have any idea how i can improve the nostalrius keyboard walking system to make it smoother or equal to that of OTHire?
I solved some problem related to first step on this thread:Visual Studio 2019 and up works.
It's odd that you're having this issue, could be related to first step on OTC.