mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #540] [MERGED] Replace clipping files with loading straight from the cache. #4075
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/2006-Scape/2006Scape/pull/540
Author: @advnau
Created: 1/24/2023
Status: ✅ Merged
Merged: 1/25/2023
Merged by: @Dark98
Base:
master← Head:master📝 Commits (10+)
06fa7d1Archive decompression from apollocfdb00bRemoved unused object definition fields689d28eAdd more options to IndexedFileSystem806d6a4Fix opcode 19 of object defsb33c567Initial commit of loading maps from cache6d4b7d1Removed deprecated methodsde325b7Some code cleanup to fix packaging.2918fe3map_index loading from cache96bc5d4Update pom.xmlc3f61bcRenaming some object definition values.📊 Changes
1353 files changed (+551 additions, -475 deletions)
View changed files
➖
2006Scape Server/data/world/map/0.gz(+0 -0)➖
2006Scape Server/data/world/map/1.gz(+0 -0)➖
2006Scape Server/data/world/map/10.gz(+0 -0)➖
2006Scape Server/data/world/map/100.gz(+0 -0)➖
2006Scape Server/data/world/map/1000.gz(+0 -0)➖
2006Scape Server/data/world/map/1001.gz(+0 -0)➖
2006Scape Server/data/world/map/1002.gz(+0 -0)➖
2006Scape Server/data/world/map/1003.gz(+0 -0)➖
2006Scape Server/data/world/map/1004.gz(+0 -0)➖
2006Scape Server/data/world/map/1005.gz(+0 -0)➖
2006Scape Server/data/world/map/1006.gz(+0 -0)➖
2006Scape Server/data/world/map/1007.gz(+0 -0)➖
2006Scape Server/data/world/map/1008.gz(+0 -0)➖
2006Scape Server/data/world/map/1009.gz(+0 -0)➖
2006Scape Server/data/world/map/101.gz(+0 -0)➖
2006Scape Server/data/world/map/1010.gz(+0 -0)➖
2006Scape Server/data/world/map/1011.gz(+0 -0)➖
2006Scape Server/data/world/map/1012.gz(+0 -0)➖
2006Scape Server/data/world/map/1013.gz(+0 -0)➖
2006Scape Server/data/world/map/1014.gz(+0 -0)...and 80 more files
📄 Description
This replaces the existing clipping files with loading the data from the cache. The cache loader code is mostly unmodified, however there is a method added in the IndexedFileSystem to load the data as a byte[] rather than a bytebuffer.
Archive loading code for the map_index/loc files is from Apollo.
The accessor methods within ObjectDefinition have not been renamed to minimize the amount of changed files to allow easier merging of any existing PRs. The private values that they reference were renamed to make that easier later.
There is a readString method from a ByteBuffer currently in ObjectDefinition just because there was no obvious place forit outside of making a Utility class.
This may potentially help fix some random clipping issues because the definitions loaded by the server did not completely match the cache. This PR does not affect any clipping on doors or affect force movement (such as firemaking).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.