[[ NEW ]] FPS Demo!

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Mikers
Posts: 1
Joined: 22 Dec 2010, 14:35

Post by Mikers »

Hey people! wasn't able to find fpsExtension.jar in the downloaded files.
could anyone please upload it somewhere?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Oh, sorry. There's been a misunderstanding between Thomas and me and the server side part is missing. I apologize.

I am reupping the example. Anyways if you have the previous version you can use that. The server side code didn't change. I will post an update when the upload is finished.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

All done.
Lapo
--
gotoAndPlay()
...addicted to flash games
demonmans22
Posts: 2
Joined: 24 Nov 2010, 10:54

Post by demonmans22 »

i keep getting these errors, while using my local ip. have already added my ip address to the admin tool, yet still does not work.

Code: Select all

[SFS DEBUG] TCPSocketLayer: Connection error: No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.Connect (System.Net.IPAddress address, Int32 port) [0x00000] in <filename unknown>:0 
  at Sfs2X.Core.Sockets.TCPSocketLayer.ConnectThread () [0x00000] in <filename unknown>:0 

On Connection callback got: False (error : <Connection error: No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.Connect (System.Net.IPAddress address, Int32 port) [0x00000] in <filename unknown>:0 
  at Sfs2X.Core.Sockets.TCPSocketLayer.ConnectThread () [0x00000] in <filename unknown>:0  [ConnectionRefused]>)
UnityEngine.Debug:Log(Object)
LobbyGUI:OnConnection(BaseEvent) (at Assets/Lobby/Scripts/LobbyGUI.cs:99)
Sfs2X.Core.EventDispatcher:DispatchEvent(BaseEvent)
Sfs2X.SmartFox:ProcessEvents()
LobbyGUI:FixedUpdate() (at Assets/Lobby/Scripts/LobbyGUI.cs:87)
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

Sounds 99.999% certainty as a firewall blocking your request. Check server side firewall for tcp+udp 9933 open

/Thomas
demonmans22
Posts: 2
Joined: 24 Nov 2010, 10:54

Post by demonmans22 »

wow, thank you! it now works. a very good engine!
xtremegames
Posts: 17
Joined: 02 Jan 2011, 01:06
Location: US

Car

Post by xtremegames »

Hello,

I was wandering why this is happening.I tried replacing the player and enemy prefab found in your demo with a car set-up with full physics(drivable and all).I added the sender and receiver scripts to the new prefabs,and drag and dropped them in the game object named game.When i click play and go through the lobby and start a new game unity crashes,and closes.

Could it be the demo is not suitable for a car game?If so how can i use your lobby,with my car game?
behealed
Posts: 18
Joined: 16 Jan 2011, 04:10

Post by behealed »

Hey I'm trying to load the FPSextensions java project into eclipse and, since I'm rather new to eclipse, I'm having an unbelievably difficult time figuring out how to load it correctly.

Could anyone give a few step-by-steps on how to load it?

So far what I am doing is...

1) I created a folder GameExtensions on my desktop.
2) I open eclipse, and tell it to use that folder for the workspace.
3) I tell eclipse to make a new project, in the GameExtensions folder.
4) I tell eclipse to "import" the "file system" of FTPExtensions.
5) It gives me 25 errors saying that files are missing from "Applications\SFS2X\lib" such as "root.java" and 24 other missing files.
6) I found those files in the main SFSx2 server release (not part of the FPS demo).. so I created a subfolder called "Applications\SFS2X\lib" in my GameExtensions folder. And I copied all the files over to that folder, restarted eclipse, and it still shows the 25 errors and the files didn't even appear in the package explorer.
7) so I tried "importing" those files into the folder I created, and now they do appear in my package explorer, but the 25 errors still persists.
8) I'm starting to run out of ideas, any help?
behealed
Posts: 18
Joined: 16 Jan 2011, 04:10

Post by behealed »

Nevermind I figured it out. You right click one of the errors, select quick fix, then go to some button that says "add external jar" and add all the files from the lib folder under sfsx2 folder wherever the main sfsx2 server files are installed. Then, delete all the lines in the same box that have errors (not sure why that works, but it does). And click okay or whatever, and bingo, the errors are gone. Then, "export" to compile and deploy the extension to the extensions folder to load into the server, following the instructions at http://docs2x.smartfoxserver.com/Develo ... extensions
coreye
Posts: 2
Joined: 30 Jul 2010, 01:08
Location: Toronto Ontario

Very happy about this demo UDP and SFS2X community license!

Post by coreye »

Works great, simple enough to install, indeed the transformations via UDP seems quite a bit faster than the SFS island demo, just a little confirmation needed if you don't mind...

In other demos for extensions I need to explicitly set the package in the admin tool for the zone, but not for this one (obviously).

I haven't dug through the c# code in Unity yet but zone ext. is set in there yes?

Thanks a heap for your hard work Thomas and Lupo! very much appreciated it has pretty much decided our project team to use it rather than the other competitor.

-C
appels
Posts: 464
Joined: 28 Jul 2010, 02:12
Contact:

Post by appels »

you can set the zone extension in the admin webtool and assign room extensions through code from the client or the server.
tikod
Posts: 2
Joined: 23 Feb 2011, 09:48
Location: FR

Post by tikod »

Hello,

Someone could help me to run the demo?

I upload fpsExtension.jar in /SFS2X/lib

When i run the demo, i see a user connect to SimpleChat but it's quicly disconnect...

After upload the fpsExstension.jar I have to create a new zone ?
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

There is a FPS document available as download where you got the code that should explain the installation.

Try to take a look and if you still have issues, then ask away!

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
tikod
Posts: 2
Joined: 23 Feb 2011, 09:48
Location: FR

Post by tikod »

I can't go away the login step... I press login, I see on the admin a new user, but it go away after two seconds...

I try to run the demo from unity3D IDE, to an external IP.

I turn off windows firewall & avast.

My router rules accept udp & tcp on the 9933 port

The iptable of my server :
[quote]iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:9933
ACCEPT tcp -- anywhere anywhere tcp dpt:9933

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:9933
ACCEPT tcp -- anywhere anywhere tcp dpt:9933[/quote]

and the unity consol

[quote]On Connection callback got: True (error : <>)
Sending login request
Logged in successfully
UDP error:
[SFS DEBUG] UDPSocketLayer: Error reading data from socket: Une opération de blocage a été interrompue par un appel à WSACancelBlockingCall.
[SFS DEBUG] Unexpected UDP I/O Error. Error reading data from socket: Une opération de blocage a été interrompue par un appel à WSACancelBlockingCall.
[Interrupted]
[SFS DEBUG] TCPSocketLayer: Connection closed by the remote side[/quote]

I suppose I have to configure other files ... but I don't see whats...
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

I've recently had a guy with same problem as you. And I never heard back from him on the exact fix. But it worked locally on his machine, but he got that error after moving the code to a Windows 2008 server.

All he said was, that he reinstalled something and then it worked for him. Dunno what or how

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Post Reply