Author | Message | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ![]() Hello guys and girls! If I forgot anything please let me know. I had to do this in a hurry ;p Also note: You do need spells to get this to work ;p --- "Pineapples and shit."
|
| ![]() Well, I'm first post, I'll be first to say "Nice release". My post is to say I get errors =} ||=== eoserv, MYSQL+SQLITE ===| s EOserv Rev 189 v0.2\src\character.cpp|20|warning: extra tokens at end of #include directive| s EOserv Rev 189 v0.2\src\handlers\Item.cpp||In member function 'bool EOClient::Handle_Item(PacketFamily, PacketAction, PacketReader&, int)':| s EOserv Rev 189 v0.2\src\handlers\Item.cpp|49|warning: suggest parentheses around assignment used as truth value| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp:22|13|instantiated from here| s EOserv Rev 189 v0.2\src\container\ptr_vector.hpp|315|error: invalid covariant return type for 'T* PtrVector<T>::FastIterator::Dereference() [with T = NPC, T* = NPC*]'| s EOserv Rev 189 v0.2\src\container\ptr_vector.hpp|135|error: overriding 'virtual Shared* GenericPtrVector::FastIterator::Dereference()'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp||In member function 'bool EOClient::Handle_StatSkill(PacketFamily, PacketAction, PacketReader&, int)':| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|22|error: invalid use of incomplete type 'struct Map'| s EOserv Rev 189 v0.2\src\fwd\map.hpp|10|error: forward declaration of 'struct Map'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|24|error: invalid use of incomplete type 'struct NPC'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|10|error: forward declaration of 'struct NPC'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|24|error: invalid use of incomplete type 'struct NPC'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|10|error: forward declaration of 'struct NPC'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|24|error: invalid use of incomplete type 'struct NPC'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|10|error: forward declaration of 'struct NPC'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|31|error: invalid use of incomplete type 'struct NPC'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|10|error: forward declaration of 'struct NPC'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|32|error: invalid use of incomplete type 'struct NPC'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|10|error: forward declaration of 'struct NPC'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp:34|21|instantiated from here| s EOserv Rev 189 v0.2\src\container\ptr_vector.hpp|315|error: invalid covariant return type for 'T* PtrVector<T>::FastIterator::Dereference() [with T = NPC_Spell_Trade, T* = NPC_Spell_Trade*]'| s EOserv Rev 189 v0.2\src\container\ptr_vector.hpp|135|error: overriding 'virtual Shared* GenericPtrVector::FastIterator::Dereference()'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp||In member function 'bool EOClient::Handle_StatSkill(PacketFamily, PacketAction, PacketReader&, int)':| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|34|error: invalid use of incomplete type 'struct NPC'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|10|error: forward declaration of 'struct NPC'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|36|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|37|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|38|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|39|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|40|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|41|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|42|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|43|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|44|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|45|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|46|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|47|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|48|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|64|error: invalid use of incomplete type 'struct NPC'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|10|error: forward declaration of 'struct NPC'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|66|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\handlers\StatSkill.cpp|66|error: invalid use of incomplete type 'struct NPC_Spell_Trade'| s EOserv Rev 189 v0.2\src\fwd\npc.hpp|17|error: forward declaration of 'struct NPC_Spell_Trade'| ||More errors follow but not being shown.| ||Edit the max errors limit in compiler options...| ||=== Build finished: 50 errors, 2 warnings ===|
|
| ![]() Has to do something with including certain files. Add at the top of StatSkill.cpp #include "map.hpp" Make sure you got this added at the top of npc.cpp. If you are missing an include add it; --- "Pineapples and shit."
|
| ![]() Wtf this is really awesome. keep the good work going Come on he deserves a +1 isn't it? --- opensource isometric game engine ~ www.avac-engine.blogspot.com
|
| ![]() Ananas, That didn't help I still get the errors, I'll try re adding it completely(Fresh Rev) and see what happenens.
|
| ![]() xIFearlessIxx posted: (6th Sep 2010 05:48 pm) Fresh rev? Its skill master. Skill master needs spells. Did you do everything the tutorial said? Also the src/fwd/npc.hpp --- "Pineapples and shit."
|
| ![]() I can compile this just fine but when I click on the npc that I set in the config file nothing happens. Do you know what I'm doing wrong? I have added the ## SpellsFile (string) # File containing Spell settings SpellsFile = ./data/skills.ini to the config file and I'm sure I have set up the skills.ini properly aswell.
|
| ![]() Can you go ingame and to $rehash then press the NPC Again. Also (Sorry if this sounds dumb) are you sure that the NPC Has a skill master ID :p --- "Pineapples and shit."
|
| ![]() Ananas posted: (6th Sep 2010 06:02 pm) I tried rehashing but it didn't work. Here is my skills.ini ## Aeven Skill Master ##
116.name = Aven Skill Master
116.learn = 4,3000,7,0,0,0,0,0,0,0,0,0,0,0, 2,2500,10,0,0,0,0,0,0,0,0,0,0,0
|
| ![]() Looks fine to me. So you added in everything the toturial said + the fact that you got the world.cpp and world.hpp correct? --- "Pineapples and shit."
|
| ![]() Thanks again Ananas!!
|
| ![]()
the rest of the requirements works prefectly fine except for class requirements.? --- "With your feet steady and firm on the ground soar high and ignore limitations" -Bladex EOSERV Class : Pixel Artist, Grammar Nazi, Server Owner, Mapping Artist, Server Coder, Test Player, The Game Maker
|
| ![]() Bladex posted: (7th Sep 2010 07:04 am) Check your StatSkill.cpp It need certain data for spell->clas, But when I added that the whole data of spells wen't corrupt and if you had 5K for a spell it turned into 302930 Coins and you had to be level 19 if you had your level as 10. Something like that. --- "Pineapples and shit."
|
| ![]()
case PACKET_OPEN: // Talked to a skill master NPC short id = reader.GetShort(); UTIL_PTR_VECTOR_FOREACH(this->player->character->map->npcs, NPC, npc) this->player->character->npc = *npc; reply.SetID(PACKET_STATSKILL, PACKET_OPEN); UTIL_PTR_VECTOR_FOREACH(npc->spell_shop, NPC_Spell_Trade, spell) reply.AddShort(spell->clas); // This i s what i tried adding but it ended up stuffing up... --- "With your feet steady and firm on the ground soar high and ignore limitations" -Bladex EOSERV Class : Pixel Artist, Grammar Nazi, Server Owner, Mapping Artist, Server Coder, Test Player, The Game Maker
|
| ![]() lewis999 posted: (6th Sep 2010 06:11 pm)Ananas posted: (6th Sep 2010 06:02 pm) have you set the NPC to "skill master" in the pub files (: ? Bladex posted: (7th Sep 2010 09:45 am) Ananas posted: (7th Sep 2010 09:29 am)^^ 'swhy he didnt add it (:Bladex posted: (7th Sep 2010 07:04 am) --- If money doesn't grow on trees, then why do banks have branches? |