A bunch of questions
-
PanagiotisMilios
- Posts: 34
- Joined: 22 Jan 2023, 21:48
Re: A bunch of questions
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?
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
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
-
PanagiotisMilios
- Posts: 34
- Joined: 22 Jan 2023, 21:48
Re: A bunch of questions
Great thanks.
Also, I'm reading the SFS2X docs and the Advanced concepts link in Java Extension Development tab doesn't work
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
Are you sure?
We don't see any problem. Just in case this is the direct link:
https://docs2x.smartfoxserver.com/Exten ... d-concepts
We don't see any problem. Just in case this is the direct link:
https://docs2x.smartfoxserver.com/Exten ... d-concepts
-
PanagiotisMilios
- Posts: 34
- Joined: 22 Jan 2023, 21:48
Re: A bunch of questions
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
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
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
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
-
PanagiotisMilios
- Posts: 34
- Joined: 22 Jan 2023, 21:48
Re: A bunch of questions
Tha's a useful site. Thanks a lot!