Jump to content

Recommended Posts

Posted

Introduction:

 

L2JTranslator is an addon for L2JServer freya version that allows an admin or player to speak any language he wants via googles translation services. It helps admins communicate with other nationality players who cannot ( or will not ... >:( ) speak english. Apart from the translator the addon comes with an IP locator that allows you to find out what kind of language a player speaks.

 

Features:

 

IPLocator - Allows you to find the nationality ( and language ) of a given player.

L2JTranslator - Allows you to get in an auto-translated session with another player.

One to One communication - You can autotranslate for 1 player only not for announcements.

You can select which languages should be available.

You can select if players can enable a translation service.

Usage:

 

Target a player and type .locate --> Tells you his country based on a lookup on his IP.

Target a player and type .translate <language> --> Starts a translation session.

.translate without arguments --> tells you the available languages.

.endTranslation --> ends a translation with a player. Use it always when you finish talking with that player.

 

Installation:

 

You will need to add the following three jar files in your project and on your build. To add them on your project place them on the /lib folder and add them to the classpath ( project --> properties --> build path --> add jar ). To add them on your build path open build.xml and place the right lines in there. I have an example in the code that follows.

 

Java IP Locator:

http://sourceforge.net/projects/javainetlocator/

 

Google Translate API:

http://code.google.com/p/google-api-translate-java/downloads/detail?name=google-api-translate-java-0.94.jar

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/json/json/20090211/json-20090211.jar (You need that too ).

 

Core:

 

http://pastebin.com/pT9G7Zjb

 

Datapack:

 

http://pastebin.com/c2G6zVpC

 

User notes:

 

Song used while coding it:

 

Since this system communicates with google translate engine, i wouldnt recommend enabling it for player - to - player communication. Or at least not for all players.

 

Posted

btw... will the player be able to enable/disable in-game?

 

If players are unable to enable/disable it,it's just a useless code made to impress ppl.

It's not like all people in the world can speak english,some players have to use their own language in order to be in contact.

Posted

If players are unable to enable/disable it,it's just a useless code made to impress ppl.

It's not like all people in the world can speak english,some players have to use their own language in order to be in contact.

 

Huh? Arent you able to customize it or what? Maybe you are the only thing here thats useless.

Posted

EDIT: It doenst return location because you are running from the same computer and the routing assigns you 127.0.0.1. If you run your client from another network than that of the server it will give you the location.

Posted

EDIT: It doenst return location because you are running from the same computer and the routing assigns you 127.0.0.1. If you run your client from another network than that of the server it will give you the location.

 

And how do you know I did it this way?^^

Posted

Bump part 2 is in, translator system. Very alpha version its time for testing. First locate the player language with .locate then use the .translate and stopTranslation commands.

 

EDIT: First post updated.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • I would like to emphasize that I am selling the tool used to generate geodata for the client you are developing, not the geodata itself; therefore, I consider the price reasonable. As for your view that the price is high and shows a lack of respect for the customer—that is your own opinion. Thank you. I have also purchased his products, and—just as you said—he is skilled and provides very enthusiastic support. If you feel he is deserving, then you should continue buying from him.
    • Ημουν μικρος οταν τον επαιξα, οριακα δεν ηξερα τι ειναι το Lineage, θυμαμαι πηγαιναμε στα νετ με τους φιλους και προσπαθουσαμε να κανουμε log-in αλλα πολλες φορες δεν μπορουσαμε γιατι ο server ηταν heavy σε load και πολλες φορες προλαβαιναμε να παιξουμε μονο κανα τεταρτακι η εικοσαλεπτο απ την μια ωρα που βαζαμε για να ανοιξουμε pc, ωστοσο εχω πολλες αναμνησεις να βλεπω τους μεγαλυτερους τοτε να παιζουν και εγω να καθομαι διπλα και να χαζευω gameplay, Λιγα πραγματα που ξερω (δεν ξερω αν ισχυουν) ειναι οτι τον σερβερ τον ειχε ανοιξει η αλυσιδα TheWeb, επισης οτι ηταν δυο οι σερβερ, ενας rpg low rate και ενας pvp με higher rates, περα απο αυτο δεν μπορεσα να βρω καμια αλλη χρησιμη πληροφορια, ουτε στα forum του theweb.gr ουτε στo l2.thegame.gr (waybackmachine) οποτε ερχομαι εδω που ειμαι σιγουρος οτι θα υπαρχουν σιγουρα καποιοι που επαιξαν εκει και δεν ηταν οσο πιτσιρικας οσο ημουν εγω που δεν καταλαβαινε τι γινοταν.   Γενικοτερα οποιος ξερει οτιδηποτε για τον thegame ας το πει, ακομη κι ας ειναι μια μικρη ιστορια που ακουσε πριν πολλα χρονια, ακομη κι αν ειναι μια μικρη πληροφορια για κατι που θυμαται μεσα στο παιχνιδι, οπως πως λεγανε τους admins, κανα σκηνικο ιντερνετ καφε και μπουνιδια, οοοοοτι μα οτιδηποτε κι αν ειναι αυτο αρκει να εχει να κανει με τον TheGame   (εννοειται εαν εχετε φωτογραφιες η βιντεο να τα linkαρετε)   μερικες δικες μου αποριες ειναι: απο τι chronicle αρχισε και μεχρι που εφτασε? ποια χρονια ηταν το peak του και σε ποιο chronicle? επισης μεχρι πιο chronicle εξελιχθηκε? γιατι εκλεισε αφου τοτε ηταν στο peak το να πηγαινει ο κοσμος στα ιντερνετ καφε και να παιζει λ2, τι features ειχε σαν σερβερ? επι ποσο ηταν? custom πραγματα κτλπ? η ηταν ενας bone stock server?    να'στε καλα!
    • Yeah... the price for the project at this stage is the kind of disrespect to the customer I was talking about.     As for deMEV, he’s overpriced too, but he’s one of the very few people in the L2 market who is available almost 24/7.
    • Thank you all for your interest in my post. I confirm that I did indeed use L2MapConv to develop my tool, adding my own customizations. If you are already a customer of deMEV, please continue to support him; I believe his products are excellent—I have purchased from him myself, and he is truly talented. Below is the Giran 22_22 geodata file generated using my tool; feel free to take a look. Thanks again to everyone for your comments. https://drive.google.com/file/d/1owpXCGEAhAO6TjjBJTYuVFqeUDu9RNoI/view?usp=drive_link
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..