alemiz112 / stargate Goto Github PK
View Code? Open in Web Editor NEWStarGate is plugin for WaterDog (mcbe and mcpc proxy) that allows commuinication between servers/clients.
License: Apache License 2.0
StarGate is plugin for WaterDog (mcbe and mcpc proxy) that allows commuinication between servers/clients.
License: Apache License 2.0
API Details in the Wiki appear to be heavily outdated. Currently, the Docs: API page still references using GateAPI and this appears to have been removed.
Can you May add Portals dir Waterdog Transfers?
Servers
I created a simple (working) plugin which should transfer players from (example) lobby to survival.
Command: /ss [server]
Code:
StarGateUniverse.getInstance().transferPlayer(player, server, client);
When I execute /ss survival while in the survival server it gives the following error:
You are already conneccted to this server!
When I execute /ss survival while in the lobby server nothing happens. No errors in consoles, nothing.
When I enter a non-existing server it says:
Player was supposed to connect server that is unreachable!
When I type in staff chat players can see it players, not in the bungee config.
[01:13:31 INFO] [StarGate]: Registring StarGate Listener
[01:13:31 INFO] [StarGate]: Starting StarGate Protocol on Port: 47007
[01:13:31 INFO]: Enabled plugin StarGate version 1.2.5 by Alemiz
[01:13:31 INFO] [StarGate]: Done! StarGate Protocol is successfully running. Waiting for clients...
[01:13:32 INFO]: Listening on /0.0.0.0:19132
[01:14:07 INFO] [StarGate]: New client connected: lobby:123456789
[01:14:07 INFO] [StarGate]: ADDRESS: `myip`:46544
[01:14:08 INFO] [StarGate]: WARNING: Connection with lobby:123456789 has been closed!
[01:14:08 ERROR]: Exception in thread "pool-4-thread-1" java.lang.NumberFormatException: For input string: "lobby"
[01:14:08 ERROR]: at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[01:14:08 ERROR]: at java.base/java.lang.Long.parseLong(Long.java:692)
[01:14:08 ERROR]: at java.base/java.lang.Long.valueOf(Long.java:1117)
[01:14:08 ERROR]: at java.base/java.lang.Long.decode(Long.java:1268)
[01:14:08 ERROR]: at alemiz.stargate.gate.Server.processPacket(Server.java:135)
[01:14:08 ERROR]: at alemiz.stargate.gate.Handler.run(Handler.java:61)
[01:14:08 ERROR]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[01:14:08 ERROR]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[01:14:08 ERROR]: at java.base/java.lang.Thread.run(Thread.java:834)
I used the latest StarGate-Atlantis plugin
Describe the bug
After setting up the Waterdog with StarGate parallel to our Bungee-network. We had a Out of Memory exception on our Java Servers: https://pastebin.com/r5RtVs6i
After some research we identified the waterdog screen as the cause for the crash, due to creating multiple threads and not stopping them. So we used "top -H" in console to watch the server threads: https://paste.pics/ee1d220db8d919288a61e9756c02270c
Every 30 seconds 3 new timer threads are started.
We disabled the StarGate plugin. the Waterdog runs smooth and doesn't create the threads. After reenabling the plugin and disabling one server. only 2 new threads every 30 seconds. Reenabling the third server: 3 new threads every 30 seconds.
We had a look into your sources and think that the serverping could cause this issue: https://github.com/Alemiz112/StarGate/blob/master/src/main/java/alemiz/stargate/gate/Server.java#L101
Describe the bug
NO RECEIVE PACKET...
Using waterdog and pocketmine downstream servers, the stargate server does not receive packets from stargate clients, not even the authentication packet.
To Reproduce
Result
Try sending a serverInfo and you will see that there was no response from the stargate server.
Additional context
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.