L2JMobius

Free Users => Work in Progress => Topic started by: vert on May 26, 2019, 06:02:37 PM

Title: Autopilot Engine
Post by: vert on May 26, 2019, 06:02:37 PM
Hi guys,
This is a little preview of Autopilot Engine I'm codding to JMobius;

Playlist on Youtube about the engine:
&index=2

(https://i.imgur.com/UfTDc7i.png)

Checklist of general items to do:
(https://i.imgur.com/ZVI65r3.png)


I'll record a little video when I can and post here for more information about the progress of the project;

Anyone has any suggestion?

Your guys like it?

Mobius, do you can implement him officially after I finished? The project can co-exist with your fake player's system, I'm very careful with the code and implementation.

PS: the idea of autopilot is not just fake players, but an engine to enable player auto farm (admins can sell this feature as a premium to the user, or by event coin, by the way, will exist..)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

https://github.com/danielbarion/HighFive/tree/fakeplayers

Some VERY important notes:


Well, that is it :D
Title: Re: Autopilot Engine
Post by: Iris on May 26, 2019, 07:39:02 PM
So this is like a "legal bot"?  ;D
Title: Re: Autopilot Engine
Post by: vert on May 26, 2019, 09:12:26 PM
This is server side; so I think yes, like a "legal bot"...
Title: Re: Autopilot Engine
Post by: Mobius on May 27, 2019, 06:38:42 PM
If it is compatible with our fake players and made for at least for a GoD branch, it will depend when I see the code for it.
Title: Re: Autopilot Engine
Post by: vert on May 27, 2019, 07:37:39 PM
I'm working on Highfive, the GoD branch are too diff about HighFive ? I can adapt, no problem...

The engine is a package, they look like this:

(https://i.imgur.com/rmew1ud.png)
(https://i.imgur.com/An5G55z.png)
(https://i.imgur.com/Lkosuqr.png)

I'll rename him to autopilot because I'm working on small generic functions as possible, to use him as "auto farm" in a player too;

When I done the project, I'll give access to the source to you Mobius (the project is in my personal github as a private repository).
Title: Re: Autopilot Engine
Post by: vert on June 06, 2019, 03:58:02 PM
Update:



https://youtu.be/UEoT2T9Z5pI
Title: Re: Autopilot Engine
Post by: Mobius on June 07, 2019, 03:37:28 AM
Nice work.
Moved in work in progress.
Title: Re: Autopilot Engine
Post by: facab on June 07, 2019, 03:46:49 PM
Wau, looks cool  :) :)
Title: Re: Autopilot Engine
Post by: vert on June 13, 2019, 06:21:40 AM
Nice work.
Moved in work in progress.

Thank you, I'm finishing my university exames and I'll have a little more time to code this project.

Wau, looks cool  :) :)

Thank you;


I'll try let this topic regularly updated.

Title: Re: Autopilot Engine
Post by: vert on June 13, 2019, 07:49:03 AM
I finished the Sagittarius class tonight, refined the get target function and update initial fight buffs;

(1:45 AM, let's sleep hahaha).

Next classes: Moonlight Sentinel, Ghost Sentinel.

I'm working only in archers class first (Kamael will be in the end, spoil and summoners too).

Title: Re: Autopilot Engine
Post by: Liamxroy on June 13, 2019, 09:58:03 AM
I finished the Sagittarius class tonight, refined the get target function and update initial fight buffs;

(1:45 AM, let's sleep hahaha).

Next classes: Moonlight Sentinel, Ghost Sentinel.

I'm working only in archers class first (Kamael will be in the end, spoil and summoners too).

Goodjob Vert .. I hope Mobius will get you to inner circle after this share.
Title: Re: Autopilot Engine
Post by: vert on June 13, 2019, 04:15:39 PM
Goodjob Vert .. I hope Mobius will get you to inner circle after this share.

Thank you, it would be amazing.

Unfortunately I have low time to code (work and university), so, I'm programming this engine just in my free time... I don't know if I'll finish him completely in the next months, but I want the first release with the basic functions and some AIs (archers, daggers, bishop and some mages) 100% working for you guys can use and I'll do some updates as possible with the next features (other AIs, progressive system, player autopilot - farm).
Title: Re: Autopilot Engine
Post by: vert on June 21, 2019, 03:51:14 PM
Update:



---------------------------------------------------------------------------------------
- Fake Players are teleported to (x 0, y 0, z 0) some times when walking to target in varkas (in every irregular place).

Reason: default last position in server (players class) is (x 0, y 0, z 0) and when receive a package from client, the package is verified if is a valid position and character last server position is updated.

Solution: in the start flow of fake player thinking, if the last position !== current position, update the last position.

Status: Solved.
---------------------------------------------------------------------------------------
Title: Re: Autopilot Engine
Post by: vert on June 24, 2019, 04:28:09 PM
Update:



---------------------------------------------------------------------------------------



---------------------------------------------------------------------------------------

Next possible updates:



This will happen, maybe not in this order, I want to release the first version after Khavatary class and do some updates after...

What you guys think about this ?

---------------------------------------------------------------------------------------
Necessary features but not listed in the ordered tasks:
Title: Re: Autopilot Engine
Post by: Liamxroy on June 25, 2019, 01:47:15 AM
This is insane! Good job.. keep up
Title: Re: Autopilot Engine
Post by: vert on June 25, 2019, 04:26:02 PM
Thank you!

------------------------------------

Update from last night:

Title: Re: Autopilot Engine
Post by: Mobius on June 28, 2019, 10:09:44 PM
Maybe add some generic AIs before making everything?
Fighter, Caster, Ranged, Healer.
And extend those?
Title: Re: Autopilot Engine
Post by: vert on June 30, 2019, 06:39:45 AM
Sounds great!

I'll finish the pickup logic to commit the changes and after, I'll split the CombatAI into some generic files.

Thanks.

EDIT: Guys, I'm out of time now, but I'll post some updates when I can; (I'm out of time to code pet projects, but I enter in forum a lot of times a day, if someone has any question, just let me know).
Title: Re: Autopilot Engine
Post by: vert on July 13, 2019, 08:37:24 PM
Update:



---------------------------------------------------------------------------------------

The pickup item logic will be improved in the future with some extra validations and a possible refactoring, but for now, its 100% working and doens't conflit with any other "think and act" logic (like combat).
Title: Re: Autopilot Engine
Post by: SmiDmi on July 14, 2019, 10:54:38 PM
Very good!
This can turn into a real system of setting up bots on the server.
Still they would remain after server restart?
Title: Re: Autopilot Engine
Post by: vert on July 14, 2019, 11:52:45 PM
For now, they are not stored into db, but in the "progressive fake players" feature, they will;

Edit: Guys, don't forget, I love L2 and this is a hobbie (like mobius and a lot of you guys), I just code when I can, so... don't worry, I'll post updates as soon as I can.
Title: Re: Autopilot Engine
Post by: vert on August 26, 2019, 05:45:13 PM
Hi Guys,

Great News!

I have worked some time in this weekend and there is the update list:

Update:


---------------------------------------------------------------------------------------

Possible Next Update:


---------------------------------------------------------------------------------------

PS: When the grade has more than one equipe (only S or S+), they will be random, like:

Code: [Select]
                    case "S":
                        if (Rnd.get(0, 1) == 0) {
                            /**
                             * 6608 = Arcana Mace
                             */
                            itemsIds = Arrays.asList(6608);
                        } else {
                            /**
                             * 9860 = Dynasty Phantom (Acumen)
                             */
                            itemsIds = Arrays.asList(9860);
                        }
                        break;

                     case "S80":
                        /**
                         * 10440 = Icarus Spirit
                         */
                        itemsIds = Arrays.asList(10440);
                        break;

                     case "S84":
                        int randomNumber = Rnd.get(0, 2);
                        if (randomNumber == 0) {
                            /**
                             * 14125 = Vesper Buster (Acumen)
                             */
                            itemsIds = Arrays.asList(14125);
                        } else if (randomNumber == 1) {
                            /**
                             * 15856 = Veniplant Sword (Acumen)
                             */
                            itemsIds = Arrays.asList(15856);
                        } else if (randomNumber == 2) {
                            /**
                             * 15900 = Archangel Sword (Acumen)
                             */
                            itemsIds = Arrays.asList(15900);
                        }
                        break;

---------------------------------------------------------------------------------------

I'll finish the initial version of Autopilot engine just with the fake players (with essential interations) and update my HighFive version of mobius project.

For now, the first version as I've planned will have the features bellow:


Q: Your engine is named as 'AutoPilot', where is the bot ? The "auto farm" ?
A: The "bot" feature will use the same functions of fake players, so, when they are very refined and working very nice, the "auto pilot" will be very nice.

Q: Your engine will be free or paid ?
A: Free. When I'm done with the first release, I'll talk with mobius how we can organize to update JMobius source (I prefer work with Git, so, probability will be a private git repository who mobius will have full access and the engine is just a package with 1 line altered in mobius source and some admin html added to source. Will provide the source of engine and  the .diff to te current version of HighFive branch).

Q: You will provide any support ?
A: No, I'm coding for l2j as a hobbie, so... Will help in forum but not in personal messages or in other channels.

Q: You will update the engine ? Fast ? Everyday ? One time/year ? Slow ?
A: Yeah, I'll update the engine everytime I can, when I said, I'm coding for l2j as a hobbie, so, does not expect releases everyday or everyweek, but I'll.

I hope you guys enjoy the engine.
Title: Re: Autopilot Engine
Post by: ReynalDev on August 26, 2019, 07:56:49 PM
Why so much effort in creating fake players, what is the point of the server being full of these?

:sadface:
Title: Re: Autopilot Engine
Post by: vert on August 26, 2019, 08:21:33 PM
Why so much effort in creating fake players, what is the point of the server being full of these?

:sadface:

Well, I like It.
I like the idea to have a project for l2 related to AI who I can use in my university and a project who I love to code.

I'll earn anything ? Probability no.

Q: So, why don't work on fixes from official servers to mobius branchs ? Why don't spent time with some event mods instead fake players and auto pilot ?
A: Because I don't want  :) .

I don't have time to log in into official servers and compare htmls or anything.

I work full time and go to university, so: I wake up, go to my work, after work I'll to my university, after university I go to my house, I sleep, I wake up, go to my work...


Title: Re: Autopilot Engine
Post by: ReynalDev on August 26, 2019, 09:31:11 PM
You are free to do what you want with your time.
Title: Re: Autopilot Engine
Post by: vert on August 31, 2019, 09:52:04 PM
Hi Guys,

Update's note:


---------------------------------------------------------------------------------------

Next possible updates:

Title: Re: Autopilot Engine
Post by: jorfan on August 31, 2019, 10:08:54 PM
To sad to read the changelog work in the posts without the chance to try it :(
Title: Re: Autopilot Engine
Post by: vert on August 31, 2019, 11:15:37 PM
You guys will can teste and use in few updates, I'm coding Just the critical and necessary things.

I'll refine the engine after lauch It, but I want launch a First release more stable as I can.
Title: Re: Autopilot Engine
Post by: vert on September 01, 2019, 07:57:53 PM
Hi Guys,

Update's note:


---------------------------------------------------------------------------------------

Next possible updates:

Title: Re: Autopilot Engine
Post by: LudinTheGaT on November 12, 2019, 01:08:41 PM
hi! still developing? nice job so far
Title: Re: Autopilot Engine
Post by: vert on November 12, 2019, 02:16:05 PM
hi! still developing? nice job so far

Hello LudinTheGaT,

Yeah, I'm a little out of time for now, but I'll post some updates note as soon I can.

Thank you!
Title: Re: Autopilot Engine
Post by: vert on November 17, 2019, 08:13:43 PM
Hi Guys,

Update's note:


---------------------------------------------------------------------------------------

Next possible updates:




&index=2
Title: Re: Autopilot Engine
Post by: JMD on November 17, 2019, 08:30:58 PM
this is great, if theres any menial work you need done like a lot of copy pasting stuff feel free to ask me.
Title: Re: Autopilot Engine
Post by: vert on November 17, 2019, 08:32:49 PM
this is great, if theres any menial work you need done like a lot of copy pasting stuff feel free to ask me.

Okay, thank you JMD!
Title: Re: Autopilot Engine
Post by: vert on November 21, 2019, 09:35:26 PM
Hi Guys,

Update's note:


---------------------------------------------------------------------------------------

Next possible updates:




Title: Re: Autopilot Engine
Post by: LudinTheGaT on November 26, 2019, 06:23:45 PM
supa cool bro, hope to try it one day.
Title: Re: Autopilot Engine
Post by: vert on November 26, 2019, 06:40:47 PM
supa cool bro, hope to try it one day.

Thank you bro!

Last post updated with the last task done.

Now I'm mapping the farm zones (beginning from cedric's training hall).

I'll release one version with the necessary features to populate a server eco-system and those classes: Archmage, Mystic Muse, Storm Screamer, Sagittarius, Ghost Sentinel, Moonlight Sentinel.
Title: Re: Autopilot Engine
Post by: Liamxroy on November 27, 2019, 07:57:33 AM

Thank you bro!

Last post updated with the last task done.

Now I'm mapping the farm zones (beginning from cedric's training hall).

I'll release one version with the necessary features to populate a server eco-system and those classes: Archmage, Mystic Muse, Storm Screamer, Sagittarius, Ghost Sentinel, Moonlight Sentinel.


Can't wait.
Title: Re: Autopilot Engine
Post by: LudinTheGaT on November 27, 2019, 09:31:55 PM
supa cool bro, hope to try it one day.

Thank you bro!

Last post updated with the last task done.

Now I'm mapping the farm zones (beginning from cedric's training hall).

I'll release one version with the necessary features to populate a server eco-system and those classes: Archmage, Mystic Muse, Storm Screamer, Sagittarius, Ghost Sentinel, Moonlight Sentinel.

Nice!
i wonder if there is any chance to configure em to also pick items and if they get an enchant, to try it on weap, or elemental stones on armor/ weap?

Title: Re: Autopilot Engine
Post by: vert on November 27, 2019, 10:41:59 PM
supa cool bro, hope to try it one day.

Thank you bro!

Last post updated with the last task done.

Now I'm mapping the farm zones (beginning from cedric's training hall).

I'll release one version with the necessary features to populate a server eco-system and those classes: Archmage, Mystic Muse, Storm Screamer, Sagittarius, Ghost Sentinel, Moonlight Sentinel.

Nice!
i wonder if there is any chance to configure em to also pick items and if they get an enchant, to try it on weap, or elemental stones on armor/ weap?

Thx,

Yeah, I've implemented the pickup items flow (herbs and adena - match item name by string), will be dynamic and possible to configure it, but doesn't look perfect to me until now, so, I disabled the pickup items until more tests.

Use enchant items and add element to equips will be added in future, I have this code fragment but I'm not looking for this now.

I really want to release a complete eco-system of fake players for any JMobius server, with small but perfect features in the begin and totally configured by config file like mods ;)
Title: Re: Autopilot Engine
Post by: LudinTheGaT on December 27, 2019, 03:00:33 AM
Any update bro? very excited about this  :D
Title: Re: Autopilot Engine
Post by: vert on December 27, 2019, 02:21:54 PM
Any update bro? very excited about this  :D

No finished feature.

Until now, I've mapped the Cedric's Hall with min level set to 1 and max level 7 (to farm in this place), after up to level 8, the character will walk to talking island (I'm in this part);

When I finish the first mapped place, others will be very fast :D
Title: Re: Autopilot Engine
Post by: Asgorot on January 15, 2020, 10:13:13 AM
supa cool bro, hope to try it one day.

Thank you bro!

Last post updated with the last task done.

Now I'm mapping the farm zones (beginning from cedric's training hall).

I'll release one version with the necessary features to populate a server eco-system and those classes: Archmage, Mystic Muse, Storm Screamer, Sagittarius, Ghost Sentinel, Moonlight Sentinel.

Nice!
i wonder if there is any chance to configure em to also pick items and if they get an enchant, to try it on weap, or elemental stones on armor/ weap?

Thx,

Yeah, I've implemented the pickup items flow (herbs and adena - match item name by string), will be dynamic and possible to configure it, but doesn't look perfect to me until now, so, I disabled the pickup items until more tests.

Use enchant items and add element to equips will be added in future, I have this code fragment but I'm not looking for this now.

I really want to release a complete eco-system of fake players for any JMobius server, with small but perfect features in the begin and totally configured by config file like mods ;)

Sorry my bad English...
Interesting, then fakeplayer pickup anything, items are moved to inventory and stored there, or they are simply deleted?
Title: Re: Autopilot Engine
Post by: vert on January 15, 2020, 01:47:37 PM
Inventory;

They act like a real player because of player's function  :D
Title: Re: Autopilot Engine
Post by: Asgorot on January 28, 2020, 12:44:40 PM
"Real player" bots is very interesting😃. May be you relise function" if bot logout, this bot sit down into random town, and trade random items" high economy on servers with low online🤔🤔🤔
Title: Re: Autopilot Engine
Post by: vert on January 28, 2020, 02:03:44 PM
"Real player" bots is very interesting😃. May be you relise function" if bot logout, this bot sit down into random town, and trade random items" high economy on servers with low online🤔🤔🤔

Yes! The idea of the Autopilot engine is "A complete ecosystem of bots (farm, lvl up, buff, trading, siege, boss...)";

But I'm out of the project for now (source code are with @Liamxroy and @Mobius);
Title: Re: Autopilot Engine
Post by: planetnet on January 31, 2020, 01:08:35 PM
hi, i am new in the forum, how can i download the bots so i can test them?
Title: Re: Autopilot Engine
Post by: ruffle on February 04, 2020, 02:59:46 AM
cool, good job  :)
Title: Re: Autopilot Engine
Post by: planetnet on February 04, 2020, 12:46:34 PM
what you never answer is everywhere :(


Title: Re: Autopilot Engine
Post by: vert on March 09, 2020, 04:56:42 PM
Hi, I'm very busy at the moment...

I never answer? Man, take a look at what I said in other pages before say it.


Well, I've received some messages about this engine, Liamxroy and Mobius already have access to it (it's not finished yet).

If they allow I can make the repository public and everyone can help finish this when I can't finish now.
Title: Re: Autopilot Engine
Post by: Mobius on March 09, 2020, 06:21:04 PM
I do not have any problem with it.
It is based on free version.
Title: Re: Autopilot Engine
Post by: vert on March 09, 2020, 08:33:11 PM
Well.. done :)

https://github.com/danielbarion/HighFive/tree/fakeplayers

Some VERY important notes:


Well, that is it :D
Title: Re: Autopilot Engine
Post by: anders0913 on March 16, 2020, 06:40:55 PM
Well,great job! :) :) :)
Title: Re: Autopilot Engine
Post by: vert on March 25, 2020, 02:33:01 PM
Hello,

For those who are asking me "how can update the Hi5 version to the latest...".


Look at here: https://github.com/danielbarion/HighFive/pull/1/files


Code: [Select]
dist/game/config/AdminCommands.xml (admin commands)
java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java (adaptations)
java/com/l2jmobius/gameserver/network/clientpackets/MoveBackwardToLocation.java (fixed when fakeplayer doesn't have a package, so, he updates with location: 0,0,0)
java/com/l2jmobius/gameserver/network/serverpackets/MoveToPawn.java (adaptation)
java/com/vert/autopilot/* (everything)

My Intellij Idea has updated the singular and plural of some "task" and "helper" words. But you guys can make the code review of what was changed out of autopilot package in 10 mins.

Now, you guys can adapt to the newer version of Hi5, but I'll not merge the fakeplayer branch in git with just my commits because he is not ready for one stable production release.
Title: Re: Autopilot Engine
Post by: sucodeuva229 on December 12, 2020, 12:16:48 AM
Hello ,
can someone adapt for H5 2020 mobius?
Title: Re: Autopilot Engine
Post by: yelopy on February 03, 2021, 12:37:13 PM
What verssion JAVA use this source?
Title: Re: Autopilot Engine
Post by: vert on February 03, 2021, 01:34:46 PM
What verssion JAVA use this source?

You can see the version in the readme.md

But... Here is the file:

http://www.mediafire.com/file/514ah8a77dk5j7a/jdk-10.0.2_windows-x64_bin.exe
Title: Re: Autopilot Engine
Post by: jorfan on May 24, 2021, 07:04:27 PM
any way to see that feature on latest version some how ?
Title: Re: Autopilot Engine
Post by: vert on May 24, 2021, 09:22:32 PM
any way to see that feature on latest version some how ?

Yes, of course! You can do this :)
Title: Re: Autopilot Engine
Post by: jorfan on May 27, 2021, 08:44:43 PM
i am not a java dev and i cant do it my self.
It is included in the subscription version ?

any way to see that feature on latest version some how ?

Yes, of course! You can do this :)
Title: Re: Autopilot Engine
Post by: vert on May 27, 2021, 09:13:12 PM
i am not a java dev and i cant do it my self.
It is included in the subscription version ?

any way to see that feature on latest version some how ?

Yes, of course! You can do this :)

That's sad, I'm not a Java dev too, but I did this like it's are :D

No, everything about that engine is in the github in that version of mobius
Title: Re: Autopilot Engine
Post by: Makriggo on September 09, 2021, 08:12:08 PM
Is there a tutorial on how to install this ?
Title: Re: Autopilot Engine
Post by: jorfan on March 12, 2022, 12:33:26 AM
I am waiting for this too. Thing the project is dead. So sad,
Much work done on this for nothing.. Looked very promising.
Title: Re: Autopilot Engine
Post by: KraseNew on January 25, 2024, 11:08:36 PM
Hello,

For those who are asking me "how can update the Hi5 version to the latest...".


Look at here: https://github.com/danielbarion/HighFive/pull/1/files


Code: [Select]
dist/game/config/AdminCommands.xml (admin commands)
java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java (adaptations)
java/com/l2jmobius/gameserver/network/clientpackets/MoveBackwardToLocation.java (fixed when fakeplayer doesn't have a package, so, he updates with location: 0,0,0)
java/com/l2jmobius/gameserver/network/serverpackets/MoveToPawn.java (adaptation)
java/com/vert/autopilot/* (everything)

My Intellij Idea has updated the singular and plural of some "task" and "helper" words. But you guys can make the code review of what was changed out of autopilot package in 10 mins.

Now, you guys can adapt to the newer version of Hi5, but I'll not merge the fakeplayer branch in git with just my commits because he is not ready for one stable production release.


Please tell us how to install it in the game. I'm very big noob of this ... I'm learning to me admin and scripting. I have locall server for my few friends and this AI players will be great to feel like playing in some big server.. :)
This will make it great :)