Stian Grenborgen
f6e9484b7b
This fixes a regression introduced in 0.11.x that prevented "partial" modifications of the specification.
2023-01-15 15:22:23 +01:00
Stian Grenborgen
d52660e416
Fixes a bug preventing loading of savegames. The cause was a NPE since specification is null when loading a savegame (it gets added later).
2023-01-14 23:37:49 +01:00
Stian Grenborgen
e0973fe2c4
Adds a new combat model with hitpoints and a mod for activating it.
2023-01-14 20:02:14 +01:00
Stian Grenborgen
7e8f798c7c
Allows the player to easily view all files while loading savegames/maps.
2023-01-13 22:18:10 +01:00
Stian Grenborgen
49e6f77e6a
Allows different types of hills/mountains to be used by the map generator (depending on the latitude).
2023-01-13 21:47:27 +01:00
Stian Grenborgen
f9365d1c21
Fixes a bug that prevented getting units through combat that is not available to the defender. In addition, revenge mode has been fixed: Colonies can be captured again and captured units are turned undead.
2023-01-08 12:10:04 +01:00
Stian Grenborgen
0072a7490d
Adjusts the AI trading profit multiplier based on difficulty level.
2023-01-07 23:20:59 +01:00
Stian Grenborgen
b1459b1be6
A unit in a building is no longer drawn at the top of the building (that is, the area for showing goods production) if the production is zero.
2023-01-07 22:06:19 +01:00
Stian Grenborgen
340817da63
Fixes scaling and placement of goods production icons on colony tiles.
2023-01-07 21:59:12 +01:00
Stian Grenborgen
5ca1434ece
Fails gracefully if the server cannot be started.
2023-01-07 10:04:17 +01:00
Stian Grenborgen
8d487b1ab6
Fixes a bug that caused the same maps always being generated when starting a new game. There's no need to use the stored seed for a new game.
2023-01-07 09:52:03 +01:00
Stian Grenborgen
1809346476
Fixes an issue where the map editor Game object lingers after returning to the main menu -- thereby preventing mods from being removed in the Preferences window.
2023-01-06 22:28:32 +01:00
Stian Grenborgen
f3734dfb0c
Allows mods to be loaded when making maps in the map editor.
2023-01-06 22:23:02 +01:00
Stian Grenborgen
d85aaff3d0
This fixes a bug that prevented the shortcut buttons on the Map Generator dialog from working properly. The bug caused the button to have no effect the first time it was clicked after restarting the application.
2023-01-06 22:07:43 +01:00
Stian Grenborgen
68415503c3
Fixes missing sounds when attacking. The problem was caused by not reading the attributes that are merged into the MultipleMessage in ChangeSet.
2023-01-06 20:43:33 +01:00
Stian Grenborgen
424867957d
Adding a Map Generator option for Great River. The default is now that Great Rivers are no longer generated.
2023-01-06 19:28:52 +01:00
Stian Grenborgen
317861fcb8
This fixes BR#3310 Hangs on end turn uc.probability is zero.
2023-01-03 19:50:58 +01:00
Stian Grenborgen
fc293ffcd6
This fixes BR#3314 - Weird colony build screen with mod added new buildings. The problem was caused by the mod being reloaded into a specification that had the changes already applied.
2023-01-03 19:19:28 +01:00
Stian Grenborgen
90d88c5a15
Updates version number after release.
2023-01-03 00:29:57 +01:00
Stian Grenborgen
9367c6e09a
Updates version number for release.
2023-01-03 00:27:49 +01:00
Stian Grenborgen
f5a44027bf
Adds support for drawing forest corner transitions.
2023-01-02 23:16:17 +01:00
Stian Grenborgen
611d058b85
Adding a AI failsafe that stops buying more units if they cannot be utilized.
2023-01-02 23:15:28 +01:00
Stian Grenborgen
2d44597a7c
Fixes NPE caused by missing &.
2023-01-02 21:12:13 +01:00
Stian Grenborgen
e23be483ac
The REF now uses the MilitaryCoordinator. Makes minor modifications to the transportation prioritization in order to better utilize transports.
2023-01-02 20:52:26 +01:00
Stian Grenborgen
a2a2aa4794
This fixes BR#3309 for buildings as well.
2023-01-02 15:34:43 +01:00
Stian Grenborgen
fe0931d2e8
This fixes BR#3309 must refresh colony panel after clear specialty.
2023-01-02 15:13:05 +01:00
Stian Grenborgen
851cc97538
This fixes BR#3311 with ships waiting outside native settlements.
2023-01-02 14:54:29 +01:00
Stian Grenborgen
8e55c26e1c
Saves calculation time by only running the AI MilitaryCoordinator once.
2023-01-01 19:33:41 +01:00
Stian Grenborgen
17942c8d62
The AI now transports extra military units from Europe as it should.
2023-01-01 17:22:35 +01:00
Stian Grenborgen
f7a6e98119
The AI now buys ships when needing more transport. The AI with conquest-nation-type (spanish) now start attacking native settlements after 100 turns. The AI now buy dragoons with excess money.
2023-01-01 17:21:36 +01:00
Stian Grenborgen
f2bd54332f
Stops the AI military coordinator from being afraid of native units/settlements.
2023-01-01 17:18:54 +01:00
Stian Grenborgen
6e4591fb72
Fixes issue where the GUI is updated outside of the EDT.
2023-01-01 17:17:38 +01:00
Stian Grenborgen
b0da3ebad6
Fixes a problem where the AI only attacked unarmed enemy veteran soldiers if there were enemy offensive units in the same defensive zone.
2023-01-01 09:57:46 +01:00
Stian Grenborgen
51c27a3298
The AI behavior (aggressiveness/attacking natives) is now slightly different depending on national advantage.
2023-01-01 09:52:02 +01:00
Stian Grenborgen
90eb2bb2ed
The AI can now attack enemy settlements outside of its defensive zones.
2022-12-31 15:00:26 +01:00
Stian Grenborgen
91a611c744
It's now possible to only target settlements with the AI UnitSeekAndDestroyMission.
2022-12-31 14:59:13 +01:00
Stian Grenborgen
5527d47ca5
Enemy settlements are now included in the AI defensive zones and counts as an attack.
2022-12-31 14:58:02 +01:00
Stian Grenborgen
9f379aa013
The AI defensive map no longer includes the units hidden in a settlement.
2022-12-31 14:45:37 +01:00
Stian Grenborgen
3f27201bdc
Adding a new AI mission for escorting units. This mission can, for example, be used to escort treasure trains and artillery.
2022-12-31 14:44:37 +01:00
Stian Grenborgen
d7d3e3c0c7
Adds a coordinator for managing all the military (land) units for an AI. This allows the AI to both defend and attack using multiple units.
2022-12-30 16:11:21 +01:00
Stian Grenborgen
6433343ecc
Adds a debug option for displaying the AI defensive map. Allows the debug menu to be displayed while in the map editor.
2022-12-30 15:47:45 +01:00
Stian Grenborgen
e2a48a852b
Adds a tactical map for determining the area to be defended by the AI player.
2022-12-30 15:42:23 +01:00
Stian Grenborgen
cdffcb8129
The AI no longer equips (non-soldier) experts with weapons. The AI can now arm a colonist with muskets if horses are unavailable.
2022-12-29 10:25:00 +01:00
Stian Grenborgen
c6789a7736
Allows braves to have a DefendSettlementMission even when unarmed.
2022-12-27 18:21:03 +01:00
Stian Grenborgen
46f6d470e4
The AI will now buy dragoons.
2022-12-27 18:12:46 +01:00
Stian Grenborgen
93bd1359d4
Fixes a bug that prevented the AI from having dragoons defending the colony.
2022-12-27 17:41:49 +01:00
Stian Grenborgen
ca95a76377
The AI no longer defends its colonies with scouts.
2022-12-27 15:22:20 +01:00
Stian Grenborgen
66e8165715
The tooltip text for units inside a colony now displays the current mission (if enabled using the debug menu).
2022-12-27 14:52:32 +01:00
Stian Grenborgen
8cece0c7c1
Multiplies the income when AIs are selling goods in Europe.
2022-12-27 14:39:45 +01:00
Stian Grenborgen
fcf6c57f89
Quickfix to avoid having all soldies being given a BuildColonyMission.
2022-12-27 14:29:03 +01:00
Stian Grenborgen
4de0391900
The AI is now able to buy units in Europe (without cheating). This was previously supported in FreeCol, but seem to have been removed in 2012.
2022-12-27 14:28:22 +01:00
Stian Grenborgen
b527eac6ac
Stops the AI from deliberatly transporting less than 100 goods.
2022-12-27 12:47:04 +01:00
Stian Grenborgen
da6ae1ebf3
Fixes a bug that prevents the AI from exporting goods. The bug happens when the number of goods to be exported is larger than the capacity of the ship. For example, when having 300 rum in a colony and trying to transport it with a caravel.
2022-12-27 11:45:01 +01:00
Stian Grenborgen
bf12558d5a
Stop wasting resources exporting lumber.
2022-12-27 11:20:20 +01:00
Stian Grenborgen
9cda2c6032
BR#3313 is fixed by closing open file descriptors after use.
2022-12-25 11:46:27 +01:00
Stian Grenborgen
efbb217825
The AI now avoids having regular colonists as defenders. This gets rid of having loads of colonists just standing outside of the colony doing nothing.
2022-12-23 14:17:49 +01:00
Stian Grenborgen
0fc1b6ebf6
This fixes unattended production so that it matches the original game on viceroy difficulty.
2022-12-11 14:57:35 +01:00
Stian Grenborgen
d20dedb592
Fixes colony tile production so that the values matches the classic.
2022-12-11 09:46:47 +01:00
Stian Grenborgen
e211325a73
Allows a scope check to be applied to a unit-change-type.
2022-10-10 21:40:05 +02:00
Stian Grenborgen
083b581a21
Allows clear speciality to be called even when a unit cannot be assigned a role.
2022-10-10 21:38:50 +02:00
Stian Grenborgen
47fb2cc774
BuildingType.getPotentialProduction now gives the same number as the actual production.
2022-10-10 21:38:07 +02:00
David lewis
f3879543cb
Conditionals should have braces. This isn't Python
2022-09-21 10:19:35 -07:00
David lewis
826cad5d9e
[BR-164] Add Treasure trains to the cargo report
...
* [BR-164](https://sourceforge.net/p/freecol/ideas-for-freecol/164/ ): #164 List treasure chests somewhere.
2022-09-20 14:40:49 -07:00
Stian Grenborgen
447a33870f
This fixes a bug occuring when a mod replaces an image that is used for more than one mapping. The bug caused an image overridden by a mod to sometimes revert back to the original image (depending on zoom level and pure chance).
2022-09-20 21:04:49 +02:00
Stian Grenborgen
0a063c595f
The ActionManager should be called on the EDT.
2022-09-20 21:04:49 +02:00
Stian Grenborgen
3bdda582bd
Creates calculator classes replacing the functionality previously in ColonyTile and Building.
...
* Production output can now reliably be tested without having built a Colony. This will be used by the new AI Colony Management code.
* Fixes several differences/bugs that occured because of code duplication.
2022-09-20 21:04:49 +02:00
Stian Grenborgen
37f141ae9a
Texture2Tile now produces an alternate result where the texture is rotated 45 degrees.
2022-09-18 16:05:47 +02:00
Stian Grenborgen
1eb4979b3f
Adding support for recruiting nation specific units in Europe.
2022-09-17 18:43:49 +02:00
Stian Grenborgen
bb21d54e4c
Reverts default escape behaviour from commit 9f1cf3a
. The default behaviour was wrong in many cases -- especially when closing the MainPanel, NewPanel and StartGamePanel, since the result is no panel being open (and the player is forced to use ALT+F4 to exit the game). I have explicitly added escape handling for the FreeCol panels (but not for the dialogs).
2022-09-17 16:17:10 +02:00
Stian Grenborgen
fe60a38de5
This fixes automatic generation of specification documentation. Resource URI keys are now supported. Location of the resource directory has been updated.
2022-09-17 09:31:48 +02:00
Stian Grenborgen
dd2094cae1
Adding support for buying nation specific units in Europe.
2022-09-17 08:55:29 +02:00
Stian Grenborgen
9f1e47af60
Adding methods for getting raw materials that are either used for making storable or unstorable building materials.
2022-09-17 08:52:53 +02:00
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
Mike Pope
dccab2ee3e
Disable accept button when trade conditions change.
2022-09-09 10:21:58 +09:30
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
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
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
18810e5aad
Fix deprecation warning.
2022-09-04 15:24:00 +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
Stian Grenborgen
f6fc09a823
Fixes BR#3281 - endless loop with errors.
2022-08-29 19:29:23 +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
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
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
Stian Grenborgen
06e70d9c9b
Accelerator keys can now be loadedf. The solution is using read instead of merge since the former supports dynamically generated options (like FreeColAction), while the latter requires all options to be present in the option file.
2022-08-14 19:41:12 +02:00
Stian Grenborgen
1d3560a313
The keyboard accelerator preferences are not scaled according to the font size.
2022-08-14 18:01:12 +02:00
Stian Grenborgen
74e676938e
Adding a new debug option for debugging the rendering code. When active, a red rectangle is drawn above all dirty areas being redrawn. The same flag is also used for displaying frame rates etc.
2022-08-14 16:55:27 +02:00
Stian Grenborgen
b831f2abb6
Fixes a bug giving full repaints when scrolling right or down. This was caused by a union with an empty dirty rectangle ... that suprisingly sets x and y to zero.
2022-08-14 16:37:39 +02:00
Stian Grenborgen
970ee9d51f
Updating the version number for development.
2022-08-14 15:24:08 +02:00
Stian Grenborgen
485dde01e7
The AI now chooses to build colonies in better locations.
...
* Tiles where there are many nearby enemy units are no longer prioritized (!) as a location to build a colony.
* We heavily prioritize building colonies with distance 3 between each other. This is the closest distance you can have without getting an overlap.
2022-08-14 11:19:09 +02:00
Stian Grenborgen
de6b1dfea4
Increasing buffer size to ensure smooth playback of audio.
2022-08-14 10:47:25 +02:00
Stian Grenborgen
6025d5c679
Fixes an issue where a circleiterator with radius 0 still returned a tile.
2022-08-14 09:22:57 +02:00
Stian Grenborgen
cc4254b397
Reintroducing separate volume sliders for music and sound effects.
2022-08-13 11:28:03 +02:00
Stian Grenborgen
af91ecbba0
Adding Misiulo's nation specific graphics for settlements. Part 1: Settlements without fortifications.
2022-08-11 20:33:53 +02:00
Mike Pope
cf9d2332b5
Quash NPE in addNewUnitToTile.
2022-07-30 14:33:20 +09:30
Stian Grenborgen
40cbdc4b81
Removes the shadow around the colony panel when playing on low resolution. This allows the buttons on the colony panel to be displayed properly when having only a 768px height window.
2022-07-09 10:39:41 +02:00
Stian Grenborgen
4b3781fd8d
Fixes scaling of founding father panel in Colopedia.
2022-06-19 16:11:48 +02:00
Stian Grenborgen
35e4409504
This fixes BR#3273 with active unit not changing.
2022-06-19 09:03:58 +02:00
Stian Grenborgen
2d9a45c6f4
The StartGamePanel's initial size is now scaled according to the scale factor. The start game button has been made important (thick border as a call-to-action).
2022-06-19 07:46:09 +02:00
Stian Grenborgen
faafabe6ce
Overrides scaling based on DPI for small screens. This ensures that we have a usable scaled 768px height for panels.
2022-06-18 21:57:34 +02:00
Stian Grenborgen
b70e86eccf
StartGamePanel is now updated for every player when a new player connects or changes nation.
2022-06-18 20:49:05 +02:00
Stian Grenborgen
2f568533ee
This fixes two bugs where disposed units are still selected as an active unit. The first bug is that the unit was explicitly set as the active unit after it disappeared. The second bug was that the active unit was not updated after the current active unit got disposed.
2022-06-18 19:21:11 +02:00
Stian Grenborgen
2ce7e4827e
The panel showing the log file can now be resized properly.
2022-06-18 18:04:33 +02:00
Stian Grenborgen
88beabba3f
Adjusts the position of the chat text.
2022-06-18 17:45:33 +02:00
Stian Grenborgen
a34f43425e
Fixes selection of nation when connecting to a running multiplayer game.
2022-06-18 10:41:56 +02:00
Stian Grenborgen
c28b893007
Uses the standard (straight line) transition if variations have been disabled.
2022-06-16 19:01:19 +02:00
Stian Grenborgen
b9d54db845
The cursor now changes when the terrain is selected instead of a unit.
2022-06-16 18:07:45 +02:00
Stian Grenborgen
25d79e390e
Adding support for having variations of the base transitions. Both sides of the base transition gets the same variation number -- so the transitions does not need to follow a straight line. Please note that no new base transitions have been added with this commit.
2022-06-16 18:07:45 +02:00
Stian Grenborgen
70b3e9e6e7
Re-adds the main panel if client options are changed. This makes any display scaling / font size change take immediate effect.
2022-06-15 18:28:54 +02:00
Stian Grenborgen
f71b2e43dc
Fixes an issue where changing the active unit on a tile does not result in a repaint.
2022-06-15 18:23:16 +02:00
Stian Grenborgen
a1d0ae39e0
Fixes sizing of object images (displayed in information panel etc).
2022-06-15 18:14:42 +02:00
Stian Grenborgen
b6d7f96aa6
Layout unit buttons in two rows if they doesn't fit on one row.
2022-06-15 17:02:59 +02:00
Stian Grenborgen
a7ec6c84e8
Fixes the initial value of the minimap's toggle buttons. This prevents the old behaviour where you needed to double click the button if the initial value was not political/fog-on.
2022-06-15 16:53:24 +02:00
Stian Grenborgen
8ba2309d6f
Adds a higher resolution image of the menu border. The menu border's size is now determined using the scale.
2022-06-15 16:50:16 +02:00
Stian Grenborgen
f81e3fc57c
Improves skin-support for InfoPanel and Minimap ... and adds new skins for them both.
...
* New skins for the info panel and the minimap.
* Draws the minimap skin on top of the minimap.
* Adds support for string properties with nested properties in order to support easy skin-definitions as one overridable property.
* Placement and sizes for the components on the minimap and infopanel can now be defined using resources.properties.
2022-06-15 16:06:08 +02:00
Stian Grenborgen
4742528011
Fixes problem with missing transition rendering in the colony panel.
2022-06-15 08:53:28 +02:00
Stian Grenborgen
71843b5240
Base transition corners and river animations are now activated on "Normal" graphics quality instead of "High" and "Highest".
2022-06-12 12:50:38 +02:00
Stian Grenborgen
7c269f8235
River deltas are now animated using the standard water animation. The river delta animation could be greatly improved by making a separate animation with directional water flow -- but I'm not prioritizing that now.
2022-06-12 11:41:20 +02:00
Stian Grenborgen
58105480c8
The river mouth graphics is no longer drawn on unexplored tiles.
2022-06-11 20:49:02 +02:00
Mike Pope
c2e76eeff8
Prevent NPE if trying to set a playlist with sound turned off.
2022-06-11 13:52:43 +09:30
Stian Grenborgen
5051012f2c
The unit selection cursor is now drawn on top of everything. This solution is a lot faster than the previous solution where the tile (and neighouring tiles) needed to be redrawn in the buffer. We should replace the cursor graphics with something prettier though.
2022-06-10 18:14:24 +02:00
Stian Grenborgen
2f41e9a35f
Adds code for animating the river.
2022-06-10 16:49:42 +02:00
Stian Grenborgen
3ff851e839
Fixes problem with rivers not connecting smoothly.
2022-06-10 16:43:23 +02:00
Stian Grenborgen
1b949b61fa
Reduces visibility of methods that no longer needs to be public.
2022-06-09 20:14:15 +02:00
Stian Grenborgen
624550eaf4
Moving more image production code from ImageLibrary into the image creators. This includes resource methods only used by a single image creator.
2022-06-09 20:05:51 +02:00
Stian Grenborgen
b6b6225e95
Moving the creation of base tile transition images into a separate class. Adding some more comments explaining the code.
2022-06-09 19:40:08 +02:00
Stian Grenborgen
df843e941c
Making base tile transitions prettier by properly rendering the corner of the tile. The prettier rendering is, for now, not activated by default. Please use graphics quality "High" in the client options if you want to see it.
2022-06-09 18:40:53 +02:00
Stian Grenborgen
88e6070b98
Adding a new client options for selecting the graphics quality. This option will allow us to provide more eye candy for players with sufficiently good systems, while still supporting lower spec-ed computers.
2022-06-09 18:17:29 +02:00
Stian Grenborgen
72daaa0863
Fixes an issue where minor-to-major transitions were drawn in places the style said they should be omitted.
2022-06-06 21:54:56 +02:00
Stian Grenborgen
c08e9a1d58
Fixes an issue where you needed to click on a map icon twice in order to actually select it.
2022-06-06 21:29:21 +02:00
Stian Grenborgen
d0bdf0730b
Adding new river graphics to the game. Rivers are now generated using a background image (pebbles), a water image that can be animated and masks for handling different variations.
2022-06-06 19:32:56 +02:00
Stian Grenborgen
bc24fff0d8
The major river now gets twice the production bonus as the minor river. This is the correct behaviour, and the reason why we have different graphics for minor and major river.
2022-06-06 18:17:44 +02:00
Stian Grenborgen
616c814bb8
Tile improvement magnitude is now kept when using a map. The magnitude is used for determining if a river is minor or major -- and all rivers reverted to being minor before this fix.
2022-06-06 18:14:07 +02:00
Stian Grenborgen
3e3927d0ff
Reintroduces the separation between rules and TC. A different TC can now be loaded using the --tc command line parameter.
2022-05-28 12:02:34 +02:00
Stian Grenborgen
670d5f83ae
Using an icon to show that a mod contains changes to the specification.
2022-05-27 17:41:08 +02:00
Mike Pope
de474502b1
Odd log omission in price variation generation.
2022-05-25 14:55:11 +09:30
Mike Pope
ede264786d
Perhaps clean up github false positive security warnings, BR#3262.
2022-05-23 12:36:37 +09:30
Stian Grenborgen
866e96d251
Do not allow mods with a specification to be reordered, added or removed when a game is running.
2022-05-08 17:09:35 +02:00
Stian Grenborgen
85f61452be
Adds font scaling to the transaction panel in Europe.
2022-05-08 16:17:58 +02:00
Stian Grenborgen
06c811b8a8
Increases thread priority for the audio playing threads in order to avoid stuttering on slow systems.
2022-05-08 15:30:47 +02:00
Stian Grenborgen
50e1c6e997
Adding change missing from the previous commit.
2022-05-08 12:51:36 +02:00
Stian Grenborgen
e31a8c6f4f
Adding compatibility code for setting previewEnabled on the audio volume.
2022-05-08 12:48:55 +02:00
Stian Grenborgen
68ab667bcb
Adds method (to be used later) for checking if a specifion is included in a mod.
2022-05-08 12:30:07 +02:00
Stian Grenborgen
533d7b3f7b
Do not overwrite the client options with values from the savegame -- except for the mods.
2022-05-08 11:27:54 +02:00
Stian Grenborgen
28ccccc9a5
Duplicates are no longer allowed in the mod list.
2022-05-08 09:45:22 +02:00
Stian Grenborgen
b4811ba834
Fixing and commenting out code for adding a label to the EditOptionsDialog. We should consider if a label is needed or not (and if yes, add the missing texts for FreeColMessages.properties.
2022-05-08 09:43:49 +02:00
Mike Pope
2463628b35
Fixed advantages break initial units, BR#5115.
2022-05-08 11:30:38 +09:30
Stian Grenborgen
7590969578
Using the provided Player owner instead of always sending null.
2022-05-07 22:22:54 +02:00
Stian Grenborgen
b59e08beba
Adds a default playlist (without songs right now) that is played when no other specific music is.
2022-05-07 21:54:13 +02:00
Stian Grenborgen
5b7ea5e7b0
Adds support for picking tracks from a playlist when the current track has completed. Fixes an additional old regression preventing volume changes from taking immediate effect.
2022-05-07 21:10:29 +02:00
Stian Grenborgen
732cd19f1d
This restores the preview-functionality for the audio volume option. Changing the volume in the client options now have immediate effect, and any changes are reverted if cancelling the client options. The functionality was removed erroneously in 60e1bb9
with the explanation: "Remove dead code from options and their UIs." way back in 2011.
2022-05-07 21:03:22 +02:00
Stian Grenborgen
a71a0b472c
Fixes selection of audio mixer in the client options.
2022-05-07 12:16:05 +02:00
Stian Grenborgen
66c7307595
This hopefully fixes BR#3250 that prevents the founding father colopedia panel from being displayed properly.
2022-05-07 08:10:08 +02:00
Stian Grenborgen
0473282b69
Fixes BR#3253 by removing cleanup code that is probably not needed.
2022-05-07 08:05:03 +02:00
Stian Grenborgen
94803fe20c
Converting the options dialog to regular panels. Fixing and renaming the button for reverting back to default values in the client options.
2022-05-07 08:01:17 +02:00
Mike Pope
7f027facea
Prevent NPE in tools equip, BR#3256.
2022-05-07 10:34:33 +09:30
Mike Pope
69ec58b69e
Split FreeColAction:275 so we can see where the NPE in BR#3249.
2022-05-04 19:52:05 -05:00
Mike Pope
f5b0996d7d
Finish cleaning up *Was (MarketWas).
2022-05-04 19:52:05 -05:00
Mike Pope
16a8f3e5cd
Git fumble omission from previous.
2022-05-04 19:52:05 -05:00
Mike Pope
809b9294da
Move property change firings to event thread, BR#3248.
2022-05-04 19:52:05 -05:00
Mike Pope
27b963c615
Bump version, at last.
2022-05-01 12:26:47 +09:30
Mike Pope
b306b880b5
Revert overreach with previous Coronado fix.
2022-05-01 12:17:21 +09:30
Mike Pope
faa899670c
Cosmetic javadoc.
2022-05-01 12:13:14 +09:30
Stian Grenborgen
ece80d03ee
Increasing timeout when connecting to the metaserver.
2022-04-30 11:46:45 +02:00
Stian Grenborgen
2027bb10b8
Stops a public server that fails to register with the metaserver.
2022-04-30 11:46:02 +02:00
Stian Grenborgen
4f7f25171d
Fixes multiple issues with connections, multiplayer games and the meta server. Changes:
...
* Network messages expecting a reply now have a timeout (default 30 seconds).
* Fixes issue where multiplayer games only listened on the loopback address (for systems where the hostname resolves to the localhost address).
* It's now possible to specify the binding address when running a multiplayer game. Only IPv4 is supported for now. It's easy to support IPv6, but we need to find a better way of displaying possible addresses first (perhaps using the NIC's name instead of the address?)
* The player gets an error when trying to register a server as public if the server is not connectable.
* Fixes game crash after the LoadingSavegameDialog gets cancelled (happened when a new game got loaded).
* Fixes the LoadingSavegameDialog so that the chosen values are actually used.
* The header now gets the translated title (the message key was wrong).
2022-04-30 11:05:01 +02:00
Stian Grenborgen
04b2c7c2e0
The chat is now drawn properly when the UI is scaled. Fixed a problem causing the UI to freeze.
2022-04-26 17:49:07 +02:00
Mike Pope
333b2c48a5
Cosmetic javadoc.
2022-04-26 13:37:46 +09:30
Mike Pope
4f3e50a833
Tidy up with Coronado.
2022-04-26 11:01:40 +09:30
Mike Pope
880f6cb236
Allow end turn panel to work again.
2022-04-25 15:45:27 +09:30
Mike Pope
cb682cb1dd
Restore reconnect confirmation box.
2022-04-25 15:02:01 +09:30
Mike Pope
a871c56ddb
Reduce random tax raises in line with new data of PF#71.
2022-04-25 13:30:46 +09:30
Stian Grenborgen
cea97dfb2d
Deselect the active unit before ending the turn. This avoids jumping between animated units and the active unit while watching the other players move.
2022-04-24 14:55:26 +02:00
Stian Grenborgen
6c4dee3eda
Quick-and-dirty fix for scaling pure-text tooltips.
2022-04-24 13:56:32 +02:00
Stian Grenborgen
519f694c32
Cancelling the game in the StartGamePanel now works. Previously two NewPanels were opened, and the application freezed if a new game was started.
2022-04-24 13:01:23 +02:00
Mike Pope
fcd1d5c914
Cosmetic javadoc.
2022-04-24 20:06:28 +09:30