Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 12/01/24 in Posts

  1. 1 point
    johnlincon

    Mapcache for old Izlude.

    I had a problem with that until I learned how to solve it. When I went to izlude's map, in some parts I couldn't walk, because the server was carrying the newest izlude mapcache (I believe), well I would like to share the old izlude mapcache that I generated, if you have a problem with that, just replace the file. \Hercules\maps\ pre-re izlude.mcache
  2. 1 point
    bWolfie

    [Guide] Mapcache Generation 2018

    As of Release v2018.03.13, the method to generate mapcache for Hercules has changed. A lot of people. myself included, were confused as to how it works. In this thread, I will do my best to explain the new way to generate your cache. This guide is intended to help people using the old system, not to aid new people (i.e. never generated mapcache before), so if you are new, some of it may seem like alien talk. Old (your source predates [is older than] Feb 18, 2018) In the old system, there were two ways to generate mapcache You could run the mapcache executable in Hercules root folder. Or use a program such as WeeMapCache to edit in your required mapcache. These two methods would generate or alter your required mapcache located in db/[pre-re or re]/map_cache.dat. However, they are no longer supported. New (your source is using Release v2018.03.13 or newer) The new system involves the use of the new 'mapcache' plugin to generate files. Some quick points: db/[pre-re or re]/map_cache.dat has been dropped (no longer supported). In its place are individual .mcache files for every map located in maps/[pre-re or re]/ Mapcache executable has been removed. Replaced with the mapcache plugin (src/plugins/mapcache.c). How to generate the mapcache? Same as before, check conf/map/maps.conf and db/map_index.txt have all the maps you want to cache. Your maps need to exist somewhere in your repository! There are two ways for the plugin to find them: a. Place all your maps, including resnametable.txt, inside the data folder of your Hercules repo. I.e. Hercules/data/prontera.gat/gnd/gnd/rsw (note: I forget if all three files are needed). b. OR Configure your conf/grf-files.txt to tell it where to find your GRF(s) which contains your maps. Build the mapcache plugin. On linux, this can be done by running the following command: make plugin.mapcache If using MSVC, compile as you would any other plugin. Execute plugin. This can be done using the following command: ./map-server --load-plugin mapcache [param] In windows, just remove the './' and run the commands in your command prompt. The params: The first thing you should do is run ./map-server --load-plugin mapcache --help A list of usable parameters will appear. Here are the ones you need to know for mapcache: [Info]: --convert-old-mapcache Converts an old db/pre-re/map_cache.dat file to the new format. [Mapcache] [Info]: --rebuild-mapcache Rebuilds the entire mapcache folder (maps/pre-re/), using db/map_index.txt as index. [Mapcache] [Info]: --map <name> Rebuilds an individual map's cache into maps/pre-re/ (usage: --map <map_name_without_extension>). [Mapcache] [Info]: --fix-md5 Updates the checksum for the files in maps/pre-re/, using db/map_index.txt as index (see PR #1981). [Mapcache] ./map-server --load-plugin mapcache --convert-old-mapcache Rebuild all the .mcache files using your old db/[pre-re or re]map_cache.dat file. NOTE: You should only run this command when you have an old map_cache.dat file you need to convert. ./map-server --load-plugin mapcache --rebuild-mapcache Rebuild all the .mcache files using your map files specified in step 2 of generation. NOTE: You should only run this command in special circumstances. This erases ALL the existing mapcache and rebuilds it with whatever files you provide it. If you don't have the required files, the build will fail and you will be left with missing mapcache files, meaning you won't be able to access those particular maps. ./map-server --load-plugin mapcache --map <name> Rebuild the .mcache file for the map name you specify. E.g. if you replace <name> with prontera, the maps/[pre-re or re]/prontera.mcache file will be rebuilt. NOTE: This is the best command to run, as it only caches a single map at a time. ./map-server --load-plugin mapcache --fix-md5 I don't know what checksum is for. The End Feel free to ask for help here. I'll try to answer questions re: mapcache if possible. And if you think anything needs correcting or added, let me know. Hope this helps!
  3. 1 point
    imbadudelz

    [Guide] Mapcache Generation 2018

    I fixed it Myriad. I extracted all the izlude maps in data.grf. I moved it to my data folder. Then I ran map-server.exe --load-plugin mapcache --map izlude map-server.exe --load-plugin mapcache --map izlude_a map-server.exe --load-plugin mapcache --map izlude_b map-server.exe --load-plugin mapcache --map izlude_c map-server.exe --load-plugin mapcache --map izlude_d map-server.exe --load-plugin mapcache --map izlude_in The unwalkable areas of izlude map are now fixed. Thank you.
  4. 1 point
    Thank you very much... --> FINAL NOTE The truth was i had two mistakes of his own: 1.- I had to copy the file "mapcache.dll" in the folders plugin and the folder of the emulator. .2- Never use as a final folder for grf-files.txt a folder called "data", because by default, the emulator reads to data folder as the final destination, that is, if you have your .gat files in your data directory, you should ideally write the path without placing the data folder : *Example *In my directory real: F:\Gravity\Ragnarok\RO\data\lasagna.gat *In "grf-files.txt" you would apply the following route: F:\Gravity\Ragnarok\RO\
  5. 1 point
    4144

    How create new maps and filds (Files.mcache)

    in windows copy plugin binary mapcache.dll into plugins directory in hercules. then open command line in hercules directory and run commands what was in previous messages. in linux you using wrong directory. put files in /home/data/data. dir /home/data is your client root, /home/data/data is data directory in client.
  6. 1 point
    4144

    How create new maps and filds (Files.mcache)

    build server build mapcache plugin make plugin.mapcache run command for help about command line parameters ./map-server --load-plugin mapcache --help See all commands about map cache and select what you want. For add map probably you want ./map-server --load-plugin mapcache --map youmapname
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.