Commit Graph

165 Commits

Author SHA1 Message Date
Titus Tscharntke 45ff24dbd7 new switch "count-kill-for-unit-upgrade" if a unit has set this switch to false , killing it does not count up the number of kills of the attacking unit. 2012-03-31 10:14:42 +00:00
Titus Tscharntke d8ba2443cf new switches "count-unit-death-in-stats", "count-unit-production-in-stats" and "count-unit-kill-in-stats" for unit.xml ( allows better "resource" production for example ) 2012-03-30 23:38:05 +00:00
Mark Vejvoda bf3fbf5e71 - ensure that new check for ignore resource morph does not result in an invalid command type pointer. 2012-03-27 20:13:08 +00:00
Mark Vejvoda 12fdf262da - bugfix for passing commandtype 2012-03-27 19:53:43 +00:00
Mark Vejvoda c0f3658faa - bugfix for network scenarios to NOT close unconnected network slots before loading, they will turn into AI players (this is required because the scenario code may require those factions)
- added ability to morph and indicate the morph command should ignore resource costs, add this to the command type:
<ignore-resource-requirements value="true" />
2012-03-27 03:23:03 +00:00
Mark Vejvoda a7e45eb354 - added the ability to record all game command to a replay file. To test saving / loading games from a replay file, add this to glestuser.ini:
SaveCommandsForReplay=true
2012-03-20 04:53:26 +00:00
Mark Vejvoda 4481151c5b - check if unit is dead when loading game and do NOT set cell map for dead unit 2012-03-13 23:51:39 +00:00
Mark Vejvoda 917adc8c98 - bugfix for game save and load (string buffer was too small for one item) 2012-03-13 21:58:31 +00:00
Mark Vejvoda 5f95b08c17 - a ton more load game state now working (including commands) 2012-03-13 15:21:25 +00:00
Mark Vejvoda c5331b7e8a - initial work to save game state to XML. Current only saves when out of synch or game end occurs and saves to same folder as log files and file is called: megaglest-saved.xml
(Currently we store way too much info but this is a starting point)
2012-03-10 03:27:25 +00:00
Mark Vejvoda 4ad42518c0 - updated for better handling of streflop on different platforms
- attempt for bugfix on windows when socket send buffer is continuously full
2012-02-10 06:21:06 +00:00
Mark Vejvoda 9852325da6 - fixed Martiño Figueroa's name in all copyrights in source code
- added copyrights to files that were missing it
2011-12-14 07:40:48 +00:00
Mark Vejvoda 609bc528d2 - fixed fog of war bug in map preview for connected client
- in headless mode keep three caches in case its related to out of synch
- comment out spurious irc console text
2011-12-03 01:19:54 +00:00
Mark Vejvoda d33e1174a5 - bugfixes related to cppcheck report
- bugfixes found using valgrind (memory leaks)
2011-12-02 16:07:59 +00:00
Mark Vejvoda f626ebbe45 - attempt to fix lua code to properly get unit's killer:
lastDeadUnitKillerName
lastDeadUnitKiller
2011-11-18 15:43:05 +00:00
Mark Vejvoda 2d367bd26e - added new lua functions from Muwum:
new events:
    unitAttacked
   unitAttacking
 
   methods:
   lastAttackedUnitName()
   lastAttackedUnit()
   lastAttackingUnitName()
   lastAttackingUnit()
   giveKills(unit,amount)
2011-11-16 21:38:12 +00:00
Mark Vejvoda b5d4867316 added one too many invalid position messages to console 2011-10-28 22:28:24 +00:00
Mark Vejvoda 9ffad02f8f - bugfix for detecting if one unit is next to another
- now repair command does NOT require a move skill. If a move skill is not defined then the repairer must be beside the unit he will repair or they get an invalid position console message
2011-10-28 05:22:41 +00:00
Mark Vejvoda b1ed59959e - bugfix so player who dies and becomes an observer can hear sounds from other players units 2011-10-12 16:03:55 +00:00
Mark Vejvoda f8da775fe0 - fixed issue raised by Ishmaru when unit is holding position and we run out of ep, re-queue another hold position command (unless the stop skill takes ep as well then it cancels) 2011-10-12 04:40:48 +00:00
Mark Vejvoda 9caff9dac3 - in headless mode avoid init of sdl's video surface so that we stay in console window (no graphics window shown) 2011-09-27 07:01:08 +00:00
Mark Vejvoda 9268e3f5a7 - attempt to fix tomreyns segfault bug (mutex protection around cache) 2011-09-24 22:17:48 +00:00
Mark Vejvoda 7d53df698a - added new in-game popup menu and new ability to switch teams in game (turned off by default in advanced settings) 2011-09-21 06:51:28 +00:00
Titus Tscharntke b8010a18af bugfix, so dragons can morph above water 2011-09-06 23:12:05 +00:00
Mark Vejvoda 57afc2d715 - phase 2 of cppcheck verbose fixes 2011-09-01 01:11:23 +00:00
Mark Vejvoda 3af608151e - bugfixes found from cppcheck 2011-08-31 19:44:19 +00:00
Mark Vejvoda d99a8236ae - added the ability to synch unit particles with model animation using start-time and end-time attributes 2011-08-27 06:52:17 +00:00
Titus Tscharntke cc5dbd467e maxUnitCount respected by spawn attack 2011-07-06 22:35:35 +00:00
Mark Vejvoda 82ccc21d5e - fixed a bug discovered by Elimnator when units are repairing another unit and the other unit morphs need to check of the repairers can still repair the newly morphed unit and if not stop repair 2011-06-30 04:45:17 +00:00
Mark Vejvoda c252402e71 - initial implementation of attack-boost logic (this is in progress code which is only triggered by new xml entries). Will explain later once tested. 2011-06-25 08:53:53 +00:00
Titus Tscharntke 149e5b15b0 Changes from 2367 without formatting mess 2011-06-23 23:30:49 +00:00
Titus Tscharntke 59136a3d95 revert code formatting mess to same as revision 2366. Change from 2367 will come without this mess with next checkin 2011-06-23 23:28:39 +00:00
Titus Tscharntke e58ddd35b4 fixes build bug reported in forum/ adds some better mega-cpu behaviour / fixed some bugs ( I hopefully did not added new ones :-D ) 2011-06-20 23:51:13 +00:00
Mark Vejvoda 6b14c21446 - missed some things in last bugfix 2011-06-09 21:50:54 +00:00
Mark Vejvoda c9518d727a - bugfix for attacking logic to always listen to what you tell it (commented out recently added logic)
- bugfix for building units and unit is too far away
2011-06-09 21:38:04 +00:00
Mark Vejvoda 95755ad832 - update new version # 3.5.3 (possible bugfix release)
- updated some pathfinder settings to see if performance and reaction to attacking is better
2011-06-02 07:09:19 +00:00
Mark Vejvoda e4f0e8bfbf - step #1 towards a working make install via cmake 2011-05-03 18:25:35 +00:00
Mark Vejvoda cd4ef0eaf7 - proper binary path extraction on all platforms and glest.ini by default can run from search path and will try to find stuff it needs in the real binary path
- fixed error message for untis missing be_built
- fixed mg.ini for html tool and updated perl script
2011-05-03 11:15:15 +00:00
Mark Vejvoda 5d1f75ebe6 - bugfix for enemy cell segfault for AI players 2011-05-01 15:22:58 +00:00
Mark Vejvoda 070b8b76e6 - more AI enhancements to better handle repair and build positions 2011-05-01 07:24:37 +00:00
Mark Vejvoda 16ea7881ab - no longer allow killing self or team to update your skill levels 2011-04-20 16:46:47 +00:00
Mark Vejvoda e5fa7d45c3 - bugfix to show the right harvested resource when switching to another resource (based on silnarm's pointer in the forums) 2011-04-17 05:29:25 +00:00
Mark Vejvoda 0fce64897e - added a few more things to end game stats as requested by ultifd
(now we can tell the difference between killed units and killed enemy units and final score is based on killed enemy units not all killed units)
2011-04-05 06:32:23 +00:00
Mark Vejvoda cd952fcda0 - updated world synch debug calls to only log outside of faction pre-calculated pathfinding 2011-04-03 02:42:45 +00:00
Titus Tscharntke 4719686440 enemy targeting changed a bit again 2011-03-29 22:12:55 +00:00
Mark Vejvoda 2c2b629cf9 - revert to old harvest selection 2011-03-29 19:01:15 +00:00
Mark Vejvoda c58f338d1b - clear pathfinder precache for units when they die to free memory sooner 2011-03-29 10:01:01 +00:00
Mark Vejvoda 614d0c25db - attempt to improve harvesting a bit 2011-03-29 04:57:36 +00:00
Mark Vejvoda b6e9a7aca5 - attempt to correct units that harvest a resource far away when they could take a better approach and harvest the resource closer. (needs testing) 2011-03-29 01:45:10 +00:00
Mark Vejvoda 1fc330ace3 - bugfix (And removal) for stop command and animation stopping when upgrading 2011-03-28 23:47:22 +00:00