Page 1 of 1

Launching the AdminTool2X

Posted: 15 Mar 2011, 08:39
by lampshade
I blocked my firewall, and tried the IP of "127.0.0.1" and tried to login but i guess i need a password? I tried the info on this site and nothing.

I'd like to expose my server to the outside world, but it seems that the preceding step is a requirement...

I just need some assistance with learning how to fire up the admin tool ;) Thanks in advance.

Posted: 15 Mar 2011, 13:04
by Bax

Posted: 16 Mar 2011, 04:41
by lampshade
Its not working out on this end, bax :(

I put ALL .dll's in my Assets/Plugins folder! I STILL cannot declare a SmartFox Object without producing an error.

All I want to do, is display each of the clients preferences (such as rank, profession, name, and level) after logging in...Can I do that with 1.6.6.?Because SFS2 is not working out.

Not to contradict the quality of sfs2, but I already have my own layout; i'd like to stick with my original designs....For me, the new SFS2 Admin Tool is a bit too fancy....

All I really want is this:

//attached to a 'login' scene:
public class Login:MonoBehaviour {

//Login and everything

//Set Everything about the user

//---the IP (which i assume is the difference between multiple clients

//---the level

//---the profession
}

//attached to the actual room (e.g. "Lobby"):
public class DisplayClientsConnected : MonoBehaviour {
//Get everything we set for the cleint here and display.
//keep a running count of each player that connects/disconnects

}

Posted: 16 Mar 2011, 08:12
by lampshade
I have the tried the server inside and out. I have read the documentation located here (and also in my favorites):

http://docs2x.smartfoxserver.com/Gettin ... /admintool

very thoroghly, and I really damn well made sure sfs2 was installed correctly...Should I just try to retry the above for a couple months until i come up with something? :p


Am i on the right track? Because I just am totally unfamialir with the SMF2 environment..I. was hoping to acheive a "scene by scene" connection/dissconnection basis for my game..is this possible:

1) Main Scene
--Check for validity of the user name
--Check for validity of the password
--Compare
(But for now, I connect to an IP regardless for the validity)
--Connect to an IP (still using sfs1.6.6. as a server)

2) Character Selection Scene
---When "Lobby" button is clicked:
---Set data for the "current" character type (based on click)
---Enter the lobby with the above (chosen) data

3) Lobby
display data invidually for ea. connected character e.g. userAccountA has characters a,b, and c; userAccountB has characters, z,d,g and then:

(reflection from activity in css)
userAccountA has chosen his/her character a and logs in, so display in lobby.
userAccountB has chosen his/her character z and logs in, so display in lobby.


Lobby Display (count):
a userAccountA
z userAccountB


Okay I hope that clears things up! I just thougth that you guys (or anybody else) could throw me a heads up..Thaks in advance :)

Posted: 16 Mar 2011, 08:46
by ThomasLund
If I were you - I would stop up. Take a deeeeeep breath - and relax.

You cause really more confusion than necessary and mix up things from all the threads you've created. E.g. talking about client side code and dlls in this thread that you started about the admin tool.

Makes it close to impossible to help you in any structured matter.

So with that out of the way:

* is the SFS2X server running?
* have you looked at UserVariables as a means of setting per-user data?
* have you started from scratch on this - or taken a look at the various Unity example projects I've made which include basic connection and a lobby system?
* info - you cannot expose the loopback 127.0.0.1 to external machines. You need to put in the servers real IP address. If you have a firewall/router you need to NAT the internal address and SFS2X port of the server there. All for later once your code runs

If I were you - I would take the lobby example and start there to build on.

* Download and install SFS2X on your local machine, start it.
* Open Unity and the lobby example
* Run it and see it works
* Go through the code until you understand what happens
* Start modifying. If you have some piece of code that suddenly stop the server - you are the one to blame and need to fix your code
* Stuck? Send a *simple* and on-topic new forum message preferably with your code snippet in it

Generally you want to use SFS2X over SFS1 in my opinion.

/Thomas

Posted: 16 Mar 2011, 11:46
by Bax
lampshade,
stop making confusion or you will be banned!
Please open 1 thread at a time, and stick to the subject of the thread.
Also make sure you post your message in the right forum!
Thank you.