23. desember 2018

Battle of Oklungen - NATO edition

Every time I make some changes, I have to play the game some, just to see if I broke the game. And playing the game means that I find things that should be changed.

The biggest change this time around is NATO symbols mode. It started with the desire to make it easier to see what type of unit a unit is. And then I added the option to use them on the map also. And that worked so nice.

Since last time, I also made some quality of life changes to the game.

I added keybindings for some more functions.
I = Show/Hide Statistics screen.
P = Show/Hide Puchase menu.
O= Show/Hide Minimap.
C= Show/Hide Cards menu.
N=Toggle Nato symbols.

I made it possible to "zoom" in on cards that have been played during combat.

Hidden some buttons when they could not be pressed.
Made the game distribute regions among starting players more evenly in RISK mode. And gave players who got one an extra starting unit, and resources based on the resource mode.


Made the unit tool tip show how many moves a unit in the stack have left to move. It have some limitations as if there is more than one unit in a stack, it will only show the "first" ones moves left.


I added buttons to turn on/off sound and NATO symbols during play. They are in the quit game menu.


I did fix a few bugs and improved the AI's ability to calculate if it would win a battle. The AI also got a few improvements in its purchases and general movements.

As usual:
Look at the "Readme.txt" for instructions on how to play the game.
Download and unzip.

And if you don't already have this installed:
Windows 8 and newer should have the .net framework 4 client installed already. And most just need to install the XNA Framework Redistributable 4.0.

24. november 2018

Battle of Oklungen 2018 Edition


For new readers, I can start with a description of the game. It’s a turn based game, based on Axis and allies and Risk. The game started as a Christmas present to my Uncle. And it was actually ready to play that Christmas (2011). It was just not very good. Since then I have added whatever I wanted to, and I quite like to play it myself.
Below I have pasted in from the games Readme.txt.
  

“This is a two- six player game, and can be played against the computer and/or other humans.
To play against the computer, select the AI button of the player that you want the computer to control. If all players have AI selected, the game will not start. You may want to pretend player 1 won.

Select what armies you want to use by selecting the icon for the army you want to use for each player. If you hold the mouse over the army icon an information window with the army’s units will appear near the mouse.
Select colour with the colour buttons. You may want to avoid some colour combinations. There are no restrictions on colours. Multiple armies may have the same colour. But it will make the game harder.
There are two game modes, Scenario and Random. Scenario can only be selected when there are only two players. In scenario one side attacks and the other defends. The attacker starts first, with more units than the defender, while the defender owns most of the territories. The game ends when one side is eliminated.
Random game mode is a game mode inspired by the game Risk. The map is randomly divided, and the players have 1 unit in each starting territory.
There are game/victory modes. The default one is HQ hunt, where you have to defend your HQ and destroy your enemy's HQ. You can only place new units on the HQ unit. The game ends when your HQ is destroyed.
In domination victory mode you have to take all territories. But you don't have to worry about any HQ, and you can place new units in any region that you did not conquer this turn. Star wars mode can be turned on by clicking on the Star wars button in the main menu.

Playing the game:
Game phases:
Purchase Phase:
When the game starts, the centre icon of the top menu shows witch player that starts. First you have to purchase new units. These units will be placed at the end of your turn. The remaining IPC is shown on the right side of the purchase menu. When you are done press the "Done" button or the "Enter" key.
Combat movement phase:
Select the unit you want to move by pressing the left mouse button while holding the mouse cursor over the unit on the map. Then press the left mouse button over the territory you want to move to. In the combat movement phase only enemy territory is a valid target. Right click to undo a move or deselect units. When you have moved all the units you want to move, press the "Done" button or the "Enter" key.
Combat phase:
Territories where there is a battle is now highlighted in red. Press the mouse button over the territory you want to start a battle in. Then if there is a battle (Both defenders and attackers in one territory) press the attack button or the retreat button if you want to forfeit the battle. Press the attack button until one side wins. Do this for each battle until there are no more red territories. Press the "Done" button or the "Enter" key.
Non-combat movement phase:
Select the unit you want to move by pressing the left mouse button while holding the mouse cursor over the unit on the map. Then press the left mouse button over the territory you want to move to. In the non-combat movement phase only friendly territories is a valid target. Only units with movement points left can be selected. Right click to undo a move or deselect units. When you have moved all the units you want to move, press the "Done" button or the "Enter" key.
Place new unit phase:
Press the left mouse button over the territory you want to place the new unit in. Repeat until done. The icons on the top bar shows units left. Placed units can't be undone. Units can't be placed in newly acquired territories (Shown red), or in enemy territories.

CARDS:
You get a new card every time you conquer a new region. There are two types of cards, Attack cards and Defence cards. You can play an attack card every time you attack and one defence card when you are being attacked. Cards that are greyed out can't be played now. There are common cards and rare cards of each type.”


What changed in this game the last two years since the last release? I guess I can just post my change log since last time.


181123: Made it possible to continue game if a player lost its HQ unit and still had units to place. Fixed a graphical error on the Bjørkedalen map. Changed the way cards affects units, so it doesn't matter who plays what card first/last.
181122: Added sounds to some cards. Fixed an AI unit upgrade bug, where an AI player could upgrade its units multiple times.
181108: Fixed bug when restarting game in a battle. Changed HQ unit defence to 2 from 1. Added debug mode "F12".
181107: AI will now play "Scorched earth" card.
181010: Added new AI personality "Mobile".
180514: Fixed AI bug. Units that retreated didn't "reset" properly.
180205: AI now has a random "personality". There are 3 types now, Normal, Careful & Horde. Hard got harder.
171203: Added Yemen. Updated HV.
171123: Fixed some bugs related to card sorting. (CTD)
171027: Added Switzerland.
171012: Added Venezuela and AI can now move the HQ away from enemies.
170626: Added New Zealand and fixed some minor bugs.
170622: Added Ireland.

If you are still wondering what I changed since last time, read on.
Fixed some bugs, the upgrade one was quite hard to find, there still is at least one CTD in there somewhere, but I have problems reproduce it.

I have started to add more sounds, and I guess that in the next update there will be even more sounds.

Added some new nations since last time, new is Ireland, New Zealand, Venezuela, Switzerland, Yemen and I updated the Norwegian HV army.

The AI have learned quite a few new tricks and got 4 new "personalities". The reason was that it was too easy to "learn" the old AI. Now it's quite difficult to know how the AI will react as it can have any of the 4 different "personalities". 

I increased the HQ units defence from 1 to 2. It was too easy to get eliminated before you even got to your turn on small maps.

 For the future, I guess that I can redo the AI (Again), I have some plans to make it a bit better, but it would require a total remake of the AI. Perhaps it will be added as an "personality" as I made it easy to add a complete new AI for each personality. Sounds and music is something I want to add more of. I don't think I will add more armies, but perhaps some of them will need some updating. I have some plans for changing the combat system to leave dices behind and start using a % based system, and I would quite like to add support for different languages at one point (Massive remake of most menues. As most is just text on a .PNG)


As usual:
Look at the "Readme.txt" for instructions on how to play the game.
Download and unzip.

And if you don't already have this installed:
Windows 8 and newer should have the .net framework 4 client installed already. And most just need to install the XNA Framework Redistributable 4.0.

24. juni 2018

SKS Simple IPSC Scoring app for Android

Her kan dere laste ned en app for Android for å gjøre det enklere å finne ut hvem som vinner på våre treninger.

Man må fremdeles skrive ned litt, men det holder å skrive ned Hit Factor og sammenligne. (Hit factor for flere stager kan man legge sammen for å se hvem som vant totalt.)


Last ned denne filen til mobilen og installer på telefonen.

https://drive.google.com/file/d/10riTGCI9cKExejAsmH3fHT7-hqwXvXg-/view?usp=sharing

Du må kanskje aktivere for å kunne installere filer som ikke er fra Google Play. Dette kan man gjøre under "Sikkerhet" på telefonen. Huk av for "ukjente" filer.