-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
everything for this release (in particular the CPX extension for game…
… path/etc.)
- Loading branch information
Showing
6 changed files
with
126 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python3 | ||
# CAOS Terminal | ||
|
||
# caosprox - CPX server reference implementation | ||
# Written starting in 2022 by 20kdc | ||
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. | ||
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
|
||
import socket | ||
import readline | ||
import sys | ||
import struct | ||
import traceback | ||
|
||
import libcpx | ||
|
||
def rrdo(t: bytes) -> str: | ||
return libcpx.raw_request_default(t)[:-1].decode("latin1") | ||
|
||
print("server:", rrdo(b"cpx-ver\n\0")) | ||
print("game path:", rrdo(b"cpx-gamepath\n\0")) | ||
print("game name:", rrdo(b"execute\nouts gnam\0")) | ||
print("engine version:", rrdo(b"execute\noutv vmjr outs \".\" outv vmnr\0")) | ||
print("engine modules:", rrdo(b"execute\nouts modu\0")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
rel: caosproxy/tools/caosterm.py caosproxy/tools/libcpx.py caosproxy/tools/maprooms.py caosproxy/tools/maptypes.py caosproxy/tools/bdmptest.py | ||
rel: caosproxy/tools/libcpx.py | ||
rel: caosproxy/tools/caosterm.py caosproxy/tools/cpxinfo.py | ||
rel: caosproxy/tools/bdmptest.py caosproxy/tools/maprooms.py caosproxy/tools/maptypes.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters