Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
MARNE Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Launcher API
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Creating Your Own Launcher Using MARNE's Public API = This page is currently under construction. In the future, it will contain a detailed guide on how to create your own custom launcher using the public API provided by MARNE. The API is already complete and ready to use, allowing you to develop custom launchers or tools to interact with MARNE servers. For more information on the available endpoints and how to get started, please refer to the official API documentation. Stay tuned for updates! == Public API Endpoints for browsing servers == You can browse the online servers at the following endpoints. The server will respond with a JSON object containing a list of servers and the server details. <nowiki>https://marne.io/api/srvlst/</nowiki> <nowiki>https://marne.io/api/srvlst/<server_id>/</nowiki> == Connecting and authenticating your launcher == Connecting your own launcher is simple. The game and launcher communicate by exchanging JSON objects. Before sending a JSON object you have to send the size of the object as ''int'' in a ''char'' representation. To connect your launcher you have to create a JSON object with the following structure: { command: "authenticate", password: "<your_salted_and_hashed_pw>" } You have to append '''"w1@f._KDSFXV"''' as salt and hash the resulting password with the sha256 algorithm. If the server received the correct password it will greet you with three JSON objects that contain the current status (map, players, etc.), the [[Maps_And_Modes|map rotation]] and the [[Settings|server settings (ServerSettings.txt)]]. = Launcher Objects = Here's a a list of all object the launcher will send and some recommendations on when to send them. == keepalive == the client should send keepalives to the game so the connection will be kept alive. It should be sufficient to send this packet every 10 seconds. { command: "keepalive" }
Summary:
Please note that all contributions to MARNE Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Marne Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)