Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Conflict with InitialHandler #18

Closed
Leymooo opened this issue Jan 1, 2017 · 19 comments
Closed

Conflict with InitialHandler #18

Leymooo opened this issue Jan 1, 2017 · 19 comments
Labels

Comments

@Leymooo
Copy link

Leymooo commented Jan 1, 2017

Hi. I has an antibot protection on Map, based on WaterFall.(https://github.com/Dimatert9/Waterfall-rus)
In IntialHandler class i check if player need enter captcha or not(https://github.com/Dimatert9/Waterfall-rus/blob/master/BungeeCord-Patches/0042-add-captcha.patch#L3057-L3060) and if need i set custom Handler.
After installing your plugin this lines was ignored. Always connect player to default server. Can you fix it?

Sorry for bad English :(

@WolverinDEV
Copy link
Owner

Hey,
the problem is that you have an specific BungeeCord (Or a patched BungeeCord). Im currently only supporting the normal version of BungeeCord. Maybe you can add this lines by your self in a own responsetory for you?

Sry for my late response but i had no time to checkout the Internet.

@Leymooo
Copy link
Author

Leymooo commented Jan 3, 2017

I tried to add captcha to default bungeecord(Leymooo/BungeeCord@dd9e8ce) and it dont work.
Maybe your plugin has custom handler, when player join?

@WolverinDEV
Copy link
Owner

Yeah i think there are a lots of compatibility problems.
Well first is that im using my own channel inizializer (https://github.com/WolverinDEV/BungeeUtil/blob/2.0/src/dev/wolveringer/bungeeutil/netty/ChannelInizializer.java) and im creating an own instalce of n PacketHandler with the super class InitialHandler (https://github.com/WolverinDEV/BungeeUtil/blob/2.0/src/dev/wolveringer/bungeeutil/netty/BungeeUtilChannelInizializer.java#L104)
Well, i think it will be impossible that this two applications work together.

@Leymooo
Copy link
Author

Leymooo commented Jan 4, 2017

why i cant compile your plugin?
http://pastebin.com/K2QnAYpX
if i change this symbol
http://pastebin.com/XFGpEW0A

@WolverinDEV
Copy link
Owner

Huh this errors sounds funny.
Well the first is only the harset error. Change the charset to UTF-8 then all should work.
The problem with the second error i realy dont know what this means xD i never saw somethink like that before. Maybe try to google?

@Leymooo
Copy link
Author

Leymooo commented Jan 5, 2017

Google dont help me((
Can you try compile with changed IIItialHandler?
http://dropmefiles.com/cVegR
Maybe you need be add BungeeCord-Protocol to pom.xml.
Thanks.

@WolverinDEV
Copy link
Owner

Your files didnt contains a pom.xml so i cant compile this.
Well i thnk the main problem is the charset. You try to compile all sources with Cp1251 but all files are encoded in UTF-8.

@Leymooo
Copy link
Author

Leymooo commented Jan 5, 2017

you can put this files to src\main\java and they must will compile. need only add BungeeCord-Protocol module.
I change cp1251 to utf8 and first error gone. but "cannot find symbol" is not fixed.

@Leymooo
Copy link
Author

Leymooo commented Jan 5, 2017

tried compile on VDS.
http://pastebin.com/5yyg4WPq

@WolverinDEV
Copy link
Owner

Hey i dont know what VDS is, but did you cloned my build of BungeeCord ad typed mvn install?
I know that when you have installed that then all should work. I tested it on a brand new vm. And hmm the charset problem sounds a littlebit funny. But however.

And why is BungeeCord-Protocol depend? I never use somethink from this?

@Leymooo
Copy link
Author

Leymooo commented Jan 5, 2017

Antibot protection based on packets. and this packets use Bungee-protocol imports.
VDS - this is virtual dedicated server.
http://pastebin.com/DvuARtrt

@WolverinDEV
Copy link
Owner

Well i dont have time currently so,
but i googled a quick time and found a interristing issue with has equals problems: jhipster/jhipster-uml#66 Not shure if this helping but maybe. I will take a look later

@Leymooo
Copy link
Author

Leymooo commented Jan 5, 2017

I fixed "cannot find symbol" but what wrong now?
http://pastebin.com/6tsn0e14

@WolverinDEV
Copy link
Owner

XXX cannot find symbol
  symbol:   class Getter
  location:  XXX

I still dont know what this error course...
I realy have no plan. Maybe try to compile it on a unix based system (maybe ubuntu or debian?)

@Leymooo
Copy link
Author

Leymooo commented Jan 5, 2017

debian
http://pastebin.com/VxELsKw3
udp.
i found the problem
image
Folder "string" need be in terminal folder. But classes in string will be has wrong package.

@WolverinDEV
Copy link
Owner

oh well im an ideot.... yeah i moved locally the package.
You can get the newest version here. https://gitlab.com/WolverinDEV/TerminalUtils
When im at home (in 4 days) i will update it in the Maven Central Repository.

@Leymooo
Copy link
Author

Leymooo commented Jan 6, 2017

thanks. now all work.
image

@Leymooo Leymooo closed this as completed Jan 6, 2017
@Leymooo Leymooo reopened this Jan 6, 2017
@Leymooo
Copy link
Author

Leymooo commented Jan 6, 2017

Moved to #19
(New issue)

@Leymooo Leymooo changed the title Conflict with InitialHandler. Gui lag? Jan 6, 2017
@WolverinDEV WolverinDEV changed the title Gui lag? Conflict with InitialHandler Jan 6, 2017
@WolverinDEV
Copy link
Owner

Problem fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants