Compiling Error

Newbie Spellweaver
Joined
Dec 4, 2022
Messages
29
Reaction score
1
Hi, I tried snipping a different feature from Nanus which is the "teleporter" i am using Ketchups k18.3 files, and received an error during build and debug.

Error: Debug:
I really want to understand how to identify the error and what am i missing, as i have a lot of features to snip from different sources.

in this way i can be self sufficient, or if there is any fix that is big enough i'll just figure things out on how it was fixed.

thank you.
 
Ahah it’s not a debugging just a build? it’s pretty simple it tells you that the function #ifdef __APP_TELEPORTER void OnTeleportByAPP( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );#endif // __APP_TELEPORTERwas forgotten in Dpsrvr. h

Silly me i forgot to change the show output to debug :)

I tried double checking the code Dpsrvr.h and DPsrvr.cpp

and im sure i added
Code:
##ifdef __APP_TELEPORTER
           void	OnTeleportByAPP( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );
#endif // __APP_TELEPORTER

still got the same error, here's the DEBUG:
 
Upvote 0
verifie Wndfield.cpp you have added OnTeleportByAPP ?Or dpsrvr.h modifie in public

##ifdef __APP_TELEPORTER
public:
void OnTeleportByAPP( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );
#endif // __APP_TELEPORTER
Thank you for the fast response.

i tried, and double checked the codes in all files appears to be in place. the error wont go away :( Im sure its in world server as it is the only one having the issue. i also used winmerge to see if the code is the same on wndfield.cpp, DPsrvr.CPP , DPSrvr.h all good


am i not missing a file since it did say on the error about DPSrvr.obj, or is it a different matter?
 
Upvote 0
Silly me i forgot to change the show output to debug :)

I tried double checking the code Dpsrvr.h and DPsrvr.cpp

and im sure i added
Code:
##ifdef __APP_TELEPORTER
           void    OnTeleportByAPP( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );
#endif // __APP_TELEPORTER

still got the same error, here's the DEBUG:

Always check your copy pasting...

Code:
[B][COLOR="#FF0000"]##[/COLOR][/B]ifdef __APP_TELEPORTER
           void    OnTeleportByAPP( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long );
#endif // __APP_TELEPORTER
 
Upvote 0
@GateKeeperZ https://forum.ragezone.com/f724/vs22-full-setup-guide-for-1192396/ < #7 will teach you how to debug correctly.

Also @MakVee is correct to, there shouldn't be 2 ## lol.

oh, i've seen you posting regarding that #7 i tho comment #7 it was actually the spoiler #7 haha

i was able to somehow put the teleporter in menu, and no crash in worldserver or neuz. Thanks to RubyFlyff

however when i press the teleporter nothing happens and at the same time "v" or "z" does not pop the teleporter window...

i'll look around and update im sure i found the solution in one of ketchups post with mentus teleporter
 
Upvote 0
oh, i've seen you posting regarding that #7 i tho comment #7 it was actually the spoiler #7 haha

i was able to somehow put the teleporter in menu, and no crash in worldserver or neuz. Thanks to @RubyFlyff

however when i press the teleporter nothing happens and at the same time "v" or "z" does not pop the teleporter window...

i'll look around and update im sure i found the solution in one of ketchups post with mentus teleporter
for the hotkey, you can check it in FuncApplet.cpp. if im not wrong, Nanus VS22 using Z to open the teleporter, make sure dont forget to add teleporter resource part. APP_TELEPORTER in resdata.h, resdata.inc & resdata.txt. and add TeleporterItem.inc in resource.txt, use merge.exe after all done and move all file in ResClient folder to Client folder
 
Upvote 0
Back