Thanks for the help lerxst. Pretty sure that I found the issue.
WorldHTTPEnabled=false to begin with, and in the code to check, the logic is reversed so it I would have to fix the logic or else a workaround is to just set enabled to anything BUT true in the eqemu_config.xml :) Original: Code:
text = sub_ele->Attribute("enabled"); Changed to: Code:
text = sub_ele->Attribute("enabled"); |
Looks like the same is done with the TELNET service also:
Code:
text = sub_ele->Attribute("telnet"); |
You are reading the code incorrectly. The strcasecmp function returns 0 if the strings match.
http://linux.die.net/man/3/strcasecmp |
If thats the case then now I read it as:
if (text && !=0) Then I would assume it should be: Code:
text = sub_ele->Attribute("telnet"); |
!strcasecmp(text,"enabled") and strcasecmp(text,"enabled") == 0 are the same thing.
Trust me, the way it is written now works just fine. There's some reason your config isn't being read properly. My guess is you have more than one config file and you're changing the wrong one. If that is not the case, then adding some logging of the various attributes that are being read may shed some light on things. |
I added some code to debug, and everything suddenly started working as intended. Not sure what exactly changed but it's all good now. Thanks!
eqemu_config.xml Code:
<http port="9080" enabled="true" mimefile="mime.types" /> Code:
// Get the <http> element Code:
[Debug] [WORLD__INIT] Loading server configuration.. |
If I had a dollar for every time something didn't work until I added a printf that didn't change anything but for whatever reason it started working I'd be at a strip club.
|
All times are GMT -4. The time now is 08:33 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.