Skip to content

Instantly share code, notes, and snippets.

@cydh
Last active September 28, 2018 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cydh/d904e58a1cb3c74008443d9287cdc5d8 to your computer and use it in GitHub Desktop.
Save cydh/d904e58a1cb3c74008443d9287cdc5d8 to your computer and use it in GitHub Desktop.
Adding custom map as copy of gld2_prt, gld2_pay, gld2_gef, gld2_ald

Requirements:

  1. Tokei's GRF Editor, can be downloaded here
  2. WeeMapCache, can be downloaded here
  3. rAthena

Steps

  1. Open GRF Editor
  2. Open kRO's data.grf (or any grf file taht you think it contains the map that you want)
  3. Find files for gld2_ maps

custom-map-1

  1. Select all files with .gat, Right-click > Extract

custom-map-2 custom-map-3

  1. It will open new explorer window, then rename those files
    • gld2_prt.gat > arena_prt_f.gat
    • gld2_pay.gat > arena_pay_f.gat
    • gld2_gef.gat > arena_gef_f.gat
    • gld2_ald.gat > arena_ald_f.gat

custom-map-4

  1. Back to GRF Editor, you need to extract 4 mini maps (.bmp) for those maps
  2. Now open WeeMapCache, Open from rathena/db/import/map_cache.dat (default is empty, if you find none, copy it frist from rathena/db/import-tmpl/map_cache.dat)
  3. Click File+ icon to add the map

custom-map-5

  1. Select the .gat files
  2. Then save it.
  3. Now open rathena/conf/import/map_conf.txt, add these lines, save then close it
map: arena_pay_f
map: arena_prt_f
map: arena_ald_f
map: arena_gef_f
  1. Now open rathena/db/import/map_index.txt, add these lines, save then close it (there's tab -not spaces- between the map name & the number)
arena_pay_f	1100
arena_prt_f
arena_ald_f
arena_gef_f
  1. Now move .gat files into your ROClient/data/ (only if you GRF is patched to read data folder first, or you neeed to add the .gat files into .grf)
  2. Now open ROClient/data/mapnametable.txt, add these lines, save then close it
arena_prt_f.rsw#Battle Arena - Prontera#
arena_gef_f.rsw#Battle Arena - Geffen#
arena_ald_f.rsw#Battle Arena - Aldebaran#
arena_pay_f.rsw#Battle Arena - Payon#
  1. Now open ROClient/data/resnametable.txt, add these lines, save then close it
arena_prt_f.gnd#gld2_prt.gnd#
arena_prt_f.gat#gld2_prt.gat#
arena_prt_f.rsw#gld2_prt.rsw#
arena_gef_f.gnd#gld2_gef.gnd#
arena_gef_f.gat#gld2_gef.gat#
arena_gef_f.rsw#gld2_gef.rsw#
arena_ald_f.gnd#gld2_ald.gnd#
arena_ald_f.gat#gld2_ald.gat#
arena_ald_f.rsw#gld2_ald.rsw#
arena_pay_f.gnd#gld2_pay.gnd#
arena_pay_f.gat#gld2_pay.gat#
arena_pay_f.rsw#gld2_pay.rsw#
  1. Copy the .bmp files for minimaps to same path with the extracted path. Or still in resnametable.txt file, add these lines
유저인터페이스\map\arena_gef_f.bmp#유저인터페이스\map\gld2_gef.bmp#
유저인터페이스\map\arena_ald_f.bmp#유저인터페이스\map\gld2_ald.bmp#
유저인터페이스\map\arena_pay_f.bmp#유저인터페이스\map\gld2_pay.bmp#
  1. Your simple custom maps are ready to use
@cydh
Copy link
Author

cydh commented Sep 28, 2018

custom-map-1
custom-map-2
custom-map-3
custom-map-4
custom-map-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment