EOSERV Forum > EOSERV > lewis999's EOserv rev 189
Topic is locked.
Page: << 1 2 3 4 5 6 ... 28 29 >>
lewis999's EOserv rev 189
Author Message
Post #47520 Re: EOserv rev 189 Compiled

You should read Apollo's guide on how to work with EO+ Quest system.

https://eoserv.net/forum/topic/9347

---
"Pineapples and shit."
14 years, 35 weeks ago
Post #47521 Re: EOserv rev 189 Compiled

I figured out my problem.  Nevermind me.

14 years, 35 weeks ago
Post #47523 Re: EOserv rev 189 Compiled

Sorry about the quest files not being in the project, I did add them but I forgot to save the project before I compressed it :p

Has anyone got any ideas about what I could change or add in the next version? All I can think of is to add options in the config file to disable/enable specific things I've added 

eg:

 #player pet commands (to disable change the value to 0)

player_pet_commands = 1


All I think i'd need to do is add an if statement before the code like this:

if (static_cast<int>(this->server->world->config["player_pet_commands"] = 1)

{

[Code for player pet commands]

}


Do you think this would work?

14 years, 35 weeks ago
Post #47528 Re: EOserv rev 189 Compiled

if (static_cast<int>(this->server->world->config["player_pet_commands"] == 1)

You forgot an =.

one = is changing a value into it. 2 ='s means checking the value.

---
"Pineapples and shit."
14 years, 35 weeks ago
Post #47540 Re: EOserv rev 189 Compiled

I'd always put in the absolute value map fix into any rev.  It doesn't affect anything whatsoever if it's not necessary, and yet when it is necessary, it doesn't turn into a problem because you already put in the fix! :V

https://eoserv.net/forum/topic/9280

edit: Also, maybe there's somewhere something that makes classes in this game actually work?

14 years, 35 weeks ago
Post #47561 Re: EOserv rev 189 Compiled

See if you can add the fixes to my spell system. See if you know what needs to be done. One thing is timers. You did a good job to make hp etc unsigned. By the way the couts where there for a reason. They where not a bug or glitch.

---
https://www.youtube.com/watch?v=d_DFVzxsEUc
14 years, 35 weeks ago
Post #47567 Re: EOserv rev 189 Compiled

@Ananas

Thanks for telling me this :P As I've said before I'm not much of a programmer and I know nothing about c++.

I've just done a quick proof of concept thing using the Quake command (because it was at the bottom xD) just added && static_cast<int>(this->server->world->config["Quake_command"]) == 1 

it's basic but I hope it can be useful once I've made something for all the major features I've added. 


@Blade

thanks for showing me this. I'v added it now, it will be in the next release (v0.4)


@Madao

I would give it a shot but as I said before I couldn't code 5 lines in c++ without getting 50 syntax errors. I'll have a look but I highly doubt I'll even see anything wrong never mind be able to fix it.


14 years, 35 weeks ago
Post #47582 Re: EOserv rev 189 Compiled

when is 0.4 coming out

14 years, 35 weeks ago
Post #47585 Re: EOserv rev 189 Compiled

Can you send me a file called MSVCR71.dll Because i cant use your Database Browser because i dont got the file and im having issue's when switching over to mysql. If you cant send me that file, can you tell me what you downloaded to get that?

And if it was SQLite, can you send me to the site?

---
Owner of Endless Online Insanity
Looking for: 2 Artists
Darkrulerjoe
14 years, 35 weeks ago
Post #47586 Re: EOserv rev 189 Compiled

http://sqlitebrowser.sourceforge.net/

I'd suggest for any SQLite user to download the latest one anyway, that old one that Lewis has in there is...

well...

Old.

14 years, 35 weeks ago
Post #47588 Re: EOserv rev 189 Compiled

Thanks for the help on this, it saved me a lot of trouble looking around on wrong sites Lol. I can see sqlite can be easier then Mysql just by looking at them.

So with this rev, the quest system of Addison's is already in here? So i dont have to add that in and i could just try to make my own quests?

Cant wait for the next rev Lewis, keep up the good work.

---
Owner of Endless Online Insanity
Looking for: 2 Artists
Darkrulerjoe
14 years, 35 weeks ago
Post #47594 Re: EOserv rev 189 Compiled

Quest system's already in here.

I use SQLite myself, not because it's simpler (I don't fucking know the difference) but the fact of the matter is, I use Windows, and MySQL has shitty support for Windows or something I don't even fucking know, but every time I shut down my computer I have to reinstall MySQL, and so does the co-owner of my server.

TL;DR: We ragequit out of MySQL because of shitty Windows support.

14 years, 35 weeks ago
Post #47596 Re: EOserv rev 189 Compiled

i got this error and i dident change anything in the file help please


C:\Documents and Settings\Owner\Desktop\Trunk\src\player.hpp|62|warning: extra tokens at end of #include directive|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp||In member function 'bool EOClient::Handle_Spell(PacketFamily, PacketAction, PacketReader&, int)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|18|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|19|warning: unused variable 'unk2'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|20|warning: unused variable 'unk3'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|21|warning: unused variable 'unk4'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|45|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|46|warning: unused variable 'unk2'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|116|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|117|warning: unused variable 'something1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|250|warning: unused variable 'unk0'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|251|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|252|warning: unused variable 'unk2'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|253|warning: unused variable 'unk3'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp||In member function 'bool EOClient::Handle_Talk(PacketFamily, PacketAction, PacketReader&, int)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|147|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|167|warning: unused variable 'victim'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|440|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|752|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\main.cpp||In function 'int main(int, char**)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\main.cpp|568|warning: 'active_clients' may be used uninitialized in this function|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp||In member function 'bool Map::AttackPKSpell(Character*, int, int)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp|1890|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp||In member function 'void Map::LoadArena()':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp|326|warning: 's' may be used uninitialized in this function|
C:\Documents and Settings\Owner\Desktop\Trunk\src\sln.hpp|41|warning: 'script_DEBUG' defined but not used|
..\obj\Release\src\character.o:character.cpp:(.text+0x57ec)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x5cfd)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x70f6)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x74d2)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x7c26)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\eoclient.o:eoclient.cpp:(.text+0x1102)||undefined reference to `EOClient::Handle_Quest(PacketFamily, PacketAction, PacketReader&, int)'|
..\obj\Release\src\eoserver.o:eoserver.cpp:(.text+0x887)||undefined reference to `EOClient::Handle_Quest(PacketFamily, PacketAction, PacketReader&, int)'|
..\obj\Release\src\handlers\Book.o:Book.cpp:(.text+0x3f3)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\map.o:map.cpp:(.text+0x607f)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\map.o:map.cpp:(.text+0xc1cf)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\npc.o:npc.cpp:(.text+0x5538)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\world.o:world.cpp:(.text+0x8deb)||undefined reference to `Quest::Reload(World*)'|
..\obj\Release\src\world.o:world.cpp:(.text+0xa38e)||undefined reference to `Quest::Quest(short, World*)'|
..\obj\Release\src\world.o:world.cpp:(.text+0xcf86)||undefined reference to `Quest::Quest(short, World*)'|
||=== Build finished: 14 errors, 21 warnings ===|


Thank man very helpful :P

14 years, 35 weeks ago
Post #47598 Re: EOserv rev 189 Compiled

@lewis999 - nice job on the rev, but rebuilding to mysql only is a problem, i got the following errors

== fixed thnx! ==


i got a small problem though

when i give a spell to a player the following happens..
1st (not that much of a prob) spell is added with lvl 0 , cant type after , if i drop 1g i can type again
2nd after leveling i can't set any skill points @ spells , client refuses to set the points
as for now i fixed it by pushing a lvl 100 to a spell
anyone knows how to fix this so i can turn it back to normal again?




14 years, 35 weeks ago
Post #47599 Re: EOserv rev 189 Compiled
maori posted: (31st Aug 2010 06:14 am)

i got this error and i dident change anything in the file help please


C:\Documents and Settings\Owner\Desktop\Trunk\src\player.hpp|62|warning: extra tokens at end of #include directive|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp||In member function 'bool EOClient::Handle_Spell(PacketFamily, PacketAction, PacketReader&, int)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|18|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|19|warning: unused variable 'unk2'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|20|warning: unused variable 'unk3'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|21|warning: unused variable 'unk4'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|45|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|46|warning: unused variable 'unk2'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|116|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|117|warning: unused variable 'something1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|250|warning: unused variable 'unk0'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|251|warning: unused variable 'unk1'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|252|warning: unused variable 'unk2'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Spell.cpp|253|warning: unused variable 'unk3'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp||In member function 'bool EOClient::Handle_Talk(PacketFamily, PacketAction, PacketReader&, int)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|147|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|167|warning: unused variable 'victim'|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|440|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\handlers\Talk.cpp|752|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\main.cpp||In function 'int main(int, char**)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\main.cpp|568|warning: 'active_clients' may be used uninitialized in this function|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp||In member function 'bool Map::AttackPKSpell(Character*, int, int)':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp|1890|warning: comparison between signed and unsigned integer expressions|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp||In member function 'void Map::LoadArena()':|
C:\Documents and Settings\Owner\Desktop\Trunk\src\quest.hpp|326|warning: 's' may be used uninitialized in this function|
C:\Documents and Settings\Owner\Desktop\Trunk\src\sln.hpp|41|warning: 'script_DEBUG' defined but not used|
..\obj\Release\src\character.o:character.cpp:(.text+0x57ec)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x5cfd)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x70f6)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x74d2)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\character.o:character.cpp:(.text+0x7c26)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\eoclient.o:eoclient.cpp:(.text+0x1102)||undefined reference to `EOClient::Handle_Quest(PacketFamily, PacketAction, PacketReader&, int)'|
..\obj\Release\src\eoserver.o:eoserver.cpp:(.text+0x887)||undefined reference to `EOClient::Handle_Quest(PacketFamily, PacketAction, PacketReader&, int)'|
..\obj\Release\src\handlers\Book.o:Book.cpp:(.text+0x3f3)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\map.o:map.cpp:(.text+0x607f)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\map.o:map.cpp:(.text+0xc1cf)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\npc.o:npc.cpp:(.text+0x5538)||undefined reference to `Quest::GetState(std::string)'|
..\obj\Release\src\world.o:world.cpp:(.text+0x8deb)||undefined reference to `Quest::Reload(World*)'|
..\obj\Release\src\world.o:world.cpp:(.text+0xa38e)||undefined reference to `Quest::Quest(short, World*)'|
..\obj\Release\src\world.o:world.cpp:(.text+0xcf86)||undefined reference to `Quest::Quest(short, World*)'|
||=== Build finished: 14 errors, 21 warnings ===|

Sorry about that, it's my fault.
in the latest version I forgot to save the project files so to re-compile you need to add the 4 quest files.

Right click on src in code::blocks and add \src\quest.cpp and \src\quest.hpp

Right click on handlers and add \src\handlers\quest.cpp

Go down to headers, right click on fwd and add \src\fwd\Quest.hpp

After you have done that you should be able to compile. 



@wizzle
Go to project>build options  click on mysql in the bar on the left. Then go to linker settings and add sqlite3. After that you might need to do what I said above.

14 years, 35 weeks ago
Page: << 1 2 3 4 5 6 ... 28 29 >>
Topic is locked.
EOSERV Forum > EOSERV > lewis999's EOserv rev 189