Commit Graph

247 Commits

Author SHA1 Message Date
Titus Tscharntke
6f85a6aa4a old air behaviour for resource production. new one is reachable via ini switch NewResourceBehaviour=true 2013-08-29 22:30:09 +00:00
Mark Vejvoda
f617866237 - attempt to see if this handles resource associated units better 2013-08-10 06:53:16 +00:00
Mark Vejvoda
97b8979a6c added AI logging for resource unit type logic 2013-08-02 21:46:55 +00:00
Mark Vejvoda
1247f1e965 a little refactoring and try to fix some of the AI logic for food producers 2013-08-02 00:08:16 +00:00
Mark Vejvoda
d46479df95 - bugfix to allow headless server to load a texture for new tilesets where they must read it to determine parts.
- converted asserts to exceptions
2013-06-23 04:17:25 +00:00
Mark Vejvoda
4684779186 removed commented code 2013-06-22 18:09:29 +00:00
Mark Vejvoda
8d36c07a61 make AI smarter when needing more resources, prefer units that 'give back' resources over producers 2013-06-20 20:04:19 +00:00
Mark Vejvoda
54a28b6fb5 see if this makes the AI produce more food quickly when needed 2013-06-15 07:29:59 +00:00
Mark Vejvoda
0ead6a36dc full support for translated techtrees 2013-06-13 08:55:48 +00:00
Mark Vejvoda
8066502f9b fix a few areas that vc++ 2012 pointed to as potential bugs 2013-06-08 03:40:04 +00:00
Mark Vejvoda
4499308888 fix a few areas that vc++ 2012 pointed to as potential bugs 2013-06-07 23:17:27 +00:00
Mark Vejvoda
56774bc087 make server slots continuously read data on sockets during game 2013-06-04 00:31:41 +00:00
Mark Vejvoda
2c1b181bc7 a bunch more code cleanup from cppcheck 2013-05-26 06:03:32 +00:00
Mark Vejvoda
de68fc759d comment out some world synch logging 2013-05-25 18:22:36 +00:00
Mark Vejvoda
5b664fb1a2 - bugfix for transifex tutorial download files now loaded into UI
- updated each thread to provide its name
2013-05-21 20:28:42 +00:00
Mark Vejvoda
5cfc4d07a0 added logging of threaded unit actions 2013-05-21 05:43:57 +00:00
Mark Vejvoda
418d4bed0b more logs to track out of synch 2013-05-20 22:54:07 +00:00
Mark Vejvoda
2f3433688f more logs to track out of synch 2013-05-20 21:52:36 +00:00
Mark Vejvoda
08e0b0baca add more world synch logging and added more mutex thread protection in pathfinder 2013-05-20 02:51:26 +00:00
Mark Vejvoda
8fd82a4f7d add more world synch logging and disabled potentially dangerous ini properties that were still referenced in the pathfinder to see if this was the cause of out of synchs (due to old settings that affected the pathfinder) 2013-05-19 05:16:21 +00:00
Mark Vejvoda
24f3a1d6de add more synch logging to pathfinder 2013-05-18 03:11:26 +00:00
Mark Vejvoda
3c05195436 add more synch logging to pathfinder 2013-05-17 22:51:40 +00:00
Mark Vejvoda
748763f0f1 code cleanup based on cppcheck results 2013-05-17 05:21:14 +00:00
Mark Vejvoda
c55b9c3ffe code cleanup based on cppcheck results 2013-05-17 05:01:23 +00:00
Mark Vejvoda
8408526b12 code cleanup based on cppcheck results 2013-05-17 03:59:34 +00:00
Mark Vejvoda
c63da54bbd - attempt to improve performance when units are blocked badly (this is not backwards compatible with other builds, will create out of synch) 2013-02-22 06:52:51 +00:00
Mark Vejvoda
8916a86b8c - bugfixes for load / save game for in progress joining 2013-02-19 06:41:56 +00:00
Mark Vejvoda
69925fb887 - bugfixes for joining network games 2013-02-19 04:53:24 +00:00
Mark Vejvoda
b38f6b20a1 - updates to join in progress game, and now allow for switching slots 2013-02-16 10:07:36 +00:00
Titus Tscharntke
4e6e96b125 AI scouting switched back to something we had before "THE BUG" 2013-02-12 21:17:21 +00:00
Mark Vejvoda
9bc6d33f1d - bug fixes to stabilize the windows build 2013-02-09 06:57:05 +00:00
Mark Vejvoda
cfb9b61168 - rollback AI so nig can test anarchy bug 2013-02-06 23:58:49 +00:00
Titus Tscharntke
3ea6a02d95 no return in void methods 2013-02-05 22:00:50 +00:00
Mark Vejvoda
b2be14ca33 - updated the AI's scouting logic
- updated from transifex
2013-02-05 06:56:59 +00:00
Mark Vejvoda
f87b8b6ee2 - updated code to protect against null pointers and uninitialized values and threading issues 2013-02-04 08:30:43 +00:00
Mark Vejvoda
d02f91d2e0 - bugfix for AI not using correct build spacing 2013-02-03 23:29:16 +00:00
Mark Vejvoda
d9fac85d21 - added more debug logging 2013-01-27 07:26:35 +00:00
Mark Vejvoda
7ecc7325ac - trying to trace nig's crash (more debug info and safer code) 2013-01-23 14:51:28 +00:00
Mark Vejvoda
1a49588a45 - added smarts to the AI so it takes note of very active battle locations and scouts there. 2013-01-12 01:55:13 +00:00
Mark Vejvoda
de1f7c53d9 - improve AI performance a bit and ALSO update the AI so they harvest sooner when running low on consumables 2013-01-12 01:11:53 +00:00
Mark Vejvoda
5d2066fdbb - added a new thread manager to try to see if it takes less CPU cycles while the thread controller waits for slaves to do their work. To enable the experimental thread manager set: EnableNewThreadManager=true 2013-01-10 21:16:28 +00:00
Mark Vejvoda
1f49886755 - re-enabled fog of war cache to improve performance
- improve xml file loading speed
2013-01-03 17:30:59 +00:00
Mark Vejvoda
ee2ad95164 - attempt to improve ai decision performance by having each ai player updates done in a thread 2013-01-01 18:55:26 +00:00
Mark Vejvoda
1dbcabf12c - minor feature request added from sourceforge, when command given cannot be executed, sometimes we show the requirements of the command so the user knows why it failed 2012-11-10 19:39:55 +00:00
Mark Vejvoda
ff58a868b3 - attempt to bugfix windows using proper printf syntax for data types 2012-11-10 06:37:23 +00:00
Mark Vejvoda
5c15a0e9f4 - cast to unsigned int for all calls to srand 2012-10-30 17:12:04 +00:00
Mark Vejvoda
28d65e8d55 - cleanup from last checkin (corrections) 2012-10-26 03:08:40 +00:00
Mark Vejvoda
3419127632 - proper way to handle size_t objects (cleanup warning on other platforms) 2012-10-26 02:42:10 +00:00
Mark Vejvoda
011e0263b0 - lots more code cleanup, using safe buffer size code to avoid buffer overflows 2012-10-19 01:31:20 +00:00
Mark Vejvoda
c5ac0cc8e3 - fix min player for headless game message 2012-10-06 17:50:27 +00:00