Search found 223 matches

by Sparticus
11 Jul 2023, 17:53
Forum: SFS2X C# API
Topic: Unable to connect to server :(
Replies: 5
Views: 5095

Re: Unable to connect to server :(

Ok, figured it out. Unity does something stupid that has bit me many times before and just bit me again. The connector code uses public variables when defining things like the host : public string host = "127,0,0,1"; Since it's public, the values are controlled with the Unity UI. For some ...
by Sparticus
11 Jul 2023, 12:52
Forum: SFS2X C# API
Topic: Unable to connect to server :(
Replies: 5
Views: 5095

Re: Unable to connect to server :(

Ya, I did that. In my previous post i also mentioned I tried telnetting to the ports and I can confirm they are open to the world

here is a screenshot of my aws security group allowing all SFS ports :

https://imgur.com/a/Sh9cCoG
by Sparticus
11 Jul 2023, 03:09
Forum: SFS2X C# API
Topic: Unable to connect to server :(
Replies: 5
Views: 5095

Unable to connect to server :(

When I try and connect to the server from my game, the 'OnConnection' event is fired with a failure response. I have the following connection settings : public string host = "xx.xxx.xxx.xxx"; (not localhost, remote server) public int tcpPort = 9933; public int httpPort = 8080; public int h...
by Sparticus
11 Jul 2023, 03:02
Forum: SFS2X C# API
Topic: The type or namespace name 'Sfs2X' could not be found
Replies: 10
Views: 82359

Re: The type or namespace name 'Sfs2X' could not be found

Hey @Bax,

I tried removing everything and re-adding it, and it magically worked. Weird, thanks!
by Sparticus
10 Jul 2023, 15:00
Forum: SFS2X C# API
Topic: The type or namespace name 'Sfs2X' could not be found
Replies: 10
Views: 82359

Re: The type or namespace name 'Sfs2X' could not be found

Ya, I know. Was hoping to not have to install another version of Unity (which is a few gigs) to test that just to have to delete the unity version later. Not quite sure what you mean by 'recreate my project from scratch'. I'm adding SFS to an existing game I have in the app stores. Anyways, I apprec...
by Sparticus
10 Jul 2023, 14:39
Forum: SFS2X C# API
Topic: The type or namespace name 'Sfs2X' could not be found
Replies: 10
Views: 82359

Re: The type or namespace name 'Sfs2X' could not be found

Yes, it rebuilt the .sln file.

I didn't try the connector project as it requires a newer version of unity so I cannot run it.

(I am currently using Unity version 2020.3.38f1)
by Sparticus
10 Jul 2023, 13:23
Forum: SFS2X C# API
Topic: The type or namespace name 'Sfs2X' could not be found
Replies: 10
Views: 82359

Re: The type or namespace name 'Sfs2X' could not be found

Also, just a suggestion, I wish your documentation included the "includes" or "using" lines of code so we could see what you were importing to get the code to work. I downloaded the "connector" project to find the code... which is what I have below. Let me know if that'...
by Sparticus
10 Jul 2023, 13:15
Forum: SFS2X C# API
Topic: The type or namespace name 'Sfs2X' could not be found
Replies: 10
Views: 82359

Re: The type or namespace name 'Sfs2X' could not be found

Ok, after doing what you suggested, I now get this error : Error: Could not load signature of Controller:OnConnection due to: Could not load file or assembly 'SmartFox2X, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:SmartFox2X, Version=1.8.1.0, Culture=...
by Sparticus
10 Jul 2023, 00:58
Forum: SFS2X C# API
Topic: The type or namespace name 'Sfs2X' could not be found
Replies: 10
Views: 82359

Re: The type or namespace name 'Sfs2X' could not be found

More info....

I only copied the debug dll into my project (I assume I replace the debug with the release version later?)

In Unity, clicking on the dll, I selected these settings and applied them :

https://pasteboard.co/6YG8zzgqryLy.png
by Sparticus
09 Jul 2023, 23:18
Forum: SFS2X C# API
Topic: The type or namespace name 'Sfs2X' could not be found
Replies: 10
Views: 82359

The type or namespace name 'Sfs2X' could not be found

Hello, I am trying to add SFS2X to my Unity project. I downloaded the c# client api. I tossed the debug dll in my Assets/Plugins/SFS2X folder. When I open the code in vscode, it says : The type or namespace name 'Sfs2X' could not be found https://imgur.com/a/UrnTG7o How do I tell vscode about the dl...
by Sparticus
21 Jul 2013, 18:54
Forum: SFS2X Questions
Topic: User Variables not up-to-date?
Replies: 2
Views: 4712

User Variables not up-to-date?

For some odd reason when a user enters a game room, when it tries to read the user variables from the other players, it "sometimes" gets incorrect values. Here is what I am doing : 1.) User joins a room 2.) In the client I call "room.userList" to get a list of all the users in th...
by Sparticus
21 Jul 2013, 16:05
Forum: SFS2X Questions
Topic: Hot redeploy extensions, Not working :(
Replies: 9
Views: 13581

Re: Hot redeploy extensions, Not working :(

Thanks for the replies. I might give the saving to the SFSRoom Object a try. Kinda freaks me out of what other info i might be losing when i reload an extension. Just curious... what do all the really big companies do when they want to deploy an updated extension? For example, when Club Penguin (whi...
by Sparticus
19 Jul 2013, 20:15
Forum: SFS2X Questions
Topic: Hot redeploy extensions, Not working :(
Replies: 9
Views: 13581

Hot redeploy extensions, Not working :(

I read from the docs I can hot redeploy extensions. SmartFoxServer 2X provides Extensions hot-redeploy which can be very useful during the development phases. When this feature is turned on (see the Custom configuration paragraph above), the server will monitor your Extension folders and reload your...
by Sparticus
17 Jul 2013, 14:25
Forum: SFS2X Questions
Topic: Type Coercion failed, Ideas why?
Replies: 4
Views: 8602

Re: Type Coercion failed, Ideas why?

Thanks for that link, that's definitely the issue I am seeing. It appears I cannot store a SmartFox class variable into another SmartFox class variable since they are both from different application domains. They might be the same, but since they are in different domains they had different definitio...
by Sparticus
16 Jul 2013, 20:25
Forum: SFS2X Questions
Topic: Type Coercion failed, Ideas why?
Replies: 4
Views: 8602

Re: Type Coercion failed, Ideas why?

If it helps, I only get the error after I moved the loading of the game into it's own application domain. I'm sure it has something to do with that... just not sure what

Go to advanced search