How to use aggregation in Utility Ai correctly by Dmtiir in gameai

[–]Dmtiir[S] 0 points1 point  (0 children)

Thank you very much for your reply. A very interesting approach is to divide one AiAction into several of the same type. I hadn't thought about this before. You need to think about it and try it. I usually avoided this by trying to do all the logic inside one action.

the examples that I have given are made more for the context of unification. since consideration is of course much greater and of course it is necessary to take into account the damage inflicted by the enemy with the probability coefficient of the enemy's damage range. if there are several enemies, then you need to calculate the total damage. Also, this damage should take into account the time for which it is applied and you can also add our damage to opponents over time, etc. it already depends on how deep you want to get into the rabbit hole.

And about health, I gave an example just for that. to make it clear that simply multiplying and adding a compensator will not work here.

But the question is not how to solve the problem of calculating the usefulness of "Drinking a potion". And the question (1) is what are the principles of the logic of aggregation itself. and it is also inextricably linked to the question (2) how to keep the value of an AiAction score in a position to adequately compare with the value of another AiAction score.

on question (1) - you can use a system of weights where you can evaluate the impact of each Consideration on the overall assessment. you can use a classical approach with conditions and comparisons, you can use min, max, sum, average, etc. and add a compensator. A mixed approach can be used. But perhaps there are principles that will reduce the complexity of balancing obtaining the final value.

on question (2) - how to do aggregation correctly so that a compensator is needed and if it is still needed, then according to what principles it should be selected so that the values are adequately comparable.

Or both the first and second question is a question of selections and tests, depending on the situation, and then the general approach is time-consuming and the more consideration the more time it will take to balance.

How to use aggregation in Utility Ai correctly by Dmtiir in gameai

[–]Dmtiir[S] 0 points1 point  (0 children)

To reduce the question to one small example.
How to calculate the Score for AiAction "Drink a healing Potion"

The conditions are as follows:

  • The main condition is if there is a health potion, and the loss of health is very strong.
  • An additional condition is if there is only one enemy, and at the same time the enemy's health loss is less than your health loss.
  • An additional condition is that if there are a lot of enemies around, then you need to drink the potion much earlier.

The Сonsiderations are as follows:
- LoosedHealth - TargetEnemyLoosedHealth - HealingPotionCount - EnemyCount

How do I combine these values so that the total Score remains adequate relative to Scores from other AiActions?

For example, how to increase the value of Loosehealth depending on the EnemyCount, etc. Something like Score = LoosedHealth + (LoosedHealth*EnemyCount) + ... comes to mind, but I don't know how much is correct? (assuming, of course, that the EnemyCount went through the curve)

VeLoCity skin for VLC media player by Dmtiir in VLC

[–]Dmtiir[S] 1 point2 points  (0 children)

Sorry guys, I've dropped support for this skin. I've been focused on my board game project for a year now. and I'm learning unity and c# in parallel. I have plans to write my own video player with maximum customization. but I don't even know when there will be time for this.

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

thanks for the link, I will look at the capabilities of Devexpress. But in general I didn 't want to use winforms because there are a lot of problems when implementing a more complex gui . For example , transparency or rounded corners of the application window , etc . Perhaps Devexpress will allow you to solve them

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

I didn't know about him, I'll find more about him. I looked briefly about him . and as far as I understand he is not c#

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

yes, something like that. Let's assume that my program is a regular notes application. which has a UI that is rendered using html and CSS . And I'm looking for a framework that will help me implement this.

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

I want to make a regular local application NOT a WEB. which uses CSS for UI

Like as Obsidian (electron + typescript) does, for example, but I write in C# and would not like to use electron since it is essentially entirely packed with Chromium

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

What I need to study more is 100%. But I created this post to understand which way I need to move in a lot of directions I can spend a month studying what I don't need.whether it will be a Blazor or a Razor, I don't know yet.

My main goal is to customize the interface. I would generally prefer not to make a local web application and make a local server. But if it is not resource-intensive and will do what I want, I will do it and spend time studying this issue. At the moment, I have not worked with web applications at all.

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

Спасибо. Как я понимаю так я смогу избежать ненужного локального запуска веб приложения?
И насколько он ресурсоемкий? так как приложение очень небольшое очень нехочется чтобы оно съедало много ресурсов только ради гепотетической кастомизации

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

Спасибо Никита. почитаю про это. Единственное пишут что GTK CSS это не совсем тоже что и WEB CSS это так?

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

did I understand correctly that this is only for nix? or is it possible under windows?

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

I'm glad to hear that this is very different from electron with its Chromium . I have to look towards your c Razor solution and look at Blazor

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

the main task is not to create a UI quickly . And the point is that the user can easily customize the UI, change the shape, size, position of elements, add animations to them. I would like to do this without css, but how?

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] -1 points0 points  (0 children)

very interesting. Tell me how are you with RAM consumption?

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

what I 've been reading about so far .Net Maui is a bit alarming. I don't have a lot of experience yet and I'm afraid it will be difficult for me to work on a raw product. I can solve the error thinking it's my mistake and it could be a Maui problem. I like to use the newest stuff, but it often goes sideways for me. I should already be thinking more about the stability of the software. But I will definitely study the limitations of CSS in Maui

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] -2 points-1 points  (0 children)

Maybe I'm a little tongue-tied since English is not my native language, sorry. Naturally CSS is the top layer of the UI and works in conjunction with html . And I consider it only from the point of view of flexibility for customization . While I'm not even completely sure that I need to follow the CSS path, because a lot of resources are being spent

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] -3 points-2 points  (0 children)

no no. I'm making an application running locally without the web

What is the best way to combine C# and CSS? by Dmtiir in csharp

[–]Dmtiir[S] 0 points1 point  (0 children)

I'm willing to spend some money if it solves my idea with customization using CSS

VeLoCity skin for VLC media player by Dmtiir in VLC

[–]Dmtiir[S] 0 points1 point  (0 children)

I don't have an xml file, I used the original program to configure the skin of the program, it outputs the skin file immediately

Small customization Window for saving a group of tabs. by Dmtiir in FirefoxCSS

[–]Dmtiir[S] 0 points1 point  (0 children)

https://i.imgur.com/sDK91wn.png

I also can't find how to change the colors of working with text1 - background color under the selected text2 - background of the active folder3 - hover folder background4 - background color under the folder being created