Commit Graph

16274 Commits

Author SHA1 Message Date
Stian Grenborgen 0cf011a4f3 Updates the documentation with the 2GB memory requirement. 2022-09-14 21:55:23 +02:00
Stian Grenborgen 90e4df323e Handles uncaught errors (OutOfMemoryError, StackOverflowError etc) by freeing memory, showing an error message and force quit. 2022-09-14 20:15:11 +02:00
Stian Grenborgen eabb0ea56b Increase required memory and exit on uncaught *Error. 2022-09-14 20:15:11 +02:00
Mike Pope fcd04a5ba5 Apply pre-build production at end of turn, BR#3261. 2022-09-14 17:00:59 +09:30
Stian Grenborgen 2bdcec888d Fixes a bug causing modifiers not to be written when generating XML.
* Expert farmers and fishermen will now get the additional production bonus as they should.
* This fixes the issue with different production in the server and the client (that occured unless the server is loaded from a savegame).

The bug was introduced July, 27th 2013 -- so it has been in the code for a while.
2022-09-14 07:43:40 +02:00
Mike Pope 75940a99f7 Drop warning, no regression seen for old bug for some time. 2022-09-13 10:58:06 +09:30
translatewiki.net 0da80a63c4 Localisation updates from https://translatewiki.net. 2022-09-12 13:04:31 +02:00
Mike Pope 9aed5ca7aa Further string refinement, BR#3285. 2022-09-12 16:25:59 +09:30
Mike Pope dccab2ee3e Disable accept button when trade conditions change. 2022-09-09 10:21:58 +09:30
translatewiki.net eae68125be Localisation updates from https://translatewiki.net. 2022-09-08 13:04:20 +02:00
Mike Pope e53fa8b24d Drop trace. 2022-09-08 13:52:26 +09:30
Mike Pope 543cfbfa57 Use country label more widely, BR#3288. 2022-09-07 20:31:38 +09:30
Mike Pope 2f8ce717d1 Drop another autosave trace. 2022-09-07 17:07:56 +09:30
Mike Pope 65363a3760 Prevent NPE with old game load. 2022-09-07 16:50:17 +09:30
Mike Pope e6a977df81 Another event thread fix. 2022-09-07 16:40:11 +09:30
Mike Pope ab12298d0f Another event thread fix. 2022-09-07 16:15:18 +09:30
Mike Pope 49c2a6282b Revert getLongThreadID use, its not present in Java 11. 2022-09-06 19:57:46 +09:30
Mike Pope 6f399d438f Bad message label, BR#3295. 2022-09-05 22:35:55 +09:30
Mike Pope 3856bae906 Text fixes, BR#3285. 2022-09-05 21:46:52 +09:30
Mike Pope bdab6f49a6 Drop trace for autosave bug. 2022-09-05 21:30:47 +09:30
Mike Pope e63ce19701 Prevent autosave-in-autosave, BR#3276. 2022-09-05 21:22:57 +09:30
translatewiki.net 1fbc0d6ea3 Localisation updates from https://translatewiki.net. 2022-09-05 13:04:26 +02:00
Mike Pope aca9e63c20 Try to improve unit repair location, BR#3271. 2022-09-05 20:29:00 +09:30
Mike Pope 26aaa7224a Add a helper for the RebelToolTip that correctly finds the next/50%/100% bonus turn numbers, BR#3217. 2022-09-05 20:10:57 +09:30
Mike Pope 0185cc5a4a Untangle the SoL/Tories mess. 2022-09-05 19:38:52 +09:30
Mike Pope 9f1cf3a632 Escape breaks out of FreeColPanels, BR#3035. 2022-09-04 20:09:53 +09:30
Mike Pope 41e2109f8b setCancelComponent was a noop, removed. 2022-09-04 19:23:34 +09:30
Mike Pope 46c5934945 Missing strings for audio volume option. 2022-09-04 16:24:50 +09:30
Mike Pope 18810e5aad Fix deprecation warning. 2022-09-04 15:24:00 +09:30
Mike Pope 7a914ea66f Replace use of "king", BR#3286. 2022-09-04 14:38:00 +09:30
Mike Pope 4ea1dda492 Drop some "%nation% nation" strings as they look bad if the nation is the REF, BR#3296. 2022-09-04 14:08:43 +09:30
Stian Grenborgen ce7d92d69e Reduces the focus switching when animating enemy units. We now only scroll back to the original focus if there was an active unit selected. 2022-09-03 11:18:06 +02:00
Stian Grenborgen 84c3b6c417 Fixes two issues with the trade route panel (BR##3259). Goods types are no longer removed from the list of all goods types when adding it to a stop. It's now possible to add the same goods type multiple times to the same stop. 2022-09-02 17:49:32 +02:00
translatewiki.net cb10784763 Localisation updates from https://translatewiki.net. 2022-09-01 13:04:48 +02:00
Stian Grenborgen f6fc09a823 Fixes BR#3281 - endless loop with errors. 2022-08-29 19:29:23 +02:00
translatewiki.net a5d5de6f94 Localisation updates from https://translatewiki.net. 2022-08-29 13:04:43 +02:00
Stian Grenborgen 7e3990ef6d Improves AI colony development and expansion.
This change has been tested with five games with 300 AI-only turns each. The simple fix was simply stop making tools in every colony. Prior to this commit, tools was prioritized above hammers (slowing down the construction of buildings) and even made elder statesmen work in the fields instead of producing liberty bells.

There are still lots of silly decisions, but these decisions are more complicated to fix -- and will therefor have to wait for the AI colony management rewrite.
2022-08-28 08:51:29 +02:00
Stian Grenborgen 34e610f426 Adds a method for checking if a raw material is used for an unstorable building material. This can be used for prioritizing hammers higher than tools. 2022-08-28 08:51:29 +02:00
Stian Grenborgen 6b09ae9e2e The AI can now build docks. This commit fixes a bug where only autoproduction was considered when calculating the potential production of a tile. This prevented docks from being built since ocean tiles have no autoproduction. The production with the best expert is now used instead of the autoproduction. This will also give higher priority to production where the experts enhances bonuses. 2022-08-28 08:51:29 +02:00
translatewiki.net 0257c66708 Localisation updates from https://translatewiki.net. 2022-08-25 13:05:06 +02:00
Stian Grenborgen ae212f5ba2 Fixes BR#3282 by allowing unit graphics to extend above the tile it is on. 2022-08-23 20:05:50 +02:00
Stian Grenborgen 4aed94381f Fixes to the new end-of-turn behaviour (units with moves left after goto-orders aborts end-of-turn).
* Return to normal next-unit-handling when end-of-turn has been aborted.
* All waiting units are now skipped when ending the turn. This prevents these units from having to be handled again if the end turn is aborted.
2022-08-22 18:19:12 +02:00
translatewiki.net a29e455790 Localisation updates from https://translatewiki.net. 2022-08-22 13:04:23 +02:00
Stian Grenborgen d325f761ce Allows the buffers to be updated without repainting. This reduces the time to redraw the map while scrolling diagonally. 2022-08-21 21:11:55 +02:00
Stian Grenborgen 7d890b1fa7 Allows the game to continue when an AI fail with an unhandled exception. 2022-08-21 14:41:54 +02:00
Stian Grenborgen 3636a7d445 The native AI no longer crashes the game when all settlements have been eliminated. 2022-08-21 14:10:26 +02:00
Stian Grenborgen 3ceb2e4ef1 Fixes BR#3277 - game hangs after end of turn. 2022-08-21 12:57:43 +02:00
Stian Grenborgen 165051da85 Moves the handling of autoscrolling to a separate class. Additional fixes:
* Allows autoscrolling to be performed properly in the upper left corner (ie handling of mouse motion events over the menu items).
* Scales the scroll area according to the UI scaling factor.
2022-08-21 12:57:43 +02:00
translatewiki.net 334cb7144d Localisation updates from https://translatewiki.net. 2022-08-18 13:04:45 +02:00
translatewiki.net a3d0af90a8 Localisation updates from https://translatewiki.net. 2022-08-15 13:04:21 +02:00