fps tutorial questions

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

Moderators: Lapo, Bax

dr-mad
Posts: 22
Joined: 09 Aug 2010, 16:29
Location: Netherlands - rotterdam

fps tutorial questions

Postby dr-mad » 15 Mar 2011, 13:47

i got a few questions i try to put in my own world its working

but where can i set the spawn point of the player and the crates items

and another question i try to make the gun shoot faster there is a small delay can that be changed i look trough some script and cant find where i can change that

is it all handeling by the extension jar file because i cant open that for some reason i try the program eclipse or some thing but cant open the jar file

can some one help me on what i need for making extension files or open it because i dont know what i need for that i look up the doc but maybe not good enough

greets dr-mad thanks for reading
User avatar
Bax
Site Admin
Posts: 4522
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 15 Mar 2011, 13:55

You can't open the jar file. It contains compiled classes. You need to get the source code and setup it in Eclipse or other IDE.
All informations about Extensions can be found in our online doc.
Paolo Bax
The SmartFoxServer Team
dr-mad
Posts: 22
Joined: 09 Aug 2010, 16:29
Location: Netherlands - rotterdam

Postby dr-mad » 15 Mar 2011, 16:05

ok thx now i know that.

but i still dont know where i can find the the spawn location of the player prefab and how to fix the speed of the gun firing

if any body know that in what script it stand please post a reply

thanks for the great help bax :wink:
dr-mad
Posts: 22
Joined: 09 Aug 2010, 16:29
Location: Netherlands - rotterdam

Postby dr-mad » 15 Mar 2011, 16:17

never mind what i ask i solved it i need to look at the source code what bax said and then i open the file and found what im looking for

thanks again bax greets dr-mad
dr-mad
Posts: 22
Joined: 09 Aug 2010, 16:29
Location: Netherlands - rotterdam

Postby dr-mad » 15 Mar 2011, 17:12

sorry for all these post but i found in the the

src\dk\fullcontrol\fps\simulation\Transform file the y position of the the respawn of the items i change it from 6 to 2 but it wont do the trick where do i have to put in the map of the src files to make the jar to work

do i place all the folders in the extension map of the server

i still cant get it to work the way i want.


please help me

dr-mad
User avatar
Bax
Site Admin
Posts: 4522
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 15 Mar 2011, 17:31

Please read the documentation!
Paolo Bax
The SmartFoxServer Team
dr-mad
Posts: 22
Joined: 09 Aug 2010, 16:29
Location: Netherlands - rotterdam

Postby dr-mad » 16 Mar 2011, 09:43

ok i read the docs again and i cant find what im looking for i put in al the java files in the __lib__ folder and it still dont work can some one tel me how and where to put the files to make the fps example to work properly

i really hate this im trying now for almost a week and im getting nothing good out of it

please tell me where to put the files and what files i need to put in a folder

greets dr-mad
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 16 Mar 2011, 10:24

You compile the source code into a jar file. The jar file needs to be placed as described in the FPS example documentation in the sfsFps folder - overwriting the jar file you got from the example.

How to compile java code into a jar is beyond detailed instructions from me. Depends on what IDE you use - if you havent ever coded java before, then try to take a look at your IDEs webpage and check out some basic tutorials there.

You can possibly get some info from this page (although it explains how to make a SFS1 extension, the IDE part is still valid)

http://www.smartfoxserver.com/docs/inde ... nsions.htm

hope that helps you along
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
dr-mad
Posts: 22
Joined: 09 Aug 2010, 16:29
Location: Netherlands - rotterdam

Postby dr-mad » 16 Mar 2011, 11:09

thanks thomas i got it working perfectly now thanks for al the help you give me


now i understand what you mean with read the docs i just have to make a new jar file stupid of me bin almost a week busy with this small thing


thanks


dr-mad
life is a dream so i keep dreaming all day
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 16 Mar 2011, 13:33

Anytime! Good luck
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 5 guests