Search found 11 matches
- 09 Nov 2017, 00:18
- Forum: SFS2X Questions
- Topic: Monster Spawning
- Replies: 3
- Views: 4926
Re: Monster Spawning
Ok thanks. Do you have any idea how I can get the map data from Unity? I'm using the basic terrain and its sculpting tools from Unity. Sorry I'm new to this sort of thing.
- 07 Nov 2017, 03:40
- Forum: SFS2X Questions
- Topic: Monster Spawning
- Replies: 3
- Views: 4926
Monster Spawning
Hello
I was wondering how you handle monster spawning? I have an idea where the server sends the client the monster type and position and the client spawns the monster. But how do I make the monsters move? Also, I want certain monsters to only spawn in certain areas. Is this possible?
I was wondering how you handle monster spawning? I have an idea where the server sends the client the monster type and position and the client spawns the monster. But how do I make the monsters move? Also, I want certain monsters to only spawn in certain areas. Is this possible?
- 03 Oct 2017, 15:49
- Forum: SFS2X Questions
- Topic: How to access data in ISFSArray result?
- Replies: 6
- Views: 6458
Re: How to access data in ISFSArray result?
Ahh I fixed it. You have to use the equals() String method. equals() and == are two different things in Java.
- 03 Oct 2017, 02:43
- Forum: SFS2X Questions
- Topic: How to access data in ISFSArray result?
- Replies: 6
- Views: 6458
Re: How to access data in ISFSArray result?
It's pretty weird this code doesn't work if( (result2.getSFSObject(0).getUtfString("char1") == "nochar") && (isAdded == false)) { isAdded = true; query = "UPDATE tbl_charselect SET char1 = ? WHERE Username = ?"; } if( (result2.getSFSObject(0).getUtfString("...
- 29 Sep 2017, 19:23
- Forum: SFS2X Questions
- Topic: How to access data in ISFSArray result?
- Replies: 6
- Views: 6458
Re: How to access data in ISFSArray result?
Hi, I am not sure what you're asking for. You've already posted a code example. What are you trying to do exactly? Is something not working? Please clarify. Thanks It gives me this exception: Exception: java.lang.ClassCastException Message: com.smartfoxserver.v2.entities.data.SFSObject cannot be ca...
- 29 Sep 2017, 11:26
- Forum: SFS2X Questions
- Topic: How to access data in ISFSArray result?
- Replies: 6
- Views: 6458
How to access data in ISFSArray result?
Can I get some sample code for this? I want to check that each value returned from a select query is "nochar". ISFSArray result2 = dbManager.executeQuery(query, new Object[] {userName}); trace(result2); if( result2.getText(0) == "nochar" && isAdded == false) { isAdded = t...
- 23 Sep 2017, 10:01
- Forum: SFS2X Questions
- Topic: OnRoomJoin Event not firing
- Replies: 3
- Views: 4802
OnRoomJoin Event not firing
I have a problem when I send a room join request it looks like I'm not getting a room join event back. The sfs Connection is ok and the server contains the room. It's just that the code inside OnRoomJoin() is not executing...any help? :o Code here: using System.Collections; using System.Collections....
- 22 Sep 2017, 15:31
- Forum: SFS2X Questions
- Topic: Smartfox freezing Unity editor and...
- Replies: 4
- Views: 5463
Re: Smartfox freezing Unity editor and...
OK I just let it run to see what would happen and eventually it goes into play mode and becomes responsive. It takes like 40 seconds to become responsive though. Any idea now what is causing it?
- 22 Sep 2017, 15:23
- Forum: SFS2X Questions
- Topic: Smartfox freezing Unity editor and...
- Replies: 4
- Views: 5463
Re: Smartfox freezing Unity editor and...
I did SmartFox.Version and it says 1.7.2. I'm using Unity 2017.1.0f3.
- 22 Sep 2017, 13:49
- Forum: SFS2X Questions
- Topic: Smartfox freezing Unity editor and...
- Replies: 4
- Views: 5463
Re: Smartfox freezing Unity editor and...
ALso I forgot to mention I changed this code
SceneManager.LoadScene("CharSelection");
to OnRoomjoin for testing purposes. It is usually at the very end of OnExtensionResponse().
SceneManager.LoadScene("CharSelection");
to OnRoomjoin for testing purposes. It is usually at the very end of OnExtensionResponse().
- 22 Sep 2017, 12:30
- Forum: SFS2X Questions
- Topic: Smartfox freezing Unity editor and...
- Replies: 4
- Views: 5463
Smartfox freezing Unity editor and...
and causing scripts not to update? This seems to be what is happening for me. I go back to old code and scripts update and there are no freezes. When I go to smartfox code, it freezes and the scripts don't update. I simply followed the guides on how to get it working and wrote an extension handler f...