Commit Graph

2967 Commits

Author SHA1 Message Date
Mark Vejvoda ae91368a99 - memory leak checker fixed a few issues 2012-04-16 16:57:10 +00:00
Mark Vejvoda 1403a3fe44 - fixed a memory leak and fixed a segfault in a thread class 2012-04-16 15:46:22 +00:00
Mark Vejvoda a37dc8a7b3 - fix headless server crash due to new call to setgama in headless mode
- a few code optimizations to start to improve performance
2012-04-16 06:14:10 +00:00
Titus Tscharntke f612707849 "PleaseWait"-message while calculating all CRCs in mod menu. 2012-04-16 00:15:11 +00:00
Titus Tscharntke fe59fe8703 Bugfix: particles are also colored with daylight effect if they are created. ( if isDaylightAffected is set ) 2012-04-15 22:38:41 +00:00
Mark Vejvoda 5cfb7e85d5 - Added stack traces to win32 build when we detect an error 2012-04-14 22:48:49 +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
Titus Tscharntke ed201fa5d3 "save game" in ingame menu( I don't know how a quick "load last saved game" ould work from ingame menu :-/ ) 2012-04-13 23:13:02 +00:00
Mark Vejvoda 7f0b439d5d - some initial work for pathfinder changes (nothing enabled yet)
- added savegame info for network games to start thinking about how to allow players to reconnect to a network game.
2012-04-13 20:20:40 +00:00
Mark Vejvoda c83cfc6e03 - bugfix to save server ip's in join menu 2012-04-13 19:37:52 +00:00
Mark Vejvoda 9aca26a0f0 - bugfix for unit selection segfault on game exit
- added thread hardening to try to ensure we never try to delete a thread more than once.
2012-04-12 20:43:19 +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 80e1e45ba8 - bugfix for over-riding irc channel and server 2012-04-12 06:03:21 +00:00
Titus Tscharntke f495a41a05 Extra option for menu rain effect ( needs update in language files german/english done ) 2012-04-11 22:19:50 +00:00
Mark Vejvoda cd5bce3b91 - removed configurator from cmake file
- applied libircclient patch from forums 'the Chakra project'
2012-04-11 18:58:38 +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 7328875160 - bugfix for rain effect, now dynamically turns on/off when toggled in menu and hopefully fixes strange water splash bug 2012-04-11 05:18:00 +00:00
Mark Vejvoda ac015c8819 - fixed hp and ep regeneration so they can use negative values. 2012-04-11 04:48:36 +00:00
Mark Vejvoda a72fc4e341 - removed configurator from the build and installation, it is deprecated 2012-04-10 02:12:16 +00:00
Mark Vejvoda 2ab041813f - code cleanup based on cppcheck report 2012-04-05 03:53:59 +00:00
Mark Vejvoda 83d2474ded - bugfix animated particle model logic 2012-04-04 23:43:31 +00:00
Titus Tscharntke 4aae520da6 Highlighting rendering without cycling through all units each frame ... 2012-04-04 22:57:32 +00:00
Mark Vejvoda c1f617481e - bug fixes for load saved game (now fixes loading on windows) and corrects memory bug for loading saved games on all platforms. 2012-04-04 15:36:09 +00:00
Titus Tscharntke 6c12bfbec8 Improved resource object selection implementation which allows highlight effects now too.
Generally changed highlight effect to something more obvious
2012-04-04 00:30:16 +00:00
Mark Vejvoda 6e66963664 - added validate-tileset 2012-04-03 19:35:22 +00:00
Titus Tscharntke 1df365d697 I removed the automatic game pausing when message are shown because I don't like it ( sc does not like it at all so ... ). Still auto-pausing while showing menues ingame in singleplayer. 2012-04-03 00:32:52 +00:00
Titus Tscharntke 8c6dde365b mouse pointer shows multi click command state 2012-04-02 23:37:03 +00:00
Titus Tscharntke 42b289fe1e cursor work in progress ... ( for tomreyn and me to test ) 2012-04-02 22:17:10 +00:00
Mark Vejvoda a23a9396c2 - added new over-ridable minimum spacing between buildings for the AI player 2012-04-02 16:11:13 +00:00
Mark Vejvoda d16396db0a - more save / loadgame bugfixes 2012-04-02 15:17:31 +00:00
Mark Vejvoda 5b5d753341 - bugfixes for save / load game bugs reported 2012-04-02 15:02:44 +00:00
Mark Vejvoda f80e440713 - added a bunch of new commandline commands to display lists of different kinds of installed game data:
--list-maps
--list-techtrees
--list-scenarios
--list-tilesets
--list-tutorials
2012-04-02 06:07:32 +00:00
Mark Vejvoda 0254f8a507 - added ability for 'air' and 'land' to be internationalized in the lng files:
FieldAir=Air
FieldLand=Land
- next step is to make a way for tilesets to have lng files (like scenarios)
2012-04-02 02:07:32 +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
Titus Tscharntke 7f0aaebf50 XML option to hide a resource from the HUD 2012-04-01 19:42:59 +00:00
Titus Tscharntke 874b1a5049 In non network games the game is paused automatically if a menu/message is raised. I am not sure if I should do this for scenario messages too? 2012-04-01 18:23:26 +00:00
Mark Vejvoda 3d386936dc - updated loading games to translate tutorials and scenario paths 2012-03-31 20:58:33 +00:00
Mark Vejvoda 74910ea0b2 - bugfix for loading saved scenario 2012-03-31 20:33:56 +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
Mark Vejvoda 31f0c18653 - better error handling in menus 2012-03-31 08:28:42 +00:00
Mark Vejvoda c73244ca92 - fixed bug for network scenarios where first slot is not human (closed network slots) 2012-03-31 06:05:20 +00:00
Mark Vejvoda 030582c1ef - added a new EnumParser class to convert enum to string and vice versa
- factions can now customize some more of the AI behavior
2012-03-31 05:54:24 +00:00
Mark Vejvoda 53d0204cb9 - bugfix network messages 2012-03-31 00:52:43 +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 bb44cfdb7b - cleaned up some constants in prep for allowing override of more things in the AI 2012-03-30 21:56:15 +00:00
Mark Vejvoda fa31fed5bd - updated to add isGameOver 2012-03-30 14:48:54 +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