Skip to content
zeroKilo edited this page Jun 29, 2018 · 4 revisions

Magma

this http based service is used by the game only for logging in and giving status reports. it can be used to use https or http, but its easier to set it to http and the webserver to some other port, because then it doesnt use ssl. its also not really valid urls requests, as they contain colons in the url. to make the game use magma on port 80 and without ssl, use the start parameter: +magmaProtocol http and +magmaHost 127.0.0.1

Requested URLs with GET

(PID = placeholder for player id)

Request: /api/nucleus/authToken:PID

Response: `

<?xml version="1.0" encoding="ISO-8859-1"?>
	<success>
		<token code="NEW_TOKEN">SIxmvSLJSOwKPq5WZ3FL5KIRNJVCLp4Jgs_3mJcY2yJahXxR5mTRGUsi6PKhA4X1jpuVMxHJQv3WQ3HnQfvKeG60hRugA</token>
	</success>`

(note : the server will requests this too, but has a key in its html headers, return that key instead of the token, also remove the part 'code="NEW_TOKEN"')

Request: /api/relationships/roster/nucleus:PID

Response: `

<?xml version="1.0" encoding="ISO-8859-1"?>
<roster relationships="0"/>
<success code="SUCCESS"/>`

Request: /api/nucleus/name/PID

Response: <name>_playername_</name>

Request: /api/nucleus/entitlements/PID

Response: `

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<entitlements count="18">
	<entitlement>
		<entitlementId>1</entitlementId>
		<entitlementTag>3001-UNLM-</entitlementTag>
		<useCount>0</useCount>
		<grantDate>Jun-29-2018 17:51:34 UTC</grantDate>
		<terminationDate/>
		<status>ACTIVE</status>
	</entitlement>
	<entitlement>
		<entitlementId>2</entitlementId>
		<entitlementTag>3005-UNLM-</entitlementTag>
		<useCount>0</useCount>
		<grantDate>Jun-29-2018 17:51:34 UTC</grantDate>
		<terminationDate/>
		<status>ACTIVE</status>
	</entitlement>
	...
	<entitlement>
		<entitlementId>18</entitlementId>
		<entitlementTag>2168-UNLM-</entitlementTag>
		<useCount>0</useCount>
		<grantDate>Jun-29-2018 17:51:34 UTC</grantDate>
		<terminationDate/>
		<status>ACTIVE</status>
	</entitlement>
</entitlements>`

Requested URLS with POST

  • /api/dc/submit
  • /api/relationships/status/nucleus:PID
Clone this wiki locally