I put in samson's hotboot code, and I got it to compile with only 2 warnings. Since I'm running windows 2000 and Visual C++ 6, I had to comment out unistd.h, wait.h, and dirent.h. With those commented out it gives me these warnings:
Compiling...
hotboot.c
C:\smaug\src\hotboot.c(701) : warning C4013: 'execl' undefined; assuming extern returning int
C:\smaug\src\hotboot.c(765) : warning C4013: 'close' undefined; assuming extern returning int
Both of these are in other header file, execl is in process.h, and close is in io.h. Other than those warning, it compiles and runs, but when i go to hotboot, it just shuts the server down, however, when using my startup bat file (based on some files it plain reboots, reboots using the fresh compiled exe, or shuts down the server completely) it gives me this:
Fri Sep 17 03:43:42 2004 :: Hotboot initiated by Buu.
Fri Sep 17 03:43:42 2004 :: Preserving world state....
Fri Sep 17 03:43:42 2004 :: Saving player files and connection states....
Fri Sep 17 03:43:42 2004 :: Executing hotboot....
SMAUG 1.4a
Working directory now C:\smaug\area
Fri Sep 17 03:43:42 2004 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Fri Sep 17 03:43:42 2004 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Fri Sep 17 03:43:42 2004 :: Loading commands
Fri Sep 17 03:43:42 2004 :: Loading sysdata configuration...
Fri Sep 17 03:43:42 2004 :: Loading socials
Fri Sep 17 03:43:42 2004 :: Loading skill table
Fri Sep 17 03:43:42 2004 :: Sorting skill table...
Fri Sep 17 03:43:42 2004 :: Remapping slots to sns
Fri Sep 17 03:43:42 2004 :: Loading classes
Fri Sep 17 03:43:42 2004 :: Loading races
Fri Sep 17 03:43:42 2004 :: Loading herb table
Fri Sep 17 03:43:42 2004 :: Loading tongues
Fri Sep 17 03:43:42 2004 :: Making wizlist
Fri Sep 17 03:43:42 2004 :: Initializing request pipe
Fri Sep 17 03:43:42 2004 :: Initializing random number generator
Fri Sep 17 03:43:42 2004 :: Setting time and weather
Fri Sep 17 03:43:42 2004 :: Assigning gsn's
Fri Sep 17 03:43:42 2004 :: Reading in plane file...
../system/planes.dat: No such file or directory
Fri Sep 17 03:43:42 2004 :: [*****] BUG: load_planes: can't open plane file for
read.
Fri Sep 17 03:43:42 2004 :: Reading in area files...
SMAUG 1.4a
Usage is :-
SMAUG - runs as a service, or stand-alone
SMAUG /run - runs stand-alone
SMAUG /start - starts this service
SMAUG /stop - stops this service
SMAUG /install - installs this service
SMAUG /remove - removes (un-installs) this service
SMAUG /status - displays the status of this service
SMAUG /help - displays this information
(help.are)
(imc-help.are)
(ice-help.are)
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
limbo.are : Rooms: 1 - 43 Objs: 2 - 99 Mobs: 1 - 99
...
which it just reboots the server. The only thing that comes to mind is either execl is different in process.h from unistd, or I'm using it wrong (Most likely the latter). My current execl statement is this:
execl( EXE_FILE, "smaug-test", buf, "hotboot", buf2, buf6, (char *)NULL );
(#define EXE_FILE "../smaug-test" )
What am I overlooking?
Compiling...
hotboot.c
C:\smaug\src\hotboot.c(701) : warning C4013: 'execl' undefined; assuming extern returning int
C:\smaug\src\hotboot.c(765) : warning C4013: 'close' undefined; assuming extern returning int
Both of these are in other header file, execl is in process.h, and close is in io.h. Other than those warning, it compiles and runs, but when i go to hotboot, it just shuts the server down, however, when using my startup bat file (based on some files it plain reboots, reboots using the fresh compiled exe, or shuts down the server completely) it gives me this:
Fri Sep 17 03:43:42 2004 :: Hotboot initiated by Buu.
Fri Sep 17 03:43:42 2004 :: Preserving world state....
Fri Sep 17 03:43:42 2004 :: Saving player files and connection states....
Fri Sep 17 03:43:42 2004 :: Executing hotboot....
SMAUG 1.4a
Working directory now C:\smaug\area
Fri Sep 17 03:43:42 2004 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Fri Sep 17 03:43:42 2004 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Fri Sep 17 03:43:42 2004 :: Loading commands
Fri Sep 17 03:43:42 2004 :: Loading sysdata configuration...
Fri Sep 17 03:43:42 2004 :: Loading socials
Fri Sep 17 03:43:42 2004 :: Loading skill table
Fri Sep 17 03:43:42 2004 :: Sorting skill table...
Fri Sep 17 03:43:42 2004 :: Remapping slots to sns
Fri Sep 17 03:43:42 2004 :: Loading classes
Fri Sep 17 03:43:42 2004 :: Loading races
Fri Sep 17 03:43:42 2004 :: Loading herb table
Fri Sep 17 03:43:42 2004 :: Loading tongues
Fri Sep 17 03:43:42 2004 :: Making wizlist
Fri Sep 17 03:43:42 2004 :: Initializing request pipe
Fri Sep 17 03:43:42 2004 :: Initializing random number generator
Fri Sep 17 03:43:42 2004 :: Setting time and weather
Fri Sep 17 03:43:42 2004 :: Assigning gsn's
Fri Sep 17 03:43:42 2004 :: Reading in plane file...
../system/planes.dat: No such file or directory
Fri Sep 17 03:43:42 2004 :: [*****] BUG: load_planes: can't open plane file for
read.
Fri Sep 17 03:43:42 2004 :: Reading in area files...
SMAUG 1.4a
Usage is :-
SMAUG - runs as a service, or stand-alone
SMAUG /run - runs stand-alone
SMAUG /start - starts this service
SMAUG /stop - stops this service
SMAUG /install - installs this service
SMAUG /remove - removes (un-installs) this service
SMAUG /status - displays the status of this service
SMAUG /help - displays this information
(help.are)
(imc-help.are)
(ice-help.are)
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
limbo.are : Rooms: 1 - 43 Objs: 2 - 99 Mobs: 1 - 99
...
which it just reboots the server. The only thing that comes to mind is either execl is different in process.h from unistd, or I'm using it wrong (Most likely the latter). My current execl statement is this:
execl( EXE_FILE, "smaug-test", buf, "hotboot", buf2, buf6, (char *)NULL );
(#define EXE_FILE "../smaug-test" )
What am I overlooking?