-
Posts
1,390 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Posts posted by Pauler
-
-
-
This is the very early version of plugin system. It is something pretty much unknown to l2j community, but it has lots of potential. In a few words, this system gives tou the ability to add custom features to your server without re-compiling the whole project. You create your feature at a separated project, and you export it at the plugins folder. The video shows a really simple example, just to see if it works. You will be able to add stuff, from a simple voiced command handler to an advanced event engine, in the future.
-
Νόμιζα για μένα λες, γιατί το έχω αυτό το κουσούρι.
-
I'll surely be there ;)
-
όμορφη κοπέλα είναι.
-
Καλημέρα.
-
Έλα δεν έκανε και τίποτα το παλικάρι στο κάτω-κάτω, αφήστε το να καμαρώνει το vip του στο κανονικό του account.
-
Changeset 49:
Added handler to register commands for telnet.
https://xp-dev.com/trac/l2jpes/changeset/49/l2jpes
Guys, please register to our forums, and report bugs and ideas to keep moving with the development.
Our next assignment, in cooperation with Setekh, is a plugin manager where admin is able to add plugins and mods without recompiling the whole project.
-
Can already be used?
Yes.
-
First off you wont need to change packs, archid works together with pes :P We'll brain storm ideas and sync, same gos with every pack, if they have an idea they can just suggest it and we can make it work. Thats whats open source, its not a battle between packs, collaboration is key here. I aim to change the mentality of l2j pack owners.
Finally.
-
A plugin system, yeah that's what I must do.
-
Δέχεστε 40χρονους καμένους?
-
Yeah, where did you find this link? Was it posted by an official lol social network account?
-
Changeset 45:
Added telnet system.
Minor build.xml modification.
-
-
Again, it is not secured. Once it gets to true, everyone would be able to connect by a custom client.Damn, forgot to add port when you connect . im fking idiot
so the jar was sending to other port this is why the server didn't respond.
Updated the jar
download : http://www.4shared.com/file/jMwT12D0/Telnet.html
code : http://pastebin.com/gcH4J8Xz
Also added a boolean check if connected to be more secured
really sorry i dont know how i forgot to add the port
-
Sorry, for keep messing with this one, but you reminded me to add a telnet system to pes, and while I was working on it I also realised that your client is not working too. But, the sample client that I coded worked fine.
package com.pauler; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.net.UnknownHostException; public class TelnetClient { DatagramSocket socket; public TelnetClient() { while (true) { try { socket = new DatagramSocket(); } catch (SocketException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { sendData("wswsws".getBytes(), InetAddress.getByName("127.0.0.1"), 1234); } catch (UnknownHostException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { Thread.sleep(3000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } public static void main(String[] args) { getInstance(); } public static TelnetClient getInstance() { return SingletonHandler._instance; } public void sendData(byte[] data, InetAddress ipAddress, int packetPort) { DatagramPacket packet = new DatagramPacket(data, data.length, ipAddress, packetPort); try { socket.send(packet); } catch (IOException e) { e.printStackTrace(); } System.out.println("sent : " + new String(data)); } private static class SingletonHandler { protected static final TelnetClient _instance = new TelnetClient(); } }
-
Also, you MUST add some more server-side checks about the password, because in that way if someone codes his own gui, which doesn't ask for a password, he would be able to send commands normally.
A good idea is that after password check, the server should accept packets only by the approved ip address.
-
-
Ναι.Logika ennoeis to l2jfrozen-core Exectutable Jar File mesa ston fakelo lib pou uparxei stous fakelous loginserver kai gameserver?
-
Βρίσκεις έναν decompiler, σέρνεις το l2jfrozen.jar σε αυτό, και έτοιμος.
-
choose DatagramSockets because Sockets had a limitation in connection(only 1 client can connect) because of streams
In combination with threads you can connect to multiple clients. But, in this occasions, it seems that Datagrams are fine, by the time packet order doesn't matter.
Also, you propably forgot to send the online data back to the client, at the online command.
-
Cool, thats how a telnet should be, using datagrams. Tho, i would suggest going even farder and make a handler system for it :P
Check this out: https://code.google.com/p/java-universal-css-engine/
Will make swing building a breeze, if ur into css.
Wouldn't it be better with sockets? I used to face problems trading datagram packets between machines who belong to different networks.
-
Α ρε τι γίνεται στο κόσμο. Ντροπή.
L2Jpes Interlude Project
in Server Development Discussion [L2J]
Posted
In this version, you can only call existing methods, but I am going to add some event listeners, to execute scripts on death, on login, etc.
But still, the current version isn't useless, it just doesn't provide the promising functionality, yet.