Adding a Custom Map Cache File

Alrighty

New member
Messages
2
Points
0
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,

 
Last edited by a moderator:
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)

Code:
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

 
Last edited by a moderator:
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 :) .

 
Last edited by a moderator:
these steps are the same as rAthena,

conf\grf-files.txt

Code:
//-----------------------------------------
// 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

Code:
	"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 ...

 
Last edited by a moderator:
What are the pros and cons of this new mapcache update? I think the previous mapcache system is waaay better than this new system.

 
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

 
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.



 
Back
Top