From dd22ce4a388f228fcd3bcb04a5ba5d8623db65e8 Mon Sep 17 00:00:00 2001 From: Bottersnike Date: Thu, 31 Mar 2022 16:44:05 +0100 Subject: [PATCH] Fix motivation typo --- templates/pages/index.html | 2 +- .../{motiviation.html => motivation.html} | 0 templates/pages/sega/index.html | 203 ++++++++++++++++++ 3 files changed, 204 insertions(+), 1 deletion(-) rename templates/pages/{motiviation.html => motivation.html} (100%) create mode 100644 templates/pages/sega/index.html diff --git a/templates/pages/index.html b/templates/pages/index.html index 30638a1..a37539d 100644 --- a/templates/pages/index.html +++ b/templates/pages/index.html @@ -10,7 +10,7 @@ the most comprehensive public documentation, so you're hopefully in the right place.

-I moved the big block about why these page exist, because it was getting painfully +I moved the big block about why these page exist, because it was getting painfully long.

If you run into a mistake on these pages and want to raise an issue, either open one on diff --git a/templates/pages/motiviation.html b/templates/pages/motivation.html similarity index 100% rename from templates/pages/motiviation.html rename to templates/pages/motivation.html diff --git a/templates/pages/sega/index.html b/templates/pages/sega/index.html new file mode 100644 index 0000000..5cb43df --- /dev/null +++ b/templates/pages/sega/index.html @@ -0,0 +1,203 @@ +{% extends "base.html" %} +{% block title %}SEGA Games{% endblock %} +{% block body %} +

SEGA Games

+

This may get its own micro-site at some point if it grows large enough. For now it's mostly just a rambling of notes. +

+

In some ways SEGA's protocols are simpler than Konami's (none of that XML mess) but in other ways they're more + complicated (hardcoded URLs, multiple services required, etc.)

+ +

ALL.Net

+

A simple service that exposes two URLs. The hostname must be http://naominet.jp.

+ +

Requests should be made with a number of standard HTTP headers, and must be either HTTP version 1.0 or 1.1

+ + + + + + + + + + + + + + + + + + + + + +
ConnectionClose
PragmaDFI
User-AgentALL.Net_PC_Win2/ver1.0
Content-Typeapplication/x-www-form-urlencoded
Content-Lengthvariable
+

Note that the Pragma header is optional, and the Content-Type header is a lie.

+ +

Requests and responses should be POSTs, and their body should be base64 encoded, zlib compressed, + x-www-form-urlencoded data. For example, {key: "value", other: "another"} should encode to + eJwdxcEJACAMA8Bt3CLD5BEQFIXSFtw+4OuWHpq7NG5OBXi+BmwzCRo=. +

+ +

Responses are expected to contain stat indicating status:

+ + + + + + + + + + + + + + + + + + + + + +
1Success
0Failure
-1Failure
-2Failure
-3Failure
+

This service provides two endpoints, documented below:

+ +

/sys/servlet/PowerOn

+

Request:

+ +"game_id=%s&ver=%s&serial=%s&ip=%s&firm_ver=%01d%02d%02d&boot_ver=%02X%02X&encode=%s&format_ver=%s&hops=%d\r\n" +"game_id=%s&ver=%s&serial=%s&ip=%s&firm_ver=%01d%02d%02d&boot_ver=%02X%02X&format_ver=%s&hops=%d\r\n" +"game_id=%s&ver=%s&serial=%s\r\n" +"game_id=%s&ver=%s&serial=%s&encode=%s\r\n" + + +"keychipid=%s&functype=%u&gameid=%s&gamever=%s&boardid=%s&tenpoip=%s&libalibver=%s&datamax=%s&billingtype=%d&protocolver=%s&operatingfix=%d" +(libalibver = 1.110, protocolver = 1.000) + +SDBT: Chunithm +SBXL: Maimai + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
game_id4-character game ID
ver
serial
ip
firm_ver%01d%02d%02d
boot_ver%02X%02X
format_ver
hops
encode
+

Response:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
statSee above
uri
host
region0
region_name0
region_name1
region_name2
region_name3
year
month
day
hour
minute
second
place_id
setting
country
timezone
res_class
+ +

/sys/servlet/DownloadOrder

+ +{% endblock %} \ No newline at end of file