johnsamir
Advanced OT User
Hello
I'm trying to add market system to my server which is tfs 1.5 8.6
i uncommented all the lines that were commented and added all definitions declarations and so on that where removed from the files, i did it all comparing my server code with the up to date tfs repository, after removing all the compilers errors i compiled everything properly, the server opens and i can log in but if i go to
the depot and try to open it the server crashes
can somebody help me to debug this please?
now i have enabled these things and i don't get any crash but i can't see the market depot either
enabled this at otcv8
g_game.enableFeature(GamePlayerMarket)
events/events.xml
added this
<!-- Player methods -->
<event class="Player" method="onLookInMarket" enabled="1" />
data/events/scripts/player.lua
function Player
nLookInMarket(itemType)
local onLookInMarket = EventCallback.onLookInMarket
if onLookInMarket then
onLookInMarket(self, itemType)
end
end
server is not crashing but i don't see any market/store in my depot
I'm trying to add market system to my server which is tfs 1.5 8.6
i uncommented all the lines that were commented and added all definitions declarations and so on that where removed from the files, i did it all comparing my server code with the up to date tfs repository, after removing all the compilers errors i compiled everything properly, the server opens and i can log in but if i go to
the depot and try to open it the server crashes
can somebody help me to debug this please?
now i have enabled these things and i don't get any crash but i can't see the market depot either
enabled this at otcv8
g_game.enableFeature(GamePlayerMarket)
events/events.xml
added this
<!-- Player methods -->
<event class="Player" method="onLookInMarket" enabled="1" />
data/events/scripts/player.lua
function Player

local onLookInMarket = EventCallback.onLookInMarket
if onLookInMarket then
onLookInMarket(self, itemType)
end
end
server is not crashing but i don't see any market/store in my depot
Last edited: