Commit Graph

647 Commits

Author SHA1 Message Date
Mark Vejvoda bf3e5a15bf - modders can now override land and air field names using lng specific files for a tileset (follows same principle as techtree lng files). Currently supported translatable strings:
FieldLandName=Land
FieldAirName=Air
2012-05-11 05:49:47 +00:00
Mark Vejvoda 2d6cda1f6f - more pathfinder tweaks to try improve performance 2012-05-09 23:56:14 +00:00
Mark Vejvoda 1b2b1f9821 - improved the new pathfinder using hashmap 2012-05-05 06:23:09 +00:00
Mark Vejvoda f79222defa - more pathfinder in progress changes, nothing to test yet 2012-05-05 04:38:49 +00:00
Mark Vejvoda 3ff0796bec - some in progress pathfinder work 2012-05-04 21:03:52 +00:00
Mark Vejvoda 771ff91c1c - added a new pathfinder to test to see if it performs better than the old one 2012-05-04 14:57:59 +00:00
Mark Vejvoda b8fb60b325 - speed up the pathfinder a bit 2012-04-21 03:42:25 +00:00
Mark Vejvoda dbb116f250 - load of changes to get things compiling under VC++ 2010 (with updated deps seperate for vc2010) 2012-04-20 01:04:05 +00:00
Mark Vejvoda aa831dbb61 - inlined a few more functions 2012-04-17 15:25:31 +00:00
Mark Vejvoda 6e7d4aeec5 - speed up some heavily used functions 2012-04-17 07:51:45 +00:00
Mark Vejvoda c8fdc9269f - fix win32 build
- cleanup a lot of win32 compiler warnings
2012-04-16 20:15:57 +00:00
Mark Vejvoda 8c0bf75bf5 - got built in memory leak working. Just edit leak_dumper.h and uncomment:
//#define SL_LEAK_DUMP
- got better / more accurate stack dumps when we detect errors in game.
- Both of these need to be worked on in windows next, win32 may not compile for now until i fix it on that platform.
- BE VERY CAREFUL when working in leak_dumper.* it may cause GCC and your system to crash if you don't know what you are doing!
2012-04-14 21:21:09 +00:00
Mark Vejvoda 76c3fa1949 - fixed segfault when a unit is selected and they die (this is a long standing bug and not related to savegame) 2012-04-12 15:38:53 +00:00
Mark Vejvoda 22f43f4267 - added new lua method for setting the direct position of a unit (can be used for teleporting):
setUnitPosition(int unitId, Vec2i pos)
2012-04-11 05:41:40 +00:00
Mark Vejvoda d16396db0a - more save / loadgame bugfixes 2012-04-02 15:17:31 +00:00
Mark Vejvoda fce4d55dd5 - better error handling, try to display proper error message and restore state as best as possible 2012-04-02 01:45:13 +00:00
Mark Vejvoda 3d386936dc - updated loading games to translate tutorials and scenario paths 2012-03-31 20:58:33 +00:00
Mark Vejvoda 152e83399d - added a new lua method isUnitAlive(unitId) 2012-03-31 20:17:19 +00:00
Titus Tscharntke 0c16882d0a fix for "The last wave"-problem in amazon(light) scenario 2012-03-31 20:02:49 +00:00
Mark Vejvoda 2f885406e0 - added logic to delay AI player from path finding more than 10 units per frame (we make him think he is blocked and he will retry another frame) 2012-03-31 19:50:45 +00:00
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 c02c90427b - added some more lua commands:
vector<int> getUnitsForFaction(factionIndex,commandTypeName, field)
int getUnitCurrentField(unitId)
2012-03-30 07:10:14 +00:00
Mark Vejvoda 45b92f4316 - allow for a scenario based faction to be 'neutral' by specifying a team # of 9
- added some new lua methods:
networkShowMessageForFaction(text,header,int factionIndex)
networkShowMessageForTeam(text,header,teamIndex)
2012-03-30 05:53:33 +00:00
Titus Tscharntke 7cdf6eedd3 Map heightFactors above 100 are handled like heightFactor=heightFactor/100. By this you can have an effective heightFactor of 1.5 for a map now if you enter 150 in the map editor. 2012-03-29 20:18:20 +00:00
Mark Vejvoda 433f4e84ce - a few more fixes found using cppcheck 2012-03-28 06:34:34 +00:00
Mark Vejvoda 9286130138 - bugfixes and code cleanup found using cppcheck 2012-03-28 06:25:57 +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 163271203d - tilesets now support animated models:
<model path="models/copter_sit.g3d" anim-speed="190"/>
2012-03-26 23:24:29 +00:00
Mark Vejvoda 4f1bee5aea - attempt to save and load scenario info in saved games 2012-03-26 06:48:58 +00:00
Mark Vejvoda d502e95d9f - bugfix for saving / loading cell info, fixes the resource explored bug 2012-03-20 07:14:50 +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 ecbd2fe06d - fix terrain loading 2012-03-18 06:59:43 +00:00
Mark Vejvoda 62254685d5 - fixed saved / load game to restore terrain 2012-03-17 20:59:03 +00:00
Mark Vejvoda 8860fd0dc8 - fix saved games in headless server mode 2012-03-14 23:25:47 +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 3926a34ef4 - missed another bad index 2012-03-13 22:28:36 +00:00
Mark Vejvoda a67a3776af - fixed conflicting loop index variable names in map 2012-03-13 22:27:34 +00:00
Mark Vejvoda 9a1b4cf680 - small fix for map state 2012-03-13 22:23:42 +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 82cd1d3e9c - restore timeflow and gamecamera on load game 2012-03-12 23:40:54 +00:00
Mark Vejvoda 9271d7d7f6 - initial loading logic for loading of saved games.
- currently we always save the game during out of synch or on game quit.
- added a new commandline option to load the last saved game, this doesn't do much yet, just creates units in the map locations they were when the game was saved
./megaglest --load-saved-game
2012-03-12 23:08:22 +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 9d6607a051 - added new lua method so users can create units without spacing rules:
createUnitNoSpacing
2012-02-21 21:56:20 +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
Titus Tscharntke 9f703f2303 faction links, modders can include factions from other techtrees if techtree.xmls are compatible.
( Still problems with CRC-calculation and download in Multiplayer for those linked factions )
2012-01-17 01:34:50 +00:00
Titus Tscharntke e05984d527 - daylight effects for unit particles ( best use with mode "black" )
- meadow has good looking mist in night now
- startdelay for particles
2012-01-07 20:24:54 +00:00
Mark Vejvoda e351def1cb - added new lua function to display playername:
getPlayerName(i)
2012-01-05 00:45:17 +00:00
Mark Vejvoda 6f924b310d - added new lua method to get system macro values:
dofile(getSystemMacroValue("$SCENARIO_PATH") .. "unit.ai.class.lua")
2012-01-05 00:04:55 +00:00
Mark Vejvoda ec2f889a76 - scenario pause command should work in network mode 2011-12-28 07:26:16 +00:00
Mark Vejvoda 61bebd6b86 - numerous fixed for network scenario handling 2011-12-28 04:46:36 +00:00
Mark Vejvoda 0338841689 - initial code to try out network based scenarios (not yet implemented for masterserver) 2011-12-26 06:29:14 +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 01ea0787a3 - a few more updates to cut down on RAM use for headless server 2011-12-03 00:39:03 +00:00
Mark Vejvoda 8bdf863636 - cleanup of masterserver global flag
- attempt to cut down on resources required for masterserver mode to minimize RAM
2011-12-02 22:04:02 +00:00
Mark Vejvoda 66f44ff7c4 - more cleanup from cppcheck (using eclipse plugin now) 2011-12-02 17:46:02 +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 cfe01253b9 fixed ambient sounds when rain is disabled. 2011-11-28 06:38:07 +00:00
Mark Vejvoda 03a7a72ef5 revert network code back to beta1 code 2011-11-27 05:27:50 +00:00
Mark Vejvoda fbb3f0b8e5 - faction threads now use semaphores to signal completion lowering cpu use on main thread 2011-11-26 23:11:33 +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 b2adc16ca6 - added Muwums lua function 2011-11-15 17:39:49 +00:00
Titus Tscharntke cbdde66999 we dont need to be too picky with translations which are mainly meant for logfiles 2011-11-04 01:12:05 +00:00
Mark Vejvoda 30e1f45cc7 - intro is now fully translatable and configurable (see english.lng file at the bottom for intro strings)
- added game loading text strings to language file
- ONLY load the font type we are using
2011-11-02 17:17:28 +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 762699ef88 - bugfixes for passing from one scenario into another when keeping faction state 2011-10-07 03:25:17 +00:00
Mark Vejvoda a7cfcc1d99 - added special placement code when carrying over units from one scenario to another 2011-10-06 22:19:58 +00:00
Mark Vejvoda b126768d9c - updated scenario lua function to allow carry over of factions or not 2011-10-06 20:44:55 +00:00
Mark Vejvoda 2d42f59fe1 - added a new lua function to allow loading a new scenario from inside an existing scenario
loadScenario('capture_the_flag2')
2011-10-06 18:04:59 +00:00
Mark Vejvoda aed293bba2 - fixed a bunch of memory leaks that will hopefully mean less overall memory requirements. 2011-09-28 06:57:42 +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 c68aa74fcf - more updates for headless mode (try to avoid using opengl completely), server now runs at around 20 MB RAM at game start. 2011-09-27 05:29:57 +00:00
Mark Vejvoda 048f97e698 - initial attempt to add jump point symetry to astar pathfinding (please test) 2011-09-26 23:55:18 +00:00
Mark Vejvoda ece2927350 - attempt to fix command grouping 2011-09-25 04:07:59 +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 37fd0d6c71 - disable grouped commands by default until i track the segfault 2011-09-23 19:19:09 +00:00
Mark Vejvoda 72c12a3459 - another attempt to fix command grouping bug (its now turned on be default again), please test for crashes or out of synch 2011-09-22 20:42:06 +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
Mark Vejvoda 470fac5136 - bugfix for scripted scenario function registerCellTriggerEventForFactionToLocation not working properly 2011-09-13 23:20:26 +00:00
Mark Vejvoda c2b2e41935 - disabled grouped commands for now 2011-09-09 20:42:02 +00:00
Mark Vejvoda 41dfe298d3 - re-enable grouped commands for better unit moving (was previously causing out of synch but i think it works properly now) 2011-09-09 17:49:10 +00:00
Titus Tscharntke b8010a18af bugfix, so dragons can morph above water 2011-09-06 23:12:05 +00:00
Mark Vejvoda bb68106912 - phase 3 of cppcheck verbose fixes 2011-09-01 18:08:56 +00:00
Mark Vejvoda 57afc2d715 - phase 2 of cppcheck verbose fixes 2011-09-01 01:11:23 +00:00
Mark Vejvoda 93cc49a89a - bugfixes found from cppcheck 2011-08-31 20:04:50 +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
Mark Vejvoda a388c92be6 - disable group unit commands as default being enabled (since its is causing out of synch) 2011-07-18 18:31:54 +00:00
Mark Vejvoda 5ffc0937f1 - added new ini setting to toggle grouped commands processing (hunting down out of synch). To turn it off try:
AllowGroupedUnitCommands=false
2011-07-12 23:41:14 +00:00
Titus Tscharntke cc5dbd467e maxUnitCount respected by spawn attack 2011-07-06 22:35:35 +00:00
Mark Vejvoda 1b2d4fddea - merged in willvarfar's particle patch 2011-07-06 22:23:51 +00:00
Mark Vejvoda b8bd927b7b - finally fixed the unit sorting hang bug, try it tomryen 2011-07-06 06:38:56 +00:00
Mark Vejvoda 15488ddb31 - bugfixes related to attack-boost memory leaks 2011-07-06 05:16:25 +00:00
Mark Vejvoda 1fd179196c - attempt to fix hang issue reported by tomreyn 2011-07-05 18:26:09 +00:00
Mark Vejvoda 2c80543889 - attempt to group command execution so units given the same command at the same time will work more smartly (closer units go first and so on) 2011-07-05 04:37: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 8b9d4a662a switch for non rotatable objets in tilesets; cleaned up the way the particles were bound to tileset objects 2011-06-22 20:26: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 38aa9c94fb - bugfix for units doing a build command where unit is > 1 size
- additional guards for null in miniupnpc calls
2011-06-02 05:05:54 +00:00
Mark Vejvoda e221011af2 - bugfixes so that the mingw compile builds 2011-05-24 22:51:45 +00:00
Mark Vejvoda 1085f24c6f - more updates to handle unicode (most of the focus was getting tools working in windows using non ascii file paths) 2011-05-23 19:23:00 +00:00
Mark Vejvoda 60b8093f5b - attempt to get non ascii file paths working in megaglest (Japanese etc...) 2011-05-18 21:49:11 +00:00
Mark Vejvoda 449e3f25c8 - updates to commondata handling. From now on commondata tag specified the commondata folder under a techtree making it easier to share data and portable since you just need to copy the techtree and its contents, this means no sharing data between techtrees (which is good since we don't want such dependencies) 2011-05-06 22:12:16 +00:00
Mark Vejvoda e34e70a0c8 - added code to merge duplicate sounds used in a techtree 2011-05-06 07:47:31 +00:00
Mark Vejvoda c258dc0822 - display which files contain the reference (the parents) to duplicate data in validation report 2011-05-05 20:18:38 +00:00
Mark Vejvoda 6492832c35 - added initial validation code to warn about duplicate data used in factions 2011-05-05 19:21:50 +00:00
Mark Vejvoda c3d1d6fca0 - add support for models, sounds and images to be able to load from commondata 2011-05-05 07:15:12 +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 bda831861a Stuff from pabs (debian games) round #1
- remove +x bit on many files that should not have it
- added gplv3 svg logo for completeness in svn
2011-05-03 07:58:59 +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 0abca7fb7a - bugfixes for clicking outside of the map co-ordinates
- show up to 5 descriptions for queued items when producing
2011-04-27 22:35:45 +00:00
Mark Vejvoda 47ef05ceed - attempt to improve pathfinder performance and lengthen max nodes to 900 2011-04-26 21:51:18 +00:00
Mark Vejvoda cb113514e1 - limit current resource amounts to max storage allowed at game start 2011-04-25 06:39:40 +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 4bce94fbbb - make messageboxes less alpha background so they are darker and easier to read (try it ultifd)
- made lag timeout max set to 35 instead of 65 since 35 is bad enough
- added another error check
2011-04-18 06:42:25 +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 a04557ee7f - set pathfinder values back to be compatible with beta2 2011-04-14 03:27:34 +00:00
Mark Vejvoda 9b91bf5c68 - modified lua method addConsoleText to look in scenario language file for text
- added new commandline options to display CRC values for various items (like maps, tilesets etc)
2011-04-09 06:20:43 +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
Titus Tscharntke c99fb68f5b selecting mining positions (and by this mining itself ) should be much better now 2011-03-29 21:44:36 +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
Mark Vejvoda 3ed636aae2 - fixes for some threading shutdown bugs
- We now display when a screenshot is taken in game showing an ingame console message
- Updated AI to attack closest attackers
- Updated found enemy to be closest attacker
2011-03-28 21:04:47 +00:00
Mark Vejvoda 3b56aa4475 - performance changes... (problem found by titi) most debug calls line are skipped when the debug flag is disabled even BEFORE getting into the handledebug method.
This improves performance VERY MUCH.
2011-03-28 03:54:23 +00:00
Mark Vejvoda 68f1ec06b5 - fix for harvesting workers to reset to original harvest location each time they deliver resources 2011-03-25 20:51:14 +00:00
Mark Vejvoda 0f6f5cfe21 - rolled back last change as it makes things worse 2011-03-25 20:17:14 +00:00
Mark Vejvoda 742cbaa1c7 - attempt to ignore resource cache for human players to see if this fixes harvesting location problems for human players 2011-03-25 20:07:27 +00:00
Mark Vejvoda 9681e7f1bc - initial code for managing mod content (downloads and removal of user data) 2011-03-25 10:11:16 +00:00
Mark Vejvoda 47a81f8b44 - performance improvements for units using the stop command when units are idle 2011-03-24 21:55:39 +00:00
Mark Vejvoda ab7dc1d007 - more code cleanup from things found in valgrind 2011-03-23 05:49:38 +00:00
Mark Vejvoda ffe957c9a6 - added a way to disable water sounds: DisableWaterSounds=true 2011-03-23 04:41:38 +00:00
Mark Vejvoda 6f523bb96a - small bit of code cleanup in unit_updater
- added alarmcount to debug view
2011-03-23 02:45:42 +00:00
Mark Vejvoda 41fc6f661e - rollback last change for testing 2011-03-23 01:17:38 +00:00
Mark Vejvoda 8a9505e1e8 - added conditional check to only issue a stop command to units if they are not already stopped
- memory cleanup on unit errors
- mutex for checksum class
2011-03-23 00:49:21 +00:00
Mark Vejvoda 6c9ba8bea4 - added more error details when some errors are generated 2011-03-22 17:55:11 +00:00
Mark Vejvoda 0379b7284d - removed requirement to have a newer libcurl, now most platform, should be able to build mg more easily (only require 7.16.4 or newer instead of 7.21.0) 2011-03-20 00:11:00 +00:00
Mark Vejvoda 97017b2f1f - added a new lua method to add text on the console for Elimnator's scenario. 2011-03-19 12:19:22 +00:00
Mark Vejvoda d21eeeae07 - lessen pathfinder max nodes to see if this gives better performance 2011-03-19 01:31:49 +00:00
Mark Vejvoda 505abbd1ec - observers now hear sounds from units of all team units in visible quad 2011-03-18 21:23:34 +00:00
Mark Vejvoda 07f56669b7 - attempt to see if threaded pathfinding will work and if it improves performance 2011-03-18 03:53:06 +00:00
Titus Tscharntke 6b31149754 Revert last change because this is not done now and I accidently checked it in. 2011-03-17 00:43:46 +00:00
Mark Vejvoda 7d38aec84a - new commandline options to discover and optional delete unused files in techtrees 2011-03-15 15:30:28 +00:00
Titus Tscharntke c54174061f particles have more switches: day/night visibility , alternating value , radiusBasedStartenergy ( can be disabled now! ) 2011-03-13 23:16:07 +00:00
Mark Vejvoda 39bf1b986e - added new commandline option to convert folders of g3d models to use specified texture format
- added new utility methods and changed code to use them (like adding trailing slash on paths)
2011-03-13 08:23:43 +00:00
Mark Vejvoda 819831a287 - misc logs and screenshots now also go in userdata folder 2011-03-10 17:31:55 +00:00
Titus Tscharntke 4874d31ddd hopefully fix for tileset particle related crash in windows; particles must be removed from objects before the particle manager is cleared 2011-03-06 22:50:04 +00:00
Titus Tscharntke 273ab4c502 Option to switch on/off tileset particles 2011-03-06 13:11:22 +00:00
Titus Tscharntke 792d0aa665 particles for tilesets ( too much rendered at the moment ) 2011-03-01 23:36:33 +00:00
Mark Vejvoda bced200dd1 - bugfix when bad values are in map file, game would freeze at game start due to endless loop 2011-02-25 22:13:11 +00:00
Mark Vejvoda c4795eb6cb - more fixing of map corner position actions causing memory access violations (this will further stabilize the code) 2011-02-25 04:15:22 +00:00
Titus Tscharntke 922df8e025 up to 36 units selectable; maps can set camera heigth now ( be careful with this for performance reasons! ) 2011-02-25 00:31:42 +00:00
Mark Vejvoda 4cb2485cdf - fixed meeting point crash on edge of map 2011-02-24 22:13:40 +00:00
Titus Tscharntke 25204e0084 I just removed an unneeded check 2011-02-24 20:14:12 +00:00
Mark Vejvoda 16c7316887 - initial attempt to enable pathfinder caching (think it might work now). Please test 2011-02-23 07:03:38 +00:00
Mark Vejvoda 53e8d96092 - removed printf 2011-02-23 00:00:44 +00:00
Mark Vejvoda 77fb1b6d15 - bugfix for building units at edges of maps 2011-02-22 23:59:21 +00:00
Mark Vejvoda 8d8ed75990 - bugfix for building units at edges of maps 2011-02-22 22:25:03 +00:00
Mark Vejvoda bd29260fef - Does this fix choppy network play? Please test and let me know 2011-02-21 01:34:31 +00:00
Mark Vejvoda b2ae0f3b7b - reverted morph to original code to see if this fixes out of synch (from muwums original change) 2011-02-20 00:04:57 +00:00
Mark Vejvoda 92ca6ba75d - attempt to see if this change corrects out of synch 2011-02-19 22:36:59 +00:00
Mark Vejvoda 7a5de218b7 - chasing down out of synch 2011-02-16 04:43:27 +00:00
Mark Vejvoda a0cfe3fa08 - a few changes and now seems to compile in VC++ 2010 (still need to checkin project files) 2011-02-15 23:53:48 +00:00
Mark Vejvoda 2357e2cfd1 - Titi, fixed the remove object so its done in the Object destructor (using an interface) 2011-02-15 04:34:19 +00:00
Titus Tscharntke a214fa87f5 clickable resources with display ; softcoder please look at unit_updater.cpp line 1032 2011-02-13 21:04:30 +00:00
Titus Tscharntke 62a2b7cc94 bugfix for target selection 2011-02-13 16:46:32 +00:00
Mark Vejvoda 91a56e7805 - another segfault bugfix for spawned attacks 2011-02-12 21:47:31 +00:00
Mark Vejvoda cc973f3427 - bugfixes, some related to things pointed out by valgrind, some from opengl research and some for more stable operation 2011-02-12 07:34:32 +00:00
Mark Vejvoda 34e95f5cd5 - streflop was disabled (likely when we switched to cmake). Turn it on for now but we need to investigate more thoroughly if we really need this? 2011-02-11 19:16:06 +00:00
Mark Vejvoda b5e4eb53d8 - added numerous guards around spawn code because we had a number of crashes from this code somehow tonight 2011-02-11 07:39:58 +00:00
Mark Vejvoda 2d76d348c7 - bugfix to put priority on attacking units first 2011-02-10 22:54:49 +00:00
Titus Tscharntke 91abdd3ed4 camera max height/ default are calculated based on the max height of a map 2011-02-10 00:14:21 +00:00
Titus Tscharntke e20162a3c4 cleaned up the cliff coding; hopefully really no more flickering now 2011-02-08 20:59:34 +00:00
Titus Tscharntke e03b029bea Cliffs work and some map cleanup; ( !!currently old maps are broken in editor!! ) 2011-02-08 03:50:59 +00:00
Titus Tscharntke e856d5e4f0 MuwuMs changes ( spawn attack and more ) 2011-02-06 18:33:49 +00:00
Titus Tscharntke f2caf186f9 step1 for cliffs; enable manually in map.cpp in Map::smoothSurface(...) ; set minCliffHeightDifference to 3.0f 2011-02-06 01:36:55 +00:00
Titus Tscharntke d7a65ed18e fix for updateAttackStopped and command queuing;
switching tilesets react with delay like switching maps; 
new/updated maps; 
reverted egypt mining slave model;
many loading screens for scenarios
2011-01-30 23:01:55 +00:00
Mark Vejvoda 4b085691df - added new LUA method togglePauseGame 2011-01-29 23:50:21 +00:00
Mark Vejvoda a5a6cf76d6 - updated some new lua commands 2011-01-29 17:52:53 +00:00
Mark Vejvoda 1a3545f8ab - cleaned up compiler warnings in g3d viewer
- added a bunch of new lua commands for 'da boys' to be documented after being fully tested.
2011-01-29 12:42:18 +00:00
Mark Vejvoda ab7cf4d22b - a cup of tea for m0llemeister (bugfix for observers to see attack particles) 2011-01-27 22:10:44 +00:00
Mark Vejvoda ff3bb353fc - bugfix for game over and player can see whole map causing out of synch in some cases. 2011-01-26 16:13:08 +00:00
Mark Vejvoda 66261ad662 - updated line endings to unix style characters to fix Bug #3085838 2011-01-20 15:56:30 +00:00
Mark Vejvoda 60b58eb44c - bugfix for multi-build segfault under special conditions (discovered today) 2011-01-20 07:56:02 +00:00
Mark Vejvoda c51eb0a3c4 - attempt to cleanup some debug logging to see if it helps restore normal performance 2011-01-17 16:31:25 +00:00
Mark Vejvoda 3dac5df814 - wacky vc++ compile bugfix, code was changed in other header files and now std::max fails! 2011-01-15 00:29:25 +00:00
Mark Vejvoda b778098d13 - bugfix for multi-build discovered during testing (left a break statement when shouldn't have) 2011-01-11 05:18:53 +00:00
Mark Vejvoda d301f5873d - bugfix for multi-build bug found by tomreyn (looks like an infinite loop) 2011-01-10 15:31:40 +00:00
Mark Vejvoda 1c78fca0fb - Added tileset and map CRC check in the network lobby
- numerous bugfixes
2011-01-09 04:49:21 +00:00
Mark Vejvoda 7347dc9545 - bugfix for multi-build queued commands 2011-01-08 21:53:05 +00:00
Mark Vejvoda a6cd69d9ed - a few bugfixes pointed out by tomreyn.. thanks 2011-01-07 04:32:41 +00:00
Titus Tscharntke d09d29f520 new default settings for ultra/easy/mega ; dansk.lng up to date ; code cleanup 2011-01-02 12:18:14 +00:00
Titus Tscharntke 41899507a9 better performance for attack warnings ( old code is just commented, will be removed after testing in multiplayer ) 2010-12-29 18:23:54 +00:00
Mark Vejvoda 89a6ae3fe4 - updated win32 vc++ files to compile with new ftp server / client 2010-12-29 16:28:46 +00:00
Mark Vejvoda 33aa51b5b5 - if we cannot put the unit in a cell because it is already occupied do not cancel the existing command 2010-12-28 02:24:54 +00:00
Mark Vejvoda 335749a15e - updated hp regeneration method to look for negative hp regen values and if health ticks below 0 the unit dies 2010-12-28 02:17:44 +00:00
Mark Vejvoda 81783e3f1b - bugfix for multi-build, now units look for best cell to build but ALSO that the cell is not occupied by another unit 2010-12-26 04:38:03 +00:00
Mark Vejvoda bf8be83ccc - bugfix for fog of war enabling at game end.. now works properly for Winning teams, not just losing teams. 2010-12-25 21:30:54 +00:00
Mark Vejvoda da1adab808 - bugfixes for fog of war enable at game end
- Added more safety guards in threaded sockets in case this causes problems when things get very busy in the game during monster battles
2010-12-25 08:14:35 +00:00
Titus Tscharntke a3e0ae890b removed unnecessary alarm checks 2010-12-24 10:03:17 +00:00
Mark Vejvoda 03eaa2c033 numerous important bugfixes:
- observers and end game fog of war enable would most likely cause out of synch, I think its fixed now
- better handling of threaded logging
- cleanup of socket thread processing to ensure all network packets get processed properly and in order
2010-12-24 08:43:09 +00:00
Mark Vejvoda 554a03279e - commented out assert is it should be handled by the map logic 2010-12-23 20:22:40 +00:00
Titus Tscharntke cfba817280 dansk language; fix for fog of war off; command queuing works a bit better ( especially when attacking ); 2010-12-23 10:44:11 +00:00
Titus Tscharntke df583854c3 only attack warnigs for local players teammates, not for every fight out there! ;-) 2010-12-21 23:15:29 +00:00
Titus Tscharntke 43eb95f1b4 italien translation; Multiattack warnings ( with setting AttackWarnRange ) 2010-12-21 15:55:37 +00:00
Titus Tscharntke 45a3601286 you can attack teammates again; fix for attack queuing, units don't walk to dead bodies if next attack command is in queue ; 2010-12-20 20:01:14 +00:00
Titus Tscharntke fa952efaf9 next try 2010-12-19 23:58:16 +00:00
Titus Tscharntke 39eefa1e67 trying to fix problems with false attack alarms ... 2010-12-19 23:31:11 +00:00
Titus Tscharntke 5ea9cd092a visual attack alert 2010-12-19 22:33:08 +00:00
Mark Vejvoda f204d4445c - added a new bit style gamesetting flag for future new game settings.
- added ability to see map resources but still keep fog of war (GAE's shroud of darkness), but not activated by UI yet, tested and works
2010-12-19 08:04:25 +00:00
Mark Vejvoda 1c51b6c21d - code cleanup 2010-12-19 03:30:17 +00:00
Mark Vejvoda 3e83cb54f7 - used wrong enum value 2010-12-19 02:06:24 +00:00
Mark Vejvoda 5c0ebc04b1 - attempt to fix the following assertion failure:
glest.bin: /home/softcoder/Code/megaglest/trunk/source/glest_game/world/map.cpp:833: void Glest::Game::Map::putUnitCells(Glest::Game::Unit*, const Shared::Graphics::Vec2i&): Assertion `getCell(currPos)->getUnit(unit->getCurrField()) == __null' failed.
2010-12-19 02:04:16 +00:00
Mark Vejvoda 1f52a65679 - attempt to fix the following assertion failure:
glest.bin: /home/softcoder/Code/megaglest/trunk/source/glest_game/world/map.cpp:833: void Glest::Game::Map::putUnitCells(Glest::Game::Unit*, const Shared::Graphics::Vec2i&): Assertion `getCell(currPos)->getUnit(unit->getCurrField()) == __null' failed.
2010-12-19 01:24:37 +00:00
Titus Tscharntke 886bd3b37e alarmsound when enemy units are seen ( will be improved soon ) 2010-12-18 20:17:41 +00:00
Mark Vejvoda 5e410f3066 - bugfix for turning off fog of war on network games when players are dead. Now we DO NOT turn off fog of war until ALL of the players units are dead. 2010-12-13 23:24:03 +00:00
Mark Vejvoda 8918b11320 - added an invlaid value check to the units field 2010-12-12 00:46:13 +00:00
Mark Vejvoda 045c2f95e8 - added new commandline options to tell the game where to look for data, ini's and where to write logs 2010-12-09 20:41:11 +00:00
Mark Vejvoda 15aab7a581 - some intial changes to support cross-compilation under mingw 2010-12-04 23:19:43 +00:00
Mark Vejvoda 8deec8d518 - changed debug world synch formatting so on xplatform we don't have issues with filename and other header tag items 2010-12-01 23:38:03 +00:00
Titus Tscharntke 42ebe42155 new tileset fernland
removed annoying debug of resource multiplier
fixed resource multiplier display in connected menu
2010-12-01 21:18:29 +00:00
Mark Vejvoda b02da7d1e0 - finally found and fixed out of synch related to AI.
- added ability to log all unit activity to world synch logfiles so we can diff game info from different network clients
2010-11-30 23:32:39 +00:00
Mark Vejvoda ca2408073e - disabled more caching to determine if any of these caches cause out of synch 2010-11-28 03:35:44 +00:00
Mark Vejvoda ab966d7872 - added map cell checks back but output to error log only (and assert for debug mode) 2010-11-28 03:21:20 +00:00
Mark Vejvoda ee249b8878 - commented out another possibly bad assert /exception 2010-11-27 08:23:45 +00:00
Mark Vejvoda 4e36b4c30c - commented out what seems to be a bad assert / exception check 2010-11-27 07:11:54 +00:00
Titus Tscharntke ede8977aff switched resourcemultiplier to int (using the index now) and added some debug output for testing. 2010-11-25 22:45:08 +00:00
Titus Tscharntke c2c9cc0044 endgame stats screen shows multiplier now for CPU players
you cannot switch unvisible resource multiplier any more
2010-11-11 21:41:13 +00:00
Mark Vejvoda cc4f268988 - some additional AI caching for improved performance 2010-11-11 08:02:50 +00:00
Titus Tscharntke 99c70d301a resource multiplier only for cpu players.
new resource multiplier defaults for cpu player
resource multiplier only active in advaced options
scenarios can use a new attribute resource_multiplier to setup games
2010-11-11 01:24:48 +00:00
Titus Tscharntke c3b96ec722 mega/ultra cpu still used its old multiplier ... fixed 2010-11-09 22:51:19 +00:00
Mark Vejvoda d89953ee96 - improved performance and bug fixes. 2010-11-09 09:06:52 +00:00
Titus Tscharntke 2440d475b3 beginning of new resource multiplier. Still work in progress but hopefully ready to test some things. 2010-11-08 23:15:50 +00:00
Mark Vejvoda 9d9fa0deeb - improved performance for when the AI decides which resource is closest. 2010-11-07 03:27:06 +00:00
Mark Vejvoda ca9cbc6e75 - removed some debugging that created very large debug files and improved performance a little bit 2010-11-07 02:37:00 +00:00
Mark Vejvoda 9e55d8e46b - added a small cache to improve pathfinding a bit
- added logic to IGNORE the following characters when doing CRC checks in XML files
 (space,tab,CR,LF)
2010-11-07 01:06:14 +00:00
Mark Vejvoda 6312c0ec60 - bigfix for last checkin 2010-11-03 21:53:49 +00:00
Mark Vejvoda d91bd593e8 - added more info related to ultifds error message to see what triggers the issue 2010-11-03 21:43:37 +00:00
Mark Vejvoda 9978cbeff5 - added some initial work to support FBO (frame buffer objects)
- added many NULL check guards throughout the code
- added a safe mutex around ptr access of background thread on custom menu
2010-11-01 16:44:05 +00:00
Mark Vejvoda dfedf2259b - numerous bugfixes to building an d repairing units.
- added new unit cell property called allowEmpty to allow units to build other units with cellmaps that have all 0's (since you can produce these types of units anyways)
2010-10-30 08:54:00 +00:00
Mark Vejvoda 060a9d3fe6 - disallow air units to morph back to land if unwalkable objects or water terrain are below 2010-10-30 04:49:49 +00:00
Mark Vejvoda dec9dfe653 - added new attribute for tileset objects named "height". Air units will try to fly above the height of units and objects now (up to a max of terrain height + 15) 2010-10-30 04:05:48 +00:00
Mark Vejvoda de3a92081d - a bunch of in progress work related to texture compression and more timely texture memory management cleanup. For now to test texture compression use the following ini setting: EnableTextureCompression=true 2010-10-28 00:51:25 +00:00
Mark Vejvoda c47b6c676c - attempt to further improve pathfinder performance when MANY units are on the map 2010-10-26 06:43:42 +00:00
Mark Vejvoda 112bfd4445 - commented out debug code 2010-10-24 02:16:44 +00:00
Mark Vejvoda e53e6b49a9 - bugfix for multiple consumable resources applying incorrectly during the update interval. (thanks silnarm) 2010-10-22 22:52:37 +00:00
Mark Vejvoda b72124a89a - bugfix for segfault (using wrong index variables again). This time I understand what to change and what not to change :) 2010-10-22 17:29:23 +00:00
Mark Vejvoda c088889e7c - bugfix to retain proper team color based on actual slot position, regardless of how many closed slots there are. Yay, now team placement and color works properly 2010-10-22 08:10:56 +00:00
Mark Vejvoda b869552cad - a little bit of fine tuning the new unit harvesting logic, now units are more intelligent about how they harvest (both AI and Human players) 2010-10-22 04:48:24 +00:00
Mark Vejvoda 07fe6a2196 - added to the faction resource cache pool for even better AI discovery of resources 2010-10-21 20:31:09 +00:00
Mark Vejvoda ae367fb252 - updated to units harvesting so they try to harvest different resources when blocked if other resources are close by. 2010-10-21 19:26:14 +00:00
Mark Vejvoda 93e56df3d6 - fixed some misc code bugs (incorrect assignment) and cleaned up some compiler warnings 2010-10-21 01:07:11 +00:00
Mark Vejvoda bc7ba297fd - more tweaking for units harvesting, this hopefully cleans up segfaults and makes things more stable. 2010-10-20 20:40:29 +00:00
Mark Vejvoda 6104dedc76 - added a resource harvest success cache for stuck units to look at when they cannot harvest. 2010-10-20 07:28:27 +00:00
Mark Vejvoda ddb4c42bf5 - added some guard conditions to avoid segfault when resources are harvested quickly 2010-10-19 22:47:45 +00:00
Mark Vejvoda 913df7ec3b - added more cached information to help deal with units getting stuck while harvesting. Trying to keep them busy instead of standing around. 2010-10-19 22:26:49 +00:00
Mark Vejvoda dda594cf33 - a slight change in dealing with units getting stuck while harvesting. Trying to keep them busy instead of standing around. 2010-10-19 16:54:48 +00:00
Mark Vejvoda 182f2cd20d - bugfixes to AI where workers harvesting think they have arrived but really did not. 2010-10-19 04:38:55 +00:00
Mark Vejvoda 3d4ccb460c - added a little extra logic for units when pathfinding. We keep temporary lists of bad cells of harvest resources where a unit simply cannot get to. This is kept for small periods of time and then the bad cell list is purged when data gets old. This tremendously helps units to be more active when getting stuck in challenging places on maps. 2010-10-17 08:50:27 +00:00
Mark Vejvoda 0d050f62d4 - added code to now output all eerors to console (with option to save in log file)
- added more LUA debug info
2010-10-06 20:22:06 +00:00
Mark Vejvoda 5ecda82be0 - bugfix for allowing players to view map at game end for network games 2010-09-30 00:49:57 +00:00
Mark Vejvoda c300905d70 - a better attempt to fix the issue with multi-build where the repairers stop repairing 2010-09-28 19:52:31 +00:00
Mark Vejvoda c3fc45995c - an attempt to fix the issue with multi-build where the repairers stop repairing 2010-09-28 15:22:04 +00:00
Mark Vejvoda b836bf0039 - turned off staggered faction updates (can toggle via ini setting: StaggeredFactionUpdates)
- added more debug info for resource depletion
2010-09-17 04:00:48 +00:00
Mark Vejvoda 7e7c7216a5 - fixed screen flickering of fog of war texture when staggered updates is enabled. 2010-09-15 23:32:29 +00:00
Mark Vejvoda c295697aba - added map preview on custom game menu 2010-09-12 05:05:08 +00:00
Titus Tscharntke 729bd23f58 improved box selection ( much better regarding performance now and updates selection without moving the mouse ) 2010-09-10 12:15:21 +00:00
Mark Vejvoda 0783b23e12 - bugfixes for rendering (new ini setting toggles new quad cache and is called: UseQuadCache=true) 2010-09-10 08:51:32 +00:00
Mark Vejvoda 2c1b6b6304 - added a caching system for rendering game entities 2010-09-10 00:28:14 +00:00
Mark Vejvoda d806e7f9ff - a few more performance optimizations and logging changes 2010-09-09 05:42:19 +00:00
Mark Vejvoda 77eadd7710 - attempt to improve explorecells usage when each unit is signalled to move 2010-09-09 01:44:25 +00:00
Mark Vejvoda ab44c83168 - added leak_dumper header all over the place (not yet functional in linux)
- Bugfix for particle cleanup
2010-09-07 05:25:40 +00:00
Mark Vejvoda 5fdbce7651 - commented out a debug line that gets called a ZILLION times and grows the logfile too much 2010-09-06 20:52:53 +00:00
Mark Vejvoda aca497781c - attempt to correct final issue with multi-build 2010-09-06 05:34:55 +00:00
Mark Vejvoda 8f0894e0c9 - last minute bugfix for fog of war for observers 2010-09-04 01:32:50 +00:00
Mark Vejvoda e93ac6d756 - changed observer faction to use a special team # and fog of war is auto turned off for this special team #. 2010-09-04 00:32:56 +00:00
Mark Vejvoda 358d61aa38 - first attempt to add a special builtin Observer faction to allow people to observe games 2010-09-03 07:12:40 +00:00
Mark Vejvoda 8b681e1cb9 - more bugfixes for multi-build. Added extra check for repairer / builder swap so that old builder who became a repairer will not try to start building when another unit already took over. 2010-09-02 05:38:49 +00:00
Mark Vejvoda d6d1fe2add - bugfixes for multi-build. Now the other units are checked that they can not only build but repair too. Also those who repair now try to approach from the best angle as well as the builder. 2010-09-01 04:19:20 +00:00
Mark Vejvoda ca49e0ba68 - attempt to fix multi-build 2010-08-31 23:14:15 +00:00