[[Â NEW ]]Â FPS Demo!
-
demonmans22
- Posts: 2
- Joined: 24 Nov 2010, 10:54
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
-
demonmans22
- Posts: 2
- Joined: 24 Nov 2010, 10:54
-
xtremegames
- Posts: 17
- Joined: 02 Jan 2011, 01:06
- Location: US
Car
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?
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?
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.
I'm starting to run out of ideas, any help?
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.
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
Very happy about this demo UDP and SFS2X community license!
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
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
-
ThomasLund
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
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
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
Follow on twitter: http://twitter.com/thomas_h_lund
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...
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
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
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
Follow on twitter: http://twitter.com/thomas_h_lund