EOSERV Forum > EOSERV > Harvest System [Tutorial]
Topic is locked.
Page: << 1 2 >>
Harvest System [Tutorial]
Author Message
Post #41411 Re: Harvest System [Tutorial]

I get this error:

||=== eoserv, MYSQL+SQLITE ===|
src\handlers\Attack.cpp||In member function 'bool EOClient::Handle_Attack(PacketFamily, PacketAction, PacketReader&, int)':|
src\handlers\Attack.cpp|62|error: redeclaration of 'int Map'|
src\handlers\Attack.cpp|39|error: 'int Map' previously declared here|
src\handlers\Attack.cpp|62|error: redeclaration of 'int X'|
src\handlers\Attack.cpp|39|error: 'int X' previously declared here|
src\handlers\Attack.cpp|62|error: redeclaration of 'int Y'|
src\handlers\Attack.cpp|39|error: 'int Y' previously declared here|
||=== Build finished: 6 errors, 0 warnings ===|

14 years, 51 weeks ago
Post #44249 Re: Harvest System [Tutorial]

 

hey i dont see formulas_config.Read(static_cast<std::string>(this->config["FormulasFile"])); what should i do post at bottom

---
My skins dying because you're under it-
I’m done lying to myself for this.
For all the wonder in believing man it’s making me weak-
I’ll fade away & classify myself as Obsolete!
14 years, 48 weeks ago
Post #44251 Re: Harvest System [Tutorial]

Then paste it under what evers there.

14 years, 48 weeks ago
Post #44254 Re: Harvest System [Tutorial]


 

so thatll be at the bottom before endif

---
My skins dying because you're under it-
I’m done lying to myself for this.
For all the wonder in believing man it’s making me weak-
I’ll fade away & classify myself as Obsolete!
14 years, 48 weeks ago
Post #48554 Re: Harvest System [Tutorial]

Good tutorial ananas it helped. When you gave me your harvest in MSN i was to dumb to figure out how it worked. Now i understand 100% thanks bro.

14 years, 41 weeks ago
Post #49546 Re: Harvest System [Tutorial]

Edit:

never mind, i just made my own



# Harvesting Config File #
ItemID = 1
ItemAmount = 20
LocationAmount = 1
1.map   = 1
1.x        = 1
1.y        = 1
14 years, 39 weeks ago
Post #49718 Re: Harvest System [Tutorial]

-------------- Build: SQLITE in eoserv ---------------

Precompiling header: ..\src\handlers\handlers.h
In file included from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:10:
../src/stdafx.h:22:29: tr1/unordered_map: No such file or directory
In file included from ../src/stdafx.h:31,
                 from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:10:
../src/util.hpp:595: error: `std::tr1' has not been declared
../src/util.hpp:595: error: `unordered_map' has not been declared
../src/util.hpp:595: error: expected `,' or `...' before '<' token
../src/util.hpp:595: error: ISO C++ forbids declaration of `parameter' with no type
In file included from ../src/stdafx.h:41,
                 from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:10:
../src/hook.hpp:51: error: `std::tr1' has not been declared
../src/hook.hpp:51: error: ISO C++ forbids declaration of `unordered_map' with no type
../src/hook.hpp:51: error: expected `;' before '<' token
../src/hook.hpp: In constructor `Hook_Call::Hook_Call(HookManager&, std::string)':
../src/hook.hpp:84: error: 'class HookManager' has no member named 'hooks'
../src/hook.hpp: In member function `Hook_Call& Hook_Call::operator[](T)':
../src/hook.hpp:97: error: 'class HookManager' has no member named 'hooks'
In file included from ../src/stdafx.h:44,
                 from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:10:
../src/socket.hpp: At global scope:
../src/socket.hpp:297: error: `hash' is not a template
../src/socket.hpp:298: error: explicit specialization of non-template `std::tr1::hash'
In file included from ../src/world.hpp:12,
                 from ../src/guild.hpp:12,
                 from ../src/character.hpp:12,
                 from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:12:
../src/config.hpp:16: error: expected template-name before '<' token
../src/config.hpp:16: error: expected `{' before '<' token
../src/config.hpp:16: error: expected unqualified-id before '<' token
In file included from ../src/world.hpp:13,
                 from ../src/guild.hpp:12,
                 from ../src/character.hpp:12,
                 from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:12:
../src/database.hpp:70: error: `unordered_map' is not a member of `std::tr1'
../src/database.hpp:70: error: `unordered_map' is not a member of `std::tr1'
../src/database.hpp:70: error: template argument 1 is invalid
../src/database.hpp:70: error: expected `{' before '>' token
../src/database.hpp:70: error: expected unqualified-id before '>' token
../src/database.hpp:165: error: field `callbackdata' has incomplete type
In file included from ../src/guild.hpp:12,
                 from ../src/character.hpp:12,
                 from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:12:
../src/world.hpp:99: error: field `config' has incomplete type
../src/world.hpp:100: error: field `admin_config' has incomplete type
../src/world.hpp:101: error: field `drops_config' has incomplete type
../src/world.hpp:102: error: field `shops_config' has incomplete type
../src/world.hpp:103: error: field `arenas_config' has incomplete type
../src/world.hpp:104: error: field `formulas_config' has incomplete type
../src/world.hpp:105: error: field `harvs_config' has incomplete type
../src/world.hpp:106: error: field `home_config' has incomplete type
../src/world.hpp:107: error: field `spells_config' has incomplete type
../src/world.hpp:108: error: field `warps_config' has incomplete type
../src/world.hpp:109: error: field `npcsay_config' has incomplete type
../src/world.hpp:110: error: field `effects_config' has incomplete type
../src/world.hpp:111: error: field `pet_config' has incomplete type
../src/world.hpp:112: error: field `fish_config' has incomplete type
../src/world.hpp:113: error: field `magicscroll_config' has incomplete type
../src/world.hpp: In static member function `static bool World::ScriptRegister(ScriptEngine&)':
../src/world.hpp:187: error: 'class World' has no member named 'config'
../src/world.hpp:188: error: 'class World' has no member named 'admin_config'
../src/world.hpp:189: error: 'class World' has no member named 'drops_config'
../src/world.hpp:190: error: 'class World' has no member named 'shops_config'
../src/world.hpp:191: error: 'class World' has no member named 'arenas_config'
../src/world.hpp:192: error: 'class World' has no member named 'formulas_config'
../src/world.hpp:193: error: 'class World' has no member named 'home_config'
In file included from ../src/character.hpp:12,
                 from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:12:
../src/guild.hpp: At global scope:
../src/guild.hpp:86: error: using-declaration for non-member at class scope
../src/guild.hpp:86: error: expected `;' before '<' token
../src/guild.hpp:87: error: using-declaration for non-member at class scope
../src/guild.hpp:87: error: expected `;' before '<' token
In file included from C:\Users\Learner\Desktop\Server\src\handlers\handlers.h:12:
../src/character.hpp:249: error: `std::tr1::unordered_map' has not been declared
../src/character.hpp:249: error: expected `,' or `...' before '<' token
../src/character.hpp:249: error: ISO C++ forbids declaration of `parameter' with no type
Process terminated with status 1 (0 minutes, 6 seconds)
50 errors, 0 warnings
 

14 years, 39 weeks ago
Post #55162 Re: Harvest System [Tutorial]


ananas i cant find this

this->formulas_config.Read(static_cast<std::string>(this->config["FormulasFile"]));

and i find this only

this->formulas_config.Read(this->config["FormulasFile"]);

so wat should i do?

(i am using rev189)

14 years, 28 weeks ago
Post #93198 Re: Harvest System [Tutorial]

this is abit avanced for meh ;o dont understand it lol

13 years, 46 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > EOSERV > Harvest System [Tutorial]