Ir para conteúdo
  • Cadastre-se

Elfocrash

Desenvolvedor
  • Total de itens

    129
  • Registro em

  • Última visita

  • Prêmios recebidos

    32

Tudo que Elfocrash postou

  1. Fun fact, I have decompiled and reassembled this source completely and it's fully functional. I thought of making it open source. Also L2j wasn't created because we wanted to play l2 offline. It was created because L2 had a subscription per account and we were 15 year olds, unable to pay for it
  2. Elfocrash

    Licença Key

    Easy. Send me the files.
  3. Elfocrash

    Licença Key

    It's very easy. Send me the files.
  4. server link is the same as system link
  5. What Java version and what MySQL version are you using? I am on holiday so I don't have the mapping profile to see what's failing. No it's not.
  6. For people PMing me. I won't be sharing the source no matter what. Thanks.
  7. I am not proud of the source so I don't wanna share it. It take a lot of shortcuts because this was never meant to be shared. It's just for personal entertainment purposes and to provide inspiration. Nothing else.
  8. Hello everyone I launched L2BattleRoyale a year ago. I never had any hopes for it, it just was a server that I wanted to play. It ended up peaking at 200 people but after a 2 week period it died because there was no progression. Many people had fun playing it and since some of you might not have a chance to try it I am posting the full compiled project without any limitations. I will NOT be updating this project. This is only to set up and have fun with your friends. It doesn't have any bugs. You can find some features here: Imgur album of features: https://imgur.com/a/tA29TDP Duo games: 30-man game Download here: https://mega.nz/#!7s0Q3axS!CPM25cJJrHsqEaRD8swlE-OLvd42OL-qfpD6xXpPj-Y You will also need acis geodata: L2D Geodata Package Password: Y7m5Ts1uFd0l9f3 Admin commands: //games How to run Run the backup.sql to create the database Download the geodata and paste it in gameserver/data/geodata Register new gameserver Run the login and the gameserver Have fun l2battleroyale.rar
  9. Just saw this. The server peaked at 200 players but I never set up and progression so obviously after 2 weeks I closed it. I can share the pack if people wanna play it locally.
  10. Yeah I switched it to private. I might opensource it again but hide the original java source.
  11. It's very good. It's like a way better java (combines C#, Scala and Java) and it has proper async support with coroutines. This API is insanely fast. I've seen the l2jphp. It is quite different since L2jRest runs from within the server to provide real time metrics. L2jphp goes straight to the database right? Update Added api key based authentication as requested. Requests will only be served when the x-api-key header is set with the configured value.
  12. Thanks guys. Changed the way handlers are registered. Now they will be scanned automatically during server startup and they will be registered based on their annotation. This means that all you have to do to add a new endpoint is to create a request handler and add the Get, Post etc annotation.
  13. I don't know whats nWatch. Can you give me an example?
  14. L2jRest is a RESTful API for L2j It is created for latest aCis but you should be able to adapt it is you wanna use it for other projects. L2jRest is an open source project licensed under MIT. You can find the source here: https://github.com/Elfocrash/L2jRest Why use it? You can use the data of your server in your website You can create an account control panel with it You can expose data to your community to allow them to make third party apps Technical stuff It is written in Kotlin. It is using the Ktor framework. Ktor is using coroutines to achieve asynchronous request handling. It is very efficient and very fast. It is using Netty as the underlying server. It is written in a CQRS manner with query handlers for get endpoints and command handlers for post, put, patch, delete etc. It is using Koin as the IoC framework. How to setup Download and install Intellij IDEA Git clone the project and open it with Intellij Run the build Gradle task. It is configured to create a fat jar with all the dependencies included Paste the jar in your project, add it in your classpath and add the following line at the bottom of your Gameserver.java: L2jRestApi.INSTANCE.start(); Running the gameserver will also run the api. It is running under port 6969 How to extend it All you need to do if you wanna add more endpoints is to add a new handler and then add the Get, Post etc annotation depending on what endpoint you want this to be. Current endpoints: http://localhost:6969/api/players http://localhost:6969/api/players/{id} A couple of endpoint examples Endpoints: http://localhost:6969/api/players Response: { players: [ { "id": 268480927, "name": "Test", "level": 1, "isOnline": false, "pvpKills": 0, "pkKills": 0, "isNobless": false }, { "id": 268480924, "name": "Test2", "level": 1, "isOnline": true, "pvpKills": 0, "pkKills": 0, "isNobless": false } ] } Endpoint: http://localhost:6969/api/players/268480927 Response: { "id": 268480927, "name": "Test", "level": 1, "isOnline": false, "pvpKills": 0, "pkKills": 0, "isNobless": false } Currently it just supports two endpoints and no authentication. I am planning to add more endpoints and ApiKey based auth tomorrow. If you can't be arsed to build the project yourself but you wanna take a look anyway you can download the jar here
  15. First step will be to test the project and see if there are any bugs created from the migration. In parallel with that, a lot of ThreadPool executions will be replaces with coroutines. That's where the performance improvements will come into place and differentiate use from acis.
  16. Project is getting closer and closer to 100% Kotlin. Currently it's 80% Koltin, 20% Java. It should be 100% Kotlin by the end of the week. Stay tuned for updates.
  17. I'm using the build in converter but I am manually editing every file after conversion.
  18. You don't have to learn the language. You can keep writing java. Kotlin is interopable with Java, which means you can have both languages in the same project. L2kt will have an API to allow for customs without the need to change the source unless there is a special case. I am not writing it in Kotlin because of the community but because of me. It just also happens to be open source.
  19. It's a really nice JVM language that's getting really popular and have A TON of advantages, the main one being, it's way cleaner and faster to write. Example in Java: package com.l2kt.gameserver.model.pledge; public class SubPledge { private final int _id; private String _subPledgeName; private int _leaderId; public SubPledge(int id, String name, int leaderId) { _id = id; _subPledgeName = name; _leaderId = leaderId; } public int getId() { return _id; } public String getName() { return _subPledgeName; } public void setName(String name) { _subPledgeName = name; } public int getLeaderId() { return _leaderId; } public void setLeaderId(int leaderId) { _leaderId = leaderId; } } The EXACT same thing in Kotlin: package com.l2kt.gameserver.model.pledge data class SubPledge(val id: Int, var name: String, var leaderId: Int) There are many many others, I highly recommend reading up on it.
  20. Hello everyone L2kt is a project based on 379 aCis currently migrating from Java to Kotlin Project goals Migrate from Java to 100% Kotlin. Refactor a lot of the terrible code in aCis (most of it). Create an advanced plugin based API for people to write their customs in without messing up with the source. Migrate from Ant to Gradle. Dockerise the project. Keep it open source. The main engine itself will never be private. Current stage The project has been migrated to 20% Kotlin. It is already 20 thousand lines less code, just by migrating. There is not major refactoring that has taken place yet. Sources If you can do any of those things then feel free to give me a hand. https://github.com/Elfocrash/L2kt It's licensed under GLP-3.0 mainly because that is the L2j license and I don't have any right to sublicense. The project is fully managed on Discord for now: https://discord.gg/K7kyNpv (To be updated soon)
×
×
  • Criar Novo...

Important Information

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.