Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Be able to emulate or debug a server-restart

Give us your input on how we may improve the ScriptAPI in the game in future versions.
Forum rules
By using the forum you agree to the following rules.
Post Reply
Juansero29
Fighter
Fighter
Posts: 52
Joined: Sun Jun 12, 2016 1:07 am
Title: Superfighter
SFD Account: Juansero29
SFD Alias: Juansero29
Started SFD: Pre-Alpha 1.0.5
Location: France
Gender:
Age: 25
Contact:

Be able to emulate or debug a server-restart

Post by Juansero29 » Sun Mar 14, 2021 3:47 pm

On my server, the script going on needs some modifications memory usage and performance. This means after some days of being on, the server starts getting laggy and will finish crashing. That's why I had set the option of Auto Restart at a certain time. However, with my maps, it seems like the server is somehow unable to restart itself un put my maps back on. It will crash and leave no information behind when trying to restart.

It would be really nice to have a way to debug or have logs of what happens when the server restarts, so that I can fix what is wrong with my script impeding the server to restart by itself.
0 x

Code: Select all

boom() {
  echo "BOOM!";			
}
BOOM!
----------------------------------------
Setting the world free since 1998
----------------------------------------

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Thu Mar 18, 2021 6:18 pm

Hmm a script is only active once a map boots up.
If you set up the server to restart once a day it will first start another little exe file that will automatically start Superfighters Deluxe.exe in server mode again after a delay (I think of 2 minutes).

It should be the same as using "Exit" on the server manually and then start the server using the command (or a shortcut in windows):

"Superfighters Deluxe.exe" -server -start -totray


You might find some crash reports in "Documents\Superfighters Deluxe\Reports".

Does the server fail to restart automatically?
When it crashes, do you see anything?
Do you have any power saving options active when the server restart itself?


You can also test the restart feature by setting the time just a few minutes ahead of the current time (and apply the changes) to see the server restart.
1 x
Gurt

Juansero29
Fighter
Fighter
Posts: 52
Joined: Sun Jun 12, 2016 1:07 am
Title: Superfighter
SFD Account: Juansero29
SFD Alias: Juansero29
Started SFD: Pre-Alpha 1.0.5
Location: France
Gender:
Age: 25
Contact:

Post by Juansero29 » Sat Mar 20, 2021 9:34 pm

I'll definetly try that out on report here what happens. Thanks a lot Gurt.
0 x

Code: Select all

boom() {
  echo "BOOM!";			
}
BOOM!
----------------------------------------
Setting the world free since 1998
----------------------------------------

Post Reply