Jump to content

Is adding an auto queue for PETRA Bot technically possible?


Recommended Posts

It's possible to make AI have a tighter control on queues compared to what Petra does (iirc there exists something like a callback after trained units for example). The next question would be how much modifications need to be made to other PETRA components so your new queuing intelligence is well integrated in the overall working of the AI. That I do not know but it would probably be big changes.

Link to comment
Share on other sites

What you show as bot auto queue is just a regular queue. Basically the same you get if you queue up 6 batches a 2 manually. Auto queue for humans only makes sense because we forget sometimes to queue units but that is an issue the AI doesn't have. In light of that your question doesn't seem to make sense to me. Could you elaborate a bit more on what exactly you want.

Link to comment
Share on other sites

5 hours ago, hyperion said:

What you show as bot auto queue is just a regular queue. Basically the same you get if you queue up 6 batches a 2 manually. Auto queue for humans only makes sense because we forget sometimes to queue units but that is an issue the AI doesn't have. In light of that your question doesn't seem to make sense to me. Could you elaborate a bit more on what exactly you want.

On the first screen(6 batches of 2) the cost of the queue at the time of its formation is 6 * the cost of 1 batch.

The cost of inactive 5 batches in the queue are removed from the balance.

 

On the second one, the cost of the queue will be the cost of 1 active batch at the time it is ordered. The length of the queue is any.

 

The difference in the number of resources .

  • Like 1
Link to comment
Share on other sites

Auto queue is just a hook to add stuff to the queue should it be empty, what is shown is basically just the pattern used for adding, not units already in the queue. Filling the queue based on the pattern binds the resources. The AI has already decided to spend the resources this way so binding doesn't matter either. You can also just calculate each round what the AI should do with their res and only queue a single batch if currently empty. In essence you would just run the same calculations over and over as the result wouldn't change. Sure you can mod the AI to be smarter but the autoqueue feature is pretty much useless for anybody but humans.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

 Share

×
×
  • Create New...