A bunch of questions

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Re: A bunch of questions

Post by PanagiotisMilios »

Hello,

Another bump here. I need to set user variables on player login. Is there a default SFS event that i could do this or should i just create my own event?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: A bunch of questions

Post by Lapo »

PanagiotisMilios wrote:I need to set user variables on player login. Is there a default SFS event that i could do this or should i just create my own event?

Do you mean on the server side?
If so, yes you can handle the USER_JOIN_ZONE on the server side and the set the variables there.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Re: A bunch of questions

Post by PanagiotisMilios »

Great thanks.

Also, I'm reading the SFS2X docs and the Advanced concepts link in Java Extension Development tab doesn't work
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: A bunch of questions

Post by Lapo »

Are you sure?
We don't see any problem. Just in case this is the direct link:
https://docs2x.smartfoxserver.com/Exten ... d-concepts
Lapo
--
gotoAndPlay()
...addicted to flash games
PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Re: A bunch of questions

Post by PanagiotisMilios »

Probably i'm wrong. I hadn't realized that the selected link can't be clicked. I also work in a black and white screen so if there's a color difference, i wouldn't notice.
PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Re: A bunch of questions

Post by PanagiotisMilios »

Hello, i got this error on my SFS log viewer and i have no idea where it is coming from. The IP does not belong in any of our clients or servers that communicate with our SFS instance. Any chance you can point where it might be coming from?

Code: Select all

java.lang.IllegalArgumentException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.IllegalArgumentException
Message: Illegal request size: 0 bytes, from: { Id: 85, Type: DEFAULT, Logged: No, IP: 185.243.96.116:23384 }
Sender: { Id: 85, Type: DEFAULT, Logged: No, IP: 185.243.96.116:23384 }
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.validateIncomingDataSize(BinaryIoHandler.java:512)
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.handleDataSize(BinaryIoHandler.java:295)
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.handleRead(BinaryIoHandler.java:183)
com.smartfoxserver.v2.protocol.SFSIoHandler.onDataRead(SFSIoHandler.java:143)
com.smartfoxserver.bitswarm.core.SocketReader.readTcpData(SocketReader.java:336)
com.smartfoxserver.bitswarm.core.SocketReader.readIncomingSocketData(SocketReader.java:220)
com.smartfoxserver.bitswarm.core.SocketReader.run(SocketReader.java:171)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:829)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: A bunch of questions

Post by Lapo »

I have no idea, but if your server is publicly available any random client/bot/scraper can connect to it and send some random data.
It's just how internet works.

You may learn a little bit more by plugging the IP addr in a geolocation service such as:
https://www.iplocation.net/

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Re: A bunch of questions

Post by PanagiotisMilios »

Tha's a useful site. Thanks a lot!
Post Reply