EQEmu\templates .html files don't work?
So, I tossed "C:\EQEmu\templates" to my htdocs folder and loaded up localhost/templates which results in failure. The php portion of them don't seem to function. Not on any server box I put it onto, the apache+php i setup myself, or the xampp on this system.
http://content.screencast.com/users/...05-04_0228.png It looks really nifty and useful, but appears useless? Is this a Work In Progress, or intended to be functional? |
I could be wrong, but those might be for the HTTP service you can enable on your server:
<!-- Enable and set the port for the HTTP service. Defaults are shown --> <http port="9080" enabled="true" mimefile="mime.types" /> |
Yes that is exactly what it is for, and I don't think it has to be moved to work. Works fine for me without moving, anyway. You just go to localhost:9080 or whatever your URL is and the port you set in the config line posted by lerxst2112.
|
Trev, could you post some more details, or is there a guide how to use this thing? What exactly does it allows you to do?
|
Quote:
|
It asks for a login, and I have no clue at all what info to provide it.
It's rejected: MySQL, Player Account, LoginServer account, default admin/password combinations. |
It is looking for an account/password pair from the account table. If your account doesn't have a password assigned use something like this to set one:
UPDATE account SET PASSWORD=MD5("password") WHERE NAME="admin" You also have to have a status of 100 or higher. |
Missing password was the problem!
|
ah cool i got it
how update is this thing? considering all the changes to Db sql over the years? |
It still has the full functionality that it always has. Some of the features in it were never fully implemented, but it still has uses. Works well for changing account status or looking at who is on and what zones are in use and such.
|
I am having same problem as OP. the pages aren't loading properly. Also the only way I can access them is by launching the http files from the templates folder. If i try accessing via localhost:9080 I get page not found.
I am trying to figure out why when I start my server the HTTP service is disabled even though I have enabled="true" From logs: [05.05. - 19:19:57] [WORLD__INIT] HTTP world service disabled. From eqemu_config.xml: <http port="9080" enabled="true" mimefile="mime.types" /> |
Well, without seeing the rest of your config file it's hard to say anything else other than "you're doing it wrong." :)
|
Is that the only point of failure? Looked fine to me.
Do I need Apache running, special configs, etc? Code:
<?xml version="1.0"?> |
Did you set up an alias in your httpd.conf file to point to the directory?
|
That config looks correct, but for whatever reason it isn't picking up the "enabled".
Your best bet is to debug it. The code that reads those values is near the end of EQEmuConfig::do_world. The world server is the http server, you don't need Apache or any other configuration or aliases for it to work. |
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 01:31 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.