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

That goes through home.ini but I'm afraid lewis forgot to add my .ini location file.

Add above

## HomeFile (string)
# Spawn point and innkeeper data
HomeFile = ./data/home.ini


The followed lines in your config.ini


## HarvsFile (string)
# Ananas his harvesting file
HarvsFile = ./data/harvs.ini

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

When ever i tried logging in i keep getting this error.

[ERR] EOSERV is dying! Segmentation fault

I got this error a long time ago before on some one else's revision, so i stopped using it. But maybe you know what this means and how to fix it, i already tried remaking the database.

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

Blade you are aware that the "glitch in madaos rev" was intentionally put there. Its not even a glitch, he is just using cout to output the players direction. Anyways nice job with the rev. 

 

---
Love you too.
14 years, 36 weeks ago
Post #47472 Re: EOserv rev 189 Compiled

Credits to Ananas for this.

We tested the situation and it seems that only upon $rehash would my home.ini file work.

Based on that, we found solution to this one is as follows:


In world.hpp, search for "Config harvs_config;" (without the quotes)

Move it below the home_config line, next to the one about harvesting.  If there is no line about harvesting, make one below it. (Config harvesting_config;)


In world.cpp, search for the word "try" (without the quotes)

Move this->harvs_config.Read(static_cast<std::string>(this->config["HarvsFile"])); to below the line about the home file, right above the harvesting file.  This should be around line 300-something

The exact same thing occurs in the same file at line 700-something, except in this one, there is no harvesting file. Make it so there is a similar reference to the harvesting file.


Now, in your config.ini file, paste this:

## HarvestingFile (string)

# File containing harvesting settings

HarvestingFile = ./data/harvesting.ini

below the homefile information.


Pretty sure this alone solved the problem for me, as I compared the files Ananas sent me and I see no difference between them other than this.

edit: @newguy: no u
It was PUT there intentionally (maybe) but I'm pretty sure he didn't ACTUALLY MEAN to release a source that floods your server window with numbers whenever anyone attacks or casts a spell.  That's just silly.
14 years, 35 weeks ago
Post #47483 Re: EOserv rev 189 Compiled
Blade posted: (30th Aug 2010 01:28 am)

Credits to Ananas for this.

We tested the situation and it seems that only upon $rehash would my home.ini file work.

Based on that, we found solution to this one is as follows:


In world.hpp, search for "Config harvs_config;" (without the quotes)

Move it below the home_config line, next to the one about harvesting.  If there is no line about harvesting, make one below it. (Config harvesting_config;)


In world.cpp, search for the word "try" (without the quotes)

Move this->harvs_config.Read(static_cast<std::string>(this->config["HarvsFile"])); to below the line about the home file, right above the harvesting file.  This should be around line 300-something

The exact same thing occurs in the same file at line 700-something, except in this one, there is no harvesting file. Make it so there is a similar reference to the harvesting file.


Now, in your config.ini file, paste this:

## HarvestingFile (string)

# File containing harvesting settings

HarvestingFile = ./data/harvesting.ini

below the homefile information.


Pretty sure this alone solved the problem for me, as I compared the files Ananas sent me and I see no difference between them other than this.

edit: @newguy: no u
It was PUT there intentionally (maybe) but I'm pretty sure he didn't ACTUALLY MEAN to release a source that floods your server window with numbers whenever anyone attacks or casts a spell.  That's just silly.

Thanks :D
I'll fix it for version 0.3. It might be a while before that's released because I'm still getting errors when adding Addison's Quest system.

C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\packet.hpp||In member function 'void ENF::Read(std::string)':|
C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\packet.hpp|586|error: 'struct ENF_Data' has no member named 'type_index'|
||=== Build finished: 1 errors, 0 warnings ===|

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

at eodata.cpp search for;

newdata->type = static_cast<ENF::Type>(PacketProcessor::Number(buf[7], buf[8]));


add below that;


newdata->type_index = PacketProcessor::Number(buf[9], buf[10]);


and at eodata.hpp search for;

ENF::Type type;

and add below that;

short type_index;

and in the same file search for;

SCRIPT_REGISTER_VARIABLE("ENF_Type", type);

and place below that;

SCRIPT_REGISTER_VARIABLE("uint16", type_index);

---
"Pineapples and shit."
14 years, 35 weeks ago
Post #47491 Re: EOserv rev 189 Compiled
Ananas posted: (30th Aug 2010 08:21 am)

at eodata.cpp search for;

newdata->type = static_cast<ENF::Type>(PacketProcessor::Number(buf[7], buf[8]));


add below that;


newdata->type_index = PacketProcessor::Number(buf[9], buf[10]);


and at eodata.hpp search for;

ENF::Type type;

and add below that;

short type_index;

and in the same file search for;

SCRIPT_REGISTER_VARIABLE("ENF_Type", type);

and place below that;

SCRIPT_REGISTER_VARIABLE("uint16", type_index);


Thanks Ananas, I've fixed that and it compiles fine but when I run eoserv it can't load the quests. This is the error:

[ERR] Could not load quest file 0000¼.eqf
[ERR] Could not load quest file 0000Ü.eqf
[ERR] Could not load quest file 0000¼.eqf
[ERR] Could not load quest file 0000Ü.eqf

I've checked that my config is correct and tried both of the different quest.cpp files you posted but the 2nd one doesn't compile.
14 years, 35 weeks ago
Post #47492 Re: EOserv rev 189 Compiled

How do you name your quests? Is there a folder called quests in your data folder? Do you name quests like; 00001.eqf?


---
"Pineapples and shit."
14 years, 35 weeks ago
Post #47493 Re: EOserv rev 189 Compiled
Ananas posted: (30th Aug 2010 09:17 am)

How do you name your quests? Is there a folder called quests in your data folder? Do you name quests like; 00001.eqf?


Yes, Exactly like that, except I only have 00004.eqf (I'm using a simple wiseman Quest to test it)

\trunk\data\quests\00004.eqf
Is that right?
14 years, 35 weeks ago
Post #47494 Re: EOserv rev 189 Compiled

Just to make sure you correctly added this into config.ini

## QuestDir (string)
# Directory quests are contained
QuestDir = ./data/quests/
 
## Quests (number)
# Number of quests to attempt to load
# Should be less than 99999
Quests = 26


And also correctly coded this into world.cpp/world.hpp?


EDIT: Sometimes if you have a file called 00004.eqf < it could be that it reads it as 00004.eqf.eqf

---
"Pineapples and shit."
14 years, 35 weeks ago
Post #47495 Re: EOserv rev 189 Compiled
Ananas posted: (30th Aug 2010 09:41 am)

Just to make sure you correctly added this into config.ini

## QuestDir (string)
# Directory quests are contained
QuestDir = ./data/quests/
 
## Quests (number)
# Number of quests to attempt to load
# Should be less than 99999
Quests = 26


And also correctly coded this into world.cpp/world.hpp?


EDIT: Sometimes if you have a file called 00004.eqf < it could be that it reads it as 00004.eqf.eqf


If I remove the .eqf on the end I get this:

[ERR] Could not load quest file 0000¼.eqf
[ERR] Could not load quest file 0000Ü.eqf
[ERR] Could not load quest file 0000¼.eqf
[ERR] Could not load quest file 0000Ü.eqf
[ERR] Could not load quest file 00005.eqf
[ERR] Logic Error: basic_string::_S_create

ill re-check my word.cpp file now

EDIT:
Am I suppose to to have something like "this->drops_config.Read(this->config["DropsFile"]);" for quests or would you only need that if there is a .ini file for that quests?
14 years, 35 weeks ago
Post #47496 Re: EOserv rev 189 Compiled

If you would go ingame and try to rehash so your config files get loaded twice as in rehash.

And check if you can click on the wise man then. If so then your world.cpp/world.hpp isn't working quite well.

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

I can't get into the game because the server crashes when it tries to load the quest files. Do you think I should try to add the other quest.cpp file?

edit: I tried the other file but I get an error compiling:

C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\world.hpp||In constructor 'Quest::Quest(short int, World*)':|

C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\world.hpp|271|error: 'SAKE_SEEK' was not declared in this scope|

C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\world.hpp|274|warning: comparison between signed and unsigned integer expressions|

And when I tried to declare SAKE_SEEK I got some other random errors 

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

Mhm. You could try that. If that doesn't work I shall give you mine.


EDIT: If I search for a SAKE_SEEK It doesn't find that in my source. Only the SEEK_END.


Do note: It is Addison with help of apollo that created this quest system.

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

when i try to compile i get this:

C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\world.hpp||In constructor 'Quest::Quest(short int, World*)':|

C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\world.hpp|271|error: 'SAKE_SEEK' was not declared in this scope|

C:\Users\LewisH\Downloads\eoserv-trunk-r189\eoserv-trunk-r189\trunk\src\world.hpp|274|warning: comparison between signed and unsigned integer expressions|

How would I declare SAKE_SEEK ?

edit: I cant find it either, ill look for the aria the error is talking about (it might take a while due to the mucked up compiler pointing to the wrong place)

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