-
Notifications
You must be signed in to change notification settings - Fork 31
Moradon Warp fix #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Moradon Warp fix #206
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -543,6 +543,7 @@ struct _WARP_INFO { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
float fY; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
float fZ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
float fR; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
short sNation; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why add this if it isn't being used anywhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because without it loading any map will give screwed up warps. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to diagnose your own files, you can use my provided sample code this goes straight into map.cpp ebenezer: void C3DMap::LoadWarpList(HANDLE hFile) {
} struct Warp { void C3DMap::UpdateWarpInfo(_WARP_INFO * pWarp) {
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to add some context and another perspective, some gate objects are nation 0 which means for both, but that doesn't mean you will get Karus and Elmorad warp entries from the same object, that differs if you are invading Karus you are not allowed to teleport to Karus entries but you are allowed to use the object to warp back. (hypothesis) I'm not even going to confirm my suspicion or hypothesis, sooner or later this will have to be done and for now it saves me a lot of work. And if we go to KE SMD's they will have the extra short anyway >.> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I imagine this would prevent our current maps from working, right? Could we update our old maps first by adding a short in the right place? This way we can still load our updated older maps. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am already in the process doing that I just need green light and approval then I will upload them and hopefully merge. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Tested and they work fine so far. DB table zone_info:
servermaps.zip There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree with @srmeier here. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
_WARP_INFO() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sWarpID = 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why which from byte to short here?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you can see below:
https://github.com/srmeier/KnightOnline/blob/80268e2fa971389a3e94c430966a7943c2631dbf/Client/WarFare/GameProcMain.cpp#L4205C15-L4205C24
https://cdn.discordapp.com/attachments/1004036880444162089/1130637969892585532/Desktop_2023.07.18_-_01.10.12.07.mp4