Jump to content
  • 0

Problem with Adding Map


Question

Posted

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 !

 

13 answers to this question

Recommended Posts

Posted

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"

Posted

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

Posted

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"

Posted

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"

.....
Posted

 

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? 

Posted (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 by Yoona

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...