Commit Graph

5915 Commits

Author SHA1 Message Date
Rampoina c8d9b64714 Update data submodule 2024-01-04 20:55:45 +01:00
Rampoina a3cbd0f6fb Change data to propack 2024-01-04 19:46:54 +01:00
pavanvo 92cdcca576
Merge branch 'feat/command-priority' into play 2022-09-07 02:12:56 +04:00
pavanvo 204bac403e
fix: usabillity 2022-09-07 02:11:40 +04:00
pavanvo db66662a8b
Merge branch 'fix/internet' into play 2022-09-06 21:04:41 +04:00
pavanvo 8f0abb60b3
Merge branch 'build/windows_cmake_msbuild' into play 2022-09-06 20:53:08 +04:00
pavanvo b21a853e70 Merge branch 'windows-cmake-msbuild' of https://github.com/MegaGlest/megaglest-source into build/windows_cmake_msbuild 2022-09-06 20:51:41 +04:00
pavanvo edc9de3d15
Merge branch 'feat/command-priority' into play 2022-09-06 17:54:44 +04:00
pavanvo e7cf0a01de
fix: switch nextUnitTypeId from unitTypeId 2022-09-06 17:46:45 +04:00
pavanvo a1a93ae3d8
fix: add param nextUnitTypeId
to NetworkCommand class to prevent collision morph with build
2022-09-06 17:43:54 +04:00
pavanvo 8d141ca57f
fix: add check 2022-09-06 03:08:28 +04:00
pavanvo 8bc5abbfd3
fix: auto command for morph queue 2022-09-06 02:21:35 +04:00
pavanvo 60d8bf7fd2
feat: custom UnitType,
for unit->computeCommandType
2022-09-06 02:21:35 +04:00
pavanvo 3e58c7d03d
fix: Morph Queue 2022-09-06 02:21:35 +04:00
pavanvo d2fbc3f857
fix: add check,
if(unitType != NULL && ct->getClass() == ccBuild)
2022-09-06 02:21:34 +04:00
pavanvo 22a2abd3f4
fix: non-targed commands 2022-09-06 02:21:32 +04:00
pavanvo c9c1adf8d0
refactor: correct tabs 2022-09-06 02:18:18 +04:00
pavanvo 35f755841d
feat: gui hotkey released 2022-09-06 02:18:17 +04:00
pavanvo d2d691024e
fix: non-targed commands + TODO 2022-09-06 02:18:10 +04:00
pavanvo 37b6fbb12e
fix: checkCommand + TODO 2022-09-06 02:11:27 +04:00
pavanvo 0b1dcc70f5
feat: allow queue after Morph commands 2022-09-06 02:11:27 +04:00
Banestorm 35ff02052c
Remove command priority system
This was resulting in non-intuitive and surprising behaviour when queuing
commands. Removing this system results in Megaglest behaving more like
other RTS games.

For instance, the following are now possible and weren't previously:
- Queuing multiple attack ground commands to move along a specific path
attacking all enemies on the way.
- Queuing attack ground followed by hold position, which is a sensible
  thing to do if you want a unit to guard a specific area.
- Queuing a move command followed by a produce command, if you want to
  have your summoner summon a daemon at a specific location.

The behaviour of queuing the stop command is unchanged, and commands that
must be the last in the queue, such as morphing, are still properly replaced when something
else is queued.
2022-09-06 02:11:05 +04:00
pavanvo d3c19ce9a5
fix: non-uniform selection
shows attack as empty position
2022-09-02 11:04:31 +04:00
Jammyjamjamman 3fd6ccd247 More instructions 2022-08-31 00:44:19 +01:00
pavanvo 1c1dd0a393
refactor: empty positions 2022-08-30 14:25:06 +04:00
pavanvo a0c8383be0
refactor: remove some useles code 2022-08-28 19:21:44 +04:00
pavanvo 78a3eb1abb
fix: if every basic command more than one time 2022-08-28 19:06:29 +04:00
pavanvo 339ff320cb
fix: check if unit have too match commands 2022-08-28 16:21:45 +04:00
Rampoina 085edd203a Add missing check for the selected button 2022-08-25 19:47:03 +02:00
Rampoina 02478ea3bc Load the game on double click on the loading menu 2022-08-25 19:47:03 +02:00
Rampoina b9ac40d3d9 Fix unit/building progress not getting restored when loading a game 2022-08-25 19:47:03 +02:00
Andy Alt c4c426ed74 workflows/cmake.yml:add tests for recent gcc versions;migrate to checkoutv3 (#250)
* workflows/cmake.yml:test on Ubuntu Jammy (22.04);migrate to checkoutv3

This should also fix #247

* maybe fix ssh link error on Ubuntu Jammy

gcc and clang build is failing on Jammy with the message:

'cannot find -lssh: No such file or directory'

Basically I added libcurl-openssl-dev to the deps

* remove libcurl4-gnutls-dev

Trying to correct:

 The following packages have unmet dependencies:
libcurl4-gnutls-dev : Conflicts: libcurl4-openssl-dev but
7.81.0-1ubuntu1.3 is to be installed
libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but
7.81.0-1ubuntu1.3 is to be installed
E: Unable to correct problems, you have held broken packages.
An error occurred while installing build dependencies.

* use cmake FindCURL module

* for OpenSSL, use include instead of find_package

* remove jammy, add gcc-10 and 11 test

* revert now-unrelated changes

* clean-up

* add VERBOSE flag to make

* Update .github/workflows/cmake.yml

* Update .github/workflows/cmake.yml

* use '-f' option from build script to force clang

* force dynamic libs with '-d'

fixes #251

* mk/linux/setupBuildDeps.sh:fix script so 22.04 is detected

*remove vlc deps (not required for the CI)
*remove ubuntu-18.04 from the build matrix, see
https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/

* revert removal of commented macos jobs

* run apt-get update and upgrade

* cleanup Prep snapshot section
2022-08-25 19:47:03 +02:00
Andy Alt 5b443a4c08 .github/workflows/cmake.yml:cancel in progress jobs if newer job is started (#248) 2022-08-25 19:47:03 +02:00
pavanvo 935be6fc8f
Merge branch 'feat/hotkeys_rebase' into build/windows_cmake_msbuild 2022-08-25 06:55:11 +04:00
James Sherratt c46d1260f5 Tidy up 2022-08-24 23:26:25 +01:00
James Sherratt 1c8a6f3d8b Fix SSE check and cleanup 2022-08-24 23:26:25 +01:00
James Sherratt 0a0ca7507d Fix windows g3d xml tools build 2022-08-24 23:26:25 +01:00
James Sherratt 2a81312f0d fix workflow 2022-08-24 23:26:25 +01:00
James Sherratt 35ca64f26d some more improvements 2022-08-24 23:26:25 +01:00
James Sherratt 1514f5f19c Improve build script 2022-08-24 23:26:24 +01:00
Jammyjamjamman cbb4b261a8 Fix for windows + older linux distros 2022-08-24 23:26:24 +01:00
Jammyjamjamman db8d2dd355 Fix cmake-clang for macos
* Also fix for ubuntu 18, by decreasing required cmake version.
2022-08-24 23:26:24 +01:00
Jammyjamjamman c5245a9e73 More fixes to cmake builds
- Add icons to windows exes.
- Revert removal of CurlGetConfig.cmake. This is still required in
ubuntu. (Perhaps only for static builds.)
2022-08-24 23:26:24 +01:00
Jammyjamjamman e9b554c2b4 Windows build script: Remove unnecessary multithread build flag. 2022-08-24 23:26:24 +01:00
Jammyjamjamman 6723924b5b Fix map editor and g3d viewer build for linux and macos 2022-08-24 23:26:24 +01:00
Jammyjamjamman a3a3afc0f0 Fix build script errors
No longer errors when vcpkg path not specified.
2022-08-24 23:26:24 +01:00
Jammyjamjamman ce0345854c New windows build helper scripts
* build-mg-vs-cmake.ps1 to build mg.
* clean-all.ps1 to clean mg.
* install-deps-vcpkg.ps1
* .gitignore ignores build and vcpkg folders.
2022-08-24 23:26:24 +01:00
Jammyjamjamman b405ce86ca Get map editor and model viewer building with VS cmake builds
* Map editor and model viewer build, but only as "Release" build.
* Unwanted flags not set for msbuild, such as FPIC, -g3, -O3, -sse...
* Wanted flags set for msbuild e.g. /arch:SSE2 /fp:fast -D__SSE__
-D__SSE2__
* Allow including wx, used for vcpkg wx.
* Mapeditor is WIN32 exe for VS_BUILD. (Not sure why this is needed...)
* g3d viewer and map editor mains edited to remove unnecessary windows-
only code(, for strings).
2022-08-24 23:26:24 +01:00
Jammyjamjamman 523229ab55 More progress with cmake for Visual Studio projects
* Change conditon so that L137 onwards of main CMakelists.txt is
executed fro VS project target. Main reason to do this was to make sure
project actually built with streflop.
* Change conditions after L137 so unwanted compile flags aren't added.
* Project now builds multi threaded for VS project. Tries to use max
number of cores.
* Simplify cxx flags. Remove unneeded MT and MTd flags.
* Set VS build output to mk/windoze.
* Add FPUSettings.asm to streflop in cmake, if VS project specified.
* Remove STREFLOP compile definitions. Not needed now streflop is
configured properly.
* Simplify cmake by adding "VS_BUILD" variable, instead of doing string
comparisons all the time to check if is "Visual Studio" target.
2022-08-24 23:26:24 +01:00
Jammyjamjamman c6a632c33c Fix for linux and mac 2022-08-24 23:26:24 +01:00