registry = ipsRegistry::instance(); $this->settings =& $this->registry->fetchSettings(); } public function getOutput() { return; } public function replaceOutput($output, $key) { require_once( IPSLib::getAppDir('ibprobattle') . '/sources/battleHooks.php' ); $this->battleHook = new battleHooks( $this->registry ); return $this->battleHook->statsTopicView($output, $key); } } ?>registry = ipsRegistry::instance(); $this->settings =& $this->registry->fetchSettings(); } public function getOutput() { require_once( IPSLib::getAppDir('ibprobattle') . '/sources/battleHooks.php' ); $this->battleHook = new battleHooks( $this->registry ); return $this->battleHook->statsTopicViewJS(); } } ?> New HOMEBREW-ONLINE-GAME ! Link Inside ! - DS Hacks [/ds] - 1Emulation.com

Jump to content

Welcome to 1Emulation.com
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

New HOMEBREW-ONLINE-GAME ! Link Inside !

- - - - -

  • Please log in to reply
45 replies to this topic

#1
qw3rty

qw3rty

    Novice

  • Members
  • 28 posts
Hi,

The game is already working online, but I haven't included a lobby yet.
You can only play in "direct connect" mode - that means you have to know one NDS's public IP, and enter that on the client side.

There are still some bugs though (it crashes at the end of the match on the server side,when the statistics are shown, but that should be fixed in a few hours), but it works quite well during the match.


You can download the binary HERE.

As soon I have eliminated all problems of the online-mode, I'm gonna implement a lobby....
Posted Image

Posted Image

Posted Image

Gameplay :

Blubb is a mix of Battleships and Minesweeper. Each player has four ships with different attributes at the beginning.
The ships use, unlike battleships, only one square per ship.
In each round, you can either move a ship, or shoot with a ship.
To move a ship, click on it (with A), then move with the d-pad.
You have to use ALL your movepoints.
To shoot, click on the ship you want to shoot, then DON'T move, but click "A" again.You can only shoot on the adjacent fields.

If you miss, the NDS will tell you how much ships of the enemy are in proximity. If you know minesweeper, you'll soon know how to find your enemy.

How to connect to another NDS :

Blubb uses the firmware-connection-setting (currently only #1 !), use mariokart or any other online-game to configure the settings.
You have to use (as usual) :
-no WEP
-Static IP
-Static DNS (not important, because I don't use DNS yet)

Blubb uses port 9999 UDP, BOTH parties, the client and the server have to forward that port to their NDS.


I have not implemented a lobby yet, that means, that you have to have a date with another NDS-player.
To connect :
Click on "NETPLAY" in the main menu, then choose either server or client (one side must be server, the other client).
The client is asked for the servers public IP then - so the person who is server must tell the client his IP (through an instant messenger for example).
The server-side should start the netgame FIRST (so it is already listening on port 9999 when the client connects) - it should work anyways, but just to be sure, try to start the netplay in the proper order)


Please tell me what you like, and more important, the things you dislike.
You can contact me on MSN-messenger at dreamflat@hotmail.com, I'm allways searching for testers (bugfixing the online part is a tedious job - I can need any help I can get :naughty:)


P.S. : Is there anyone, who knows, why I have to forward port 9999 on the client side too ?
This is how I connect :
-the client sends his login packet from clientIP:9999 to serverIP:9999
-The server send his answer from serverIP:9999 to clientIP:9999.
If I don'T have portmapping activated on the client side, the answer doesn't come through.... I thought the router should now where to send the packet, because it came back from the same port to the same port ?!
It seems to work in wifichat too....Bafio, anybody ?

Edited by qw3rty, 22 March 2006 - 11:00 AM.


#2
sgstair

sgstair

    Proud Fan

  • Emulator Author
  • 203 posts
  • Location:The depths of the Internet

...
P.S. : Is there anyone, who knows, why I have to forward port 9999 on the client side too ?
This is how I connect :
-the client sends his login packet from clientIP:9999 to serverIP:9999
-The server send his answer from serverIP:9999 to clientIP:9999.
If I don'T have portmapping activated on the client side, the answer doesn't come through.... I thought the router should now where to send the packet, because it came back from the same port to the same port ?!
It seems to work in wifichat too....Bafio, anybody ?

<{POST_SNAPBACK}>


You should use a random port on the client side, then it should work, I think. - next version of the lib will do this automaticly if you don't bind the socket.

-Stephen

Edited by sgstair, 22 March 2006 - 03:35 PM.


#3
qw3rty

qw3rty

    Novice

  • Members
  • 28 posts
Huh - why does a random port work ? Is it enough, if I use a DIFFERENT port for the client ?
btw. I open ONE port right after connecting to the AP, and never close it.

P.S. : The binary on my webpage was just updated - the end of the game shouldn't crash the server anymore, and I fixed the statistics.
Some minor cosmetical fixes included too (you don't have to input the serverIP again for new matches.)

P.P.S. : kudos to you Stephen for your work on the wifi-lib :naughty:
You made my dream of online-Blubb possible... THANK YOU !

Edited by qw3rty, 22 March 2006 - 03:53 PM.


#4
QazzaQY2K

QazzaQY2K

    Newbie Poster

  • Members
  • 8 posts
  • Location:Sweden
GREAT work qw3rty! u deserv a hug from my sisster :naughty:.. anyway keep up the good work :unsure:

#5
qw3rty

qw3rty

    Novice

  • Members
  • 28 posts
Thanks :unsure:

I could need a hug from your sister :naughty:


If anybody has time, I urgently need testers.
Contact me via messenger :

MSN : dreamflat@hotmail.com
ICQ : 157831620

#6
GrupstraNDS

GrupstraNDS

    Novice

  • Members
  • 43 posts
Hey, I might be on again onite to try it out, I'll message you on MSN if I can. The last test went good, even though I got my butt handed to me. >.<

Anyone who hasnt tried this, get a hold of him, its a fun game to play online. :naughty:

#7
qw3rty

qw3rty

    Novice

  • Members
  • 28 posts
I just updated the binary on my site.
It doesn't need portmapping on the clientside anymore :naughty:
Sgstair, using a DIFFERENT port on the client side solved the porblems. THANK YOU :punk:

I'm currently trying to implement the chat....maybe tomorow we'll have pictochat functionality :unsure:

EDIT :

I updated the download on my page - I included a sneak-a-peek preview of the chat-interface....however - sending messages isn't implemented yet.
But you can already draw nice pictures :P

Edited by qw3rty, 22 March 2006 - 10:47 PM.


#8
qw3rty

qw3rty

    Novice

  • Members
  • 28 posts
I have implemented picture-chat now !
But it isn't tested yet....but at least it shouldn't crash the program.

If anybody tries the chat, and it WOKRS, please tell me.

Updated
DOWNLOAD


EDIT :

I just verifies, that the chat gets transferred, although there are parts of the message missing on the bottom.

Edited by qw3rty, 24 March 2006 - 06:48 AM.


#9
Robert

Robert

    Alchemist

  • User Admin
  • 11,471 posts
  • Gender:Male
  • Location:Land of Oz
Sounds like a nice game there qw3erty. Thanks for making it available!

#10
teo95gr

teo95gr

    Member

  • Members
  • 69 posts

Sounds like a nice game there qw3erty. Thanks for making it available!

<{POST_SNAPBACK}>

Yeah, he's right.

#11
qw3rty

qw3rty

    Novice

  • Members
  • 28 posts
I have updated the binary on my page.
Now the messages should be transferred completely, and it could work in both directions (untested), although it may crash the game, as soon the waiting player sends a message.

If chatting works both ways, without crashing the game, please add a reply to this topic.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users