Skip to content

unc-nnected/ANotherRccServiceArbiterLol

Repository files navigation

ANotherRccServiceArbiterLol

ANotherRccServiceArbiterLol (ANRSAL for short) is an arbiter using .NET 8.0 Core + Desktop designed to make servers and renders for a old MMO brickbuilder game.

How tf does ts work

--dir "path" | path to RCCService directory, this one is required (DUH!)

lua scripts:
should be obvious, uses --gscript, rscript, rascript, rmscript, rmmscript "path"

server config:
--port "number"
--cores "number"
--baseurl "url"
--name "name" | rccservice name

authentication from arbiter to site:
--secret "key" | api key
--accesskey "key" | gameserver key

misc:
--verbose | verbose logging
--experimental | experimental features

example launch: ANRSAL.exe --dir "C:\ANRSAL\RCCService" --port 8124 --cores 12 --secret "key" --gscript "C:\ANRSAL\Scripts\gameserver.lua" --rscript "C:\ACCService\Scripts\render.lua" --verbose

To interact with the arbiter, here are the API endpoints:

/StartGame?type={GameServer, Avatar, Mesh, Model, Place} is a POST endpoint, here are some POST requests:

Place takes {"PlaceId": 1} (classified as render),

Avatar takes {"UserId": 1, "IsHeadshot": false, "IsClothing": false} (classified as render),

Model takes {"AssetId": 1} (classified as render),

Mesh takes {"MeshId": 1} (classified as render),

GameServer takes {"PlaceId": 1, "TeamCreate": false} (classified as persistent job).

To kill running jobs, use POST /StopGame. It takes {"pid": 67}.

To get all jobs from an running RCCService, use GET /GetAllJobs?port={SOAP Port}&limit={List limited amount of jobs}.

To get a specific Job, use GET /GetJob/{jobId}.

What do I define in script?

It's straightforward, do:

local accesskey = {accesskey}
local userid, placeid = {placeid}
local jobid = {jobid}

There should be more, but i lowkey forgot

About

An arbiter for RCCService. Mainly 2016E.

Topics

Resources

Security policy

Stars

Watchers

Forks

Contributors

Languages