Hi, kinda embarrassed because it was working at some point of the development but now its not and i spent several days trying to get it working but its not.
First of all i have raised network limit and everything that was covered here TFS 1.X+ - TFS 1.5 - Downgrade Nekiro 7.72 - Add in-game shop OTClientv8 (https://otland.net/threads/tfs-1-5-downgrade-nekiro-7-72-add-in-game-shop-otclientv8.284755/)
obviously since it was working at one point.
No errors in client or server.

This is the current state. I have latest game_shop module from otcv8 branch, same with shop.lua, json.lua etc.
login.lua
creaturescripts.xml
Diff checker for shop.lua - Untitled Diff - Diff Checker (https://www.diffchecker.com/y33VhI1x/)
I just added a few print calls to debug stuff the thing that i observed is that parameter data thats coming to sendJSON function is empty all the time when printing just empty array.
This print is from server console:

Extended opcodes are working because i am able to send custom opcode with json encoded data and receive them on the client side.
I manually entered a row to shop_history in DB and after clicking on Transaction history it will pop up


and in sendJSON from server - print is not nil but a table because of shop history row i guess
Pretty close to giving up
First of all i have raised network limit and everything that was covered here TFS 1.X+ - TFS 1.5 - Downgrade Nekiro 7.72 - Add in-game shop OTClientv8 (https://otland.net/threads/tfs-1-5-downgrade-nekiro-7-72-add-in-game-shop-otclientv8.284755/)
obviously since it was working at one point.
No errors in client or server.

This is the current state. I have latest game_shop module from otcv8 branch, same with shop.lua, json.lua etc.
login.lua
Lua:
player:registerEvent("ExtendedOpcode")
player:registerEvent("Shop")
creaturescripts.xml
XML:
<event type="extendedopcode" name="ExtendedOpcode" script="extendedopcode.lua" />
<event type="extendedopcode" name="Shop" script="shop.lua" />
Diff checker for shop.lua - Untitled Diff - Diff Checker (https://www.diffchecker.com/y33VhI1x/)
I just added a few print calls to debug stuff the thing that i observed is that parameter data thats coming to sendJSON function is empty all the time when printing just empty array.
This print is from server console:

Extended opcodes are working because i am able to send custom opcode with json encoded data and receive them on the client side.
I manually entered a row to shop_history in DB and after clicking on Transaction history it will pop up


and in sendJSON from server - print is not nil but a table because of shop history row i guess
Pretty close to giving up
Attachments
-
1689252967920.png12.5 KB · Views: 5 · VirusTotal