Hello,
we are glad to release a new first person shooter demo made in Unity with sources and white paper. The demo is still in beta but perfectly playable, Thomas Lund is finishing the accompanying white paper, which will take some more time, but we were eager to release the game
The FPS demonstrates the new protocol at work, various multiplayer prediction techniques and of course the use of UDP for fast updates.
Download the Unity SFS2X FPS Demo (111 MB)
Required: Unity 2.6+
Known bugs:
-> cannot login after a logout, just restart the game
-> possible browser issue when closing the tab, only using Unity 2.6
-> white paper partially complete
[[Â NEW ]]Â FPS Demo!
Unity 3 under Windows 7
Standalone runs and lets me launch multiple clients on the server ok (I'll never walk the same again!), but they too freeze when trying to close them.
No idea if this is related to problem discussed in Thomas Lund's fix for Windows clients, as you handle disconnects differently in NetworkManager (nope, see edit below); I'll try it on a Mac tonight.
Here's the console output when stopping the game in the editor...
Note: This is with the RC1a update
Edit: Ah actually my bad, as the disconnect is of course in SmartFoxConnection not NetworkManager (doh!)
Standalone runs and lets me launch multiple clients on the server ok (I'll never walk the same again!), but they too freeze when trying to close them.
No idea if this is related to problem discussed in Thomas Lund's fix for Windows clients, as you handle disconnects differently in NetworkManager (nope, see edit below); I'll try it on a Mac tonight.
Here's the console output when stopping the game in the editor...
Code: Select all
[SFS DEBUG] TCPSocketLayer: General error reading data from socket: Read failure at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Sfs2X.Core.Sockets.TCPSocketLayer.Read () [0x00000] in <filename unknown>:0
Note: This is with the RC1a update
Edit: Ah actually my bad, as the disconnect is of course in SmartFoxConnection not NetworkManager (doh!)
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
happy you like it!
Yeah - there are the 3 known issues
- documentation not done
- logout functionality doesnt allow you to login again
- crash problem on shutdown
We decided to release it as is for now and let you play with it. Its been in the cooker for way too long - and being swamped with other work simply didnt give me time to fix those last things.
"On the other side" of my work load I will finish up the bugs. But feel free to write here with any fixes you find + new bugs you discover. I'll collect it all up for next release.
Also - if you have any questions on how this works - post away! Its meant as a tutorial and example. So asking questions and/or sharing your knowledge will make it easier for everyone else to learn too.
/Thomas
Yeah - there are the 3 known issues
- documentation not done
- logout functionality doesnt allow you to login again
- crash problem on shutdown
We decided to release it as is for now and let you play with it. Its been in the cooker for way too long - and being swamped with other work simply didnt give me time to fix those last things.
"On the other side" of my work load I will finish up the bugs. But feel free to write here with any fixes you find + new bugs you discover. I'll collect it all up for next release.
Also - if you have any questions on how this works - post away! Its meant as a tutorial and example. So asking questions and/or sharing your knowledge will make it easier for everyone else to learn too.
/Thomas
WoW great tutorial. Unfortunately i dont use unity, but as im developing a 3rd person shooter based in a 1st person shooter in flash, i'll learn some of the techniques such as the interpolation and extrapolation
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Awesome, thank you very much! I will go through this one in detail. Just fired it up, but I seem to be having an UDP problem (this is with Unity 3.1.0f3 on Windows 7 with SFS on localhost):
Code: Select all
Logged in successfully
[SFS - ERROR] UDPSocketLayer: Error reading data from socket: An existing connection was forcibly closed by the remote host.
[SFS DEBUG] UDPSocketLayer: Error reading data from socket: An existing connection was forcibly closed by the remote host.
[SFS - WARN] Unexpected UDP I/O Error. Error reading data from socket: An existing connection was forcibly closed by the remote host.
[ConnectionReset]
[SFS DEBUG] Unexpected UDP I/O Error. Error reading data from socket: An existing connection was forcibly closed by the remote host.
[ConnectionReset]
[SFS - WARN] UDPSocketLayer: Exception aborting socket thread: Thread was being aborted
[SFS DEBUG] UDPSocketLayer: Exception aborting socket thread: Thread was being aborted
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
I was running with Windows Firewall, but just disabled that and the AntiVirus (Avira) as well for good measure. Didn't help though, still getting the same errors.
Never mind! Just proved I'm not very good at reading manuals. I had not enabled UDP (this is no excuse, but while glancing over the manual I saw "If you install the example in a default configuration, then no additional changes are needed.").
After adding UDP (same port as TCP) and restarting the server it worked!
Thanks and sorry for the confusion.
Never mind! Just proved I'm not very good at reading manuals. I had not enabled UDP (this is no excuse, but while glancing over the manual I saw "If you install the example in a default configuration, then no additional changes are needed.").
After adding UDP (same port as TCP) and restarting the server it worked!
Thanks and sorry for the confusion.
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
on vista i'm getting :
[SFS DEBUG] UDPSocketLayer: Error reading data from socket: An existing connection was forcibly closed by the remote host.
[SFS DEBUG] Unexpected UDP I/O Error. Error reading data from socket: An existing connection was forcibly closed by the remote host.
[ConnectionReset]
[SFS DEBUG] UDPSocketLayer: Exception aborting socket thread: Thread was being aborted
UDP error:
UnityEngine.Debug:Log(Object)
LobbyGUI:OnUdpInit(BaseEvent) (at Assets/Lobby/Scripts/LobbyGUI.cs:141)
Sfs2X.Core.EventDispatcher:DispatchEvent(BaseEvent)
Sfs2X.SmartFox:ProcessEvents()
LobbyGUI:FixedUpdate() (at Assets/Lobby/Scripts/LobbyGUI.cs:83)
[SFS DEBUG] UDPSocketLayer: Error reading data from socket: An existing connection was forcibly closed by the remote host.
[SFS DEBUG] Unexpected UDP I/O Error. Error reading data from socket: An existing connection was forcibly closed by the remote host.
[ConnectionReset]
[SFS DEBUG] UDPSocketLayer: Exception aborting socket thread: Thread was being aborted
UDP error:
UnityEngine.Debug:Log(Object)
LobbyGUI:OnUdpInit(BaseEvent) (at Assets/Lobby/Scripts/LobbyGUI.cs:141)
Sfs2X.Core.EventDispatcher:DispatchEvent(BaseEvent)
Sfs2X.SmartFox:ProcessEvents()
LobbyGUI:FixedUpdate() (at Assets/Lobby/Scripts/LobbyGUI.cs:83)
Who is online
Users browsing this forum: No registered users and 54 guests