Jump to content

Recommended Posts

Posted

When compiling mangos with AHBOT,PLAYERBOT and MMAPS i get

CXX Map.o

../../../src/game/Map.cpp: In member function "void Map::LoadMapAndVMap(int, int)":

../../../src/game/Map.cpp:137: error: "_parent" was not declared in this scope

../../../src/game/Map.cpp:137: error: expected primary-expression before "(" token

../../../src/game/Map.cpp:137: error: expected primary-expression before "id"

../../../src/game/Map.cpp:137: error: expected primary-expression before "expiry"

../../../src/game/Map.cpp:137: error: expected primary-expression before "InstanceId"

../../../src/game/Map.cpp:137: error: expected primary-expression before "SpawnMode"

../../../src/game/Map.cpp:137: error: expected primary-expression before "*" token

../../../src/game/Map.cpp:138: error: expected ";" before ":" token

../../../src/game/Map.cpp:3454: error: expected ‘}’ at end of input

make[4]: *** [Map.o] Error 1

Here's the code in question:

Line 137: Map::Map(uint32 id, time_t expiry, uint32 InstanceId, uint8 SpawnMode, Map* _pa$

: i_mapEntry (sMapStore.LookupEntry(id)), i_spawnMode(SpawnMode),

i_id(id), i_InstanceId(InstanceId), m_unloadTimer(0),

m_VisibleDistance(DEFAULT_VISIBILITY_DISTANCE), m_instanceSave(NULL),

m_activeNonPlayersIter(m_activeNonPlayers.end()),

i_gridExpiry(expiry), m_parentMap(_parent ? _parent : this),

m_lastUpdateTime(getMSTime()) // expected that ne$

m_navMesh(NULL)

Anyone know what I'm doing wrong?

I'm pretty new to C/C++ in general, so sorry if it's something stupid that I missed. this is on Ubuntu server 10.10

Posted

They're not actually cut off, I just copied and pasted what was on the screen, I'm doing everything through a terminal so I use nano to edit files. In nano $ just means there's more to the line.

Here's the full code without the cropping off:

Map::Map(uint32 id, time_t expiry, uint32 InstanceId, uint8 SpawnMode, Map* _parent)

: i_mapEntry (sMapStore.LookupEntry(id)), i_spawnMode(SpawnMode),

i_id(id), i_InstanceId(InstanceId), m_unloadTimer(0),

m_VisibleDistance(DEFAULT_VISIBILITY_DISTANCE), m_instanceSave(NULL),

m_activeNonPlayersIter(m_activeNonPlayers.end()),

i_gridExpiry(expiry), m_parentMap(_parent ? _parent : this),

m_lastUpdateTime(getMSTime()) // expected that next update call will not long after map creating

m_navMesh(NULL)

Thanks for the reply though. Any other ideas?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use