Commit Graph

267 Commits

Author SHA1 Message Date
Mark Vejvoda
17da18978a init variables 2013-06-22 07:39:12 +00:00
Mark Vejvoda
bd4e2c8724 applied heightmap addition to map editor -> thanks muwum 2013-06-21 18:21:07 +00:00
Mark Vejvoda
dde601e416 attempt to implement will's mesh merging for better render performance 2013-06-20 07:24:09 +00:00
Mark Vejvoda
adce76d68f more mad attempts to squeeze better performance 2013-06-12 17:49:12 +00:00
Mark Vejvoda
1e1676a34a more render improvements 2013-06-12 06:14:55 +00:00
Mark Vejvoda
668b34db8e more mad attempts to squeeze better performance 2013-06-11 06:44:26 +00:00
Mark Vejvoda
267dc7534f bugfix for float rounding segfault 2013-06-11 01:23:04 +00:00
Mark Vejvoda
d067b52799 fixed windows build and added new test to vc++ project 2013-06-10 23:08:03 +00:00
Mark Vejvoda
16f4e08395 attempt to speed up float truncation and add some unit tests 2013-06-10 22:38:33 +00:00
Titus Tscharntke
01b6986581 First steps for new terrain texturing. In tileset xml do:
<surface partsize="64">
			<texture path="textures/512.png"/>
                </surface>
2013-02-20 17:42:47 +00:00
Mark Vejvoda
bff9b1b3bc - cleanup a bunch of vc++ compile / link warnings 2013-02-01 08:12:20 +00:00
Mark Vejvoda
87b39a3cb5 - fix unit selection 2013-01-24 15:52:11 +00:00
Mark Vejvoda
bf7445903d - cleanup some color pick code 2013-01-24 00:42:06 +00:00
Mark Vejvoda
d7d83f7c5e - attempt to speed up color picking 2013-01-23 23:20:54 +00:00
Mark Vejvoda
86eac7451b - attempt to speed up color picking 2013-01-23 22:34:22 +00:00
Mark Vejvoda
93438d42f4 - attempt to see if this fixes units that do not attack when right clicking enemy
- see if this fixes crashes when using color picking
2013-01-23 21:03:00 +00:00
Mark Vejvoda
ceedef5200 - see if this fixes color picking 2013-01-15 03:18:26 +00:00
Mark Vejvoda
7fdd70402d - added support for libfribidi for languages requiring complex text rendering like Arabic and Hebrew 2012-12-27 08:24:30 +00:00
Mark Vejvoda
d0006db4a1 - updated for debian compliance 2012-11-15 07:50:43 +00:00
Mark Vejvoda
d322f73284 - bug fixes and patches from hasufell related to:
- fontconfig not working
- new cmake option to control inclusion of libvlc
- new commandline option to force where to look for fonts: --font-path=x
- removal of libluajit from cmake
2012-11-14 19:20:08 +00:00
Mark Vejvoda
8ba5524f35 - updated error handling to be more flexible so we can display better error details (like bad tga file, etc) 2012-11-10 23:19:42 +00:00
Mark Vejvoda
16b85dbe79 - added another patch from cygal (he's on fire people!) to word wrap messagebox text
- remove newlines from english text where appropriate
2012-11-07 21:24:44 +00:00
Mark Vejvoda
00e075df97 - more byte order logic
- added new network packet debug
2012-11-01 22:00:55 +00:00
Mark Vejvoda
0d88936680 - added byte order logic for loading models 2012-11-01 21:22:38 +00:00
Mark Vejvoda
b30909f90b - attempt to cleanup for debian compliance (proper copyright, etc) 2012-10-30 06:48:12 +00:00
Mark Vejvoda
6d2afae784 - fixed compile on windows 2012-10-24 01:09:53 +00:00
Mark Vejvoda
92de14ac98 - applied a patch from debian gcc 4.7 2012-10-24 00:26:12 +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
6c62d675c3 - validation now checks for spawn attack units so it does not mis-report suck skills
- badly named texture in g3d model now reports which model file has the problem
2012-10-14 23:57:49 +00:00
Mark Vejvoda
2a80dd7c3c - more cppcheck code cleanup 2012-10-06 03:42:31 +00:00
Mark Vejvoda
c39da4cd69 - code cleanup from cppcheck 2012-10-06 02:10:23 +00:00
Mark Vejvoda
c33c1826ae - proper implementation of video repeat (looping) 2012-09-27 01:17:57 +00:00
Mark Vejvoda
1db56463fd - try to make video performance a little better 2012-09-26 08:08:52 +00:00
Mark Vejvoda
1c211e4ce6 - lots of code cleanup from the cppcheck 2012-09-22 20:13:57 +00:00
Mark Vejvoda
ee2c02610d - updated copyright headers is some files that had them missing
- added a new language string for battle end screen
2012-08-02 00:57:28 +00:00
Mark Vejvoda
19937c7512 - removed MD5 related classes as we will not support it after all. 2012-07-31 16:49:31 +00:00
Mark Vejvoda
f681b309a9 - turned off the interpolation cache which was taking too much memory. Please test this to see if performance is affected, this should REALLY help with memory usage. 2012-07-22 00:04:44 +00:00
Mark Vejvoda
e1054d6e07 - fixed memory leaks in map editor, g3dviewer and the game 2012-07-21 20:21:27 +00:00
Titus Tscharntke
d10d5fc770 hopefully working implementation of mpfNoSelect from this discussion: http://glest.org/glest_board/index.php?topic=8165.msg82932#msg82932 2012-07-14 21:29:15 +00:00
Mark Vejvoda
d9e2a64bb3 *NOTE: This is not backwards compatible with previous builds
- disable the alpha fog of war cache as it takes too much RAM (not sure if it really improves performance that much)
- inline some common functions for speed
2012-07-03 19:31:52 +00:00
Mark Vejvoda
6f48ec6330 - play no videos when running special commands like validations 2012-06-04 00:11:29 +00:00
Mark Vejvoda
660d702e97 - add a fallback url for playing videos in case the user has no internet 2012-05-25 16:33:34 +00:00
Mark Vejvoda
0fac755a5e - video player now displays 'please wait' while loading the video 2012-05-23 19:59:52 +00:00
Mark Vejvoda
6f78e11542 - fixed compiler warning 2012-05-21 20:42:26 +00:00
Mark Vejvoda
1652d9e810 - fix the build on windows 2012-05-21 20:40:28 +00:00
Mark Vejvoda
0d38e2eb5d - added support for main menu background video 2012-05-19 08:40:49 +00:00
Mark Vejvoda
093d22ce8b - oh how I despise windows, another evil hack to get proper detection of vlc plugins 2012-05-14 03:36:43 +00:00
Mark Vejvoda
af508a1a59 - added new ini setting to explicitly set the vlc plugins folder:
VideoPlayerPluginsPath=c:\program files\videolan\plugins
2012-05-12 22:48:29 +00:00
Mark Vejvoda
7b3de2d109 - added support for intro videos using libvlc (if libvlc is installed for the developer, its optional) 2012-05-12 20:33:18 +00:00
Mark Vejvoda
f79222defa - more pathfinder in progress changes, nothing to test yet 2012-05-05 04:38:49 +00:00
Mark Vejvoda
3ff0796bec - some in progress pathfinder work 2012-05-04 21:03:52 +00:00
Mark Vejvoda
20ffdbcf2d - fixed on windows platform 2012-05-01 15:21:09 +00:00
Mark Vejvoda
a70b1a9881 - patch to compile on gcc 4.7 2012-05-01 14:55:06 +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
c8fdc9269f - fix win32 build
- cleanup a lot of win32 compiler warnings
2012-04-16 20:15:57 +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
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
Mark Vejvoda
f3df72bb14 - added a new function to correct some file paths when loading a saved game from another persons computer (may need more tweaking)
- added support for saving and loading tables from Lua
2012-03-29 18:14:25 +00:00
Mark Vejvoda
b481fbcbb5 - proper save and restore for particles 2012-03-19 21:35:54 +00:00
Mark Vejvoda
8d5de12d42 - added some particles to load game logic 2012-03-14 07:23:41 +00:00
Mark Vejvoda
917adc8c98 - bugfix for game save and load (string buffer was too small for one item) 2012-03-13 21:58:31 +00:00
Mark Vejvoda
82cd1d3e9c - restore timeflow and gamecamera on load game 2012-03-12 23:40:54 +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
c5331b7e8a - initial work to save game state to XML. Current only saves when out of synch or game end occurs and saves to same folder as log files and file is called: megaglest-saved.xml
(Currently we store way too much info but this is a starting point)
2012-03-10 03:27:25 +00:00
Mark Vejvoda
4ad42518c0 - updated for better handling of streflop on different platforms
- attempt for bugfix on windows when socket send buffer is continuously full
2012-02-10 06:21:06 +00:00
Titus Tscharntke
e05984d527 - daylight effects for unit particles ( best use with mode "black" )
- meadow has good looking mist in night now
- startdelay for particles
2012-01-07 20:24:54 +00:00
Mark Vejvoda
fe72cb629b - updated to properly use fontconfig for finding fonts 2012-01-05 22:35:05 +00:00
Mark Vejvoda
835c886705 - few tweaks to get things compiling under mingw 2011-12-25 03:09:39 +00:00
Mark Vejvoda
2e94c32d59 - added ability to check if compiler supports SSE and if not fallback to X87 for streflop.
- added ability for clients to specify gamma override value for drivers which support it
2011-12-23 08:20:54 +00:00
Mark Vejvoda
2224d75d10 - updated copyright headers to the same as the rest of the main mg source for files i wrote. 2011-12-20 07:39:07 +00:00
Mark Vejvoda
dbd1e03f12 - updated copyright for md5 source code from David Henry (with his permission). Info pasted into docs/COPYRIGHT.source_code.txt 2011-12-18 15:18:46 +00:00
Mark Vejvoda
6a6b58fa20 - turn off building freetype-gl unless enabled in cmake flags 2011-12-16 05:30:46 +00:00
Mark Vejvoda
bb16ed2a65 - debian related changes 2011-12-15 11:16:14 +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
2fd89f11d5 - performance improve for color picking using pbo 2011-12-13 22:50:14 +00:00
Mark Vejvoda
724d274367 - fixed pixel buffer logic on windows (wacky vc++ 2008 doesn't properly allocate memory on vector.reserve(); 2011-12-13 22:21:21 +00:00
Mark Vejvoda
c4dc1e616b - added support for pixel buffers and use it for color picking (eventually for screenshots) 2011-12-13 19:52:17 +00:00
Mark Vejvoda
2dd2afb296 - changed selection code to use color picking, can disable using new ini setting:
EnableColorPicking=false
2011-12-13 01:30:52 +00:00
Mark Vejvoda
b6d7d1234c - incremented version to 3.6.1-dev
- a few changes to opengl version checking (now uses glew)
2011-12-06 01:34:51 +00:00
Mark Vejvoda
01ea0787a3 - a few more updates to cut down on RAM use for headless server 2011-12-03 00:39:03 +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
1658306b59 - fixed debug output font position --> just for you james! 2011-11-28 05:54:31 +00:00
Mark Vejvoda
646ec7707a only update the font vertex buffer if text or color changed 2011-11-19 18:25:16 +00:00
Mark Vejvoda
53e1610234 - cleanup of header files related to opengl / glew 2011-11-19 10:13:27 +00:00
Mark Vejvoda
3fd8c1ef90 - updated findfont method to be shared and to use more default fonts if main ones are not found 2011-11-19 07:35:12 +00:00
Mark Vejvoda
31fafe4528 - fixed up font alignment and added a way to force ftgl font mode:
--force-ftglfonts
2011-11-18 19:53:56 +00:00
Mark Vejvoda
d0acde5d88 - fixed freetype-gl on windows compiler
- deprecated ancient opengl extension code and replaced it with glew
- testing new font renderer on windows (still in progress need to fix newlines)
(now need to check the Linux build and possibly make adjustments)
2011-11-18 08:28:42 +00:00
Mark Vejvoda
0e9b4851fd fixed new font rendering on Linux and removed glew dependency 2011-11-18 00:28:45 +00:00
Mark Vejvoda
ab9243ea38 - got freetype-gl working under windows 2011-11-17 23:21:08 +00:00
Mark Vejvoda
2251a7b2dc - added freetype-gl rendered and set as default font renderer (see: http://code.google.com/p/freetype-gl/) 2011-11-17 09:56:25 +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
e5c5e22c26 initial attempt to add a visual food low warning (consumable falls to 25% and balance is ticking down) 2011-10-18 15:41:37 +00:00
Mark Vejvoda
6bf2d2697e - fix for compiling md5 files on windows 2011-10-18 06:09:58 +00:00
Mark Vejvoda
a2ae980986 - added md5 code to project (but not actively used, only compiled) 2011-10-18 04:32:02 +00:00
Mark Vejvoda
166d3b00ed - bugfix for mac osx 2011-10-13 20:33:19 +00:00
Mark Vejvoda
5d0eea51e3 - bugfix for rendering labels (now properly lines up with other controls) 2011-10-02 02:14:05 +00:00
Mark Vejvoda
77a2fa7d48 - getting fanatical about memory cleanup so that valgrind output is more useful 2011-09-30 23:55:07 +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
d99a8236ae - added the ability to synch unit particles with model animation using start-time and end-time attributes 2011-08-27 06:52:17 +00:00
Mark Vejvoda
bc4f33bc9a - added new cmake build option (and fixed bugs from people who added code but did not respect NON streflop define) 2011-07-13 19:57:29 +00:00