Views: 74,876 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 08-18-17 07:48 PM
Guest:

0 users reading The wifi thread | 1 bot

Main - General - The wifi thread New reply


StapleButter
Posted on 06-19-17 11:49 AM Link | #206
So this is it.


On the technical side, wifi is mostly done. There are still bits of the hardware that aren't emulated, but they don't seem to be crucial. Some (better error handling, power management, etc) would be nice to have. Some (RF/BB chips) aren't necessary.


But on the user interface side, this is far from finished.


What testing has revealed for now:

* Binding the socket to INADDR_LOOPBACK works best under Windows, but doesn't work under Linux.
* Binding the socket to INADDR_ANY works under both, but not as well (Pictochat runs into issues where one or more players can't send). INADDR_ANY also theoretically allows playing on separate computers over LAN, but I can't test it. Better have a strong network, it sends a lot of packets.


Considerations:


* option to choose between INADDR_LOOPBACK and INADDR_ANY (hopefully make both work under Linux)


* add blocking RX check for multiplay acks, may help


* option to set the maximum duration for blocking RX checks -- more time means more possible slowdown, less time means more chance of missing MP reply packets or receiving them too late


* option to choose the interval for regular (non-blocking) RX checks -- currently fixed to 512 microseconds. Checking more often may reduce ingame lag but put more strain on the host system.



Also, a user might want to run melonDS instances using different config files and firmwares, so we need to think of a good way to cover that.



Opinions are welcome and wanted.

MeaningOfLifeIs42
Posted on 06-19-17 01:03 PM Link | #207
Quick question, is it / will it be possible for MelonDS and a real DS to connect?

Nadia
Posted on 06-19-17 05:11 PM Link | #209
Pokémon works.

[thumbnail][thumbnail]

StapleButter
Posted on 06-19-17 05:15 PM Link | #210


footage of NSMB MvsL, courtesy RicBent

note that it needs some adjustments to work under Linux


Posted by MeaningOfLifeIs42
Quick question, is it / will it be possible for MelonDS and a real DS to connect?

perhaps, time will tell, but it'll require damn good sync

maybe lag inherent to OS abstraction and drivers/firmwares will make it impossible

Lurkon01
Posted on 06-19-17 05:20 PM (rev. 3 of 06-20-17 04:42 PM) Link | #211
I'm hoping there will be an article on the development of this, would definitely be an interesting read. Also with the option to change the interval for RX checks you could have presets to choose from like 128, 256, 512 milliseconds or whatever steps make sense for the user to choose from, plus an option for custom so it can be set manually.

Anyway great work!

Also will be testing mario kart in the morning if it hasn't already been done.

Tested out mario kart and it will disconnect the client from the host after a little bit of lag after connection.

StapleButter
Posted on 06-20-17 04:47 PM Link | #220
MKDS seems to be one of the worst offenders. I tried, managed to select characters but it disconnected afterwards. It also lagged like crazy.

Andree
Posted on 06-20-17 08:33 PM Link | #221
Well, mkds wifi needs a lot of work.

...Or maybe not?


____________________
Hoping to play wiimmfi in the future version of melonDS!

telon22
Posted on 06-24-17 02:59 AM Link | #235
Posted by Nadia
Pokémon works.

[thumbnail][thumbnail]

I tried it on windows and they can recognize each other but then can't connect. After multiple tries the emulator crashes.
Same case with SMB game like shown in video, they see each other but cant connect. Do you think this is my user(my) issue or this is emulator issue?

Ndymario
Posted on 06-27-17 05:42 PM Link | #239
Seems to be just you (As of now). I can play MvL (Haven't tried Pokemon)

telon22
Posted on 06-29-17 01:28 AM Link | #243
Posted by Ndymario
Seems to be just you (As of now). I can play MvL (Haven't tried Pokemon)

Are you positive? This is on windows because when I asked @StapleButter this was his reply on gbatemp

" Probably won't work with 0.3 -- the latest wifi advance is for 0.4. "

StapleButter
Posted on 06-29-17 03:15 AM Link | #244
Well yeah. Seems some sites made posts that imply 0.3 has the wifi, when it's infact not the case. 0.3 is able to send/receive some things but you aren't exchanging pokemons or playing MvsL with it.

telon22
Posted on 06-29-17 04:39 PM Link | #246
Posted by StapleButter
Well yeah. Seems some sites made posts that imply 0.3 has the wifi, when it's infact not the case. 0.3 is able to send/receive some things but you aren't exchanging pokemons or playing MvsL with it.

Thanks for clearing this up :)

telon22
Posted on 07-17-17 02:50 AM Link | #262
Ok testing the 0.4 build I have tried only few games and those like SMB works almost flawlessly.
I have been able to use trading and other things in Pokemon 5th gen ie BW but on 4th gen aka HGSS and DP whenever I try to trade/ battle the screen would go to the trade screen for eample but then suddenly I get this error https://imgur.com/a/VluvF . I have tried many times with that wifi bind setting too but this happens in 4th gen games only.
I would like to know if this happens to me only or also others?

Saizo7
Posted on 07-18-17 11:20 AM Link | #264
Posted by telon22
Ok testing the 0.4 build I have tried only few games and those like SMB works almost flawlessly.
I have been able to use trading and other things in Pokemon 5th gen ie BW but on 4th gen aka HGSS and DP whenever I try to trade/ battle the screen would go to the trade screen for eample but then suddenly I get this error https://imgur.com/a/VluvF . I have tried many times with that wifi bind setting too but this happens in 4th gen games only.
I would like to know if this happens to me only or also others?

Yeah, it happens to me too. I can't complete a trade on gen 4, I get the same error. Also, in BW & B2W2, some trades are completed successfully, but sometimes it gets stuck to this screen forever.

Ririshi
Posted on 08-10-17 10:17 AM Link | #309
Hi y'all! I'm trying to get WiFi to work with Pokémon Black, on my laptop. Testing the connection in NWC gives me error code 50099: no access point in range. What settings am I supposed to use? If this information is provided somewhere else, I'm sorry as I seem to have missed it.

fede89
Posted on 08-10-17 03:41 PM Link | #311
Hi, I've tested trading Pokemon in many ways:
-Between Pokemon Black and Pokemon Black 2 (the same savefile on the same PC): one of the games crashes, then I get a "connectivity error". Failed.
-Between Pokemon Black and Pokemon Black (the same savefile on the same PC): one of the games crashes, then I get a "connectivity error". Failed.
-Between Pokemon Black and Pokemon Black (one on my PC, the other one on my laptop): they don't see each other at Union Room.

I did all my tests on Windows 7 - 64 bits, using melonDS v0.4.

Having read that some people traded succesfully, I want to know if I'm doing something wrong or if it's a compatibility issue.

(Anyway, thanks for this emulator!).


Main - General - The wifi thread New reply

Page rendered in 0.037 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 106/106, time: 0.021 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2015-10-07)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.