• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows tfs 1.x debugger

rudger

Active Member
Joined
Oct 1, 2010
Messages
251
Solutions
1
Reaction score
32
Location
The Netherlands
How can I create a crash log or debug the application when a crash has occured?

I heard about running the .pdb in visual studio then attach theforgottenserver.exe to it?

Any info would be great.
 
How can I create a crash log or debug the application when a crash has occured?

I heard about running the .pdb in visual studio then attach theforgottenserver.exe to it?

Any info would be great.

This should give you some information; Using Dump Files
I never used the debug on visual studio so can't give you any good information myself.
 
If linux:

first you need start the server with restart.sh (auto restarter)
inside this file:
Code:
#!/bin/bash
ulimit -c unlimited
while true; do ./tfs --log-file "output.txt" "error.txt"; done

after, when crash this will create one log called "core"

then you'll need install gdb:
apt-get install gdb

after installed, run this command:

cd /home/otserver
gdb tfs core

thread 1
bt full
 
If linux:

first you need start the server with restart.sh (auto restarter)
inside this file:
Code:
#!/bin/bash
ulimit -c unlimited
while true; do ./tfs --log-file "output.txt" "error.txt"; done

after, when crash this will create one log called "core"

then you'll need install gdb:
apt-get install gdb

after installed, run this command:

cd /home/otserver
gdb tfs core

thread 1
bt full
Or you can just do this
Code:
./tfs > log.txt
Creates a text document and instead of printing to the console/terminal it prints to the document :)
Code:
The Forgotten Server - Version 1.3
Compiled with GNU C++ version 5.4.0 20160609
Compiled on May 23 2017 05:48:06 for platform x64

A server developed by Mark Samman
Visit our forum for updates, support, and resources: http://otland.net/.

>> Loading config
>> Establishing database connection... MySQL 5.7.18
>> Running database manager
>> Loading vocations
>> Loading items
>> Loading script systems
>> Loading monsters
>> Loading outfits
>> Checking world type... PVP
>> Loading map
> Map size: 2048x2048.
> Map loading time: 0.81 seconds.
> Loaded house items in: 0.001 s
>> Initializing gamestate
>> Loaded all modules, server starting up...
>> Forgotten Server Online!

SIGINT received, shutting game server down...
Saving server...
> Saved house items in: 0.15 s
Shutting down... done!
 
Unfortunately it's not printing any error.

pic.png
 
Last edited by a moderator:
Back
Top