Commit Graph

3767 Commits

Author SHA1 Message Date
Rampoina 1922522009 Rename commonCommands to numberCommands 2022-08-14 12:26:38 +02:00
Rampoina c3e8a25e9e Update commonCommands for a uniform selection 2022-08-14 12:26:38 +02:00
Rampoina 2cd190d822 Retabulate (use only tabs) 2022-08-14 12:26:38 +02:00
Rampoina 5783db3033 Check the number of shared commands before trying to click from a hotkey 2022-08-14 12:26:38 +02:00
Rampoina e9b771241f Add building and unit hotkeys 2022-08-14 12:26:38 +02:00
Rampoina ff9c9ad864 add hotkeybuild1 2022-08-14 12:26:38 +02:00
Rampoina 3b03b458e5 Load the game on double click on the loading menu 2022-08-09 21:14:10 +02:00
Rampoina 22a474b93b
Allow a selected group to have the attack command even if some units … (#217)
* Allow a selected group to have the attack command even if some units don't have it

* Add getUnitFromCC function

* return NULL if getFirstCtOfClass founds no unit

* Search for the unit containing the attack command in a non uniform selection

Co-authored-by: Rampoina <Rampoina@protonmail.com>
2022-08-08 23:26:47 +01:00
titiger e3af470288 Level up should not be effect boosts 2021-11-23 18:17:45 +01:00
Jammyjamjamman 3c0858318d Fix colours in endgame statistics.
Text colours where the colour wasn't explicitly set was rendering as the
previous (incorrect) colour instead of white. Now text colour is
explicitly set.
2021-11-09 21:48:38 +00:00
titiger ae5e308a28 set meeting point for whole selection ( via icon ) 2021-10-06 23:40:18 +02:00
titiger f344fa7fbd Fixed mixed upgrades and boosts of EP and HP regeneration 2021-09-13 22:33:47 +02:00
titiger 4e532db6dd Food shortage warning sound
General sound to warn about consumable resources shortage
2021-06-18 17:25:37 +02:00
Tom Reynolds d1ed68ef00 Update IRC server (Freenode -> Libera) 2021-05-22 12:43:51 +02:00
titiger fb178f9c65 fix for spawn unit when projectile impacts 2021-04-16 01:56:05 +02:00
titiger 3fcaa22d10 fixed double-sided switch and only-selectable
doublesided switch in blender 2.9x did not work before, it was always
rendered single sided in MG.
I added a new switch only-selectable which allows to create unvisible
but selectable meshes. This helps with selection of small units which
can now have an unvisible  hand craftet select object around them for
example..
2021-04-05 23:32:17 +02:00
titiger 8cdca11c4f Reset should reset all upgrades :) 2021-03-27 20:51:28 +01:00
titiger ef313616c8 fixing upgrades again ... 2021-03-27 01:11:02 +01:00
titiger b20002e7dc spawn attacks are skill based, not command based
Units have to spawn without a command too ( like buildings )
2021-02-26 01:49:31 +01:00
titiger 3b52832bb0 More fixes for boosts and upgrades 2021-02-25 23:55:55 +01:00
titiger 48733be2fc no crc refresh for non network games 2021-02-03 20:32:13 +01:00
titiger bf5fe0f561 Fix the CRC refresh on server side 2021-01-28 01:00:24 +01:00
titiger bbd7df55c9 Air unit flying height above water
For flying above water  we use the maps water height + airHeight  if it
is higher than the normal height..
2021-01-17 20:20:31 +01:00
titiger c7c18bd506 bugfix for last checkin 2021-01-14 00:46:32 +01:00
titiger 047ae0daaa Trying to make the CRC less often. 2021-01-14 00:27:41 +01:00
titiger a1d8ea91a2 CRC was never recalculated on servers side 2021-01-06 02:15:58 +01:00
titiger c0aa5cc867 I forgot to upgrade maxEpRegeneration 2021-01-02 21:36:40 +01:00
titiger 75651f3b2e Fix for maxHP upgrades
Fixed the calculation of HP if value is given in percent.
2021-01-02 20:27:51 +01:00
titiger 0f4bc361c6 Fix for maxHP boosts/upgrades
maxHP cannot been boosted anymore( just upgrades!). this has too many
side effects.
maxHP upgrades were calculated based on units current HP which doesn't
make sense.

maxEP cannot been boosted anymore( just upgrades!). this has too many
side effects.

Code is much cleaner and smaller now
2021-01-02 18:54:03 +01:00
titiger d28db00a1a Code cleanup void methods should not return anything ... 2020-12-13 13:22:04 +01:00
titiger 805de06291 bugfix for MaxUnitCount 2020-12-13 03:47:50 +01:00
titiger 5b9f28f21c MaxUnitCount did not work correctly for buildings
Buildings in state 'beeing build' were not taken into account. this is
fixed now.
2020-12-09 01:46:56 +01:00
SoftCoder b8a4a69ac7 - a 2020-08-19 19:16:13 -07:00
SoftCoder 4bdb45e96e - Add support for PopOs and disable VLC support by default in CMake build 2020-08-19 19:14:23 -07:00
titiger 80cf370209 saved game setups
and lang file
2019-11-18 23:32:01 +01:00
titiger 68de0209fb custom menu layouts disbaled by default
saving and using custum menus layouts ( used for mods ) is disabled now
by default becasue it made trouble with new layout.  There are two new
switches for user.ini to control it:
CustomPropertiesUsageAllowed ( default = false )
CustomPropertiesSaveAllowed ( default=false )
2019-11-12 01:29:25 +01:00
titiger 32859457f6 world dump hotkey disabled by default
in big games accidently pressing this games made users drop out of the
game and its a developer option anyway. From now it only works If debug
is enabled.
2019-11-12 01:25:57 +01:00
titiger 3ad5a53560 more comfortable game setup delete 2019-11-12 00:25:57 +01:00
titiger 5cb0eab085 bugfix for preselection in map combobox
Maps were not only loaded as preview.
2019-11-07 00:12:15 +01:00
titiger f6c3a7174f cleanup of duplicated code 2019-10-24 22:58:51 +02:00
titiger a0f2bb0100 layout fixed in connect menu 2019-10-24 22:11:56 +02:00
titiger e978dd3561 build command had no colored icons 2019-10-21 20:09:15 +02:00
titiger 011f38912e red command icons if not enough resource
orange icons if not enough resources for whole selection
2019-10-21 00:46:06 +02:00
titiger 2fd87e64c5 mousewheel scrollbar scenario menu 2019-10-20 19:00:01 +02:00
titiger cb3fd12615 mousewheel scrollbar in connected menu 2019-10-19 00:21:30 +02:00
titiger ae003836c3 scrollbars with mouse wheel :D
currently in custom game menu only
2019-10-18 22:22:07 +02:00
titiger b3267394d5 bugfix for loading setups with unknown maps 2019-10-18 01:47:37 +02:00
titiger 476c398c0c bugfix load setup 2019-10-17 23:16:16 +02:00
titiger cc9c001736 load/save setups in menu state connected 2019-10-16 23:11:18 +02:00
titiger 22d22e275b load/save/delete setups 2019-10-16 20:46:43 +02:00
titiger 10f23fb3ad changed render order for custom game menu
"Press enter to start chat" was rendered on top of scrollbox dropdown.
2019-10-09 02:33:34 +02:00
titiger bebdb3e753 correct scrollbar rendering in comboboxes.
If not enough items list, render shorter scrollbar.
2019-10-09 01:48:24 +02:00
titiger 06b8ab4582 correct scrollbar rendering in comboboxes.
If not enough items list, render shorter scrollbar.
2019-10-09 01:45:51 +02:00
titiger af36771b3c save setups 2019-10-08 11:47:27 +02:00
titiger b3ff608db1 load/save/delete setups and combobox bugfixes 2019-10-08 00:52:34 +02:00
titiger 1db8abe0aa comboboxes (connected menu ) 2019-10-06 03:20:38 +02:00
titiger aac297681d comboboxes 2019-10-06 02:25:58 +02:00
titiger 8d1ff2fadd comboboxes
Scenario selection via combobox
2019-10-06 02:21:16 +02:00
titiger 68153878a0 cobobox fun
mapinfo toggling places
2019-10-06 00:46:33 +02:00
titiger 389892600b comboboxes
first usage in custom menu for maps
2019-10-05 22:41:21 +02:00
titiger 2be2dc5cab cleanup custom/connected game menu layout 2019-10-04 15:06:07 +02:00
titiger 1d234f959c make mega AI fight smarter 2019-09-26 23:06:10 +02:00
titiger b3e0e1b462 trying to let mega CPUs fight smarter 2019-06-22 00:54:29 +02:00
titiger aec1e6d416 display map author if available in map header 2019-03-11 01:56:06 +01:00
titiger e3a082dcb7 another try to fix win build 2018-07-07 02:18:46 +02:00
titiger feb2f3fe3d first steps for xml based achievements 2018-07-07 01:36:53 +02:00
titiger 1caed4accc render resources of selected faction in observer mode 2018-06-13 23:27:21 +02:00
SoftCoder 4a8d24f0dc - updated player stats to count 'played' games and also added new stats to steam 2018-06-02 10:57:54 -07:00
SoftCoder 9dd47eb828 - fix the build 2018-06-02 10:16:25 -07:00
SoftCoder 07319d90a1 - try to fix stupid finiky build 2018-06-02 10:09:52 -07:00
SoftCoder aa4569965e - common interface / code for saving player stats 2018-06-02 10:03:26 -07:00
SoftCoder 00db8cf249 - added a number of new local player stats to track as per etherpad game count achievements 2018-06-02 07:02:43 -07:00
SoftCoder e573ec8690 - started adding logic to write out local player stats when not running from steam 2018-06-02 06:38:36 -07:00
Jammyjamjamman b6dab7ff8b
Disabled function causing OOS in windows-linux games, which was re-enabled in commit 26581a77d2 . 2018-04-11 00:52:25 +01:00
titiger bc01b2922c prevents a crash when map group is empty. 2017-12-06 01:38:52 +01:00
SoftCoder 588ec21d8a - more cppcheck cleanup, AND some new inernal steam commandline parameters to reset stats and enable debugging 2017-10-09 23:09:52 -07:00
SoftCoder 865a665bf0 - round 2 of cppcheck code cleanup 2017-10-09 20:21:14 -07:00
SoftCoder 26581a77d2 - first round of cleanup from cppcheck report 2017-10-09 19:09:36 -07:00
SoftCoder 2988521701 - added another steam achievement for winning first online game 2017-10-08 23:05:29 -07:00
SoftCoder d78f28983b - some coverity based cleanups 2017-10-08 20:31:42 -07:00
SoftCoder 9de36c32a3 - cleanup achievement code for easier expansion later 2017-10-07 16:45:31 -07:00
SoftCoder f744d90538 - added first steam achievement support (winning your first game) as a reference 2017-10-07 14:53:51 -07:00
SoftCoder 59be04ab6a - attempt to correct tomreyns cmake linker issue 2017-10-07 08:59:27 -07:00
SoftCoder eaad769182 - some code cleanup fro mthe steam integration 2017-10-07 03:01:21 -07:00
SoftCoder b34003b4a5 - enable using steam statistics to save players network based game end game stats to steam 2017-10-07 02:40:34 -07:00
SoftCoder de34e1c894 - fix windows build 2017-09-24 09:40:20 -07:00
SoftCoder a9874ea4b3 - fix windows build 2017-09-24 00:12:02 -07:00
SoftCoder 0443ce9a26 - fix windows build 2017-09-24 00:00:49 -07:00
SoftCoder 6479690d67 - fix windows build 2017-09-23 23:59:56 -07:00
SoftCoder 42221f2d52 - Fix windows build 2017-09-23 23:51:22 -07:00
SoftCoder 36bc6a4497 - initial work to integrate theam SDK with megaglest 2017-09-23 17:15:44 -07:00
Mark Vejvoda aebd07f3bb Merge pull request #172 from MegaGlest/tomreyn-patch-1
Shorten indicator for headless server mode
2017-09-23 02:39:31 -04:00
SoftCoder 5d0f5013fd - allow using new cmake var for finding glest.ini called MG_CMAKE_INSTALL_PREFIX to solve issue #167 2017-09-22 23:21:40 -07:00
SoftCoder de8d05b882 - update opengl version check since 2.1 is really the minimum supported 2017-09-22 17:17:49 -07:00
SoftCoder 96bd937218 - protect lan search if not local ip's found and add a little more output 2017-09-21 17:04:56 -07:00
titiger 9d12682fb5 fix for #173
fix a crash with unknown screen resolution in .megaglest
2017-08-29 01:27:53 +02:00
Tom Reynolds 4dc6b44e03 Shorten indicator for headless server mode
"Headless (servername)" is really long. https://forum.megaglest.org/?topic=9965 requests for it to be shorted.
Changing this means that the masterserver code interpreting this 'tag' also needs to be edited.
2017-08-26 16:01:42 +02:00
filux 5323a4fcdf let's try static curl also for mac OS 2017-08-25 22:06:08 +02:00
filux ef1c26d931 improved formatting of '--help' output in a way to be more friendly for help2man 2017-04-01 14:53:34 +02:00
SoftCoder bdfb05a700 - attempt to add support for static use of wxwidgets in tools 2017-03-20 17:06:12 -07:00