VISAB-ORG / VISAB

VISAB is a standalone utility to visualize artificial intelligence agent behavior in games.
1 stars 0 forks source link

F replayview settlers #109

Closed leRoe93 closed 3 years ago

leRoe93 commented 3 years ago

Settlers Replay View is now initially implemented and works out fine (live as well).

I followed exactly the same structure of the implementations for the CBRShooter to ensure a similar structure which could later on even be abstracted into the upper inheritance base class.

As the word "initially" already indicates, it is of course not fully completed, things missing are:

Other things to notice for the replay view:

Other things may come up until tomorrow when we meet :)

mfroeh commented 3 years ago

Settlers of Catan dev has now sends the images and the replay view uses the map image. Works great 👍

Images of objects in Settlers not touched yet.

leRoe93 commented 3 years ago

Nice thanks, looking forward seeing it tomorrow.

I can think of another approach to distinguish between visuals in the replay view that are not very well distinguishible on the game side.

As part of meta information of the game we could send an extra annotation parameter - a single letter would be enough. V for Village and T for town in this case.

VISAB will handle these objects in a manner which places this letter with a simple label directly next to or even within the visual itself (depends on what is more convenient to see with human eyes 😅)

Greeeetz

leRoe93 commented 3 years ago

Latest changes add functionality to show the underlying map of the replay view in either colorised or black-and-white style.

For example in settlers, things are way better visible if the map is coloured. However, the color-coding of the players may be hardly visible if the map is always coloured per default.

Additional the greyScaleImage method of the UiHelper now has a parameter for providing a contrast, which may help if different maps need different contrasts to have a better visibility of the respective map contents on it.

Note: not tested for Settlers, because I was doing this on my MacBook and I only have a Shooter file, but as the implementation is exactly the same it should work out - in the worst case we would need a very little bug fix.

leRoe93 commented 3 years ago

Hey everyone, current state of this branch actually works quite well in general although there are some things not completely clean.

First note: Have the Unity Games with current state of dev branch to be compatible.

Current state introduces:

Small bugs / issues with the current state are:

Any help on that is warmly welcome, but I will of course spend as much time as I can in the next two days before I will leave for vacation over the weekend.