Changelog

Die letzten Änderungen an "Return to the Roots"
67e6069 s25client 05.08.2024 00:54 Flamefire Merge pull request #1673 from ottml/wine_addon

Wine addon
28daf78 s25client 04.08.2024 21:41 Sunrise Fix compiler error
88eb9e1 s25client 04.08.2024 21:40 Sunrise Adjust the winegrower digging sound to animation
7f9319f s25client 04.08.2024 19:23 Sunrise Fix wrong roman watch tower x sign (typo)
50483ea s25client 04.08.2024 19:21 Sunrise Fix carriers carrying grapes
66875eb s25client 01.08.2024 22:01 Flamefire Check that replay is not newer than supported

We only provide backwards compatibility. So we need to reject any newer
version to avoid corrupting memory due to unexpected changes.
e312639 s25client 01.08.2024 21:50 Flamefire Wine addon changes for farmhand refactoring
e0feead s25client 20.07.2024 21:05 Sunrise Add fix for replay from @Flamefire
15fc611 s25client 16.07.2024 21:33 FloSoft Merge pull request #1677 from Flamefire/replayformat

Add version to replay and recorded game commands
e5b6522 s25client 16.07.2024 11:15 Flamefire Document Deserializer::getCurrentVersion
2a31f12 s25client 14.07.2024 12:57 Flamefire Fix typo
a6ed660 s25client 09.07.2024 12:22 Flamefire Update copyright year

Hopefully triggers a rebuild on Jenkins fixing
> Undefined symbols for architecture x86_64:
> "MapBase::GetAllNeighboursUnion(std::__1::vector<Point<unsigned short>, std::__1::allocator<Point<unsigned short> > > const&) const", referenced from:
> GameWorld::RecalcTerritory(noBaseBuilding const&, TerritoryChangeReason) in libs25Main.a(GameWorld.cpp.o)
7f7cf7f s25client 09.07.2024 11:00 Flamefire Fix build error on 32bit Windows
e39cf96 s25edit 08.07.2024 02:09 Flamefire Fix build on 32Bit MSVC 2022

SDL changes the packing before including windows.h which leads to
> static_assert failed: 'Windows headers require the default packing option. Changing this can lead to memory corruption. This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined.'

Include windows.h before the SDL header to avoid this
6c79a0a s25client 08.07.2024 01:29 Flamefire Optimize for few people in burned warehouse

Skip loop iteration if there are no people of a job.
This also avoids asyncs when adding/removing jobs and improves speed by
not calling RANDOM_RAND in that case.
4f38909 s25client 08.07.2024 01:16 Flamefire Fix direction handling in BurnedWarehouse

The startDirection was added to a valid direction which may result in an
invalid direction.
Use a random index instead.
ee35fc2 s25client 08.07.2024 01:06 Flamefire Refactor BurnedWarehous leave handling

Translate comments and use `static_vector` instead of array and size
7836045 s25client 08.07.2024 00:44 Flamefire Add GetPointQuality with isBeforeWork

Easier handling for derived classes that need to check for available
wares.
4cd7995 s25client 08.07.2024 00:23 Flamefire Remove `IsPointAvailable` from nofFarmhand

Only used in one place and includes costly PointQuality calculation
which needs to happen twice due to this.
d4f1815 s25client 08.07.2024 00:21 Flamefire Translate docstrings of nofFarmhand
89d362a s25client 07.07.2024 22:07 Flamefire Update test replays
d1206d8 s25client 07.07.2024 21:43 Flamefire Refactor nofFarmhand work start handling

Translate comments and improve naming and comments
62772a8 s25client 07.07.2024 21:26 Sunrise Ai uses correct distribution
b189b33 s25client 07.07.2024 18:57 Flamefire Merge pull request #1657 from Xellzul/fix-bug-968-wrong-roads

Don't allow roads in no-mans land or in border
6af1468 s25client 07.07.2024 17:42 Flamefire Fix missing message box when map fails to load

`StartGame` calls `CI_GameLoading` which creates the load screen
desktop.
Directly afterwards the map or savegame is loaded which may fail.
This calls the error callback causing the load screen to show a message
box which on confirming switches back to the main menu.
However at this point the desktop is not yet active so the message box
will be show for the previous desktop and closed right when the current
one is shown.
Hence check if we are active yet and call ShowAfterSwitch otherwise.
6eda6b8 s25client 07.07.2024 17:09 Flamefire Don't copy lua data when loading map
a40c233 libutil 07.07.2024 16:35 Flamefire Don't copy data for deserialization
14b0868 libutil 07.07.2024 16:27 Flamefire Serializer: Rename pos to readPos
bbf970b s25update 07.07.2024 16:23 Flamefire Use std::optional
89c1058 s25edit 07.07.2024 16:22 Flamefire Use std::optional
462a457 s25client 07.07.2024 13:10 Flamefire Update replays
e1cf100 s25client 07.07.2024 12:30 Flamefire Use range ctor in ProductivityStats test
ed8070f s25client 07.07.2024 12:27 Flamefire Check for player territory instead of border
c2016f3 s25client 07.07.2024 12:21 Flamefire Merge branch 'enum_iterator' into fix-bug-968-wrong-roads
6cd9fbf s25client 06.07.2024 21:40 Flamefire Output random log on autoplay test failure

Useful to trace the issue.
825d2ed s25client 03.07.2024 20:07 Sunrise Harvest grape field even when no wares available for new field
60951d4 libutil 01.07.2024 14:35 Flamefire Add test for VersionedSerializer
9d0c8a1 s25client 01.07.2024 00:06 Sunrise Code review
1ead487 s25client 30.06.2024 21:41 Flamefire Remove unused CommandType value

There was an `End` enum value for `CommandyType` at the start, i.e.
numeric value `0`. Remove it shifting commands down by 1.
Handle this by increasing the subVersion of replays and subtracting this
offset of 1 when using previous replays.
4244f66 s25client 28.06.2024 22:06 Flamefire Don't set size after GetDataWritable
4df0ffc libutil 28.06.2024 22:04 Flamefire Make `Serializer::GetDataWritable` already resize the buffer

Currently it is pretty much always required to call `SetLEngth`
afterwards which is kind of redundant and can be forgotton.
e8bd3ac s25client 28.06.2024 21:46 Flamefire Add version to game commands

Allow some backwards compatibility especially for the replay such that a
newer version can still read replays from a previous version.
E.g. adding optional addons with additional fields or commands will
still allow old replays to work without issues.
12ba809 libutil 28.06.2024 21:43 Flamefire Add (De)Serializer wrapper with a version

Allows to create deserializer classes containing a version for backwards
compatibility.
It accepts a reference to another serializer to use the same data and
read position advancing the position of that serializer when it is
destroyed.

deser
48e0fe7 libutil 28.06.2024 21:35 Flamefire Add Serializer::PopAndDiscard function

Allow skipping over some data
e34a20c s25client 27.06.2024 20:19 Flamefire Add version to replays

Allow adding/changing contents in a backwards compatible way.
815e692 s25client 26.06.2024 12:35 Flamefire Merge pull request #1652 from wichern/ai_battle

Add ai-battle cli
ed4fe3f s25client 26.06.2024 12:02 Flamefire Fix printf format attribute for MinGW

MinGW GCC wants gnu_printf instead of printf
c5f9382 s25client 26.06.2024 11:29 Flamefire Merge branch 'fix-replay-test' into ai_battle
7ad73df s25client 26.06.2024 11:28 Flamefire Appveyor: Use Boost 1.83 on VS 2019

The image was updated and 1.77 removed
cd668d6 s25client 19.06.2024 01:59 Sunrise Add winaddon job types to ship inventory