Jump to content


Tiggerlicker

Member Since 24 Feb 2005
Offline Last Active Jun 15 2005 07:47 AM

Posts I've Made

In Topic: v9 PRC testing results...not good news :(

23 March 2005 - 12:45 PM

I used Horreds .sql file to make my tables and it now takes me 5 minutes to make a character.

View Post


That's the same SQL export I'm using too.

In Topic: Documentation Project for Horred's Nordock

22 March 2005 - 01:53 PM

There is a utility that creates PNG type images out of all the maps in a module.  Might speed your process up if you find and use it first.  Sorry, can't remember what it's called, found it googling.

View Post


I did an export a few minutes ago...used Souricette's NWN Tool 2.0.1 (http://nwvault.ign.c...790202000.shtml) to do a minimap export...works great to dump the minimaps out as BMP files (then I used ACDSee to batch convert the BMP to JPGs) and it gives a TXT file with the area names and what they show up in the game as:

ancientgraveyard: Kabu - Ancient Graveyard
anthillbearcave: Sands of Solaria - Cave of Ursa
anthillsidecave: Sands of Solaria - Construction Zone
area001: Benzor Tradeskills Workshop Level 2
area002: Trommel Mine Entrance
area003: South Brosna
area004: Miner's Rest

Now I just have to drop them all into Visio and go through each area to see where things lead :)

In Topic: Documentation Project for Horred's Nordock

22 March 2005 - 11:38 AM

I learn a module by looking at it in the toolset and the DM client at the same time (run NWN in a windowed mode). That way I can see the world in the game and examine things closer in the toolset (and make changes if I need to) while I know where I'm at.

I'd help in documenting things but right now I've got my hands full with redocumenting the installation :)

After that I think I'll tackle a mapping session to see if I can get all of the areas into Visio and see if I can show the links between them in some fashion.

In Topic: Building tables

21 March 2005 - 11:36 AM

Excellent!!!

Hopefully we can piece together all of the tables and be able to shorten the server start time :) A few extra steps to the initial installation but this will save a lot of time and headaches when players are trying to create characters :D

In Topic: Server Status web page

21 March 2005 - 11:22 AM

AFAIK there isn't a good PHP (or ASP) system setup to manage the server through the web for Windows servers. However there are a few ways to get server and player info published to a webpage so that players will know the operational status of the server and online players.

I use this code in a PHP page to show the online status and some of the server details:

<html>
<head>
<title>Server Name Here</title>
<style type="text/css">
<!--
.r {
	color: #ff0000;
}
.b {
	color: #0000ff;
}
.g {
	color: #009933;
}
-->
</style>
</head>
<body>
 
<?php 
//Fill in the server IP in place of the xxx.xxx.xxx.xxx
//Fill in the server port in place of the nnnn
$default_ip = "xxx.xxx.xxx.xxxx";
$default_port = "nnnn";
$timeout = 5;
// check for form values
$ip = (isset($_GET['ip'])) ? ($_GET['ip']) : $default_ip;
$port = (isset($_GET['port'])) ? ($_GET['port']) : $default_port;
$connect = fsockopen( "udp://" . $ip, $port, $errno, $errstr, $timeout );
if ( ! $connect )	{
	print( "<h1>Server is down</h1><br>\n" );
	print( "<h3>ERROR: $errno - $errstr</h3><br>\n" );
	exit;
} else {
	socket_set_timeout( $connect, $timeout );
	$send = "\xFE\xFD\x00\xE0\xEB\x2D\x0E\x14\x01\x0B\x01\x05\x08\x0A\x33\x34\x35\x13\x04\x36\x37\x38\x39\x14\x3A\x3B\x3C\x3D\x00\x00";
	fwrite( $connect, $send );
	$output = fread( $connect, 5000 );
	if ( ! $output ) {
  print ( "<h1>Server is down.<br></h1>\n" );
	} else {
  $lines = explode( "\x00", $output );
  //Fill in the server IP in place of the xxx.xxx.xxx.xxx
  //Fill in the server port in place of the nnnn
  print( "<b><font=arial>Server IP:</b> <b class='b'>xxx.xxx.xxx.xxx</b><b>:</b><b class='b'>nnnn</b></font><br>\n" );
  print( "<b>Server Status:</b> <b class='g'>Online</b><br>\n" );	
  print( "<b>Play Type:</b> <b class='b'>$lines[2]</b><br>\n" );
  print( "<b>Game Name:</b> <b class='b'>$lines[3]</b><br>\n" );
  print( "<b>Module Name:</b> <b class='b'>$lines[4]</b><br>\n" );
  print( "<b>Version Number:</b> <b class='b'>$lines[14]" );
  if ( $lines[20] == '1' ) {
 	 print( " XP-1" );
  }
  print( "</b><br><br>\n" );
  
  print( "<b>Level Range:</b> <b class='b'>$lines[7]</b><b> - </b><b class='b'>$lines[8]</b><br>\n" );
  
  print( "<b>Player vs. Player:</b> " );
  if ( $lines[9] == "NONE" ) {
 	 print( "<b class='g'>" );
  } elseif ( $lines[9] == "FULL" ) {
 	 print( "<b class='r'>" );
  } else {
 	 print( "<b class='b'>" );
  }
  print( "$lines[9]</b><br>\n" );
  
  print( "<b>Character Vault:</b> " );
  if ( $lines[19] == '1' ) {
 	 print( "<b class='b'>Local Vault</b><br>\n" );
  } else {
 	 print( "<b class='b'>Server Vault</b><br>\n" );
  }
  print( "<b>Only One Party:</b> " );
  if ( $lines[12] == '1' ) {
 	 print( "<b class='g'>enabled</b><br>\n" );
  } else {
 	 print( "<b class='r'>disabled</b><br>\n" );
  }
  
  print( "<b>Player Pause:</b> " );
  if ( $lines[13] == '1' ) {
 	 print( "<b class='g'>enabled</b><br>\n" );
  } else {
 	 print( "<b class='r'>disabled</b><br>\n" );
  }
  
  print( "<b>ILR:</b> " );
  if ( $lines[18] == '1' ) {
 	 print( "<b class='g'>enabled</b><br>\n" );
  } else {
 	 print( "<b class='r'>disabled</b><br>\n" );
  }
  print( "<b>ELC:</b> " );
  if ( $lines[17] == '1' ) {
 	 print( "<b class='g'>enabled</b><br>\n" );
  } else {
 	 print( "<b class='r'>disabled</b><br>\n" );
  }
  
  print( "<b>Password:</b> " );
  if ( $lines[10] == '0' ) {
 	 print( "<b class='g'>not required</b><br>\n" );
  } else {
 	 print( "<b class='r'>required</b><br>\n" );
  }
  
  print( "<b>Players:</b> <b class='b'>$lines[5]</b><b>/</b><b class='b'>$lines[6]</b><br><br>\n" );
  $dlines = explode( "\n", $lines[15] );
  print( "<b>Server Description:</b><br>" );
  print( "<b>\n" );
  foreach ( $dlines as $dline ) {
 	 print( "$dline<br>\n" );
  }
  print( "</b>\n" );
	}
}
fclose( $connect ); 	 
?>

</body>
</html>

This should give an output like this:

Posted Image

Showing the actual players online is a different story...the module needs to be able to put the players into a MySQL table and then have the PHP page run a query to output the player information (i.e. Player names, levels, etc). I don't have that code available at my fingertips at this time :(