Quantcast
Channel: Wii-Homebrew.com Forum
Viewing all articles
Browse latest Browse all 7791

Smash Bros: Find players across regions (TEST)

$
0
0
Problem

On matchmaking SSBB use the member 'key_ver' to filter out players of the same region/version.
An old analysis tells us all variants of the value:

Quellcode

  1. 14088 key_ver = SbxDef7C26 _O
  2. 1623 key_ver = SbxDef7C26 _T
  3. 1592 key_ver = SbxDef8218E_O
  4. 295 key_ver = SbxDef8218E_T
  5. ^^^^^ ^
  6. 11111 2

We see, that the values differ at 2 parts. The first part is relevant for the region selection, the second part for a match variant.

And here is the ID4 analysis for part 1:

Quellcode

  1. +--------+------+
  2. | code | id4 |
  3. +--------+------+
  4. | f7C26 | RSBE |
  5. | f7C26 | RSBJ |
  6. | f8218E | RSBP |
  7. +--------+------+

PAL uses another code as Japan and USA. On matchmaking only record are searched, that match the own value. And so PAL players will never meet player from the other regions


Solution

The solution consist of 2 parts:

1.) Patch the where clause, so players of all regions are found. This can be simply done by replacing in-place (SQL syntax):

Quellcode

  1. from: key_ver = 'SbxDef8218E_T'
  2. to: key_ver like 'SbxDef%_T'
  3. ^^^^^^^^^^^^^^
  4. this is replaced
I have already implemented this in the old MS server. But it didn't work, so there must be step 2.

2.) Modify the results for column "key_ver", so that the string from the where clause is replied.
I have now implemented it in the new MS server.


Testing

I plan to run the new MS server in the next days. With the new MS server I can enable or disable the SbxDef patch without stopping the servers.

With the test we must also find out, if matches PAL+USA matches are practicable because Smash is very lag sensitive.

And so I need some testers from the different regions to verify this. For the test I'll enable the the test server and you must only change the DNS server settings of your Wii.

My date suggestion is Saturday, 15:00 UTC. So please discuss it here.

Viewing all articles
Browse latest Browse all 7791