Jump to content

Recommended Posts

Posted (edited)
9 hours ago, .Elfocrash said:

I know now it looks weird because it is hard coded and everything has an equal chance of being picked but the plan it that the user can have different skill sets and different probabilities per bot ai and it will also be configurable on a file and not hardcoded. I want them to be per class because I also need some class specific mannerisms (ie archers will move a bit every other shot to give a sense of realist etc).

but yeah I thought about making them generic as well

 

If you want unique skillset per AI, and it doesn't follow player level (or you want to allow people to add custom skills or passive), you are currently right. But you risk to forget a shitload of skills that way (notably passive).

 

If it follows player level, a simple getAllAvailableSkills() is enough. It still can't be generic (aka you still need one Map per instance), since it's calculated using the level.

 

Archer AI (whatever task you use to compute the behavior) handles the dodge system, it's not related to skills :P. You can litteraly copy-paste ARCHER AI behavior.

Edited by Tryskell
Posted
5 minutes ago, Tryskell said:

 

If you want unique skillset per AI, and it doesn't follow player level (or you want to allow people to add custom skills or passive), you are currently right. But you risk to forget a shitload of skills that way (notably passive).

 

If it follows player level, a simple getAllAvailableSkills() is enough. It still can't be generic (aka you still need one Map per instance), since it's calculated using the level.

 

Archer AI (whatever task you use to compute the behavior) handles the dodge system, it's not related to skills :P. You can litteraly copy-paste ARCHER AI behavior.

Im not talking about run away to hit. Im talking about the thing that players do when they move right and left for no real reason.

 

Also the skill lists are only related to the active skills. The bots do learn all the skills including the passives for their levels.

What he was talking about is the ones that the bots will actually use not the ones they learn.

Posted (edited)

Well, you still can use NPC system. They hold skills according types (HEAL, DEBUFF, etc). Distribution and map feed is done on loading, so there isn't redundant containers. See addSkills on NpcTemplate.

Edited by Tryskell
Posted (edited)

Did some testing with many bots in one area and that's where shit hits the fan. Did some optimisations but threading was never my thing in java.

 

I was able to load up to 280 bots that were fighting with Antharas at the same time. Could go higher but then i doubt i could move easily.

There is definitely a lot of room for improvement but iterating over 50 players per task in 1 second comes with performance sacrifice.

I will probably add a queue decision system where if the next decision is available at the time of the first iteration then i will queue it and exclude the bot from the next one.

 

Also keep in mind that this is the case only for the combat bots.

Idle bots, chat bots, movement/movement path bots and any other type of bot that won't require any intense calculation won't have any performance drawback.

 

 

Edited by .Elfocrash
  • Like 1
Posted

Except from the optimization part,u should move on to the decision making.

Using full capabilities of each class (light vor + solar -> sur hydro // weakness if fighter // slow for hit n run).

Bots just spamming f1 f2 randomly (?) is less than half way.

 

i wonder how much resources that will cost.It isnt costful to prioritize 2 skill combo and do 2 extra checks per class,is it?

Posted (edited)
12 hours ago, bravetobe said:

Except from the optimization part,u should move on to the decision making.

Using full capabilities of each class (light vor + solar -> sur hydro // weakness if fighter // slow for hit n run).

Bots just spamming f1 f2 randomly (?) is less than half way.

 

i wonder how much resources that will cost.It isnt costful to prioritize 2 skill combo and do 2 extra checks per class,is it?

They spam what’s available based on probability which means that the cooldowns drive priority. The plan is ofc to do what I did with the support skills and also add priority and target criteria

Edited by .Elfocrash
Posted
31 minutes ago, Stive said:

Sharing this shity things you help every noob out there and kill the l2 more... Just delete this shity post..

I think you are missing the point.

i don’t encourage anyone to use it but it is insanely fun to develop so so why not share it as well.

 

now if someone wants to use it that’s none of my business

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • ElmoreLab Harbor - Eternal C1 x1: ✅ https://harbor.elmorelab.com ElmoreLab Harbor - Eternal C1 x1 - is an exclusive server of the Eternal C1 chronicles from the top project ElmoreLab Harbor.   A unique server of its kind, on which everyone will have maximum pleasure, such as oldschool players who dream of nostalgia and to feel the warmest and classic C1 chronicles, as well as experienced players who are tired of thousands unbalanced servers of late chronicles. Due to the professional corrections of the balance system and the HONEST gameplay system - on this server, EVERY player will feel like in their own, warm and cozy Harbor C1. Let's return to the origins of L2 - back to 2004 in C1! ❤️   ⭐ Server characteristics:   STRICTLY 1 window, NO BOXES Bans for RMT and bots/cheats No donations with benefits Unique and high-quality PTS-build from Master Toma Professional corrections and full class-balance Reworked economy and closed all abuses Improved animations and all aspects of the game Exclusive HD-client with high-quality textures Experienced administration and management Fixed all bugs, geodata, exploits and holes Maximum sociality due to the 1-box system Discovering, exploring and researching Big online International server Nostalgia and oldschool-feelings   Rates: x1 Server start: 14.02.2025   The server is at the final stages of development and preparation for release. Information on the server will be updated, soon the patchnotes and changes/edits will be posted. Don't miss the legendary and epic experience on the best server in the last 20 years! ❤️ Join our C1-forum with a lot of information about server and active discussions.   ⭐ Website: https://harbor.elmorelab.com   ✅ Forum: https://forum-harbor.elmorelab.com   💥 Telegram: https://t.me/l2harbor https://t.me/l2harbor_chat   ⚡ Discord: https://discord.gg/harborelmorelab
    • yeah ok, if you say what is fuctional 100% i can't say something different 😛  but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
    • I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
    • hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.  I have access to modify everything even to make the clock to stop show how many time users play in server. 1) so maybe keep some personal info more hide. 2) i dont use ogg.dll 3) i create it and give it ready + support to install it. Plus what is mine can working with what ever .exe you want not just l2 with same simple method. And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too thats my source
  • Topics

×
×
  • Create New...