diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..37a17c7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +flask +Frozen-Flask +jinja_markdown diff --git a/templates/pages/cardid.html b/templates/pages/cardid.html index eda2a91..68aafa7 100644 --- a/templates/pages/cardid.html +++ b/templates/pages/cardid.html @@ -2,7 +2,6 @@ {% block title %}Card IDs{% endblock %} {% block body %}

Card ID generation

-test2
I'm just here for code.

Fair. My intent with these pages is to describe things in enough detail that they should be simple to diff --git a/templates/pages/sega/network/allnet.html b/templates/pages/sega/network/allnet.html index 39aac0e..a69cb1f 100644 --- a/templates/pages/sega/network/allnet.html +++ b/templates/pages/sega/network/allnet.html @@ -1,197 +1,3 @@ -{% extends "sega.html" %} -{% block title %}ALL.Net{% endblock %} -{% block body %} -

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_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

- +{% extends "sega.html" %} {% block title %}ALL.Net{% endblock %} {% block body %} +{% markdown %}{% include relative("~allnet.md") %}{% endmarkdown %} {% endblock %} \ No newline at end of file diff --git a/templates/pages/sega/network/allnet.html.old b/templates/pages/sega/network/allnet.html.old new file mode 100644 index 0000000..39aac0e --- /dev/null +++ b/templates/pages/sega/network/allnet.html.old @@ -0,0 +1,197 @@ +{% extends "sega.html" %} +{% block title %}ALL.Net{% endblock %} +{% block body %} +

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_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 diff --git a/templates/pages/sega/network/~allnet.md b/templates/pages/sega/network/~allnet.md new file mode 100644 index 0000000..9d32a7c --- /dev/null +++ b/templates/pages/sega/network/~allnet.md @@ -0,0 +1,95 @@ +# ALL.Net + +ALL.Net, short for Amusement Linkage Live Network, is SEGA's standadised arcade game networking service. It handles cabinet authentication, billing, network-based game delivery, user management, and handoff to the game-specific title server where applicable. + +The ALL.Net model is compresed of four networked services: + +1. ALL.Net itself. This is `naominet.jp`, and handles basic operations. +2. The billing service. This is `ib.naominet.jp`, and handles tracking and updating play counters. +3. AiMeDB. This is `aime.naominet.jp`, and handles user management. +4. The title server. The URL for this is provided by ALL.Net, as different games use different services for this. + +ALL.Net also handles core networking infrastructure. This is in the form of of a number of routers, some of which are VPN-connected. + +Stores are provided a store (tenpo, 店舗) router which they install. The specific router provided to the store depends on the nature of their internet connection. The models typically provisioned are: + +| Line type | Model | +| --------- | -------------- | +| ISDN | YAMAHA RTA52i | +| | YAMAHA RTA54i | +| | YAMAHA RT57i | +| | YAMAHA RT58i | +| ^ | YAMAHA NVR500 | +| Mobile | R240B | +| ^ | YAMAHA RTX1200 | +| Broadband | YAMAHA RTX1000 | +| | YAMAHA RTX1100 | +| ^ | YAMAHA RTX1200 | +| ADSL | YAMAHA RTX1000 | +| | YAMAHA RTX1100 | +| ^ | YAMAHA RTX1200 | +| Misc | Cisco 851 K9 | +| ^ | Cisco 861 K9 | + +This router will take the IP address `x.y.z.254`, which will be available at `tenporouter.loc` (handled by DNS spoofing on the router). Machines are assigned their IP addresses using DHCP, taking addresses from `x.y.z.10` through `x.y.z.200`, inclusive. Additionally, the router will be addressable at one additional hostname, dependenant on the line type: + +| Line Type | Addtional Hostname | +| --------- | ------------------ | +| Mobile | `mobirouter.loc` | +| Broadband | `bbrouter.loc` | +| ADSL | `dslrouter.loc` | + +There are also a number of additional utility hostnames, spoilered due to their quantity. + +
+ Additional hostnames + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HostnameIP Address
medalcom.locx.y.z.5
allnet201.locx.y.z.201
allnet202.locx.y.z.202
allnet203.locx.y.z.203
allnet204.locx.y.z.204
allnet205.locx.y.z.205
allnet206.locx.y.z.206
allnet207.locx.y.z.207
allnet208.locx.y.z.208
allnet209.locx.y.z.209
allnet210.locx.y.z.210
allnet211.locx.y.z.211
allnet212.locx.y.z.212
allnet213.locx.y.z.213
allnet214.locx.y.z.214
allnet215.locx.y.z.215
allnet216.locx.y.z.216
allnet217.locx.y.z.217
allnet218.locx.y.z.218
allnet219.locx.y.z.219
allnet220.locx.y.z.220
allnet221.locx.y.z.221
allnet222.locx.y.z.222
allnet223.locx.y.z.223
allnet224.locx.y.z.224
allnet225.locx.y.z.225
allnet226.locx.y.z.226
allnet227.locx.y.z.227
allnet228.locx.y.z.228
allnet229.locx.y.z.229
allnet230.locx.y.z.230
allnet231.locx.y.z.231
allnet232.locx.y.z.232
allnet233.locx.y.z.233
allnet234.locx.y.z.234
allnet235.locx.y.z.235
allnet236.locx.y.z.236
allnet237.locx.y.z.237
allnet238.locx.y.z.238
allnet239.locx.y.z.239
+
+ +The provided router connects to ALL.Net services using an IPSEC tunnel connected to `vpn1jpn.sys-all.net` and `vpn2jpn.sys-all.net`. That's where the details on the SEGA VPN end for hopefully obvious reasons.