Commit Graph

308 Commits

Author SHA1 Message Date
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
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
402ae16657 - added support for specifying data and log paths in the standard glest.ini and glestuser.ini
DataPath=x
LogPath=x
2011-05-02 18:28:57 +00:00
Mark Vejvoda
4486b4d5c3 - hide observers from battle end screen stats 2011-05-01 07:35:10 +00:00
Mark Vejvoda
700e768b0f - changed default command display text to be same as 3.4 but with support to override and show queued commands up to a max of: MaxQueuedCommandDisplayCount=x where x is max queued text to show
- added ini support on linux so it by default looks for glest.ini and glestkeys.ini in /usr/share/megaglest and /usr/local/share/megaglest first
2011-05-01 03:12:36 +00:00
Mark Vejvoda
15489b066f - added new ini setting to see if this helps fix non power of two texture loading for some ATI video cards, user needs to set this in the ini:
EnableATIHacks=true
2011-04-28 07:48:19 +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
c2eca9bb05 - added better way to show some common resolutions in the options menu
- if video mode selected fails, first we now try to revert to 800x600 then 640x480
2011-04-18 22:05:41 +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
ea90bd0715 - added verticle synch option, to enable use:
EnableVSynch=true
2011-04-14 05:02:32 +00:00
Mark Vejvoda
5a6418ac60 - removed some debug statements to see if it will improve debug logging performance 2011-04-11 00:11:52 +00:00
Titus Tscharntke
36ebfcf95e end game stats with better PlayingTime, tomreyns endgame color problem (maybe) fixed ,updated german lang file 2011-04-09 23:25:18 +00:00