In order to make the subs able to attack, I had to place them after the American non combat move (<option name="when" value="after:americanNonCombatMove"/>). I could not place them attached to americanPlace or americanEndTurn because that created an immobile sub the first turn.
The method you are trying to use by switching the tech on and off has a terrible side effect. Anyone that uses the battle calculator won't get accurate outcomes while the tech is off. So advance planning will be very difficult.
@rogercooper Yeah, I'd like to eventually get rid of some of the properties as they are really unnecessary. Only benefit they provide is if you want to allow them to be editable game options and the map works well both ways but honestly that is pretty rare.
I created an issue to track addressing this: https://github.com/triplea-game/triplea/issues/2538
ron-murhammer created this issue in triplea-game/triplea
Unable to View Error Log When Game Doesn't Load
I used the one that is built into the Triplea program.
You find it here: Engine Preferences - Run the map creator - Step 2: Map Utilities - Run the Automatic Placement Picker.
If you need tips about how to use it, just ask
I have learned that if you encounter that the map fails to load and there is no error pop-up, there is a big possibility of a graphical image name flaw. Double check your “flags” dir and see if all flags are present and that they have names that actually corresponds with the player list.
You should use the tool in the TripleA program. It works pretty well. But you will need to have an all black and white map image PNG, as well as your map’s polygons.txt file. When you got these two files ready, you can make a new placement file.
Do like this:
Press Engine preferences
Press Run the Map Creator
Press Step 2: Map Utilities
Press Run the Placement picker
Read the text (or maybe take a screenshot so you remember all the instructions) and press OK
Follow the instructions.
Tips1: Remember to save your placement work often. You can always save your work, close down the program and hold a break, and then return to your placement work later by loading the placement file.
Tip2: You can play around with the three settings in the “Edit” menu of the window. At one point these options lead to errors and program freezing, but I don’t know if this is still the case. If you encounter an error that freezes the work you are doing, just don’t do the exact same thing again. Trial and error