[[ NEW ]] FPS Demo!

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

Moderators: Lapo, Bax

ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 13 Dec 2010, 08:07

Super duper - happy it works for you!

And enjoy coding :-)

/T
3thamthmy
Posts: 5
Joined: 11 Dec 2010, 00:54
Location: Tunisia
Contact:

Postby 3thamthmy » 13 Dec 2010, 21:52

i'am running fox server 2x on a 2003 standard edition.
Server: Intel Core2Quad Q6600 2.4GHZ 4GB DDR2 866 MHZ,Raid15.
4 Mb ADSL connection.

is it possible that i reach a 99 users at my Fox server and that does not have effect on my PING.

or really i need a shockwave dedicated server http://www.shockwaveserver.com/

is there any function that calculate this operation users/server

Lot of thanks.
Robbilie
Posts: 190
Joined: 04 Sep 2010, 19:48
Location: Ratingen, Germany
Contact:

Postby Robbilie » 19 Dec 2010, 18:26

hey im doin some extendings on the extension...

Till now ammo and health are saved in db, last transform if u logout too...

I added a lvlsystem and beside the items that are spawned there are mobs with own lvl and health and exp they give on kill...

I want to add autoritative movement and auto attack and maybe mounts...

Orientated on a rpg so there are some things i wrote u dont need in a fps...

If u want pls help extending ;)

Robbilie
Fishypants
Posts: 57
Joined: 26 Oct 2010, 14:03
Location: South Pasadena California
Contact:

Postby Fishypants » 21 Dec 2010, 07:26

Hmmm am I doing something wrong?

I enabled UDP for the same port as TCP (9933), am playing the game in the editor. All seems good, I can login and create a new game. Once the game starts it says:

'Wait for respawn counter'

And it just starts counting up, and up and up. It never starts. Any ideas?
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 21 Dec 2010, 07:57

Sounds pretty weird - not seen that one before.

Some things to try

Did you install the extension in the right place?
Any errors in the console logfile?
Any errors in the editor.log?

/T
Robbilie
Posts: 190
Joined: 04 Sep 2010, 19:48
Location: Ratingen, Germany
Contact:

Postby Robbilie » 21 Dec 2010, 08:05

i had this problem too ( in the old fps demo i think..)

go through the readme step by step and check where u put the extension ( folder extensions create a new folder called sfsFps and put in the jar file from the folder fpsextension u downloaded with the demo...)

i only forgot this and then it all works ( and i had this problem when i created a static room and i forgot to make apply some preferences the extension does automatically when u create a room on clientside...)
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 21 Dec 2010, 14:52

Just wanted to inform everyone, that Marco uploaded the updated FPS example + latest dll + final documentation.

http://smartfoxserver.com/2X/download.php#examples

/Thomas
Robbilie
Posts: 190
Joined: 04 Sep 2010, 19:48
Location: Ratingen, Germany
Contact:

Postby Robbilie » 21 Dec 2010, 15:03

does this contain any new features or is it only a bugfix update?
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 21 Dec 2010, 15:20

Bugfix + fixed dll + finished documentation (good to read I think)
Robbilie
Posts: 190
Joined: 04 Sep 2010, 19:48
Location: Ratingen, Germany
Contact:

Postby Robbilie » 21 Dec 2010, 15:52

k thanks ;)

the exte is reeeaally easy to understand :)

is anybody interested in a small demo of my extendings?

Thomas can u pls answer m pms?

I dont kniw if its ok for u that i modified the exte for my purposes...?

Robert
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 21 Dec 2010, 21:22

Modifying the extension + client code is highly encouraged.

Its all free for you all to take, modify, use commercially etc.etc. Thats part of the reason to make these examples - to help you complete your games faster

/Thomas
stevets
Posts: 60
Joined: 11 Jul 2010, 12:22
Location: USA

Postby stevets » 22 Dec 2010, 00:40

Hi Thomas,

I did not see the server side fpsExtension.jar in the new download. Do we use the one from the previous download.
I am also having a problem with the lobby working, but the game does not start.
I will add more details later when I have some time.

EDIT: I found my problem. It seems that when I run the server as a standalone the game works, when I run as a service the game does not work.

I get this exception when I run the server as a service,

Code: Select all

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.smartfoxserver.v2.exceptions.SFSExtensionException
Message: Class not found: dk.fullcontrol.fps.FpsExtension
Description: Failure while creating room extension.
Possible Causes: If the CreateRoom request was sent from client make sure that the extension name matches the name of an existing extension
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createJavaExtension(SFSExtensionManager.java:364)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createExtension(SFSExtensionManager.java:266)
com.smartfoxserver.v2.entities.managers.SFSRoomManager.createRoomExtension(SFSRoomManager.java:209)
com.smartfoxserver.v2.entities.managers.SFSRoomManager.createRoom(SFSRoomManager.java:168)
com.smartfoxserver.v2.entities.SFSZone.createRoom(SFSZone.java:230)
com.smartfoxserver.v2.api.SFSApi.createRoom(SFSApi.java:608)
com.smartfoxserver.v2.api.SFSApi.createRoom(SFSApi.java:585)
com.smartfoxserver.v2.controllers.system.CreateRoom.execute(CreateRoom.java:205)
com.smartfoxserver.v2.controllers.SystemController.processRequest(SystemController.java:127)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


What is different between the standalone vs. service that would cause a failure to find the Class?
Thanks,
Steve
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 22 Dec 2010, 06:41

Hey,

No - there is no difference running as a service or standalone - seen from the extension or client part. There might be things - especially on a Windows box - about filesystems and their support for more than 256 character paths. Windows is really a shitty OS in that regards (at least in the old days).

So cant help there, sorry. Post in the other forum about it. I think there were other threads about service/non-service

/Thomas
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 22 Dec 2010, 07:02

@stevets:
the extension is not deployed correctly.
Please make sure to follow the instructions for deployment:
http://docs2x.smartfoxserver.com/Develo ... extensions
(see 2nd part of the article)
Lapo
--
gotoAndPlay()
...addicted to flash games
stevets
Posts: 60
Joined: 11 Jul 2010, 12:22
Location: USA

Postby stevets » 22 Dec 2010, 07:40

@Thomas,
I found that windows service applications run in their own security context. I opened the sfs2x-service properties window and chose the "Log On" tab. All previous versions of sfs2x-service could use the "Local System account" without any trouble. This time I selected "Administrator" and now the FPS Demo works with the sfs2x-service running.

Something has changed....but I am glad it is now working.

@Lapo,
I am running the new FPS demo made by Thomas and have followed the install instructions.
If the extensions were not deployed properly, then I would think that the standalone server would fail too, but it did not. In my case, it was only the sfs2x-service that was not fully working . It appears that the solution I described above works.
But I am not completely ready to claim success yet......

Thanks,
Steve

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 32 guests