Blockland Forums > Modification Help
Starthearbeat() and Stopheartbeat()
(1/2) > >>
Wordy:
I was looking around on the Appendix A.pdf as I am in lesson right now but I have finished my coursework since I have nothing else to do I thought to look at the appendix file.

Anyway lets get to the point;


--- Quote ---startHeartbeat()
Purpose
Use the startHeartbeat function to start advertising this game serer to any master
servers on the master server list.
Returns
No return value.
Notes
In order for this function to do anything, a list of master servers must have been
previously specified. This list may contain one or more server addresses. Once this
function is called, the game server will re-advertise itself to all the master servers on
its master server lits every two minutes. To specify a list, simply create a set of array
entries like this:
$pref::Master[0] = "2:192.168.123.15:28002";
$pref::Master[1] = "2:192.168.123.2:28002";
...
The format of these values is ==> Region Number : IP Address : Port Number
These values should be specified in either the client's or the server's preferences file
(prefs.cs). You may specifiy it elsewhere, however be sure that it is specified prior to
this function being called and before any other functions that rely on it.
See Also
queryMasterServer, stopHeartbeat
--- End quote ---

--- Quote ---stopHeartbeat()
Purpose
Use the startHeartbeat function to stop advertising this game serer to any master servers
on the master server list.
Returns
No return value.
See Also
queryMasterServer, startHeartbeat
--- End quote ---

I was wondering, do these functions work within Blockland or has Badspot removed them?
Port:
They still exist. However, last time I tried them they did not work as advertised.
xXBeibsFan119Xx:
I think this is from the v0002 days when the GarageGames master server was used.
Port:

--- Quote from: xXBeibsFan119Xx on May 11, 2012, 05:56:27 AM ---I think this is from the v0002 days when the GarageGames master server was used.

--- End quote ---

Actually, I believe the same functionality is used with a different configuration. These functions were blanked and their original functionality moved to the init/destroy server methods instead, though.

You can still package/parent webCom_postServer to, for example, not post to the master server.
Greek2me:
I tested these a while ago and as Port said, they don't work.
Navigation
Message Index
Next page

Go to full version