Page 16 of 28

Re: Daytona USA Progress

Posted: Tue Feb 21, 2023 7:52 pm
by Mechanic
Lovin it !

Re: Daytona USA Progress

Posted: Tue Feb 21, 2023 9:44 pm
by TheTinWhisker
Excellent news about Daytona. I had actually seen the YouTube video before I saw the updated post. Hopefully we can multiplayer soon. I’m ready for some races.

Re: Daytona USA Progress

Posted: Tue Feb 21, 2023 9:44 pm
by Ryo_Hazuki
Amazing to be able to follow all the progress of this work, all documented in this topic, great job.

Re: Daytona USA Progress

Posted: Wed Feb 22, 2023 8:44 am
by mickschen
But its for console too or only emulation?

Re: Daytona USA Progress

Posted: Wed Feb 22, 2023 11:57 am
by ioncannon
kazade wrote:
ioncannon wrote:Was able to get a working Flycast copy with debugger and open ports. Hopefully it doesn't start crashing.


The problem is when an incoming UDP packet is received it reads where it came from; which ends up being the REAL IP address of the machine (not the PPP one). So the "getPlayerForSocket" function returns -1 as it can't find the player, and aborts packet parsing.
So a few other games have the same issue (if I'm understanding you correctly) where they assume the Dreamcast is directly connected to the outside world and so the DC IP is the external IP.

Shuoma made some utilities that are in the Dreampi image which manipulate the packets on the fly to replace the IP address IIRC.
Yep got into contact
mickschen wrote:But its for console too or only emulation?
It should once we fix the PPP IP issue. I've already contacted Shu who made a similar fix for the 2K2 games. Basically a service on the DreamPi looks for the session start packet and rewrites the PPP assigned IP to the real WAN one, so then everything should work properly.

Re: Daytona USA Progress

Posted: Wed Feb 22, 2023 7:29 pm
by Treamcaster
This is LEGENDARY, seriously. Wow.

Re: Daytona USA Progress

Posted: Thu Feb 23, 2023 2:27 am
by Retro-45
This is gonna be fun
Great job Ioncannon you deserve a break after this man.

Re: Daytona USA Progress

Posted: Thu Feb 23, 2023 9:30 am
by ioncannon
Been working on making the lobby server more stable.

* Gutted and replaced all the networking stuff with better code from my other projects.
* Added code to handle disconnects and bad (either due to corruption or hackers) packets.
* Logging in with the same handle or IP will kick the currently logged in duplicate. This is due to limitations of Daytona (it uses the Handle as a unique key for packets, and always assumes your WAN IP is unique due to PPP days).
* Rewrote a bunch of the packing processing code to fix weird sync errors (IE: teams not showing up, or the host not appearing as a host).

Still one big bug with team data being screwy but I think it's just a malformed packet. Otherwise it feels a lot more stable now.

Re: Daytona USA Progress

Posted: Thu Feb 23, 2023 12:33 pm
by itsthinkingstill
Amazing Work as always, cant wait to play it online!

Re: Daytona USA Progress

Posted: Thu Feb 23, 2023 10:48 pm
by ioncannon
Fixed the team data bug and implemented the (very basic) search feature. There is still the stats stuff which I am unsure how it works; but reward cars at least save when you quit. Other than stats we are now feature complete.

Image

Just more testing to catch anything else and in chats with Shu to getting the PPP issue fixed.