HB Saver

Post here to get help with using or setting up fCraft
Post Reply
User avatar
LeChosenOne
Offline
Posts: 32
Joined: May 6th, 2012, 8:01 pm
Location: Classified

HB Saver

Post by LeChosenOne »

Well, since no one else has posted this, it seems that I am doing something wrong. I downloaded a vanilla copy of fCraft, and once I run (and then close) my serverGUI, the heartbeatsaver does not open. When I manually open the heartbeatsaver, it opens and seems to send one count, then freezes. Does anyone know the issue? (I made my friend download fcraft and try the heartbeat too, and it didn't work for him either.)
The early bird gets the worm, but the second mouse gets the cheese.

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: HB Saver

Post by fragmer »

What is the last thing HeartbeatSaver prints before freezing, if anything?

User avatar
LeChosenOne
Offline
Posts: 32
Joined: May 6th, 2012, 8:01 pm
Location: Classified

Re: HB Saver

Post by LeChosenOne »

When the HB Saver is manually opened, it prints
(the time)> minecraft.net OK: (my server public url)

It actually doesn't freeze. It looks like the saver is actually sending beats. Right when the saver is booted up, it sends the above message. Then, looking at the times, it looks like the HB saver sends a beat every consecutive 20 seconds. So that part looks good. The issue is that it wont start when serverGUI is closed.

Edit- before you ask:
Image
The early bird gets the worm, but the second mouse gets the cheese.

BobKare
Offline
Posts: 279
Joined: May 26th, 2011, 2:15 pm

Re: HB Saver

Post by BobKare »

LeChosenOne wrote:Edit- before you ask:
Image
If I've understood this right, you need to disable that. The built-in heartbeat sender is the one sending heartbeats from the server itself. Disable that, and the heartbeat data will be written to heartbeat.txt, where the HBSaver gets the server details. Then you can run the server and the HBSaver at the same time, so that you can shutdown and restart your server without your uptime being reset.

If it got any other purpose, please correct me.

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: HB Saver

Post by fragmer »

HeartbeatSaver is a separate program. It does not open automatically when you run ServerGUI/ServerCLI. You need to start it alongside, preferably as a background task (see To schedule a task to run automatically when the computer starts, with Windows 7). You should disable ServerGUI's/ServerCLI's built-in heartbeat sender when you use HeartbeatSaver. HeartbeatSaver will read data from heartbeat.txt. For more information, see the fCraft wiki.

Post Reply