Tetattds 3.0

What’s new in 3.0:

  • Local Wifi
  • Host game on DS
  • SDL port for PC
  • Lots of changes in the code

It’s been a long time since there was any news on Tetattds. Two big things has happened. The first is that we ported Tetattds to SDL so that it can run on PC during the last year. The purpose for this was that we wanted to be able test new features with access to a debugger. If we ever would add a big feature like AI players this would be very useful, although we probably never will. Another reason was to see if it was even possible. It was but the code is now in a mess. :-)

You can play the SDL version against other DS players, but as I said it is only meant to be  used for development. One problem is that the GUI is exactly the same as the DS version, and not suited for PC. I have provided a compiled version for Windows. If you want to have instructions for compiling on Linux or Mac OS X please post a comment.

The other big thing, local wifi, was added during christmas. It is now possible to play multiplayer player games without an access point. This was made possible using liblobby, which is a work-in-progress library, but development seems to have stopped.

One reason I didn’t release Tetattds 3.0 back then was that I meant to refactor the network code in to make efficient use of the bandwidth of local wifi. One problem with liblobby is that it sends packets reliably, and when too many packets is pouring in they start to pile up.

The network code in Tetattds is implemented using UDP, with reliable packets on top of that. That gave us much better response times than TCP since TCP is cached. This also means we don’t need liblobby’s reliable implementation. If it was possible to send packet directly, and skipping the “lobby” part of liblobby, we could send field updates a lot more often, since these are sent unreliably. There is a function to broadcast packages unreliably which would be perfect for this, but I need to refactor the code to make use of this.

Unfortunately the christmas vacation was over and I lost interest in the project, so I never investigated that further. I’m releasing what I have now so that it will not go to waste. Be warned that it is somewhat unstable.

Download here.

7 Responses to “Tetattds 3.0”

  1. miggi Says:

    Great! Thank you! It’s one of my favorite homebrew…

  2. Jdbye Says:

    Oh crap, SDL port? Please port it to gp2x! (gp2x has a SDL port, should be very easy to do). http://www.gp2x.com should have a premade win/gp2x cross compiler and dev-cpp in a simple no-install “unzip and use” zip package. There’s also the devkitGP2X (the package comes with a mikmod port too, among other things, but no gui) google gp2x wiki for more info (don’t remember the url)

  3. Lance Says:

    Hi love the new version! it works great on my laptop and DS but i’ve got a question how do you hook up between the pc version and the ds? i try having the host on the ds and join in on the pc and i try join in on ds and host on pc but can get it working! my mom and i tryed playing together can you help? also what is the server thingy that comes with the ds version i don’t know how to use it and yes i’ve read the readme what do i do? E-mail me at Gero3977@gmail.com with the anwser please

  4. Markus Bäumler Says:

    The highscores button in Tetattds 3.0 doesn’t work. Clicking it doesn’t show anything. There are no problems with Tetattds 2.0.
    I’m using a Cyclo DS with newest firmware (1.41).

  5. Markus Bäumler Says:

    The highscore button doesn’t work in Tetattds 3.0. I’m using a CycloDS flash-card. Tetattds 2.0 works fine.

  6. Gh0st Says:

    Thanks for the new version.

    DS to DS is not working so far with 2 DS with different firmwares both using latest cyclods firmware V1.5b.

    I don’t know if you want to investigate this more but feel free to contact me for debugging if you want

    Thanks for your hard work anyway and for sharing it of course ;-)

    I’m not sure but the highscore problem is perhaps related to CAPS in previous version of TETATTDS.DAT ?

  7. gh0st Says:

    Tested deeper and finally it is working fine with a server and also in wifi DS to DS mode ( after random errors on connecting from an old DS )

Leave a Reply


Bad Behavior has blocked 37 access attempts in the last 7 days.