mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Changes to support new world order
This commit is contained in:
parent
16d8392b07
commit
616b99ee4c
@ -20,7 +20,6 @@ class ClusterClient(DirectObject.DirectObject):
|
|||||||
if clusterDaemonClient == 'None':
|
if clusterDaemonClient == 'None':
|
||||||
clusterDaemonClient = os.popen('uname -n').read()
|
clusterDaemonClient = os.popen('uname -n').read()
|
||||||
clusterDaemonClient = clusterDaemonClient.replace('\n', '')
|
clusterDaemonClient = clusterDaemonClient.replace('\n', '')
|
||||||
print 'CLIENT', clusterDaemonClient
|
|
||||||
# What daemon port are we using to communicate between client/servers
|
# What daemon port are we using to communicate between client/servers
|
||||||
clusterDaemonPort = base.config.GetInt(
|
clusterDaemonPort = base.config.GetInt(
|
||||||
'cluster-daemon-port', CLUSTER_DAEMON_PORT)
|
'cluster-daemon-port', CLUSTER_DAEMON_PORT)
|
||||||
|
@ -36,7 +36,7 @@ SERVER_STARTUP_STRING = (
|
|||||||
'__builtin__.clusterSyncFlag = %d;' +
|
'__builtin__.clusterSyncFlag = %d;' +
|
||||||
'__builtin__.clusterDaemonClient = \'%s\';' +
|
'__builtin__.clusterDaemonClient = \'%s\';' +
|
||||||
'__builtin__.clusterDaemonPort = %d;'
|
'__builtin__.clusterDaemonPort = %d;'
|
||||||
'from ShowBaseGlobal import *; run()"')
|
'from DirectStart import *; run()"')
|
||||||
|
|
||||||
class ClusterMsgHandler:
|
class ClusterMsgHandler:
|
||||||
"""ClusterMsgHandler: wrapper for PC clusters/multi-piping networking"""
|
"""ClusterMsgHandler: wrapper for PC clusters/multi-piping networking"""
|
||||||
|
@ -148,6 +148,7 @@ class ClusterServer(DirectObject.DirectObject):
|
|||||||
if (type == CLUSTER_NONE):
|
if (type == CLUSTER_NONE):
|
||||||
pass
|
pass
|
||||||
elif (type == CLUSTER_EXIT):
|
elif (type == CLUSTER_EXIT):
|
||||||
|
print 'GOT EXIT'
|
||||||
import sys
|
import sys
|
||||||
sys.exit()
|
sys.exit()
|
||||||
elif (type == CLUSTER_CAM_OFFSET):
|
elif (type == CLUSTER_CAM_OFFSET):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user