-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
55 lines (42 loc) · 1.95 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Wrapper for savage2.bin dedicated server.
* The wrapper launches the savage2 binary as dedicated server, establishes a connection between the binary and the wrapper.
- Wrapper monitors if the server is up, may it have died the wrapper relaunches it.
* The wrapper has a telnet interface as proof of concept. (default listening on port 4242)
- The telnet interface will display the server console
- has a input functionality to perform commands and see output.
* May the wrapper be exitted the savage2 dedicated server will run as normal.
* Plugins
"Plugins run in an instance, so you can store data and make applications on the savage2.bin binary, like autoshuffle."
- currently controllable by stdin interface
- Commands:
plugins rediscover (loads new plugins when placed in /plugins/
plugins list (discovered plugins)
> Returns a list of Plugin Names
plugins enable <name> (enable discovered plugin)
plugins disable <name> (enable discovered plugin)
plugins reload <name> (reloads discovered plugin)
- ConsolePlugin(ConsoleParser)
* Inherits callbacks from the ConsoleParser
Directory relative of this file /plugins/
TestPlugin.py
class TestPlugin(ConsolePlugin)
def onReceivedAccountId (self, *args, **kwargs):
// do stuff
* Library
- (Base)ConsoleParser
onReceivedAccountId (client_id , account_id)
onConnect (idx , client_id, ip, port)
onSetName (idx, nickname)
onTeamChange (nickname, team)
onMessage (channel[All,Team 1, Team 2], message)
onServerStatus (map, timestamp, client_num, disconnect_num, entries, snapshots)
onServerStatusResponse (map, timestamp, client_num, disconnect_num, entries, snapshots)
onDisconnect (idx)
onConnected (name)
onPlayerReady (idx)
onNewGame ()
* For example purposes:
- TestParser(ConsoleParser)
- onReceivedAccountId (client_id , account_id)
* Retrieves the SF of a player from the account_id from the savage2 website. (useful for auto balance)
;D