Giter VIP home page Giter VIP logo

stargate's People

Contributors

alemiz112 avatar alexpads avatar alvin0319 avatar dresnite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stargate's Issues

Wiki is outdated.

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.

Idea

Can you May add Portals dir Waterdog Transfers?

transferPlayer is not working as expected

Servers

  • WaterDog - StarGate installed.
  • NukkitX - StarGate installed (lobby)
  • NukkitX - StarGate installed (survival)

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!

pool-4-thread-1

[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

[BUG] Unlimited Timer treads opened by StarGate cause server overload/crash

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

[NO RECEIVE PACKET]

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

  1. Create a waterdog proxy server
  2. Create a pocketmine downstream server
  3. install plugin StarGate server in waterdog and install plugin StarGate-Atlantis in pocketmine server
  4. Turn on the waterdog first and then the pocketmine.
  5. In your pocketmine (If it connects successfully) you receive this log "[StarGate-Atlantis] Client lobby has connected!"
  6. But in your waterdog there will be no log.

Result
Try sending a serverInfo and you will see that there was no response from the stargate server.

Additional context
Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.