mathusummut
284ee73af4
Fixed some coverity warnings
2018-09-05 15:31:59 +02:00
mathusummut
3646557a9f
Fixed printf issue
2018-09-02 13:37:05 +02:00
mathusummut
1b3ae14659
Made OOS messages more friendly
2018-09-02 13:06:21 +02:00
mathusummut
913ab85c35
[Test] OOS is now a warning instead of an error
2018-09-01 16:20:21 +02:00
mathusummut
6b6a4fb4de
AI upgrades should complete successfully
2018-06-23 23:38:12 +02:00
mathusummut
812db7279d
AI fix for move while upgrading
2018-06-23 22:07:20 +02:00
mathusummut
3b14f3eb02
Relaxed network grace + fixed annoying warnings
2018-06-23 22:04:15 +02:00
mathusummut
56013bee49
Reached mid-way AI compromise
2018-05-10 03:04:30 +02:00
mathusummut
91d8fea807
Re-strengthened AI
2018-05-10 02:38:06 +02:00
mathusummut
35b7b1f1a6
Fixed the god-awful indentation
2018-05-06 00:01:36 +02:00
andy5995
e018b26056
ai:revert AI enhancement
...
@Jammyjamjamman suspects the AI patch from commit
464860aa02 (diff-d96c21449fc203a306589b5bd1f8aaa1)
may be causing extra lag when playing mp with Windows clients.
This patch reverts most of that commit. Max expansions I set to 5, the
MG setting was 2.
If this fixes the lag, then we can consider looking at making these
changes again, but one at a time, making sure lag isn't a result before
making more changes.
Anyone can review this to learn some of the code, but I'd like to hear
feedback from Jammy before finally merging.
2018-05-04 18:36:21 -05:00
mathusummut
7ace98f8e1
Renamed CPU-Mega to CPU-Zeta
2018-04-29 15:37:44 +02:00
andy5995
7136acffc2
add space between right angle brackets
...
build fails on travis otherwise
2018-02-01 13:55:34 -06:00
andy5995
0cbb7d518a
game & ai:restyle/reformat code
2018-02-01 13:39:41 -06:00
andy5995
d8dafe5015
a.cpp:remove stray char
2018-01-25 12:41:38 -06:00
Jammyjamjamman
04cddae679
Added comments describing how the AI works.
2018-01-25 11:59:27 +00:00
Jammyjamjamman
464860aa02
Made changes to the AI; hopefully upgrades!
2018-01-24 12:48:39 -06:00
andy5995
31d91e8544
observers don't use a slot on maps [wip #13 ]
...
* This reverts part of 42541caab7d457d0c73f63ec6dc1e8816ceff704
* This fixes the bug from 42541caab7d457d0c73f63ec6dc1e8816ceff704
where if there 4 slots being used on a 4 player map, the game will crash
if an observer is in the 5th slot.
* The menu needs to be altered to accomodate the extra lines of text.
* There needs to be checks put in place so people in the extra slots can
only choose "observer" mode. If they choose a different faction, the
game will crash.
2018-01-24 02:40:44 -06:00
Andy Alt
42541caab7
[wip] change how observer mode works ( #13 ) ( #14 )
...
The positioning of the labels and text will need changing. I'm going to
ask @jammyjamjamman if he'll fix it up all nice and pretty.
* [wip] change how observer mode works (#13 )
* [wip] opens 10 slots on any map [observer mode]
* [wip]set start location for observers [skip ci]
* [wip] new observer mode works with no crashing
I need to clean up the code more though. I only did the bare minimum to
change the way observer mode works.
2018-01-23 21:00:32 -06:00
Jammyjamjamman
95c3ebbd10
modified AI code so that AI performs updates faster.
2018-01-23 02:32:39 +00: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
titiger
a5e759fdd1
AI should not morph units currently busy with building something
2016-12-12 14:51:16 +01:00
titiger
97d4023d92
unit must be placed in center of faked size square
2016-12-10 21:10:38 +01:00
titiger
cd8530f69e
new tag <ai-build-size>
2016-12-10 16:01:26 +01:00
SoftCoder
c5aff25a94
- comment one thread safety check as it was not required
2016-05-27 21:31:39 -07:00
SoftCoder
56494f3cd2
- finally fixing issue #102 (bad cell visible handling when fog of war turned off)
2016-05-27 16:15:27 -07:00
SoftCoder
ed6f169d97
- attempt to see if this helps deal with oos when fog of war off
2016-05-23 09:51:50 -07:00
SoftCoder
d6dbb187cc
- fixed some bugs discovered by coverity scan
2016-01-20 21:34:23 -08:00
SoftCoder
7e0494bb28
- some bug fixes based on coverity scan
2015-11-25 21:16:29 -08:00
SoftCoder
8210485a42
- a few bugfixes related to coverity scan
2014-12-15 19:44:26 -08:00
titison
850a9a7dc0
-AI can't command non-commandable units anymore
...
-Removed non-selectable
2014-08-07 21:00:27 +02:00
titiger
d56069488f
Let's see how good Mega-AI plays with real random when trying to find the enemy.
...
( the server must use this version to see an effect )
2014-01-27 19:23:31 +01:00
SoftCoder
3111b733e2
- bugfix for chrono class calcs causing group camera recall to fail (And numerous other problems)
...
- added better tracking of mutexes by assigning them location info
2013-12-24 22:27:44 -08:00
SoftCoder
f269273f07
- round #2 of coverity bug fixes
2013-12-14 22:37:15 -08:00
SoftCoder
b9d6b38e8f
- coverity based bug fixes - round #1
2013-12-13 23:04:12 -08:00
Mark Vejvoda
7d5b71b2cf
- bugfix for compilation on windows
2013-11-19 22:47:22 +00:00
Mark Vejvoda
66761ba760
- code cleanup based on additional gcc warnings
2013-11-19 06:42:32 +00:00
Mark Vejvoda
9268aaf279
- a few minor bug fixes related to code warnings
...
- code cleanup based on additional gcc warnings
- enabled additional gcc compiler warnings
2013-11-19 06:14:06 +00:00
Mark Vejvoda
3671bd0617
- removed debug code
2013-11-14 13:17:58 +00:00
Mark Vejvoda
e712f307c3
attempt to see if removing this mutex is stable and improves performance
2013-11-10 19:49:02 +00:00
Mark Vejvoda
2d4cf315f6
attempt to fix performance issue with pathfinder and mutexes
2013-11-10 07:25:52 +00:00
Mark Vejvoda
597feb452f
fix warnings from vc++
2013-11-10 05:27:59 +00:00
Mark Vejvoda
ebaa8ced1a
- ensure mutexes are properly protecting shared data in pathfinder
2013-11-10 05:23:59 +00:00
Mark Vejvoda
856e6fd88e
when using team switch, AI player will now always answers YES if he already lost the game
2013-11-10 04:26:20 +00:00
Mark Vejvoda
fd2cc5f66b
updating pathfinder mutexes to ensure safety of shared access to precache buffers
2013-11-09 21:22:51 +00:00
Mark Vejvoda
273abcde75
try to see if this improves pathfidner performance
2013-11-09 20:44:37 +00:00
Mark Vejvoda
bb2e2d0f64
removed more unused code for last path cache which was already removed
2013-11-09 19:14:53 +00:00
Mark Vejvoda
23cab07fe8
code cleanup from cpp check
2013-11-09 03:16:41 +00:00
Mark Vejvoda
f6e5a6a3a0
code cleanup from cpp check (And removed commented and useless code)
2013-11-09 01:26:29 +00:00