Jump to content

Recommended Posts

Posted

Hi guys, I'm kinda new here. Was it ever discussed a way to expose an API that has values like objects around the player, player status, object status, quest log, etc? I mean, all info that a player would get by playing normally?

 

I wanna train an AI that uses it so I can create my personal local server with hundreds of independent AI players, but I'm having trouble with the java code.

 

Any tips? I have the L2J Mobius Interlude server.

 

Thanks!

Posted

I know a guy who did this but as i told him bots dont generate donations, they offer replies and character learning and adapting to replies, for a small server of 10 players might work, but the resources you need are big, i made a python integration in my AI to use API for I/O and learning by the information it gets but the cost of the server ultimately defeats the porpuse unless you are looking into a SaaS model.

 

:poker: making an AI server for a 20 year old game sounds promising

:kim:

Posted (edited)
2 hours ago, Nightw0lf said:

I know a guy who did this but as i told him bots dont generate donations, they offer replies and character learning and adapting to replies, for a small server of 10 players might work, but the resources you need are big, i made a python integration in my AI to use API for I/O and learning by the information it gets but the cost of the server ultimately defeats the porpuse unless you are looking into a SaaS model.

 

:poker: making an AI server for a 20 year old game sounds promising

:kim:

 

I figured as much ahaha! But keep in mind that this is purely for personal enjoyment and non profitable. I'm even considering getting a big boy PC just to run this!

 

Anyway, I kinda made progress. Created a "ApiServer.java" file to expose some classes and added it to the "ServerPackets.java" file. Sadly now it's gonna be a pain in the arse to study all the classes...

Edited by masses
Posted
1 hour ago, masses said:

 

I figured as much ahaha! But keep in mind that this is purely for personal enjoyment and non profitable. I'm even considering getting a big boy PC just to run this!

 

Anyway, I kinda made progress. Created a "ApiServer.java" file to expose some classes and added it to the "ServerPackets.java" file. Sadly now it's gonna be a pain in the arse to study all the classes...

Why not just query the database? No need for a server side mod if its not going too much into detail.

Posted
4 hours ago, Splicho said:

Why not just query the database? No need for a server side mod if its not going too much into detail.

 

I really want the AI to interact with the server as if it was a player. That involves de gameserver knowing and treating the AI instance as a player! I don't know if I can replicate that with database queries, honestly. But that's a nice tip that I might follow if everything else fails.

Posted
2 hours ago, masses said:

 

I really want the AI to interact with the server as if it was a player. That involves de gameserver knowing and treating the AI instance as a player! I don't know if I can replicate that with database queries, honestly. But that's a nice tip that I might follow if everything else fails.

And what model you wanna train? LLMs can't do that.

Posted (edited)

I suggest logging real player data such as positions, movement, quests, skills used in real time, and general actions and save them in whatever format you like. You need to organize and verify the data. If your data are not enough you can create synthetic data based on your existins real data. later you have 2 options 

You can fine tune a smaller model (for example, from hugging face). This requires time, money(compute power), and plenty of trial and error, but the benefit is that you can run it locally without relying on external services.

Use existing LLMs and  instead of training you can store your data in a vector database and let the LLM query it( im not sure if RAG is the right term here). This approach is faster to set up but depends on the model  and the output you want to achieve(you will need some research there).

Regardless of which approach you take  you should expose only safe actions through a service or API. This can be done with MCP(model context protocol) or a custom api ensuring the model (local or external) can only trigger controlled api calls such as movePlayer, castSkill, etc etc, which are already implemented in most sources, but you will need to implement them for your models output and behavior. 

 

Doable? Yes by commiting  a tone of hours and i dont think java code is the problem here.
Is it worth it? If you’re doing it to learn then go for it. But if your goal is to create “real fake player” experience on your server or to sell it later  its not worth it. Spend your time elsewhere

 

1 hour ago, Splicho said:

And what model you wanna train? LLMs can't do that.


yes they can

Edited by Seamless
Posted (edited)
2 hours ago, Seamless said:

yes they can

LLMs can just return text, and maybe tool calls (read write etc) no ?

Wouldn't you need a parser or something that translates the returned text to instructions, e.x move player here, cast skill there?

 

Sounds like a pain in the ass + a lot API costs.

Edited by Splicho
Posted
4 minutes ago, Splicho said:

LLMs can just return text, and maybe tool calls (read write etc) no ?

Wouldn't you need a parser or something that translates the returned text to instructions, e.x move player here, cast skill there?

 

Sounds like a pain in the ass + a lot API costs.

correct. for example with semantic kernel sdk that exists also for c# and java you can do all sorts of things. even orchestrate an llm to call classes and manipulate objects or even execute database queries. you can literally simulate a real player process on a loop. and yes its costly if you use services like azure. but you can find cheaper alternatives or even free if you brave enough and have time

Posted

Thanks a lot for the very interesting responses! To clarify, this is only for personal learning and use, I don't plan on earning any money!

Posted

as you said expose connections in the server and create a communication with your AI, ironically an AI can help you do excactly that, all you need is your time i dont think you can get any help on discovering something that dont exist out of the box, thats the history with emulating l2->j in general thats what people, here you can find only positive and sometimes toxic responses, just go ahead and do stuff

:kim:

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

    • 我们商店的新产品: ➡Telegram 乌克兰 +380 | 未使用过 | 清洁账户 | TDATA | 无垃圾邮件封锁 | 包含 2FA | 年龄: 从 3 天起 | 价格从 $3.2 起 ➡Facebook 老账号 2020–2023 | 地区: EU+ASIA | 年龄: 2020–2023 | 资料填充真实好友: 50+ | 包含邮箱 + 2FA | 真实账号 | 价格从 $4.5 起 ➡SORA 2 | 为您的账号或现成 ChatGPT 账号提供邀请代码 + Sora 2(请阅读产品说明)| 价格从 $2 起 ➡Instagram 真正的老账号 (2010–2013) 带/不带 2FA 访问 | 国家: 混合 | 包含 Submail | 价格从 $4 起 ➡Reddit 用于 ONLYFANS 的 Karma 老账号 | 1,000–10,000 KARMA(可选择)| 混合 IP 注册 | 高质量账号,适合 ONLYFANS 工作者 | 价格从 $4 起 ➡Mail.tm (临时邮箱) 自动注册账号 | 混合 IP 和混合性别 | 支持 IMAP、POP3、SMTP | 价格从 $0.005 起 ➡ShadowSocks、VLESS、Trojan VPN 客户端 | 可选择任何国家 | 支持所有设备和国家(包括俄罗斯!) | 有效期: 30/90/180/360 天 | 价格从 $3 起 ➡TIKTOK ADS 已验证账号 | 地区: 亚洲/美国/欧洲、非洲、阿拉伯国家、南美 | 亚洲/美国/欧洲公司认证 + POSTPAY | 完全访问 | 价格从 $20 起 ➡TIKTOK ADS 账号 | 地区: 欧洲 + 澳大利亚(可选) | 商业认证 + POSTPAY + $6000 优惠券 | 手动注册 | 邮箱访问 + Cookies + VAT 信息 | 价格从 $6 起 ➡Telegram API/HASH 美国 +1 自动注册 1+ 月龄 TDATA + SESSION + JSON + 2FA + API/HASH ID | 价格从 $0.95 起 ➡KYC 商业验证服务 | 适用于任何服务 | 可用地区: 欧洲、美国、亚洲公司 | 价格从 $300 起 ➡Telegram 美国/加拿大 +1 带 ACTIVE PREMIUM 到 2025.12.01 自动注册 | 年龄: 6+ 月 | TDATA + SESSION + JSON + 2FA + PREMIUM | 价格从 $0.65 起 ➡Telegram 美国/加拿大 +1 带 ACTIVE PREMIUM(30 天)自动注册 | 年龄: 6+ 月 | TDATA + SESSION + JSON + 2FA + PREMIUM 30 天 | 价格从 $5 起 可在我们网站商店或通过 Telegram 机器人购买! 有效链接: 数字商品商店 (网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 便捷访问商店。 其他服务: 虚拟号码服务: 前往 购买 Telegram Stars 的机器人: 前往 – 在 Telegram 中快速且有利地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账号。 我们想向您展示当前购买我们服务产品和服务的 促销和特惠 列表: 1. 首次购买可使用促销代码: SOCNET (15% 折扣) 2. 在商店余额获得 $1 或 10–20% 折扣 — 注册后发送用户名,模板: "SEND ME BONUS, MY USERNAME IS..." — 请在我们的论坛帖子中填写! 3. SMM 面板首次试用可获得 $1 — 在我们网站(支持)创建主题为 “Get Trial Bonus” 的工单。 4. 每周在 Telegram 频道及 Stars 购买机器人中赠送 Telegram Stars! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ 邮箱: solomonbog@socnet.store
    • New products in our store: ➡Telegram Ukraine +380 | NO USED BEFORE | CLEAR ACCOUNTS | TDATA | No Spam Block | 2FA included | Age: from 3 days | Price from $3.2 ➡Facebook OLD Account 2020–2023 | Geo: EU+ASIA | Age: 2020–2023 | Profile filled with real friends: 50+ | Email Included + 2FA included | Real accounts | Price from $4.5 ➡SORA 2 | Invite code for YOUR account or a READY ChatGPT account + Sora 2 (read the product description) | Price from $2 ➡Instagram REALLY OLD accounts (2010–2013) with/without 2FA access | Country: MIX | Submail included | Price from $4 ➡Reddit FOR ONLYFANS Karma OLD Accounts | 1,000–10,000 KARMA (your choice) | MIX IP Registered | High-Quality Accounts for ONLYFANS WORKERS | Price from $4 ➡Mail.tm (temporary mails) AutoReg Account | Mixed IPs and Mixed Gender | IMAP, POP3, and SMTP Enabled | Price from $0.005 ➡ShadowSocks, VLESS, Trojan VPN Client | Any Country of Your Choice | Works on All Devices and in Any Country (Including Russia!) | Duration: 30/90/180/360 days | Price from $3 ➡TIKTOK ADS VERIFIED ACCOUNTS | GEO: ASIA/USA/EUROPE, AFRICA, ARABIC COUNTRIES, SOUTH AMERICA | Business Verified On ASIA/USA/EUROPE Company + POSTPAY | FULL ACCESS | Price from: $20 ➡TIKTOK ADS ACCOUNTS | GEO: Europe + Australia (your choice) | Business Verified + POSTPAY + BONUS COUPON for $6000 | Manual Registration | Email access + Cookies + VAT Info | Price from: $6 ➡Telegram API/HASH USA +1 Autoreg 1+ month age TDATA + SESSION + JSON + 2FA + API/HASH ID | Price from: $0.95 ➡KYC Business Verification Services | Verification for any service | Available geo: EUROPE, USA, ASIA Companies | Price from $300 ➡Telegram USA/Canada +1 with ACTIVE PREMIUM UP TO 01.12.2025 Autoreg | Age: from 6+ months | TDATA + SESSION + JSON + 2FA + PREMIUM | Price from $0.65 ➡Telegram USA/Canada +1 with ACTIVE PREMIUM (30 DAYS) Autoreg | Age: from 6+ months | TDATA + SESSION + JSON + 2FA + PREMIUM for 30 DAYS | Price from $5 Available for purchase in our store on the website or via the Telegram bot! Active links: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store through the Telegram messenger. Other services: Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present you the current list of promotions and special offers for purchasing our service’s products and services: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — simply send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write this in our forum thread! 3. Get $1 for the first trial start of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • New products in our store: ➡Telegram Ukraine +380 | NO USED BEFORE | CLEAR ACCOUNTS | TDATA | No Spam Block | 2FA included | Age: from 3 days | Price from $3.2 ➡Facebook OLD Account 2020–2023 | Geo: EU+ASIA | Age: 2020–2023 | Profile filled with real friends: 50+ | Email Included + 2FA included | Real accounts | Price from $4.5 ➡SORA 2 | Invite code for YOUR account or a READY ChatGPT account + Sora 2 (read the product description) | Price from $2 ➡Instagram REALLY OLD accounts (2010–2013) with/without 2FA access | Country: MIX | Submail included | Price from $4 ➡Reddit FOR ONLYFANS Karma OLD Accounts | 1,000–10,000 KARMA (your choice) | MIX IP Registered | High-Quality Accounts for ONLYFANS WORKERS | Price from $4 ➡Mail.tm (temporary mails) AutoReg Account | Mixed IPs and Mixed Gender | IMAP, POP3, and SMTP Enabled | Price from $0.005 ➡ShadowSocks, VLESS, Trojan VPN Client | Any Country of Your Choice | Works on All Devices and in Any Country (Including Russia!) | Duration: 30/90/180/360 days | Price from $3 ➡TIKTOK ADS VERIFIED ACCOUNTS | GEO: ASIA/USA/EUROPE, AFRICA, ARABIC COUNTRIES, SOUTH AMERICA | Business Verified On ASIA/USA/EUROPE Company + POSTPAY | FULL ACCESS | Price from: $20 ➡TIKTOK ADS ACCOUNTS | GEO: Europe + Australia (your choice) | Business Verified + POSTPAY + BONUS COUPON for $6000 | Manual Registration | Email access + Cookies + VAT Info | Price from: $6 ➡Telegram API/HASH USA +1 Autoreg 1+ month age TDATA + SESSION + JSON + 2FA + API/HASH ID | Price from: $0.95 ➡KYC Business Verification Services | Verification for any service | Available geo: EUROPE, USA, ASIA Companies | Price from $300 ➡Telegram USA/Canada +1 with ACTIVE PREMIUM UP TO 01.12.2025 Autoreg | Age: from 6+ months | TDATA + SESSION + JSON + 2FA + PREMIUM | Price from $0.65 ➡Telegram USA/Canada +1 with ACTIVE PREMIUM (30 DAYS) Autoreg | Age: from 6+ months | TDATA + SESSION + JSON + 2FA + PREMIUM for 30 DAYS | Price from $5 Available for purchase in our store on the website or via the Telegram bot! Active links: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store through the Telegram messenger. Other services: Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present you the current list of promotions and special offers for purchasing our service’s products and services: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — simply send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write this in our forum thread! 3. Get $1 for the first trial start of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock