Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Maddy · Jul 21, 2010 at 07:23 AM · multiplayernetworksmartfoxsmartfoxserver

Undertanding client/server stuff

Hi,

This may be a generic question rather than specific to unity, but .... since im using unity for networking , i guess i can ask it here ...

This question is in line with an earlier query i posted at ... http://answers.unity3d.com/questions/15920/need-lot-of-help-regarding-starting-with-smartfox-server-or-just-any-server

I was able to setup a connection with the smartfox server (when i used smart fox server basic , instead of lite version)

What i want to know is, how to write a script ... which will create a 'zone' ... 'a room' ... and respective user-ids, and passwords .... more importantly how to make it run on the server? so that the client script can make communication with the uploaded server script

Can some one point me where i can get such an information from, or can you provide any sample code, to just send and recieve a message to and from server.... using unity and smallfoxserver ?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Julian-Glenn · Jul 21, 2010 at 07:37 AM

Not the answer you want prolly, but Photon does all this and more and rocks with Unity. 9I much prefer it to smallfox)

http://www.exitgames.com/Photon

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Maddy · Jul 21, 2010 at 12:27 PM 0
Share

It still doesnt solve my query of how do i deal with server side code ... thanks anyways

avatar image
0

Answer by WhiskeyJack · Nov 09, 2010 at 11:05 AM

There are some tutorials provided by the guys from SmartFox, which can be found here. I wrote down my own steps and put those in this tutorial.

Basicly, in these examples you will see how each player sends its position (transform) to the SmartFoxServer (NetworkTransformSender and NetworkTransform script). The SFS then broadcasts these and the NetworkController of each client listens to the SFS. If a transform is received, the NetworkController updates the position of the remote players via the NetworkTransformReceiver script.

You can create rooms and zones by editing the config.xml in the Server directory. If you like to create serverside logic, you can do this with serverside extensions, check the SmartFoxServer documentation on how to do this. @Julian: I started with SmartFoxServer because it has linux support and Photon does not. However, why do you prefer Photon that much to SmartFox?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Smart Fox error 2 Answers

i need SFS help 1 Answer

Need lot of help regarding starting with smartFox server or just any server .... 1 Answer

RPC Call doesnt get called 2 Answers

Players can't connect to my server 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges