Commit Graph

320 Commits

Author SHA1 Message Date
Mark Vejvoda
ec554ffffb - do not init SDL's video subsystem in headless mode 2011-09-27 10:25:31 +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
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
5a79cad34b - do not load models or sound files in headless server mode 2011-09-26 05:29:52 +00:00
Mark Vejvoda
f5c7eff49c - more bugfixes for headless server mode, attempt to fix crash when switching info fast and avoid render on battle end on server. 2011-09-26 04:50:13 +00:00
Mark Vejvoda
9cd6355733 - some bugfixes for headless mode:
- don't render anything
  - disable sounds in headless mode
(still need to add code to see if we can avoid loading models and graphics to make memory usage much smaller)
2011-09-25 23:57:42 +00:00
Mark Vejvoda
da8e9d2af0 - changed commandline parameter to: --headless-server-mode 2011-09-25 05:46:51 +00:00
Mark Vejvoda
f0b795377b - when masterserver game is over go right back to custom game lobby 2011-09-24 20:22:47 +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
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
d44959d69c - phase 1 of cppcheck verbose fixes 2011-08-31 23:10:43 +00:00
Mark Vejvoda
0d14688a87 - by request added an option for modders to 'hide' duplicate files during validation 2011-07-09 19:28:01 +00:00
Mark Vejvoda
fc17d1410e - replaced --use-video-settings with broken out simpler parameters as per tomreyns request 2011-07-08 23:14:26 +00:00
Mark Vejvoda
cb98df354d - pre-calc font height for ftgl and optionally allow for language specific characters to be used 2011-07-02 18:33:59 +00:00
Mark Vejvoda
50347b0a66 - cleanup of font work:
- removed uneeded code
  - set default scale font value to 0.8 to fit nicely on screen
  - added two new optional settings for ini or lng files to control scale and y centering:
  FONT_SCALE_SIZE=0.8
  FONT_SCALE_CENTERH_FACTOR=3.0
2011-07-02 01:56:06 +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
Titus Tscharntke
baea45cae8 no fun with fonts 2011-06-29 23:48:48 +00:00
Mark Vejvoda
f5b15bd402 - bugfix for filtering out non printable keys 2011-06-28 01:25:14 +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
545abe93d6 - bugfix for commandline for setting video settings (fullscreen was interpreted in the opposite manner) 2011-06-14 21:35:21 +00:00
Mark Vejvoda
f0c636d2ff - render battle end screen to texture buffer on first render so it takes less fps to render after the 1st frame 2011-06-12 05:54:54 +00:00
Mark Vejvoda
722261e212 - added new commandline option to override font file 2011-06-12 03:44:50 +00:00
Mark Vejvoda
1d5dcb4ded - better bullet proofing of reading lng files
- able to run in old font mode for comparison
2011-06-11 10:31:24 +00:00
Mark Vejvoda
f1aa231e4b - bugfixes for font display:
- workaround for a bug in freetype in some cases
  - better handling on different resolutions
  - new commandline option to override screen resolution settings
2011-06-11 08:52:49 +00:00
Mark Vejvoda
cd05b22c50 - ensure datapath has backslash 2011-06-10 21:18:22 +00:00
Mark Vejvoda
6bb805978c - better quality font rendering and performance still good. 2011-06-10 04:34:58 +00:00
Mark Vejvoda
06999a8f88 - reworked fonts to now use 3d matrix positioning and render performance is much better.
*NOTE: Still need to deal with some letters getting partially chopped off in some cases.
2011-06-10 03:09:19 +00:00
Mark Vejvoda
fc3f5bbfa0 - added some logic to 'try' to figure out when to render font test right to left and when not to 2011-06-09 05:54:04 +00:00
Titus Tscharntke
bc2c59a82a just put a hud.png in a faction dir and you got a HUD overlay 2011-06-09 00:59:03 +00:00
Mark Vejvoda
f65bfe8710 - added some bug fixes to check if lng files are utf-8 or not and deal with it appropriately 2011-06-08 07:18:06 +00:00
Mark Vejvoda
226e8783c0 - added packaged game fonts
- updated code to search new default font folder
- added chinese language file from the fourm for testing
2011-06-07 02:37:58 +00:00
Mark Vejvoda
df178e5eb4 - fix broken win32 compile (but no freetype2 support yet) 2011-06-06 22:37:27 +00:00
Mark Vejvoda
c808a5661a - added freetype2 / FTGL support 2011-06-06 21:38:25 +00:00
Mark Vejvoda
d06b01e4e4 - bugfix to harden the code that looks up line #'s from a stack trace 2011-05-28 18:55:06 +00:00
Mark Vejvoda
8afb22a603 - added a small addition so windows users can optionally use different font setting in lng files if required 2011-05-25 23:34:25 +00:00
Mark Vejvoda
cc958d266e - updates for possible chinese support (but i really doubt this shows the right text) but stil la good start 2011-05-25 21:11:12 +00:00
Mark Vejvoda
adb7ec4a6a - bugfixes from windows unicode work to compile in Linux 2011-05-23 19:50:17 +00:00
Mark Vejvoda
737c577099 - don't close open messagebox on alt-enter 2011-05-20 20:02:26 +00:00
Mark Vejvoda
8e5e54d943 - save main.cpp as utf-8 2011-05-18 22:04:45 +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
8c59da57cd - bugfixes to install related files to fix:
- missing glest.ini during make install (this file is handled by the data install)
 - properly handles destdir for all installed files
 - customizable paths for all installation destinations (the following can now be set):
   		MEGAGLEST_BIN_INSTALL_PATH   -  "bin/"  -  "The installation path for binaries (this is appended to the CMAKE_INSTALL_PREFIX)")
		MEGAGLEST_DATA_INSTALL_PATH  - "share/megaglest/"  -  "The installation path for data files (this is appended to the CMAKE_INSTALL_PREFIX)")
		MEGAGLEST_DESKTOP_INSTALL_PATH  - "share/applications/"  - "The installation path for desktop files (this is appended to the CMAKE_INSTALL_PREFIX)")
		MEGAGLEST_ICON_INSTALL_PATH  -  "share/pixmaps/"   - "The installation path for icon files (this is appended to the CMAKE_INSTALL_PREFIX)")
		CUSTOM_DATA_INSTALL_PATH  -  "'\\\"${CMAKE_INSTALL_PREFIX}/${MEGAGLEST_DATA_INSTALL_PATH}\\\"'"   -  "The FULL installation path for data files (this is build automatically by combining CMAKE_INSTALL_PREFIX and MEGAGLEST_DATA_INSTALL_PATH)")
- Fixed startup scripts for tools (remove bin folder)
- Fixed source and data tarball scripts to include required files (missed the proper main ini files)
- Debian can now easily package up megaglest and build deb files
2011-05-14 17:31:40 +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
1d10d93f64 - fixed win32 build in vc++ 2008 2011-05-04 05:09:27 +00:00
Mark Vejvoda
fab36598b1 - lots of updates including:
- cmake system changes (after doing a make you may go: sudo make install to install in standard linux paths)
- updates to various pathing in order to more robustly support lhs

*WARNING, Linux dev's should run cmake like the following to avoid pathing issues as the default now is lhs paths:
cmake -DCMAKE_INSTALL_PREFIX= ..    (notice the SPACE before the ..)
2011-05-03 23:34:25 +00:00