Commit Graph

66 Commits

Author SHA1 Message Date
SoftCoder 588ec21d8a - more cppcheck cleanup, AND some new inernal steam commandline parameters to reset stats and enable debugging 2017-10-09 23:09:52 -07:00
SoftCoder 865a665bf0 - round 2 of cppcheck code cleanup 2017-10-09 20:21:14 -07:00
SoftCoder 26581a77d2 - first round of cleanup from cppcheck report 2017-10-09 19:09:36 -07:00
titiger dbee447a9a eventSdlKeyDown
Give the real SDL_KEYDOWN to the Window/Program states.
This fixes issues with group keys and SDL2.
2015-10-30 01:04:01 +01:00
SoftCoder 76d41dfc09 - attempt to see if IRC chat works better with sdl2 textinput 2015-10-24 09:02:23 -07:00
SoftCoder d80ca9e0b2 - for now make fullscreen mode ONLY use desktop resolution, all other tries seem buggy in SDL2 2015-10-04 20:34:54 -07:00
SoftCoder 8e439a2325 - got sdl2 branch compiling and game loads 2015-09-28 23:28:11 -07:00
Mark Vejvoda 9625bd77a4 - attempt ot get fine details of performance bottlenecks
- attempt to improve performance a bit
2013-11-11 08:28:15 +00:00
Mark Vejvoda 9b097fd911 decouple masterserver from network host game settings into two seperate threads 2013-11-07 18:39:08 +00:00
Mark Vejvoda 8bbcdfbdb3 attempt to have mg shutdown cleanly when opengl version is too low 2013-10-28 18:27:51 +00:00
Mark Vejvoda 62c82ad9bc - allow the --connecthost commandline to use:
--connecthost=auto-connect
which will auto connect to the first found server on a lan
2012-10-06 00:25:13 +00:00
Mark Vejvoda 74cca86b3f - added new commandline option --connect=x:y format as requested 2012-09-25 21:52:23 +00:00
Mark Vejvoda 1c211e4ce6 - lots of code cleanup from the cppcheck 2012-09-22 20:13:57 +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 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 9286130138 - bugfixes and code cleanup found using cppcheck 2012-03-28 06:25:57 +00:00
Mark Vejvoda 3eeb1ddea4 - added option to specify which game to load when loading a saved game.
- added a hotkey to save games any time during game play (F11). This saves files with a timestamp
- we now keep track of the last game the user saved and if commandline does not specify a game to load it uses the last saved game
2012-03-15 15:57:21 +00:00
Mark Vejvoda e3fde99359 - fixed gamma correction so it works now
- added more state when loading saved game
2012-03-13 01:34:14 +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 246f4b326f - attempt to see if threaded client network receive improves performance (ThreadedNetworkClient=true to enable on a client) 2012-03-03 23:59:44 +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 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 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 b10c489418 just for you tomreyn (fade sound on application exit) 2011-10-21 22:07:34 +00:00
Mark Vejvoda 0cf03a3562 - added option to quit headless server after game has completed:
./megaglest --headless-server-mode=exit
2011-09-27 18:44:01 +00:00
Mark Vejvoda 2a86cb4f7d - added support for proper quiting and console input/output in headless mode. Type: quit followed by return into the console to properly shutdown in headless mode. 2011-09-27 10:16:09 +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 4df997d0ca - initial work for a headless server. Currently this code allows you to launch a server with the commandline option: --masterserver-mode
The first client that connects to the server is the administrator and is able to change most settings and launch the game. Still lots of work to do but this is a start.
2011-09-24 07:46:56 +00:00
Mark Vejvoda 8f0db3e30d - added new commandline option --map-preview=x where x is the mapname (without extension) 2011-09-16 00:34:14 +00:00
Mark Vejvoda ec15c81d12 - added a FPS cap (at 800 fps we will sleep for 1 millisecond) to avoid pinning the cpu for hardware that has fps which is too good. Also user can toggle fps view on any screen now 2011-07-01 02:50:20 +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 2bab37fdc0 - bugfix so that openal 1.13 works properly with megaglest
- added some code so we can show error messages when no menu item is active
2011-04-09 01:22:39 +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 0f915ae6a6 - better handling of sound system reset when clicking ok in options menu 2011-03-27 15:55:55 +00:00
Mark Vejvoda b8075eaf01 - added code to rename duplicate maps and show a warning at game start 2011-01-31 21:59:28 +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 2b1732e27e - overhaul of thread processing, especially in the menus, things now freeze much less and should be more reliable 2011-01-02 06:46:48 +00:00
Mark Vejvoda 896b1c308c - added a backtrace for gcc compiled binary when we get a runtime error.
- added more out of synch checks and better error handling
2011-01-02 00:39:13 +00:00
Mark Vejvoda f897884321 - fixed problem where custom menu was setting broadcast to master server when loading last game from commandline even though publish was not enabled. 2010-10-30 04:24:26 +00:00
Mark Vejvoda e0d338b583 - added more texture compression supported types
- some in progress work related to texture reloading
2010-10-29 16:27:22 +00:00
Mark Vejvoda c87e27eabd - added an average renderfps to use when toggling shadows off/on to make it more smooth
- added a new commandline to autostart a new game with the last game settings you played called: 
--autostart-lastgame
2010-10-02 02:17:50 +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 ab42ca7ace - added new commandline option to auto-load a scenario:
--load-scenario=x
- added support for a special faction preview texture when faction preview is enabled
2010-09-01 06:05:28 +00:00
Mark Vejvoda 4ee98e7155 - some changes to the explorecells cache for less memory and better performance.
- updated performance logging to more easily find things in the log
2010-08-24 23:15:33 +00:00
Mark Vejvoda a5bf684493 - more network fixes to make lag and disconnects more stable
- changed the way the game end logic happens to try to make it more stable
2010-08-07 04:49:06 +00:00
Mark Vejvoda 860b00df44 - a better attempt to safely end games and hopefully fix the delete cells bug once for all 2010-08-04 18:49:11 +00:00
Mark Vejvoda 5686e8657c - fixed special keys to be ignored also in menus when in chat mode 2010-07-29 15:49:06 +00:00
Mark Vejvoda 8feaebb503 - added caching for computeVisibleQuad
- fixed bug when in chat mode and the deub view toggle key was intercepted
- added less than operators
2010-07-29 05:24:51 +00:00
Mark Vejvoda ab655162cb - added more bug fixes related to network disconnects.
- Added a new global message box to display error messages on top of any graphics window being displayed.
2010-07-08 08:29:51 +00:00
Mark Vejvoda 9b2b544b84 - fixed mouse cursor position problrm at game startup 2010-06-25 00:45:46 +00:00