Ship Placement problem
I went to :
To download :
Game.Engine.-.Version.1.0.1.zip
I extracted and modified RunGame.bat to :
Battleships.exe -b “Z:\0Deleteme\entelectBattleShip\app\VBBattleShip\entelect” “Z:\0Deleteme\entelectBattleShip\app\VBBattleShip\entelect” --clog --pretty --debug
Once excecuted I found that the map said that the game version is 1.0.0 and not 1.0.1 :
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Game Version : 1.0.0
Game Level : 1
Round Number : 0
Map Dimensions : 10 x 10
Phase : 1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
########## Player
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
########## Opponent
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
##########
---------------------------
Player Name: Cobra Ice
Shots: 0
Hit: 0
Points: 0
Arsenal: SingleShot
Ships: [Submarine,Destroyer,Battle Ship,Carrier,Cruiser]
Status: Alive
---------------------------
Opponent: Cobra Ice
Points: 0
Ships: [Submarine,Destroyer,Battle Ship,Carrier,Cruiser]
Status: Alive
---------------------------
Other than the game version it runs, but I found a strange ship placement problem :
place.txt
Battleship 4 6 North
Carrier 1 1 East
Cruiser 0 0 East
Destroyer 5 3 North
Submarine 7 5 East
engine.log
16-05-2017 16:37:04:449 - I: Loaded bot Z:\0Deleteme\entelectBattleShip\app\VBBattleShip\entelect
16-05-2017 16:37:04:464 - I: Loaded bot Z:\0Deleteme\entelectBattleShip\app\VBBattleShip\entelect
16-05-2017 16:37:04:464 - I: Registered player Cobra Ice
16-05-2017 16:37:04:464 - I: Registered player Cobra Ice
16-05-2017 16:37:04:480 - I: OK!
16-05-2017 16:37:06:235 - I: Added Command PlaceShipCommand for Player Cobra Ice
16-05-2017 16:37:06:396 - I: Added Command PlaceShipCommand for Player Cobra Ice
16-05-2017 16:37:06:396 - D: Beginning round processing
16-05-2017 16:37:06:396 - D: Processing Player Commands
16-05-2017 16:37:06:396 - E: Failed to process command PlaceShipCommand for player Cobra IceGameEngine.Exceptions.InvalidCommandException: There was a problem during the placement of player's Cobra Ice ships, the round will be played over
at GameEngine.Commands.PlayerCommands.PlaceShipCommand.PerformCommand(GameMap gameMap, BattleshipPlayer player) in W:\Projects\100k\2017\Github\2017-Batteships\GameEngine\Battleships\GameEngine\Commands\PlayerCommands\PlaceShipCommand.cs:line 53
at GameEngine.Engine.GameRoundProcessor.ProcessPlayerCommands() in W:\Projects\100k\2017\Github\2017-Batteships\GameEngine\Battleships\GameEngine\Engine\GameRoundProcessor.cs:line 113
But if I move the [Submarine] one spot left then it works fine with the following map :
Map.txt
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Game Version : 1.0.0
Game Level : 1
Round Number : 1
Map Dimensions : 10 x 10
Phase : 2
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
########## Player
~~~~B~~~~~
~~~~B~~~~~
~~~~B~~~~~
~~~~B~~~~~
~~~~~~SSS~
~~~~~D~~~~
~~~~~D~~~~
~~~~~~~~~~
~CCCCC~~~~
RRR~~~~~~~
########## Opponent
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~
##########
---------------------------
Player Name: Cobra Ice
Shots: 0
Hit: 0
Points: 0
Arsenal: SingleShot
Ships: [Submarine,Destroyer,Battle Ship,Carrier,Cruiser]
Status: Alive
---------------------------
Opponent: Cobra Ice
Points: 0
Ships: [Submarine,Destroyer,Battle Ship,Carrier,Cruiser]
Status: Alive
---------------------------
Reading the version 1.0.1 log I saw that there was a problem with ship placement and this seem to be a problem like that.
Also looking at the map.txt it still looks like the old 1.0.0 game files, but on the web site it is stated as 1.0.1.
I am struggling to compile from source and therefore was hopeful the precompiled version was working.
Can someone please test with latest game version if the map placement as stated in the above place.txt file is possible and if not then why not ?