Page 2 of 2
Re: A bunch of questions
Posted: 03 Nov 2025, 07:22
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?
Re: A bunch of questions
Posted: 03 Nov 2025, 07:32
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
Re: A bunch of questions
Posted: 03 Nov 2025, 07:36
by PanagiotisMilios
Great thanks.
Also, I'm reading the SFS2X docs and the Advanced concepts link in Java Extension Development tab doesn't work
Re: A bunch of questions
Posted: 03 Nov 2025, 08:44
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
Re: A bunch of questions
Posted: 03 Nov 2025, 08:50
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.
Re: A bunch of questions
Posted: 01 Dec 2025, 12:51
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)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: A bunch of questions
Posted: 02 Dec 2025, 08:11
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
Re: A bunch of questions
Posted: 03 Dec 2025, 09:01
by PanagiotisMilios
Tha's a useful site. Thanks a lot!