top of page
  • Join our Discord!
  • Join our Kickstarter!

AI part 4

Sep 6, 2022
2 min read

Updated: Nov 29, 2022

Welcome to the fourth AI devlog.


Today we take a look at the basic structure of AI at a glance.



Who decides?



First up is the AIInit.lua. All functions of the AI ​​are initialized here.

The additional modules such as "Player Notification", "Missions" or "Cross AI" are still in the planning stage and will later control AI functions for the player and missions.


The executive area is divided into 3 main functions.

The decision-making for the AI ​​strategies is located in the AI ​​strategy manager.

This is where all the AI's functions are called based on the current situation on the battlefield.

In addition, the "Cross AI" support functions for the player and scripts for later single or multiplayer missions are executed here.


In the Location Creator, bases are built at neuralgic points on the map.

This means that the AI ​​at position x,y can give orders to all units within a radius of 200 meters.

Number of bases or the position is not limited and can be used anywhere on the map.


Normally the AI ​​is able to work with a balanced economy.

But in emergencies such as the destruction of economy buildings, it may be necessary to redistribute resources to ensure trouble-free reconstruction.

This is what the Ecomanager is designed for.

From here, units can be paused or, in an emergency, withdrawn from the construction site.



Who plans?



Once the decisions have been made about which strategies to pursue, they must now be executed.

For this purpose, there is a location manager and executor for each base or base extension.


The manager uses the selected strategy to search for all platoon formers.

It checks if the build conditions are correct (eg low power, base under fire), and compiles a list of platoon formers to execute.

This list is processed by the executor.

Each platoon former has a platoon function assigned to it, which is called by the executor and supplied with the platoon former's data.



Who works?



The individual platoon functions are the actual workhorses of the AI.

After the location executor has started a platoon function, the first thing to do is to search for units that are necessary for the platoon.


A platoon that has a construction order for a building will first look for all available technicians.

If technicians are available, a building site for the new building is sought.

If we have a building site, we look for the technician who can reach the site the fastest.

This technician (or several) is added to the platoon and then gets the construction order.

After the building has been completed, all units are removed from the platoon and are available for new tasks.


Other platoons are responsible for upgrading buildings, for example.

These platoons also first look for units that can be used.

A platoon with an upgrade order will of course look for buildings that can be upgraded.

Here it is ensured that buildings closest to the center of the base are upgraded first.


Other platoons control groups of units to attack, repair buildings or operate nuclear missiles.


And already we have an AI that can build a base, takes care of the building of tanks and sends them diligently towards the enemy.



Thank you for your attention, I hope you enjoyed it.


Regards, Uveso.


 
 
 

9 Comments


savannapatt.er.s.on.7.0.4
Oct 15

rophim mình mới ghé thử vì thấy bạn bè nhắc hoài, kiểu vào xem có dễ dùng không thôi. Không ngờ giao diện nhìn khá gọn, lướt một vòng là thấy ngay chỗ phim mới với mấy mục phim HD Vietsub đặt khá nổi, khỏi phải mò lâu. Mình thích cái cách họ để poster theo từng khối nên kéo xuống rất nhanh, gặp phim hợp gu thì bấm phát xem luôn, không bị rối mắt. Chất lượng thì mình chưa xem hết, nhưng thấy có ghi HD 4K nên cũng yên tâm phần hình ảnh. Nói chung lần đầu vào mà không bị “lạc” là điểm cộng, nhất là phần phân nhóm phim HD Vietsub nằm rõ trên trang.

Like

terrancecart.e.r.36.0.7
Oct 14

go888 lúc đầu mình cũng hơi ngại vì sợ trang kiểu nhồi nhiều thứ nhìn mệt mắt, ai ngờ mở lên lại khá dễ thở; mình chỉ lướt nhanh vài phút khi rảnh thôi, không đọc kỹ nội dung gì, nhưng cái menu đặt ngay chỗ dễ thấy nên chuyển qua lại giữa các mục tiện, không phải kéo lên kéo xuống tìm hoài; thêm cái là mấy khối thông tin chia rõ ràng, mắt quét một cái là nhận ra đang ở phần nào, chữ với khoảng cách nhìn vừa đủ nên trên màn hình nhỏ cũng không bị rối; mình thích kiểu trình bày theo cột gọn gàng, đọc lướt vẫn bắt được ý chính, không bị cảm…

Like

timmothybu.r.ns83.57.8
Oct 12

8xbet login mình thấy mọi người nói hoài nên cũng bấm vào coi thử cho biết. Mình không có đăng ký hay tìm hiểu sâu gì đâu, chỉ lướt qua giao diện xem có dễ nhìn không. Cảm giác đầu tiên là trang làm khá “thoáng”, chia nội dung theo từng khối nên mắt bắt thông tin nhanh, không bị ngợp chữ. Mấy chỗ hiển thị thông tin nhìn gọn gàng kiểu dạng cột, liếc qua là hiểu đại khái đang ở phần nào. Mình cũng để ý cái menu đặt khá lộ, bấm chuyển qua lại giữa các mục không phải mò mẫm, nhìn là thấy ngay. Nói chung hợp kiểu người vào xem thử như mình, không cần…

Like

rattittbi.nit.aac
Oct 12

soicaulodechuan.net hôm trước mình thấy bạn bè nhắc vài lần nên tiện tay mở thử cho biết thôi. Mình không đọc kỹ nội dung đâu, chủ yếu xem cách họ làm giao diện. Cảm giác đầu tiên là trang nhìn khá gọn, khoảng trắng vừa đủ nên lướt không bị mỏi mắt. Mình để ý mấy phần thông tin họ trình bày theo kiểu khối bảng, tiêu đề với số liệu tách ra rõ nên nhìn cái là bắt nhịp được ngay, không phải căng mắt dò từng dòng. Với lại menu đặt chỗ dễ thấy nên bấm qua lại cũng nhanh, không kiểu phải kéo lên kéo xuống tìm. Nói chung mở lên vài phút là quen tay vì…

Like

bentieshaand.re.ws3429
Oct 08

EA88 mình mới ghé thử vì thấy bạn bè nhắc hoài, kiểu tò mò xem trang họ trông ra sao thôi chứ không làm gì sâu. Vào cái là thấy giao diện khá sáng sủa, bố cục chia khối rõ nên lướt một vòng không bị rối mắt. Mình để ý họ có hẳn phần nói chuyện link hay bị chặn ở VN và cập nhật hướng xử lý, đọc qua thấy viết gọn gàng, không làm quá. Menu nhìn cũng dễ hiểu, bấm qua lại giữa mấy mục thông tin khá mượt, không phải mò lâu mới tìm được chỗ cần xem. Mấy box nội dung canh theo cột nên nhìn trên trang chủ rất dễ theo dõi, nhất…

Like
bottom of page