Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  NWN Server Online Player PHP Web Status
Author  Vladiat0r
Submitted / Updated  04-28-2005 / 05-25-2007
Category  Database Related
Expansions  NWN-1.66
Format  Module and Code
Type  Type - Player State Tracking
Includes  BioWare Standard
Forums  Link
Description
Generate a live server status webpage with a list of all players in a sortable grid. Doesn't need nwnx, odbc or mysql. Easy to add additional fields like gold, hours online, etc.
See NBDE by Knat
Grid control by ActiveWidgets
Cookies by Jason Davies
A special thanks to Jantima for suggesting to release this.
This script is released under the GPL license (see gpl.txt).

Prerequisites:
At least an ftp/http server on the gameserver, and a web server with PHP to display the status page (preferably on the same machine).

Note: the zip includes a /sql subfolder for those who want to use the NWNX/ODBC/MySQL-based system. If you want to use the /sql version, I will refer to the Database setup instructions of Lanthar D'Alton.

Module Instructions
1. Download and import player_status.erf into your module.
2. Download NBDE and import nbde.erf into your module.
3. Add ExecuteScript("player_status", OBJECT_SELF); to your module heartbeat.

If the web server and game server on separate machines, you will need to host the database/playerstatus.fpt file anonymously and set $fptfile in status.php to the URL of the hosted file as in "ftp://gameserver/playerstatus.fpt"

Web server Instructions
1. Download Grid control to your web folder.
2. Download Cookies.js script to your web folder.
3. Copy status.php to your web folder and edit the settings in it, including the paths to ActiveWidgets and cookies.js

To add additional fields you need to edit the player_status.txt and status.php in marked locations. Contact me for assistance: [email protected]


Please post links here if you implement it for your server. Feedback, comments, suggestions, questions, bug reports and votes welcome. ^^

Files

NameTypeSizeDownloads
player_status16.zipplayer_status16.zip
Submitted: 04-28-2005 / Last Updated: 06-26-2005
zip18.03Kb2498
--
SCORE OUT OF 10
9.98
13 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS

Sample screenshot.





You Must Be Logged In to Participate.
Comments (30):

1 2 3

Posted by Anonymous at 2005-07-2321:16:37    
I'm getting the following error.. I'm sure its something simple. fopen(pathto/database/playerstatus.fpt): failed to open stream: Permission denied in /var/www/localhost/htdocs/status.php on line 97 ERROR: Could not open fpt file

Posted by Anonymous at 2005-07-2321:08:41    
I'm getting the following error.. I'm sure its something simple. fopen(pathto/database/playerstatus.fpt): failed to open stream: Permission denied in /var/www/localhost/htdocs/status.php on line 97 ERROR: Could not open fpt file

Posted by Anonymous at 2005-07-2320:59:44    
I'm getting the following error.. I'm sure its something simple. fopen(pathto/database/playerstatus.fpt): failed to open stream: Permission denied in /var/www/localhost/htdocs/status.php on line 97 ERROR: Could not open fpt file

Posted by Tatus at on07/19/05
This is an awesome script. Had some issues I was unsure of (not a script kid I am :D ).. Mailed Vlad for help.. 5 minutes after he replied and within 20 minutes I had all the info I needed that were specific for the module I was trying to add a status page to.. Awesome script and great help.. Deffo a 10 score from me..

Posted by Vladiat0r at 15:43:57    Voted10.00
Apparently, NWN doesn't like it when the FPT file is being read at the same time as NWN is writing to it--causing a crash. -_- If you set INTERVAL to 10 (to update every once a minute) it alleviates the issue somewhat. The alternative is to setup and configure NWNX, ODBC and MySQL and use the /sql version of the script, which unfortunately isn't exactly as simple. :S The only alternative I can think of is using the nwserverLog1.txt file instead, but that has its own issues... _________________________ Link

Posted by Vladiat0r at 19:57:23    Voted10.00
New release: 1.6 * Fixed performance issue by using NBDE. * Added setting to specify status update interval to improve performance. * Added override setting to disable udp server status check if port 5121 is blocked. * DeleteCampaignDatabase isn't working on Linux, so removing support for Linux. _________________________ Link

Posted by OOA-Forge at on06/23/05
Wow this is some great work. it functions flawlessly. Genius.

Posted by Lord_Alexander at on06/22/05
Nicely done! _________________________ Alec Usticke - alec@usticke.org NWNWiki NWN2Wiki, databases anyone can edit Bastions of War team PvP arena

Posted by Vladiat0r at 19:27:51    Voted10.00
Also, forgot to mention, in 1.5 I updated the /sql version to correctly handle backslashes in player names. _________________________ Link

Posted by Vladiat0r at 17:15:13    Voted10.00
Updated to 1.5 with some code reorganizing. $query changed to use the simpler form. Merged Linux version into one. _________________________ Link

1 2 3

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Scripts


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters