Commit Graph

70 Commits

Author SHA1 Message Date
titiger
dbddadc74b Fix to see normal consoleMessages in many menus again
(+ consolemessages to show that the headless server did 
not had the selected map )
2014-10-31 01:08:12 +01:00
SoftCoder
2c788e074a - fix auto loading scenario from commandline 2013-12-30 12:19:10 -08:00
SoftCoder
5c90b9148c - bugfix for saving / loading booleans in a lua table 2013-12-30 09:28:25 -08:00
SoftCoder
fda53f47d1 - bugfix for loading scenarios with their own techs
- all scenario errors are now caught and shown in a messagebox and game can continue.
2013-12-30 02:01:47 -08:00
Mark Vejvoda
ceb799a66e - attempt to ensure color picking ALWAYS has unique colors
- better handling of scenario's that are missing techtrees
2013-11-24 04:44:12 +00:00
Mark Vejvoda
ab64b9343f - updated to support building with clang compiler (And cleaned up clang warnings from initial compile). Edit build-mg.sh and read the clang section as to how to build. 2013-11-19 21:57:28 +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
8ea6235495 ensure pre cache crc thread does not interfere with running game 2013-11-10 19:47:04 +00:00
Mark Vejvoda
2c452d3587 attempt to use per faction mutexes for safer pathfinding 2013-11-08 22:41:17 +00:00
Titus Tscharntke
7224f134c7 hotkey support for scenario list boxes 2013-11-05 21:25:51 +00:00
Mark Vejvoda
d2ba7b163b a little refactoring of function names in language class 2013-10-29 06:13:38 +00:00
Titus Tscharntke
c4b6bee52b new scenario menu layout
displays folder and translated names of scenarios.
2013-10-23 23:20:13 +00:00
Mark Vejvoda
f344aac3f8 - load-scenarios now alsways takes physical folder name of the scenario 2013-09-19 06:56:50 +00:00
Mark Vejvoda
831bbda6c9 better error handling for game / scenario loading problems (like bad xml) 2013-05-28 15:42:54 +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
c55b9c3ffe code cleanup based on cppcheck results 2013-05-17 05:01:23 +00:00
Mark Vejvoda
dc27d02972 bugfix to not crash when loading corrupt scenarios 2013-05-03 06:03:54 +00:00
Mark Vejvoda
c0fe242504 - allow for translated names to be shown for tutorials and scenarios in selection menu 2013-02-12 02:10:00 +00:00
Mark Vejvoda
50e64e9564 - scenario description patch applied from Muwuum 2013-02-09 07:17: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
7c0e10684a - added lua functions to add / remove cell markers:
addCellMarker(0,'test from scenario!','',cellMarker)
param1=factionindex
param2=cell hint
param3=empty string
param4=cellPosition

removeCellMarker(0,{46,13})
param1=factionindex
param2=cellPosition
2012-09-25 07:05:52 +00:00
Mark Vejvoda
bec8df9feb - made another debug statement only show in verbose mode 2012-07-18 16:01:19 +00:00
Mark Vejvoda
9583307022 - cleanup of debug code 2012-07-18 01:01:24 +00:00
Mark Vejvoda
32bda64045 - added more error checking in scenarios 2012-07-18 00:54:47 +00:00
Mark Vejvoda
6c211970e3 - added more error checking in scenarios 2012-07-18 00:50:14 +00:00
Mark Vejvoda
9fb1f06d5e - added more error checking in scenarios 2012-07-18 00:43:46 +00:00
Mark Vejvoda
2b0e9e40d3 - added more error checking in scenarios 2012-07-18 00:35:39 +00:00
Mark Vejvoda
9a54f30e86 - added more error checking in scenarios 2012-07-18 00:12:42 +00:00
Mark Vejvoda
4d97c80561 - added more error checking in scenarios 2012-07-18 00:04:24 +00:00
Mark Vejvoda
51d56926cc - return to previous menu when tutorials / scenarios are empty 2012-07-03 00:26:27 +00:00
Mark Vejvoda
76606fbdbe - allow loading of scenarios and tutorials when there are none (show an error message) 2012-06-30 19:11:54 +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
1ac9aa6d3f - fixed xml loading via rapidxml for some scenarios that had embeddex xml comments in lua
- added automation abilities for automated testing with automated saved games
2012-03-17 08:20:17 +00:00
Mark Vejvoda
510ee7dfff - bugfixes for loading XML and not dropping newlines
- started work on trying to save lua state (global variables only)
2012-03-15 20:48:27 +00:00
Titus Tscharntke
9870c13a6b GraphicMessageBox can handle multiple buttons now 2012-02-19 17:37:53 +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
22c8881902 - update fonts for console when language is toggled 2011-11-03 23:38:43 +00:00
Mark Vejvoda
50adfb3305 - added ability to switch languages from nearly anywhere (and new hotkeys to do so):
CTRL+L shows language popup selection, CTRL+SHIFT+L toggles to next language automatically
2011-10-25 18:39:11 +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
da57a589ba - more progress on masterserver, now the masterserver does not take a slot! 2011-09-24 21:07:15 +00:00
Mark Vejvoda
57afc2d715 - phase 2 of cppcheck verbose fixes 2011-09-01 01:11:23 +00:00
Mark Vejvoda
945c2aa66b - some font bugfixes (use proper fonts in menus and also proper spacing in console) 2011-06-28 00:51:13 +00:00
Mark Vejvoda
4b6bc7a4a7 - loads of changes in order to prepare for better input (not using char but SDLKey instead) 2011-06-26 01:55:08 +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
6e8157b9de - added console object to base menustate and added a way to disable console output when taking a screenshot (on be default). To Disable:
DisableScreenshotConsoleText=true
2011-04-15 01:05:36 +00:00
Mark Vejvoda
6384c4c611 - bugfix for auto-loading scenarios, new timer for the scenario preview was being called when the menu was already destroyed sometimes. 2011-04-03 02:11:45 +00:00
Mark Vejvoda
e56b6079c6 - added new menu option to be able to toggle texture compression
- scenario menu now does NOT cache textures
2011-03-31 01:34:01 +00:00
Titus Tscharntke
2a48f8e290 delayed loading of previews 2011-03-31 00:33:40 +00:00
Mark Vejvoda
a3029e6e25 - updated lua attribute to additionally accept:
<fog-of-war value="explored"/>
2011-03-30 23:48:27 +00:00
Mark Vejvoda
438bedd4fa - now show scenario logo files when user selects a scenario with a loading screen 2011-03-30 22:14:51 +00:00