gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > ad hoc update?

#169261 - iainprice - Thu Jun 25, 2009 8:52 pm

Hi,

I want to add ad hoc multiplayer to my game and was wondering what the state was? There is some info in the wifi lib but is there any working code out there? liblobby seems to have basically disappeared.....

Any suggestions?

Thanks.

#169263 - Pete_Lockwood - Thu Jun 25, 2009 9:49 pm

I've been running my wireless multiplayer game without an AP for a few months using a hack I posted but it really depends: do you want something that works but has been labeled "pretty much useless" or do you want to wait to see if something else turns up?
_________________
It's not an illusion, it just looks like one.

#169264 - iainprice - Thu Jun 25, 2009 10:06 pm

:)

I want a solution that works, with reliable comms and wont get outdated next time there is a devkit update :)

Thanks for reply, I'll look at your post.....

(any demo projects available so source all in one place?)

#169301 - iainprice - Mon Jun 29, 2009 8:27 pm

Sorry for the double post....

I am a bit confused. Should I wait for the next wifi lib update and hope some ad hoc is present or should i try to piece together something similar to liblobby..... using posts that fix dropping issues?

Help.

#169302 - Pete_Lockwood - Mon Jun 29, 2009 11:13 pm

From what I gather the official adhoc support is still quite some time off, without a firm date. My hack is workable and very simple, but not perfect, and liblobby was crash-central for me when I threw together even a few simple tests.

My project lives here: http://code.google.com/p/ndspoker/ - code and a working binary are there, the relevant code is in wifi.cpp

The only thing that I didn't add to Google Code is the single function that I rewrote for the DSWifi library, but that's in my post here.


I'd say if you really want to get going on something, try my hack. I'd expect that replacing my stuff with the real adhoc support if it comes along would be pretty trivial and in the meantime you can get something working.
_________________
It's not an illusion, it just looks like one.

#169337 - Lick - Sun Jul 05, 2009 10:05 am

Pete, that's quite amazing code there.
_________________
http://licklick.wordpress.com

#169339 - iainprice - Sun Jul 05, 2009 12:45 pm

Any chance of someone posting updated lib.... or is another release of lib coming out soon with Pete's changes?

#169343 - Pete_Lockwood - Sun Jul 05, 2009 3:16 pm

Lick wrote:
Pete, that's quite amazing code there.


The hacked-together Wifi? Or the hacked-together poker game? :D


iainprice wrote:
Any chance of someone posting updated lib.... or is another release of lib coming out soon with Pete's changes?


My changes aren't going to go into libNds because they don't adhere to the 802.11 standard.

I could email you libs, but I stopped taking libNds updates at 1.3.2 (which seems to be a good thing since it looks like the Wifi got a little screwed up recently) so any binary I have relates to 1.3.2 and not the absolute latest stuff.

I suppose I might be persuaded to apply my changes to the latest stuff and build a binary but it's pretty easy so you should be able to do it yourself.
_________________
It's not an illusion, it just looks like one.