Single battle mode

Issue #16 resolved
Hottemax repo owner created an issue

Have a mode where you don't select samples but execute a single battle, and have battlefield visualization like in the game in the BattleComposite (draw arrows, tooltips with current strength of regiment etc.)

Implement a control bar with play/pause/step forward/step backward/fast forward to end).

Comments (6)

  1. Hottemax reporter

    General WVPM:

    Here is the link to my sim: https://forum.paradoxplaza.com/forum/index.php?threads/victoria-2-battle-sim.903983/ This is how I did the single battle simulations. Do you want to make yours like this? Or how do you imagine it?

    Hottemax: Hi, your V2 simulator looks good! I imagined it like this: Another button in the main window (next to Simulate), that says "Battle Screen" or something similar. It might only be activated when you set Samples to 1. When you click it, a window like yours opens in a new shell (not enough space in the main window for that) There would be pretty much the same information like in your window.

    I would rather have a slider-like control instead of the buttons Roll, Fight, Next. That slider would allow you to go through the days in the battle (forward and backward). I would not compute "live" (i.e. by clicking "Fight", but compute results beforehand (when opening window), so we can freely move the slider around and just poll the results from a precomputed Battle. (The BattleStats class would need to be changed slightly to accommodate that). Two additional things that are not in your screenshot that I would find useful: 1. See the status of a unit without having to select it, with respect to morale and strength (so that one gets an impression of the battlestate by glancing at the battlefield. Like color units yellow when strength below 500, red when below 200 etc, and give them borders yellow/red when morale reaches respective thresholds. 2. Give a breakdown of how the factors how the damage/morale damage in the lower right is computed (i.e., visualize the formula, derived stepwise with the exact values.

    General WVPM: Hey, The slider seems like a really cool idea, would you keep a small history per unit or how did you plan it? Also feel free to move this conversation to the issue (I'm new to BitBucket). I'm not so sure about the colors idea, wouldn't some sort of progress bar (displaying current stats/starting) be better?

    Hottemax: Sure, that would be great, the only issue is the available screen real estate: when you have a combat width of 40, from my testing there was not enough space to have forty units with 40 (or 80, if you have one for strength and one for morale) progress bars next to them :D

    However, if it can be made to work, I am all for it.

  2. General WVPM

    Been rather busy with school and stuff, but I got more time now. Any progress or news? Any problems or issues?

    And what would you like me to do? Just advice when needed or do you want me to help you code?

  3. Hottemax reporter

    Hi,

    I currently don't have plans to implement this myself as I am kind of burnt out on gui work and quite busy at the moment, too.

    You can do the coding if you'd like - it would be very much appreciated. You have the required permissions to do pull requests etc. I can help if you have any questions. Best regards!

  4. Log in to comment