[DiscordArchive] Why are you pinging me randomly?
[DiscordArchive] Why are you pinging me randomly?
Archived author: Sylian • Posted: 2024-05-18T13:16:47.767000+00:00
Original source
The settings?
You mean in my worldserver.conf right. also, the entities.player.items was a simple test to see if that part would work, since I saw some lines down that there was some LOG_DEBUG with those.
Archived author: Sylian • Posted: 2024-05-18T13:30:05.710000+00:00
Original source
So, I got it working by running the server inside VS on debug mode... I must be honest and say that I don't quite understand why I need it in DEBUG mode for printing shit.
So, I now figured out that the location it fucks up is in the PlayerHooks.cpp script.
Archived author: Sylian • Posted: 2024-05-18T13:30:32.816000+00:00
Original source
After the line called "START_HOOK(PLAYER_EVENT_ON_UPDATE_ALL_STATS)", it doesnt log anymore of my error lines.
So thats what I need to get working now.
Archived author: Sylian • Posted: 2024-05-18T13:37:31.132000+00:00
Original source
To my surprise, nothing seems to be wrong when I do the breakpoint on the line.
I can see the variables and stuff isnt null, it even has the ID for the event, so I dont know what could be the problem
Archived author: Foe • Posted: 2024-05-18T13:46:51.866000+00:00
Original source
You need to show that code too then
Archived author: Sylian • Posted: 2024-05-18T13:51:52.550000+00:00
Original source
I dont understand shit anymore...
Archived author: Sylian • Posted: 2024-05-18T13:52:22.218000+00:00
Original source
So, if I run the server in debug via VS.
Then the LUA code can SEE the event I made and everything works as intended.
Archived author: Sylian • Posted: 2024-05-18T13:52:49.808000+00:00
Original source
BUT, if I the build version of the server, I get the error about it being an unknown event type.
Archived author: Sylian • Posted: 2024-05-18T13:52:53.644000+00:00
Original source
Same LUA script
![[Image: image.png?ex=690bff84&is=690aae04&hm=82f...6cc8bf2c6&]](https://cdn.discordapp.com/attachments/284323424032129024/1241388107002151012/image.png?ex=690bff84&is=690aae04&hm=82fb0c8924d5aad24b449127e6ad7ac2306b30726a8f99b2b02d5596cc8bf2c6&)
Archived author: Sylian • Posted: 2024-05-18T13:53:08.602000+00:00
Original source
![[Image: image.png?ex=690bff84&is=690aae04&hm=82f...6cc8bf2c6&]](https://cdn.discordapp.com/attachments/284323424032129024/1241388107002151012/image.png?ex=690bff84&is=690aae04&hm=82fb0c8924d5aad24b449127e6ad7ac2306b30726a8f99b2b02d5596cc8bf2c6&)