From 221923094feae82dcbd2d9113b08bb6acd5bb0b5 Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Mon, 3 Aug 2020 20:53:25 -0400 Subject: [PATCH] Show zero SOS mails in production instead of a glitchy one. --- .../pokedngnwii/web/rescue/rescueList.ashx.cs | 17 +++++++++++++++-- .../pokedngnwii/web/rescue/rescueRegist.ashx.cs | 6 ++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Sample/pokedngnwii/web/rescue/rescueList.ashx.cs b/Sample/pokedngnwii/web/rescue/rescueList.ashx.cs index 06d013c..091d2b5 100644 --- a/Sample/pokedngnwii/web/rescue/rescueList.ashx.cs +++ b/Sample/pokedngnwii/web/rescue/rescueList.ashx.cs @@ -28,8 +28,20 @@ namespace Sample.pokedngnwii.web.rescue // 0010: 000000180000000c 0000000600000000 // 0020: 0000002000000001 + // request: a bunch of 32-bit BE ints + // pid, 0, 24, 12, 6, 0, 2, 1 + // response: + // at offset 0x2c, we see the request player name (? pink text) + // in unicode katakana: pokemonzu + + // this dummy response will tell the game there is no Rescue Mail. + response.Write(new byte[] + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + }, 0, 8); + + /* response.Write(new byte[] { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xb1, 0x4a, 0xa9, 0x9f, 0x50, 0x07, 0x3e, 0x86, 0xf3, 0x55, 0x00, 0x00, 0x00, 0x00, @@ -56,7 +68,8 @@ namespace Sample.pokedngnwii.web.rescue 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, - 0, 212); + 0, 204); + */ } } } diff --git a/Sample/pokedngnwii/web/rescue/rescueRegist.ashx.cs b/Sample/pokedngnwii/web/rescue/rescueRegist.ashx.cs index b76bc94..4617edc 100644 --- a/Sample/pokedngnwii/web/rescue/rescueRegist.ashx.cs +++ b/Sample/pokedngnwii/web/rescue/rescueRegist.ashx.cs @@ -36,6 +36,12 @@ namespace Sample.pokedngnwii.web.rescue // 00a0: 0000000000000000 0000000000000000 // 00b0: 00000000 + // request 0000-0007: gamestats boilerplate, pid and blob length + // 0008-000b: pid in big endian + + // request is a rescue mail payload, response is the ID it has been uploaded with in big endian + // the below response corresponds to 0000-0011-0926 + response.Write(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xb1, 0x4e },