Yoona Posted August 15, 2013 Posted August 15, 2013 The first thing i did was this i download a map name Hallow01 and i got the files 1.Hallow01,extra 2.Hallow01.gat 3.Hallow01.gnd 4.Hallow01.rsw 5.Hallow01.sprites and a bitmap picture. then i go to my server side i open trunk/db/map_index, then i put it like this halloween 1251 then the next is trunk/conf/maps_athena, then i put it like this map: halloween and now i open WeeMapCache - Shinryo I open my trunk/db/pre/map_cache.dat i add the Hallow01.gat on it and save it. now, i open my src/map/atcommand.c and i do it like this { MAP_HALLOW, 110, 39 }, // 36=Hallow and this } else if (strncmp(map_name, "hallow", 3) == 0) { town = 36; and now im gonna recompile my server, but something went wrong 2>..\src\map\atcommand.c(1772) : error C2065: 'MAP_HALLOW' : undeclared identifier Help me please.... thank you in advance ! Quote
Mootie Posted August 15, 2013 Posted August 15, 2013 You forgot to add #define hallow in map.h Sorry for miss tpos using pnone Quote
Daikumi Posted August 15, 2013 Posted August 15, 2013 You forgot to #define the map inside src > common > mapindex.h, and also, you need to put the map name inside help.txt, which is located inside your conf folder. go: "Params: <city name|number>\n" "Warps you to a city.\n" Quote
Yoona Posted August 15, 2013 Author Posted August 15, 2013 You forgot to add #define hallow in map.h Sorry for miss tpos using pnone Its ok, i already did what you two told me but still, i cant go to the map hallow no error in my map_sql... You forgot to #define the map inside src > common > mapindex.h, and also, you need to put the map name inside help.txt, which is located inside your conf folder. go: "Params: <city name|number>\n" "Warps you to a city.\n" I did but still nothing happens Quote
Yoona Posted August 15, 2013 Author Posted August 15, 2013 Show your files atcommand.c and map.h on my atcommand.c { MAP_HALLOW, 110, 39 }, // 36=Hallow is it map.h or is it mapindex.h? by the way this is my mapindex.h #define MAP_HALLOW "hallow" Quote
Mad Walker Posted August 17, 2013 Posted August 17, 2013 Show your files atcommand.c and map.h on my atcommand.c { MAP_HALLOW, 110, 39 }, // 36=Hallow is it map.h or is it mapindex.h? by the way this is my mapindex.h #define MAP_HALLOW "hallow" yeah I think it's inside mapindex, just follow the format of the other maps that are declared inside. http://svn.code.sf.net/p/rathena/svn/trunk/src/common/mapindex.h // Copyright (c) Athena Dev Teams - Licensed under GNU GPL // For more information, see LICENCE in the main folder #ifndef _MAPINDEX_H_ #define _MAPINDEX_H_ //File in charge of assigning a numberic ID to each map in existance for space saving when passing map info between servers. extern char mapindex_cfgfile[80]; #define MAX_MAPINDEX 2000 //Some definitions for the mayor city maps. #define MAP_PRONTERA "prontera" #define MAP_GEFFEN "geffen" #define MAP_MORROC "morocc" #define MAP_ALBERTA "alberta" #define MAP_PAYON "payon" #define MAP_IZLUDE "izlude" #define MAP_ALDEBARAN "aldebaran" #define MAP_LUTIE "xmas" #define MAP_COMODO "comodo" #define MAP_YUNO "yuno" ..... Quote
Yoona Posted August 17, 2013 Author Posted August 17, 2013 Show your files atcommand.c and map.h on my atcommand.c { MAP_HALLOW, 110, 39 }, // 36=Hallow is it map.h or is it mapindex.h? by the way this is my mapindex.h #define MAP_HALLOW "hallow" yeah I think it's inside mapindex, just follow the format of the other maps that are declared inside. http://svn.code.sf.net/p/rathena/svn/trunk/src/common/mapindex.h // Copyright (c) Athena Dev Teams - Licensed under GNU GPL // For more information, see LICENCE in the main folder #ifndef _MAPINDEX_H_ #define _MAPINDEX_H_ //File in charge of assigning a numberic ID to each map in existance for space saving when passing map info between servers. extern char mapindex_cfgfile[80]; #define MAX_MAPINDEX 2000 //Some definitions for the mayor city maps. #define MAP_PRONTERA "prontera" #define MAP_GEFFEN "geffen" #define MAP_MORROC "morocc" #define MAP_ALBERTA "alberta" #define MAP_PAYON "payon" #define MAP_IZLUDE "izlude" #define MAP_ALDEBARAN "aldebaran" #define MAP_LUTIE "xmas" #define MAP_COMODO "comodo" #define MAP_YUNO "yuno" ..... i followed everyting, and 1 question how about in Client Side? Quote
Mad Walker Posted August 17, 2013 Posted August 17, 2013 add the map inside your data folder, follow the mapresnametable format so you'll have a name for your map when you type /where. Else you'll see Unknown Area For more information go http://rathena.org/wiki/Custom_Maps Quote
Yoona Posted August 17, 2013 Author Posted August 17, 2013 (edited) Actually i already did that right now, but still i dont know why i cant warp. should i run map_cache? I can warp now, but error pop out Edited August 17, 2013 by Yoona Quote
Mad Walker Posted August 17, 2013 Posted August 17, 2013 I mean print screen then post it here? So we can have a much more understanding on your problem Quote
Question
Yoona
The first thing i did was this
i download a map name Hallow01 and i got the files
1.Hallow01,extra
2.Hallow01.gat
3.Hallow01.gnd
4.Hallow01.rsw
5.Hallow01.sprites
and a bitmap picture.
then i go to my server side
i open trunk/db/map_index, then i put it like this
halloween 1251
then the next is
trunk/conf/maps_athena, then i put it like this
map: halloween
and now i open WeeMapCache - Shinryo
I open my trunk/db/pre/map_cache.dat i add the Hallow01.gat on it and save it.
now, i open my src/map/atcommand.c and i do it like this
{ MAP_HALLOW, 110, 39 }, // 36=Hallow
and this
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.