Revision 225 (2004) Cache/Client/Packets

Pazaz

Forum Moderator
Staff member
 
Oct 28, 2013
73
124
5,050
Cache and original client: https://runewiki.org/archive/cache/225.zip

This is essentially right after the RS2 launch, which was March 29th, 2004. Revision 225 is dated May 18, 2004.

Spoiler for Media:

KKPZqtL.png

29f5j0P.png

ZsmVTGx.png

QStK2Hq.png

Z8C3JDp.png

FBfypb6.png



I started refactoring the client and will improve this over time. Not worried about best naming conventions yet, I have a bunch I need to go through again later.
https://github.com/Pazaz/RS2-225

The network protocol can be largely understood from the refactored code, but here's a big table on client/server packets: https://www.runewiki.org/Old_Engine/Game_Protocol?revision=225
Until I can write some full pages on things I recommend reading through both the refactored code and protocol page if you want to make a 2004 server.

Cache information:
1) Every loose file in the cache gets saved with its base37 representation as its name. It can be reversed, but special characters are replaced with underscores, so it will not have its original filename. It's also limited to 12 characters.
2) Maps and MIDIs are compressed using BZip2, and the first 4 bytes is the uncompressed size of the file. It gets replaced with the BZip2 header when decompressing.
3) Take a look at the missing regions below: (red=missing, green=can take from 289 as it's unchanged, blue=exists)
Spoiler for Map overview:
0PmJ52z.png

4) There are no jingles as they weren't saved. There are a fair bit of songs still.

Notes:
1) The original player launched the game on April 2nd and played to May 27th, never revisiting some areas. On June 1st Jagex introduced the new cache format and updates would've gone to main_file_cache instead.
2) You can use Jagex's RSA key: https://www.rune-server.ee/runescap...rsa-key-used-revision-186-revision-597-a.html
3) I think 225 may have been the last public release before the cache format was introduced (234) because there are maps here from May 27, and 234 would've been June 1st. Not much time for 9 public revisions and they probably needed some revisions to get the new format working.
4) You can use newer maps with the client, but you need to catch exceptions when loading newer/out-of-bounds objects. The area may just appear black otherwise
5) One of the mapscene sprites included in this cache makes Lumbridge's river look weird. It's not included in the 194 or 289+ caches, it gets left as a transparent sprite. I have a theory it might've been a debug sprite and the original player never revisited Lumbridge to get the "225" map. Either that or Jagex left it as a mistake in this build. But it seems to line up with the collisions. Its index is 22 in mapscene.dat, and can be skipped from loading or rendering in the client
Spoiler for Weird mapscene sprite:
yhfhX4h.png


And finally... enjoy! I highly recommend filling any gaps with what we have from 289 (Jan 2005). Here's some extra goodies

225 models converted to the 234+ format: https://runewiki.org/archive/misc/225-models.zip - animations not included, it will look very off if you repack these into a newer cache

MIDIs decompressed for convenience: https://runewiki.org/archive/misc/225-songs.zip

EDIT Feb 14 2022:
I obtained another 225 source to merge today! This player started in the RS2 beta and you'll find new timestamps from Dec 2003 - March 2004. Unfortunately no maps remain that would've been used with 186/194, other than a couple unused underworld regions.

1) New map files: from 474 files to 610, with 9 that have another revision. I placed them in a "rev1" folder and the main folder has the latest revision.
2) New midis: from 96 files to 135.
3) Older timestamps for some files to help build a timeline of changes :)

Check the updated map overview!

EDIT Feb 17 2022:
Got another 225 cache from 2004! This time from a f2p player who started at launch. It didn't get us new map regions, but did get earlier versions of some. We now have 32 files that have another revision, and I placed them in a rev1/ folder. Also replaced a few file timestamps with earlier ones from this source.
It also had a "different" copy of medieval.mid, but I can't tell if there was really any difference other than metadata.

EDIT May 31 2022:
We got two new map files today dated 3/18/2004! There's some changes in Lumbridge and Al Kharid, probably around rev ~204 era RS (still before launch).

EDIT Jun 1 2022:
I sourced as much as I could from 274/289 and put extra jingles, songs, and maps inside 225.zip. You'll find them labelled as post-234 as that means I've carefully selected and re-compressed files that matched the first version (versions introduced in 234).

EDIT Aug 18 2022:
We had a new submission for revision 222, so I've organized the data and taken the earliest timestamps from both. We got Fishing Trawler for 194 in it, another original midi (no longer need to source "Chain of Command" from 289), and waterfall cave. There were a handful of slightly earlier revision maps too.

Probably some more I'm neglecting to mention. I took this time to reorganize the rev <234 caches.
194, 204, 222, and 225 have their own zips with the original client jar and their archives.
The maps and songs are in rs2launch.zip. 194's maps are in rs2beta.zip.
This is because it was redundant to include all the same data in 222, and who knows, we may get more one day.
 
Updated the refactor to ignore the weird mapscene sprite, and also load the 289 maps by ignoring missing models (link at the end of the first post). Shouldn't affect anyone who wants to only use the original maps

Spoiler for Media:

Fixed lumbridge after ignoring the sprite:
MeEldRR.png


289 map before:
h2yaQtP.png


289 map after:
hzGhVcP.png

 
Imagine if you would manage to make this revision a smooth running server, just like it used to be yet entertaining for the long-term (without all the new content from osrs that's becoming to look a ps itself, yet some original aspects). Sick dude! :D
 
Hey everyone! Bumping because I posted an update in the OP. I received more 225 data that I merged and organized, everything is uploaded already :)
225.zip and 225-songs.zip are the only updated files.

Also, I had a mistake in 225-songs.zip before, I called a song "Dangerous Mine" instead of "Dangerous." It was a slip-up because the original filename was "dangerous_mi" and I was renaming a bunch of files at the same time. Fixed!

With this update we're no longer missing the Ardougne or Yanille maps, and we can see a better timeline of when maps were edited/created.
 
Small bump!

New "revision 1" maps in 225.zip have been added, along with a slightly earlier copy of medieval.mid (might sound identical). Replaced newer timestamps with older ones on some files as well.
We've got ~32 different map files now that are probably from launch-ish and cover some hidden updates/changes that must've taken place back then. The different revisions are for f2p areas only. Hope to share some cool screenshots soon!

I also found out that `long ago.mid` was incorrectly named, and is actually just a 2nd copy of `long way home.mid`. Fixed that mistake in both 225.zip and 225-songs.zip.
 
  • Like
Reactions: rebecca
New updates!

1) I've updated the repo with a fresh new deob I worked on, using OpenRS2's annotations, and I've adopted Jagex nomenclature/packet names where possible.
2) There is a NIO-based local server included that can run in the background, which allows the client to run standalone. It has just enough to run around and load maps, I've also got it using my music region map (accurate to May 2004) so you can hear songs as you run around.
3) We can now see what the Lum bridge looked like on March 18, 2004, thanks to a newly uploaded cache. Unfortunately the drive was heavily corrupted and there were only 2 files that could be read, otherwise we would have another revision and more maps.

keFbe9k.png


These are the same links in the OP, but for posterity:
runnable project (includes cache + reorganization): https://github.com/Pazaz/RS2-225/releases
source cache: https://www.runewiki.org/archive/cache/225.zip
 
  • Like
Reactions: Leanbow

Users who are viewing this thread (total: 1, members: 0, guests: 1)