Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hlstats and halflife dedicated server problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
KShots
Guru
Guru


Joined: 09 Oct 2003
Posts: 415
Location: Florida

PostPosted: Tue Mar 09, 2004 1:08 pm    Post subject: hlstats and halflife dedicated server problems Reply with quote

Just recently installed hlstats and caught a 10-step process of what to do... which was quickly swamped out by another ebuild. Luckily, I found the file that the 10-step process came from and followed it... but I can't get it to quite function correctly. Here's what I've got:
Code:
root@gorgon rich # cat /usr/portage/games-server/hlstats/hlstats-1.20.ebuild
...
...
pkg_postinst() {
        einfo "To setup:"
        einfo " 1. \`mysqladmin create hlstats\`"
        einfo " 2. \`mysql hlstats < ${GAMES_DATADIR}/${PN}/hlstats.sql\`"
        einfo " 3. \`mysql hlstats < ${GAMES_DATADIR}/${PN}/gamesupport_GAME.sql\`"
        einfo "     so if you want cstrike support, replace 'GAME' with 'cstrike'"
        einfo " 4. Edit ${GAMES_SYSCONFDIR}/hlstats.conf"
        einfo " 5. Edit /home/httpd/htdocs/hlstats.php"
        einfo " 6. \`rc-update add hlstats default\`"
        einfo " 7. \`/etc/init.d/hlstats start\`"
        einfo " 8. Edit the cfg files of the game servers you want to track ..."
        einfo "     add these lines to your config file:"
        einfo "      log on"
        einfo "      logaddress 1.2.3.4 27500"
        einfo "      (replace 1.2.3.4 with the IP of the server hlstats is running on)"
        einfo " 9. If you want daily awards, setup a cronjob to run hlstats-awards.pl"
        einfo "     for example, run \`crontab -e\` and add this entry:"
        einfo "      30 00 * * *     ${GAMES_BINDIR}/hlstats-awards.pl"
        einfo " 10. Finally !  Start up the server and after a while goto"
        einfo "      http://1.2.3.4/hlstats.php"
        einfo "      (replace 1.2.3.4 with the IP of the server hlstats is running on)"
}
From /usr/portage/eclass/games.eclass:
GAMES_DATADIR="/usr/share/games"
GAMES_SYSCONFDIR="/etc/games"
GAMES_BINDIR="/usr/games/bin"
From common sense, PN must be "hlstats" (I couldn't trace the reference)
So I went through step-by-step (I had to add "-p" to mysql commands so I could log in) and everything worked up till step 10... which I made a workaround for by moving the target into my web space (It seemed to work). Now, when I recall the screen for hlds-cstrike, I get:
Code:
Auto-restarting the server on crash

Console initialized.
Protocol version 46
Exe version 3.1.1.1
Exe build: 22:35:19 Apr 29 2003 (2378)
Auth Server
Server IP address 127.0.0.1:27015
Unable to open logfiles under logs/L0309
Logging disabled
logaddress:  127.0.0.1:27500
Unable to open logfiles under logs/L0309
Logging disabled
logaddress:  127.0.0.1:27500
Master server communication disabled.
Looks like it means the log didn't work, so hlstats won't work. Any ideas?
_________________
Life without passion is death in disguise
Back to top
View user's profile Send private message
KShots
Guru
Guru


Joined: 09 Oct 2003
Posts: 415
Location: Florida

PostPosted: Tue Apr 20, 2004 12:51 pm    Post subject: Reply with quote

Well... It's been 1 1/2 months... any ideas from anywhere/one? Or is this hopeless and I should just uninstall the thing?
_________________
Life without passion is death in disguise
Back to top
View user's profile Send private message
soth
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 206

PostPosted: Thu Jul 21, 2005 9:14 pm    Post subject: Reply with quote

I'm about to try it out in the next week or so.
Will tell about my experiences if I get a reply in this thread after that... lest I forget it =)
_________________
- Never argue with an idiot. They just drag you down to your level and beat you with experience.

Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum