Skip to content

Read Map packets (tiles, items) #6

@Znote

Description

@Znote

https://github.com/otland/forgottenserver/tree/master/data/items

Parse map packet.
So the server uses items.otb as some sort of dictionary to figure out what id to send to the client, and the client then, using that id figures out what to load from the dat file.
Which is why we call it a dat editor when someone wants to peek into client tile graphics.

For now, we should be able to parse map packets, identify first map packet as a signal that we are connected and can do stuff in-game. (Right now we sleep for 100ms and hope the server is ready to accept our packets).

Perhaps we can reverse lookup the id from the server with items.otb to retrieve the itemid from items.xml?

items.otb, every 2 lines seems to contain an item object of sorts?
image

If we could get this value back to an itemid it would be awesome, and we could already begin to play with a rudamentary UI for loading the screen using an image server such as this: http://items.znote.eu/

http://items.znote.eu/1003.gif
image

Without having to deal with the way the client renders spr/dat files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions