• 0
Alrighty

Adding a Custom Map Cache File

Question

Hi Hercules members!

As we know, the last Hercules release (v2018.03.11) included the mapcache update.

Personally, I use WeeMapCache tool to add my custom map cache files. But now, WeeMapCache is useless because there is no map_cache.dat anymore on the new version of Hercules :(. 

I only know how to add my custom map cache files with WeeMapCache. Could someone tell me what other methods I could use now to add a custom map cache file? I hope they would be simple as with WeeMapCache.

Thank you,

Edited by Alrighty

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

1st of all, sorry I only know windows environment -- windows sux !!

2nd, yeah I agree too, this took me 2 days to figure out how to do this


reference topic


Prelude

make sure you already know how to install a plugin

http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

yup ~ use the new method ~ ( maybe I should've remove the old method already ... )

and add "mapcache" to your "hercules\conf\plugins.conf"

Run command prompt

1. [Windows Key] + [R] -> type cmd

https://drive.google.com/file/d/19Ni-NUAZusaCgEX6xnXxasZDLHtkW-N-/view?usp=sharing

2. point to your Hercules emulator folder, and type mapserver.exe --help

https://drive.google.com/file/d/1EpB4jxaB3VAO0XzB9gJq7t6fmtBb4RZ5/view?usp=sharing

3. type mapserver.exe --map <YourMap>

https://drive.google.com/file/d/1Q68HSNaxvGEwsm6UeHEcgL2BY-JpKNgV/view?usp=sharing


now that you know the commands ... lets do it easier way

Windows Execution File -- Create Shortcut
1. point to your map-server.exe, and create shortcut

https://drive.google.com/file/d/15szzAa8Fuef9UQUjB3rsygNafoLtr6Tm/view?usp=sharing

2. right-click, Properties, and edit the Target Location/Target (this example is my hercules directory)

D:\Ragnarok\Hercules\map-server.exe --map <YourMap>

https://drive.google.com/file/d/1hwqPrJE4M53QkoAeiuA4pFCF1A8ZHPpz/view?usp=sharing

whenever I want to add new maps, I just need to edit the Target field, and double click the program ~ fast and easy ~


Fun Facts !!

do you know you can use GM command in map-server.bat ?

https://drive.google.com/file/d/15gOf4vgl9HWc58Q8Jdn9Vbbza5lY5ek6/view?usp=sharing

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

Thank you very much @AnnieRuru for sharing these useful steps and making the long story short for us ;D

Now, I'm wondering where my custom map gat files should be in. After taking a look at different topics, it seems that it is something related to grf-files.txt, but I'm uncertain what changes I should make there. I would appreciate it if you could help me with that.

Also, thank you for the fun facts thing :).

 

Edited by Alrighty

Share this post


Link to post
Share on other sites
  • 0

these steps are the same as rAthena,

 

conf\grf-files.txt

//-----------------------------------------
// GRF Files
// Add as many as needed.
//-----------------------------------------
grf: D:\Ragnarok\client\rdata.grf
grf: D:\Ragnarok\client\data.grf

//-----------------------------------------
// Data Directory
// Use the base folder, not the data\ path.
//-----------------------------------------
data_dir: D:\Ragnarok\client\

conf\map\maps.conf

	"arathi",

db\map_index.txt

arathi	1250

 

actually should do these steps before the above post

I assume many people know about this because .... after do these 3 steps, in rathena just have to click mapcache.bat

https://rathena.org/board/topic/108109-requesting-guide-on-how-to-create-a-mapcache/

 

EDIT: for below -  wow, how much spoon feeding is weemapcache system ...

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Grind said:

What are the pros and cons of this new mapcache update? I think the previous mapcache system is waaay better than this new system.

well, the new system have individual files.

You can just get the .mcache file and put in maps folder and it would work (provided you added map name in other required files, like map_index and maps.conf)

It's easier to track the changes, as if mapcache was updated before, you didn't know which all maps changed, but now you would get to know and without conflict , download the new update

Share this post


Link to post
Share on other sites
  • 0

Depends on what you are doing. If you are only adding spawns, dynamic objects and waypoints, you only have to "Make Game" and then run the ALL spawn batch file. Then just take and rename the new .spawn.

chkn.php?img.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...