Skip to content
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

Reading .UOP files instead of .MUL #32

Closed
joaoescribano opened this issue Oct 15, 2017 · 2 comments
Closed

Reading .UOP files instead of .MUL #32

joaoescribano opened this issue Oct 15, 2017 · 2 comments

Comments

@joaoescribano
Copy link
Collaborator

Now that server works only with newer clients, we need to properly read this game files:

  • Tiledata (readTiledata)
  • Maps (getTerrainLand)
  • Map Dif (readMaps)
  • Statics/Staidx (getTerrainStatics)

For now the server must read an old client version folder that contains .mul files (like version 7.0.20) to work..

@joaoescribano
Copy link
Collaborator Author

joaoescribano commented Oct 22, 2018

So... I finally discovered how to read this files, I'll work more as soon I can, but now it seems that UOP has many small files inside, I've already got this "files" from the UOP and now I need to understand what is better:

Option 1: Read the UOP map files everytime the server starts (From 2-3 seconds of load time to 35+)

Option 2: Read only the UOP files offsets and everytime needed read the file

Option 3: Read one time and stores on the filesystem as an old "mul" file (data is stored sequentially on a grid of 8x8 tiles) so we will be able to easily read land tiles on the file on demand.

Reading UOP file is important because we need to read the landscape to determine which is the actual player Z position, it player is at the "LAND" or over a "STATIC" item. (This can be reached by the new walking packet, which is already implemented, but I cannot do since when i finished the packet coding)

@youhide youhide added this to TODO in Development Oct 26, 2018
@joaoescribano joaoescribano moved this from TODO to DOING in Development Oct 26, 2018
@joaoescribano
Copy link
Collaborator Author

Finally, after a year... its solved!!!

Thanks to @fabiohvp we've been able to read correctly the UOP files and convert it to .mul files (since we can read it better and easily).

To convert the files, users will have 2 options:

  1. Install GMP extension at PHP
    or
  2. Convert using some tool and add to the folder

Development automation moved this from DOING to DONE Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development
  
DONE
Development

No branches or pull requests

1 participant