Commit Graph

825 Commits

Author SHA1 Message Date
Mark Vejvoda
d10493edc0 - fixed the accuracy for cell markers 2012-06-22 05:40:23 +00:00
Mark Vejvoda
acc2a5f9c9 - show light green with alpha silhouette of building when unit is moving to a location to build another unit 2012-06-22 04:58:44 +00:00
Mark Vejvoda
00d99eecd7 - bugfix for loading older saved games (I added a new network player status which may not exist in older saved games). This should fix Pizza's load game issue 2012-06-22 02:18:19 +00:00
Titus Tscharntke
a9049ac887 hints while loading with language support and keycode replacement. 2012-06-19 00:32:39 +00:00
Titus Tscharntke
dc99918cfe first working version of "game hints" displayed while loading. ( still missing language support and techtree specific hint support ) 2012-06-17 22:52:30 +00:00
Mark Vejvoda
81cc68305c - added the ability to remove cell markers 2012-06-13 16:19:44 +00:00
Mark Vejvoda
943dcef9fe - first pass of VERY ROUGH crude implementation of 'cell markers'. Need to properly find icons, apply alpha to icon on the map and add support for notes when user hovers over the marker. 2012-06-12 20:37:00 +00:00
Mark Vejvoda
c187d4d014 - changed disconnected playername to: *AI* - playername 2012-06-11 23:50:30 +00:00
Mark Vejvoda
b965343496 - added ability to show a user is disconnected from the game 2012-06-09 15:21:18 +00:00
Titus Tscharntke
ca39f8c6b1 new try with changed fighting behaviour of ultra and mega;
fix for "*" in chat
2012-06-04 21:53:20 +00:00
Titus Tscharntke
6b27343145 In system and error messages player names are no longer highlighted in the console with a sound effect as it was very annoying. Just human written chat messages highlight the names. 2012-06-03 17:08:14 +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
b6a4e33e7d - replaced calls to glgenlists and family as these gl calls are deprecated in newer opengl (and really did not do anything for us) 2012-05-24 06:16:54 +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
8fd436b612 - added new lua method to play video's in scenarios:
playStaticVideo
2012-05-22 06:17:56 +00:00
Mark Vejvoda
0f25276e6f - applied patch from MuwuM 2012-05-21 20:15:37 +00:00
Titus Tscharntke
2fddf85486 Bugfix: HUD is working for network clients too now. 2012-05-06 21:19:31 +00:00
Mark Vejvoda
3b9f799d26 - it is now possible to explicitly specify which units should count towards victory conditions. In the unit's xml file add:
<?xml version="1.0" standalone="no"?>
<unit>
	<parameters>
               <!-- valid values are true or false for this optional parameter -->
		<count-in-victory-conditions value="false"/>
        </parameters>
</unit>
2012-05-03 20:25:35 +00:00
Mark Vejvoda
897346d1f5 - added the beginning work to support translatable techtrees 2012-05-02 20:46:47 +00:00
Mark Vejvoda
5c0db25c86 - added a few new lua methods to register cell 'areas' for unit or for factions for wciwow 2012-05-02 06:07:11 +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
Titus Tscharntke
ed201fa5d3 "save game" in ingame menu( I don't know how a quick "load last saved game" ould work from ingame menu :-/ ) 2012-04-13 23:13:02 +00:00
Mark Vejvoda
9aca26a0f0 - bugfix for unit selection segfault on game exit
- added thread hardening to try to ensure we never try to delete a thread more than once.
2012-04-12 20:43:19 +00:00
Mark Vejvoda
76c3fa1949 - fixed segfault when a unit is selected and they die (this is a long standing bug and not related to savegame) 2012-04-12 15:38:53 +00:00
Mark Vejvoda
22f43f4267 - added new lua method for setting the direct position of a unit (can be used for teleporting):
setUnitPosition(int unitId, Vec2i pos)
2012-04-11 05:41:40 +00:00
Mark Vejvoda
2ab041813f - code cleanup based on cppcheck report 2012-04-05 03:53:59 +00:00
Titus Tscharntke
6c12bfbec8 Improved resource object selection implementation which allows highlight effects now too.
Generally changed highlight effect to something more obvious
2012-04-04 00:30:16 +00:00
Titus Tscharntke
1df365d697 I removed the automatic game pausing when message are shown because I don't like it ( sc does not like it at all so ... ). Still auto-pausing while showing menues ingame in singleplayer. 2012-04-03 00:32:52 +00:00
Mark Vejvoda
5b5d753341 - bugfixes for save / load game bugs reported 2012-04-02 15:02:44 +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
Titus Tscharntke
874b1a5049 In non network games the game is paused automatically if a menu/message is raised. I am not sure if I should do this for scenario messages too? 2012-04-01 18:23:26 +00:00
Mark Vejvoda
3d386936dc - updated loading games to translate tutorials and scenario paths 2012-03-31 20:58:33 +00:00
Mark Vejvoda
74910ea0b2 - bugfix for loading saved scenario 2012-03-31 20:33:56 +00:00
Mark Vejvoda
152e83399d - added a new lua method isUnitAlive(unitId) 2012-03-31 20:17:19 +00:00
Mark Vejvoda
030582c1ef - added a new EnumParser class to convert enum to string and vice versa
- factions can now customize some more of the AI behavior
2012-03-31 05:54:24 +00:00
Mark Vejvoda
53d0204cb9 - bugfix network messages 2012-03-31 00:52:43 +00:00
Titus Tscharntke
d8ba2443cf new switches "count-unit-death-in-stats", "count-unit-production-in-stats" and "count-unit-kill-in-stats" for unit.xml ( allows better "resource" production for example ) 2012-03-30 23:38:05 +00:00
Mark Vejvoda
fa31fed5bd - updated to add isGameOver 2012-03-30 14:48:54 +00:00
Mark Vejvoda
c02c90427b - added some more lua commands:
vector<int> getUnitsForFaction(factionIndex,commandTypeName, field)
int getUnitCurrentField(unitId)
2012-03-30 07:10:14 +00:00
Mark Vejvoda
45b92f4316 - allow for a scenario based faction to be 'neutral' by specifying a team # of 9
- added some new lua methods:
networkShowMessageForFaction(text,header,int factionIndex)
networkShowMessageForTeam(text,header,teamIndex)
2012-03-30 05:53:33 +00:00
Mark Vejvoda
f7423608ce - bugfix for lua strings 2012-03-30 01:48:41 +00:00
Mark Vejvoda
435e06db20 - attempt to bugfix lua save/load games, added a new section for scenario files called:
<global>
</global>
Where global vars (but more importantly declared functions) should be declared
- updated amazones scenario to move globals into the global section
2012-03-29 22:30:58 +00:00
Mark Vejvoda
c13e0ef788 - better error handling logic on crashes
- translate scenario to correct file on players system
2012-03-29 00:43:03 +00:00
Mark Vejvoda
9286130138 - bugfixes and code cleanup found using cppcheck 2012-03-28 06:25:57 +00:00
Mark Vejvoda
8a2b90895d - auto stop efficient timer event after it is triggered 2012-03-27 19:28:16 +00:00
Mark Vejvoda
d25fc14244 - added some new 'predictable' random number generation for use in lua scripts 2012-03-27 07:05:07 +00:00
Mark Vejvoda
5cc39e7c53 - added a new type of lua script timer for efficient checking of elapsed time 2012-03-27 06:42:55 +00:00
Mark Vejvoda
4f1bee5aea - attempt to save and load scenario info in saved games 2012-03-26 06:48:58 +00:00
Mark Vejvoda
d356e5f5de - added new headless server status check:
on the SAME box as the headless run:
./megaglest --headless-server-status
2012-03-25 06:55:43 +00:00
Mark Vejvoda
1b8e1af25b - cleanup of console and button placement in load game menu 2012-03-20 15:01:18 +00:00
Mark Vejvoda
d502e95d9f - bugfix for saving / loading cell info, fixes the resource explored bug 2012-03-20 07:14:50 +00:00
Mark Vejvoda
fc6da7f924 - added a status message while replaying commands 2012-03-20 05:58:24 +00:00
Mark Vejvoda
05c35aa9f4 - a little cleanup for command replay 2012-03-20 05:23:32 +00:00
Mark Vejvoda
a7e45eb354 - added the ability to record all game command to a replay file. To test saving / loading games from a replay file, add this to glestuser.ini:
SaveCommandsForReplay=true
2012-03-20 04:53:26 +00:00
Mark Vejvoda
c8df9dba1c - disable newline in chat mode 2012-03-19 05:51:35 +00:00
Titus Tscharntke
91dce63aac savegame screenshot has smaller size (configurable)/ screenshots are deleted too 2012-03-17 11:26:39 +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
617344c97d - do not take screenshot when saving game on headless server 2012-03-17 04:19:17 +00:00
Mark Vejvoda
5584121aa7 - updated load game screen and added some missing language text 2012-03-17 03:32:20 +00:00
Titus Tscharntke
7f46cf2749 save a screenshot with every game save and show it in load menu ( you must have set screenshot type set to .jpg at the moment) 2012-03-17 01:32:18 +00:00
Mark Vejvoda
01f8f518b3 - saved games now go into saved folder 2012-03-15 22:09:11 +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
fc125bec37 - added command groups and unit selection to save / load game info 2012-03-15 07:09:36 +00:00
Mark Vejvoda
d1dd79047e - no need for xerces anymore? All XML is now done by rapidxml by default (loading and saving) 2012-03-15 05:59:23 +00:00
Mark Vejvoda
7425dc8fdf - ALL XML loading will default to rapidxml, we now ONLY use xerces for saving the game (until i get time to implement xml save using rapidxml) 2012-03-14 22:48:46 +00:00
Mark Vejvoda
4bd6b53f9d - added insanely fast rapidxml as a supported xml engine to use. Currently its ONLY used for loading saved game xml and the currently class ONLY handles loading (not saving) xml's. 2012-03-14 21:52:13 +00:00
Mark Vejvoda
8d5de12d42 - added some particles to load game logic 2012-03-14 07:23:41 +00:00
Mark Vejvoda
5f95b08c17 - a ton more load game state now working (including commands) 2012-03-13 15:21:25 +00:00
Titus Tscharntke
edd7f732ea alpha correction in options menu ( checkin with error included , which needs to be fixed! ) 2012-03-13 00:44:55 +00:00
Mark Vejvoda
485b74af8b - load game restore more game state 2012-03-13 00:00:10 +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
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
94f3665285 - added nick sound when user mentions another players name in chat (in game lobby and in game) 2012-03-03 08:45:20 +00:00
Mark Vejvoda
8b7e2a7b9e - when searching for hud, loop until we find a file 2012-03-03 07:48:05 +00:00
Mark Vejvoda
3eba87727c - bugfixes for headless mode, map selection logic was broken for admin user
- during in game, if admin user disconnects, server re-assigns a new admin user so paused game can be unpaused by a new administrator
2012-03-03 04:33:39 +00:00
Mark Vejvoda
9d6607a051 - added new lua method so users can create units without spacing rules:
createUnitNoSpacing
2012-02-21 21:56:20 +00:00
Titus Tscharntke
9870c13a6b GraphicMessageBox can handle multiple buttons now 2012-02-19 17:37:53 +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
Mark Vejvoda
3049c5e376 - attempt to fix using grouping hotkeys for AZERTY keyboards (so user can press shift + #) 2012-01-09 21:08:19 +00:00
Mark Vejvoda
50f1fa65ca - bugfix on battle screen when 8 players playing, last player is sometimes chopped off
- masterserver mode bugfix for map filter
- masterserver now outputs in-game stats to console every 10 minutes (can be adjusted via ini setting: GameStatsDumpIntervalSeconds=x where x is update interval in seconds
2012-01-06 06:55:27 +00:00
Mark Vejvoda
ced374410c - added GAE compatible stubs for a few new lua methods 2012-01-05 20:01:22 +00:00
Mark Vejvoda
e351def1cb - added new lua function to display playername:
getPlayerName(i)
2012-01-05 00:45:17 +00:00
Mark Vejvoda
6f924b310d - added new lua method to get system macro values:
dofile(getSystemMacroValue("$SCENARIO_PATH") .. "unit.ai.class.lua")
2012-01-05 00:04:55 +00:00
Mark Vejvoda
a1a0b9e79c - bugfix for not finding hud for scenarios with embedded techtree 2012-01-04 04:10:11 +00:00
Mark Vejvoda
ec2f889a76 - scenario pause command should work in network mode 2011-12-28 07:26:16 +00:00
Mark Vejvoda
ebba25b06f - updated so streflop can be totally ignored when that cmake switch is off 2011-12-16 06:24:21 +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
f6dafcde3c - added stats on console for headless server when game exits 2011-12-02 17:27:13 +00:00
Mark Vejvoda
d33e1174a5 - bugfixes related to cppcheck report
- bugfixes found using valgrind (memory leaks)
2011-12-02 16:07:59 +00:00
Mark Vejvoda
7cf9c189b2 - disallow non compressed tileset downloads when client IP not on same subnet as host
- bugfix for LAN server broadcasting
- bugfix for empty message on player disconnect (now properly shows that player switched to AI mode)
2011-11-29 05:07:18 +00:00
Mark Vejvoda
c16cdad134 - more complete fix for debug render placement 2011-11-28 07:05:00 +00:00
Mark Vejvoda
cfe01253b9 fixed ambient sounds when rain is disabled. 2011-11-28 06:38:07 +00:00
Mark Vejvoda
1658306b59 - fixed debug output font position --> just for you james! 2011-11-28 05:54:31 +00:00
Mark Vejvoda
4e882796a1 - a bold attempt to push the socket read threads to read continuously to see if this is:
a) stable without causing out of synch
b) not too hard on the CPU
2011-11-25 17:01:35 +00:00
Mark Vejvoda
2a8c712b1a - more socket performance changes
- auto complete now works also in IRC chat, and tabbing loops through all matched names.
2011-11-25 09:12:53 +00:00
Mark Vejvoda
c6b7d3991e - attempt to fix network game play 'stuttering'
- bugfix for ip address gathering
- added tab autocomplete in chat windows for playernames
2011-11-24 23:15:21 +00:00
Mark Vejvoda
3cdf50c399 - a load of bugfixes including:
- proper handling of invalid client connects, after 6 bad attempts in a 60 second period of time the IP address is blocked from the current game
  - Added check for invalid particles for tileset objects
  - Made messagebox wider in game mod menu
  - Fixed numerous threading issues discovered while testing on my 8 core CPU
  - a Little bit of rendering cleanup
2011-11-23 08:00:09 +00:00
Mark Vejvoda
f626ebbe45 - attempt to fix lua code to properly get unit's killer:
lastDeadUnitKillerName
lastDeadUnitKiller
2011-11-18 15:43:05 +00:00
Mark Vejvoda
d29293d3cf - added new lua method lastDeadUnitCauseOfDeath, possible int values are:
None = 0
	Attacked = 1
	AttackBoost = 2
	StarvedResource = 3
	StarvedRegeneration = 4
2011-11-16 21:43:19 +00:00
Mark Vejvoda
2d367bd26e - added new lua functions from Muwum:
new events:
    unitAttacked
   unitAttacking
 
   methods:
   lastAttackedUnitName()
   lastAttackedUnit()
   lastAttackingUnitName()
   lastAttackingUnit()
   giveKills(unit,amount)
2011-11-16 21:38:12 +00:00
Mark Vejvoda
b2adc16ca6 - added Muwums lua function 2011-11-15 17:39:49 +00:00
Mark Vejvoda
41ae17757b - just for you james! Fixed about screen text alignment
- re-enabled unit titles in special debug mode (requires special keys to toggle)
2011-11-15 04:48:57 +00:00
Titus Tscharntke
cbdde66999 we dont need to be too picky with translations which are mainly meant for logfiles 2011-11-04 01:12:05 +00:00
Mark Vejvoda
22c8881902 - update fonts for console when language is toggled 2011-11-03 23:38:43 +00:00
Mark Vejvoda
4930ec109d added a new lua method from Muwuum 2011-11-03 18:24:02 +00:00
Mark Vejvoda
5b0c3accfc changed lua method to camelcase 2011-11-03 17:04:49 +00:00
Mark Vejvoda
30e1f45cc7 - intro is now fully translatable and configurable (see english.lng file at the bottom for intro strings)
- added game loading text strings to language file
- ONLY load the font type we are using
2011-11-02 17:17:28 +00:00
Mark Vejvoda
33549e2b0b no longer show resource info in debug stats in game 2011-10-26 05:10:36 +00:00
Mark Vejvoda
c045f06f44 allow pause hotkey for network games 2011-10-26 04:13:14 +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
2cecb2c3a0 fixed horrible UPNP bugs related to timing, where ports would be either NOT properly opened or not closed due to thread timing and no thread protection. 2011-10-23 00:55:34 +00:00
Mark Vejvoda
6863876359 bugfixes from transition to battle end and back to menu 2011-10-22 19:45:05 +00:00
Mark Vejvoda
5ee20018d8 d new way to manage the sound fade for game start/stop via optional ini: GameStartStopFadeSoundMilliseconds=3500 2011-10-21 22:42:59 +00:00
Mark Vejvoda
c305af8063 bugfixes when going from one scenario to another (sound fades ok now) 2011-10-21 20:57:42 +00:00
Mark Vejvoda
0a2a6794f3 cannot fade when transitioning scenarios until we change how sound files are used. 2011-10-21 20:06:18 +00:00
Mark Vejvoda
14736ddfb7 now fade out of music when starting game and fade out of music when ending game 2011-10-21 19:52:55 +00:00
Titus Tscharntke
c151f538b1 3 cycle resource warning instead of percentage warning / sailboat texture fixed in menu 2011-10-18 22:00:59 +00:00
Mark Vejvoda
26afb589a3 - code cleanup (removing / commenting uneeded items) 2011-10-17 20:56:11 +00:00
Mark Vejvoda
4f7559783c support backspace for multi-byte characters in chat mode 2011-10-15 09:27:55 +00:00
Mark Vejvoda
b88d51c3c6 - bugfix to not say teammode when not in game 2011-10-12 03:07:00 +00:00
Mark Vejvoda
c1eedabf84 - added current mouse xy in cell coords to debug stats 2011-10-07 03:48:07 +00:00
Mark Vejvoda
762699ef88 - bugfixes for passing from one scenario into another when keeping faction state 2011-10-07 03:25:17 +00:00
Mark Vejvoda
a7cfcc1d99 - added special placement code when carrying over units from one scenario to another 2011-10-06 22:19:58 +00:00
Mark Vejvoda
b126768d9c - updated scenario lua function to allow carry over of factions or not 2011-10-06 20:44:55 +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
e036d820d2 - bugfix, observer cannot join teams, and players cannot join an observers team 2011-10-05 16:02:26 +00:00
Mark Vejvoda
517222a91a - bugfix for special commands (switch team and pause network game) when initiating players is observer 2011-10-05 15:56:08 +00:00
Mark Vejvoda
5a7a37a678 - bugfix 3dlists when showing keyboard menu in game (water was showing wrong) 2011-10-05 03:42:29 +00:00
Mark Vejvoda
22e28c323f - cleanup popup menu sizing so it looks more clean 2011-10-04 00:50:43 +00:00
Mark Vejvoda
bc5c32deb1 - initial attempt to add 'pause game' for network games. The following apply:
- only the server (or headless admin) can pause/resume a network game.
- to pause/resume press ESC in game and select the pause/resume button to toggle the state.
- chatting works while the game is paused. If clients want the game paused they should ask this in the chat window
2011-10-03 20:48:09 +00:00
Mark Vejvoda
d719e8e318 - in game popup menu now also allows viewing/changing keyboard setup
- now display (team) when chat text is intended only for team members
2011-10-03 00:36:28 +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
26d0b71bd5 - turn off mouse and keyboard in headless mode 2011-09-26 04:26:44 +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
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
4d31968966 - bugfix for team switching vote calculation 2011-09-23 19:31:47 +00:00
Mark Vejvoda
7e16873efd - bugfix for team switching validation should be skipped
- commented printf for tween debugging
2011-09-22 05:14:20 +00:00
Mark Vejvoda
d52924f214 - added new strings to language file 2011-09-21 08:00:00 +00:00
Mark Vejvoda
7d53df698a - added new in-game popup menu and new ability to switch teams in game (turned off by default in advanced settings) 2011-09-21 06:51:28 +00:00
Mark Vejvoda
b4972f6365 - attempt to get international unicode characters working in ingame chat 2011-09-16 17:35:07 +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
aee6c948a2 - bugfix for scripted scenario function registerCellTriggerEventForUnitToLocation not working properly 2011-09-13 23:25:13 +00:00
Mark Vejvoda
470fac5136 - bugfix for scripted scenario function registerCellTriggerEventForFactionToLocation not working properly 2011-09-13 23:20:26 +00:00
Mark Vejvoda
e44170ea00 - bugfixes for lobby UI when map changes and player index is invalid 2011-09-02 00:08:35 +00:00
Mark Vejvoda
0a2c929fea - attempt #1 to support 'keeping' connected clients in the lobby when the map changes and slots would normally disconnect 2011-09-01 21:54:31 +00:00
Mark Vejvoda
d44959d69c - phase 1 of cppcheck verbose fixes 2011-08-31 23:10:43 +00:00
Mark Vejvoda
3af608151e - bugfixes found from cppcheck 2011-08-31 19:44:19 +00:00
Mark Vejvoda
a7e08e3b55 - can disable mouse movement which scrolls the world camera. in glestuser.ini add:
MouseMoveScrollsWorld=false
2011-08-31 00:24:14 +00:00
Mark Vejvoda
c4cbdd86e3 - disabled will's visible quad code as i cannot get it to work when rotating around with the camera. Bugfix for normal camera visible quad so we don't get black spots when moving camera around. Bugfix for menu keyboard entry if we get a bad utf8 conversion character 2011-08-30 18:28:30 +00:00
Mark Vejvoda
a2e6f81a0d - added initial code from willvar for visible quad calc (but disabled for now till we have time to fix issues) 2011-07-23 23:22:30 +00:00
Mark Vejvoda
a77606351f - attempt to change scenario timer to use world frames 2011-07-16 03:58:52 +00:00
Titus Tscharntke
9ef8c82441 extra team color markers ( by default use * to toggle/switch on ) 2011-07-06 22:02:38 +00:00
Mark Vejvoda
8c99c7e91f - fixed debug key 2011-07-05 05:40:14 +00:00
Mark Vejvoda
2c80543889 - attempt to group command execution so units given the same command at the same time will work more smartly (closer units go first and so on) 2011-07-05 04:37:35 +00:00
Mark Vejvoda
852b4aa2d2 - bugfix for some hotkeys not working properly 2011-07-04 18:05:02 +00:00
Mark Vejvoda
d2c8cc0187 - bugfix for unit titles in special debug mode
- added support for png format for pixmap3d (Water) textures
2011-07-01 07:46:18 +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
f5b15bd402 - bugfix for filtering out non printable keys 2011-06-28 01:25:14 +00:00
Mark Vejvoda
aa677cfc97 - attempt to NOT convert to utf8 twice 2011-06-26 03:38:28 +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
Titus Tscharntke
d246a08a6d switch for rain/snow ; multipliers visible ; server can set his state too 2011-06-20 23:48:22 +00:00
Mark Vejvoda
7ad8510894 - don't render hud in 'photo' mode 2011-06-13 23:28:24 +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
Titus Tscharntke
ca75809f2d switch in options to show HUD or not ( if available ) 2011-06-09 22:54:45 +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
e34e70a0c8 - added code to merge duplicate sounds used in a techtree 2011-05-06 07:47:31 +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
Titus Tscharntke
9ce83ed21b queued commands are displayed in a better way 2011-05-01 20:19:41 +00:00
Mark Vejvoda
3ed7d242d9 - added more detail on error message 2011-04-30 06:36:52 +00:00
Mark Vejvoda
0abca7fb7a - bugfixes for clicking outside of the map co-ordinates
- show up to 5 descriptions for queued items when producing
2011-04-27 22:35:45 +00:00
Mark Vejvoda
016771ed81 - adjust camera angle for more properly unit visibility calc
- more accurate unit titles when debugging
2011-04-18 16:51:30 +00:00
Mark Vejvoda
762a612e33 - better error message on error 2011-04-18 04:28:25 +00:00
Mark Vejvoda
88a81a6993 - removed useless items in debug view
- removed some noise from verbose output
2011-04-13 18:45:27 +00:00
Titus Tscharntke
4df5e0266c camera movement fixed 2011-04-11 23:26:50 +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
daf8f42f7e real camera movement! 2011-04-10 21:38:29 +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
Mark Vejvoda
9b91bf5c68 - modified lua method addConsoleText to look in scenario language file for text
- added new commandline options to display CRC values for various items (like maps, tilesets etc)
2011-04-09 06:20:43 +00:00
Titus Tscharntke
6b63089612 pressed keys don't keep camera moving continously anymore ( has this side effects? ) 2011-04-08 22:49:10 +00:00
Mark Vejvoda
9cb1cd7bc8 - bugfixes related to multi-language text messaging 2011-04-05 20:19:25 +00:00
Mark Vejvoda
4a27e75891 - initial work to support multi-language text messages 2011-04-05 18:39:47 +00:00
Mark Vejvoda
4fb33d34ce - moved a few more strings into the language file 2011-04-05 14:59:48 +00:00
Mark Vejvoda
0fce64897e - added a few more things to end game stats as requested by ultifd
(now we can tell the difference between killed units and killed enemy units and final score is based on killed enemy units not all killed units)
2011-04-05 06:32:23 +00:00
Mark Vejvoda
cf706491e1 - added screenshot file format to options menu
- more cleanup from things discovered with valgrind.
- added an environment variable to use with openal so it is possible to specify which sound device to use if needed down the road
2011-04-02 21:17:17 +00:00
Mark Vejvoda
085cb7d543 - added a cancel button when loading a game for the server user only
- updated client side loading screen to show who the server is waiting for
- moved some more strings into the english language file
2011-03-31 18:13:02 +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
Mark Vejvoda
4344a958d6 - changed game unload so it doesn't try to render on exit 2011-03-30 21:15:20 +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
3b56aa4475 - performance changes... (problem found by titi) most debug calls line are skipped when the debug flag is disabled even BEFORE getting into the handledebug method.
This improves performance VERY MUCH.
2011-03-28 03:54:23 +00:00
Titus Tscharntke
df2df4bcfc some rearrangement in options, player names in chat with colors again 2011-03-26 21:38:26 +00:00
Titus Tscharntke
5ccfc59819 Masterserver messages are highlighted in yellow now; console lines now can have individual colors (if not in game)! 2011-03-26 17:17:34 +00:00
Mark Vejvoda
9681e7f1bc - initial code for managing mod content (downloads and removal of user data) 2011-03-25 10:11:16 +00:00
Mark Vejvoda
6f523bb96a - small bit of code cleanup in unit_updater
- added alarmcount to debug view
2011-03-23 02:45:42 +00:00
Mark Vejvoda
f7fdafbff4 - did some code refactoring, wanted to load some textures threaded but bailed out due to opengl's hideous problems related to multi-threads 2011-03-22 02:02:54 +00:00
Mark Vejvoda
18f2f531e3 - added map, tileset and techtree to debug view and also AI type 2011-03-20 23:41:46 +00:00
Mark Vejvoda
97017b2f1f - added a new lua method to add text on the console for Elimnator's scenario. 2011-03-19 12:19:22 +00:00
Mark Vejvoda
bca617cf18 - bugfix for socket mutex locked when deleting socket
- added faction detail in lobby when CRC's do not match on techtree
2011-03-19 12:04:18 +00:00
Mark Vejvoda
7d38aec84a - new commandline options to discover and optional delete unused files in techtrees 2011-03-15 15:30:28 +00:00
Mark Vejvoda
39bf1b986e - added new commandline option to convert folders of g3d models to use specified texture format
- added new utility methods and changed code to use them (like adding trailing slash on paths)
2011-03-13 08:23:43 +00:00
Mark Vejvoda
f88836203a - another keyboard bugfix (pressing esc properly cancels chat mode), Thanks ultifd 2011-03-12 03:10:07 +00:00
Mark Vejvoda
e070cf2cbb - added player status for network based games so players can indicate if they are ready to play or not 2011-03-11 11:11:46 +00:00
Mark Vejvoda
f46eaa159a - bugfix for bug reported by gonana (ascii hotkeys work properly once again) 2011-03-11 06:34:59 +00:00
Mark Vejvoda
2f18f96743 - bugfix for alpha letter keys used for certain hotkey operations 2011-03-10 18:26:45 +00:00
Mark Vejvoda
744602d0e3 - more keyboard handler cleanup related to special key presses (like shift) 2011-03-04 00:46:45 +00:00
Mark Vejvoda
bced200dd1 - bugfix when bad values are in map file, game would freeze at game start due to endless loop 2011-02-25 22:13:11 +00:00
Mark Vejvoda
9de151d975 - added more things to try to improve pathfinding (especially for the AI)
AI players should now detect when units are blocked (surrounded by other units from same faction) and tell the other units to move out of the way
2011-02-25 16:32:27 +00:00
Titus Tscharntke
922df8e025 up to 36 units selectable; maps can set camera heigth now ( be careful with this for performance reasons! ) 2011-02-25 00:31:42 +00:00
Mark Vejvoda
a0cfe3fa08 - a few changes and now seems to compile in VC++ 2010 (still need to checkin project files) 2011-02-15 23:53:48 +00:00
Mark Vejvoda
2357e2cfd1 - Titi, fixed the remove object so its done in the Object destructor (using an interface) 2011-02-15 04:34:19 +00:00
Mark Vejvoda
31e722287f - bugfixes for when players disconnect, do not switch observers to AI and only show message once.
- Attempts to debug/improve network performance
2011-02-15 03:32:14 +00:00
Mark Vejvoda
7cae047f15 - added more code guards around morph validation
- some render debug info
2011-02-11 04:48:17 +00:00
Mark Vejvoda
39e4d62133 - attempted bugfix for click like mad morph causing out of synch 2011-02-10 21:02:07 +00:00
Titus Tscharntke
91abdd3ed4 camera max height/ default are calculated based on the max height of a map 2011-02-10 00:14:21 +00:00
Mark Vejvoda
12dcc54c5a - more conversions to vertex arrays 2011-02-09 08:04:21 +00:00
Mark Vejvoda
c58e893047 - attempt to improve issues in the custom menu related to freezing
- modified debug UI display to support multi levels of UI debug info
- added more validations to mutexes
- improved client sockets to properly be setup as non blocking
2011-02-06 07:01:54 +00:00
Mark Vejvoda
6052ee6cc7 - bugfix to clear surface data cache on game exit (lest we overfill system RAM) 2011-02-05 05:50:42 +00:00
Mark Vejvoda
325ea2515a - nicely formatted out of synch messages (one per line).. all for tomreyn's happiness :) 2011-01-31 23:36:13 +00:00
Mark Vejvoda
0b4eef10c5 - added a very useful way to track mutex usage and performance timings of mutex locking to discover thread lock issues 2011-01-31 23:01:39 +00:00
Mark Vejvoda
4b085691df - added new LUA method togglePauseGame 2011-01-29 23:50:21 +00:00
Mark Vejvoda
a5a6cf76d6 - updated some new lua commands 2011-01-29 17:52:53 +00:00
Mark Vejvoda
041289770e - cleaned up more compiler warnings in VC++ 2011-01-29 17:42:34 +00:00
Mark Vejvoda
1a3545f8ab - cleaned up compiler warnings in g3d viewer
- added a bunch of new lua commands for 'da boys' to be documented after being fully tested.
2011-01-29 12:42:18 +00:00
Mark Vejvoda
177531c376 - commented out some debug statements and corrected stuck harvesting a bit 2011-01-28 08:37:48 +00:00
Mark Vejvoda
d10054f1c3 - moved sound system debug into a new debugSound property to lessen the impact of regular debug logging since sound processing is now threaded and therefore logging sound system items may slow down performance
- added texture caching for faction preview textures
2011-01-26 09:09:59 +00:00
Mark Vejvoda
e06639c78d - updated Internet games to use 2 new fields, country and game status.
for now svn users can edit glestuser.ini and add the following entry (pointing to your folder of course) to see the country flags in game:
CountryTexturePath=/home/softcoder/Code/megaglest/trunk/source/masterserver/flags
2011-01-25 07:41:12 +00:00
Mark Vejvoda
4670935fd0 - added a new check is there is a connection lost during command execution we now display a Connection Lost error along with possible out of synch. 2011-01-25 00:54:37 +00:00
Mark Vejvoda
ed90d620b3 - bugfix to disallow CPU players to be observers
- spelling mistake fix in error message
2011-01-25 00:42:09 +00:00
Mark Vejvoda
b73045b349 - turn off music playing while game is loading 2011-01-20 19:56:11 +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
fdaf9438d8 - added code so Alt-Enter etc. works during game loading phase 2011-01-20 08:19:14 +00:00
Mark Vejvoda
60b58eb44c - bugfix for multi-build segfault under special conditions (discovered today) 2011-01-20 07:56:02 +00:00
Mark Vejvoda
55d213435a - changed music change-over during game start so that background music continues to play while waiting for network clients 2011-01-18 04:56:42 +00:00
Mark Vejvoda
d16f6a93bc - sound system is now threaded by default (hopefully this fixes buffer underruns errors from openal)
- background music now plays when game is loading
2011-01-18 01:24:45 +00:00
Mark Vejvoda
ccbd707ae1 - numerous bugfixes including fixing a slowdown introduced in a previous recent checkin.
- Added Network Text Message queue as this is required in some tricky cases
- added more logging of memory cleanup events
- added memory safe snprintf calls
2011-01-11 22:09:46 +00:00
Mark Vejvoda
e319c2cf62 - attempt to fix game freeze when lag causes game pauses 2011-01-11 08:45:58 +00:00
Mark Vejvoda
1c78fca0fb - Added tileset and map CRC check in the network lobby
- numerous bugfixes
2011-01-09 04:49:21 +00:00
Mark Vejvoda
7347dc9545 - bugfix for multi-build queued commands 2011-01-08 21:53:05 +00:00
Mark Vejvoda
3fed09ab32 - removed a bad out of synch check as it was wrong
- added socket messages when out of synch detected.
2011-01-02 01:48:56 +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
Titus Tscharntke
23f9d29769 too much red in the console ;-) 2011-01-01 22:08:34 +00:00
Titus Tscharntke
13c6fb49b3 chat highlighting, and more features related to chat 2011-01-01 20:31:25 +00:00
Mark Vejvoda
ba995d1131 - show more friendly message when out of synch detected. 2010-12-28 02:57:36 +00:00
Titus Tscharntke
36c4b4c5fa internet menu updated ( work in progress ) ; checkboxes ; lines 2010-12-27 00:59:57 +00:00
Mark Vejvoda
d997e2af5d - bugfix, threaded logging was NOT ever enabled because of a timing bug. Now threaded logging is enabled by default.
- Updated debug UI view to show threaded debug buffer count
2010-12-25 09:15:49 +00:00
Mark Vejvoda
03eaa2c033 numerous important bugfixes:
- observers and end game fog of war enable would most likely cause out of synch, I think its fixed now
- better handling of threaded logging
- cleanup of socket thread processing to ensure all network packets get processed properly and in order
2010-12-24 08:43:09 +00:00
Mark Vejvoda
97ee61165a updates to irc use in mastermenu:
- shows local username
- bugfixes for detecting new/dropped users in the irc channel
- lots of cleanup to remove use of so many static variables
2010-12-24 02:10:31 +00:00
Titus Tscharntke
45a3601286 you can attack teammates again; fix for attack queuing, units don't walk to dead bodies if next attack command is in queue ; 2010-12-20 20:01:14 +00:00
Mark Vejvoda
f204d4445c - added a new bit style gamesetting flag for future new game settings.
- added ability to see map resources but still keep fog of war (GAE's shroud of darkness), but not activated by UI yet, tested and works
2010-12-19 08:04:25 +00:00
Titus Tscharntke
7305391b6d Unit commanding via minimap 2010-12-18 17:18:36 +00:00
Mark Vejvoda
8f579e735f - bugfix for new CPU multiplier constants for VC++ compiler 2010-12-11 08:00:49 +00:00
Titus Tscharntke
ebcadc13f0 Constants for easy/normal/ultra/mega default multipliers
Multiplier example for scenarios
Version number is only shown with build date and so on for dev versions
2010-12-11 00:20:31 +00:00
Mark Vejvoda
045c2f95e8 - added new commandline options to tell the game where to look for data, ini's and where to write logs 2010-12-09 20:41:11 +00:00
Mark Vejvoda
b02da7d1e0 - finally found and fixed out of synch related to AI.
- added ability to log all unit activity to world synch logfiles so we can diff game info from different network clients
2010-11-30 23:32:39 +00:00
Titus Tscharntke
ede8977aff switched resourcemultiplier to int (using the index now) and added some debug output for testing. 2010-11-25 22:45:08 +00:00
Titus Tscharntke
c2c9cc0044 endgame stats screen shows multiplier now for CPU players
you cannot switch unvisible resource multiplier any more
2010-11-11 21:41:13 +00:00
Mark Vejvoda
cc4f268988 - some additional AI caching for improved performance 2010-11-11 08:02:50 +00:00
Mark Vejvoda
d89953ee96 - improved performance and bug fixes. 2010-11-09 09:06:52 +00:00
Titus Tscharntke
2440d475b3 beginning of new resource multiplier. Still work in progress but hopefully ready to test some things. 2010-11-08 23:15:50 +00:00
Mark Vejvoda
9d9fa0deeb - improved performance for when the AI decides which resource is closest. 2010-11-07 03:27:06 +00:00
Mark Vejvoda
8ab95a5305 - added stack trace for windows users when exceptions occur (snagged the idea from sauerbraten) 2010-11-05 06:46:30 +00:00
Mark Vejvoda
9978cbeff5 - added some initial work to support FBO (frame buffer objects)
- added many NULL check guards throughout the code
- added a safe mutex around ptr access of background thread on custom menu
2010-11-01 16:44:05 +00:00
Mark Vejvoda
b1ff035f9e - added ability to turn on photo mode and zoom out while in a non network game (default key is f8) 2010-10-30 03:03:44 +00:00
Mark Vejvoda
44563b6f73 - allow screenshots to be taken ANY time (in menus etc.) and not only when a game is playing 2010-10-30 02:24:53 +00:00
Mark Vejvoda
77bad3ce07 - added new default PNG format for doing screenshots AND the saving to disk is queued in a background thread allowing almost no delay when saving many screenshots! 2010-10-30 02:21:47 +00:00
Mark Vejvoda
13c4deb5b6 - added new screenshot format to be bmp (can be oveeriden by ini setting, and more formats may be added later) ScreenShotFileType=tga to revert to old default tga screenshots 2010-10-29 22:18:23 +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
01c26b4224 - added the ability to track pixmap memory usage at start and end of a game 2010-10-28 21:06:20 +00:00
Mark Vejvoda
de3a92081d - a bunch of in progress work related to texture compression and more timely texture memory management cleanup. For now to test texture compression use the following ini setting: EnableTextureCompression=true 2010-10-28 00:51:25 +00:00
Mark Vejvoda
3c57f16a4a - cleanup some compiler warnings in vc++ and removed commented out debug info for in progress texture compression 2010-10-27 17:06:40 +00:00
Mark Vejvoda
c47b6c676c - attempt to further improve pathfinder performance when MANY units are on the map 2010-10-26 06:43:42 +00:00
Mark Vejvoda
bbc8f96327 - better masterserver thread management during game play (do not start the thread for non published games) 2010-10-24 05:52:21 +00:00
Mark Vejvoda
ae8571a406 - added the beginning of some new master server info (very limited)
- Masterserver menu will show more titles / colors.
    - We keep the game showing in the Masterserver menu while it is in progress.
   - Disable join button when slots are full.
   - Update title with IN PROGRESS when game is being played.
   - PHP Script is backwards compatible with older clients
2010-10-23 09:06:47 +00:00
Mark Vejvoda
e2610df502 - fixed chatting logic to now retain more info about the user that sent the text in the console manager. Colors now apply to the playername and changing playernames is ok in the lobby andf rendering accounts for this (as well as switching slots) 2010-10-23 04:00:39 +00:00
Mark Vejvoda
b72124a89a - bugfix for segfault (using wrong index variables again). This time I understand what to change and what not to change :) 2010-10-22 17:29:23 +00:00
Mark Vejvoda
40a0707519 - bugfix for switching human to AI on disconnect (the check used the wrong index) 2010-10-22 16:47:08 +00:00
Mark Vejvoda
8ab3366c66 - added player color coding in lobbies as well as chat console 2010-10-22 07:28:55 +00:00
Mark Vejvoda
be979590c1 - more compiler warning cleanup 2010-10-21 17:42:45 +00:00
Mark Vejvoda
93e56df3d6 - fixed some misc code bugs (incorrect assignment) and cleaned up some compiler warnings 2010-10-21 01:07:11 +00:00
Mark Vejvoda
d96bf7f978 - added faction preview images for Random and Observer types (thanks Elimnator)
- bugfix when choosing random faction and sometimes the game tries to load this as a real faction type
2010-10-19 03:53:52 +00:00
Mark Vejvoda
7564635643 - added initial code for switching dropped network players to AI (currently hard coded to normal CPU) 2010-10-18 23:09:43 +00:00
Mark Vejvoda
55b4f0bd2b - Incremented version to next major release # so new work can begin.
- some initial work to assist units from getting stuck when given commands. This is for both AI and human players and deals with the pathfinder and units getting constantly blocked from their destination.
2010-10-17 06:34:42 +00:00
Mark Vejvoda
0d050f62d4 - added code to now output all eerors to console (with option to save in log file)
- added more LUA debug info
2010-10-06 20:22:06 +00:00
Mark Vejvoda
5f698575d9 - added removal of fog of war at game end for scenarios 2010-10-04 21:31:53 +00:00
Mark Vejvoda
d38b46a529 - Removed deprecated parameter
- Added more debug logging for LUA functions
2010-10-04 18:31:17 +00:00
Titus Tscharntke
8d053ba314 another implementation of performance based shadow on/off 2010-10-04 16:43:00 +00:00
Mark Vejvoda
16fd1fcfa1 - attempt to tweak shadow off/on windows to make it more smooth 2010-10-02 04:29:12 +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
5ecda82be0 - bugfix for allowing players to view map at game end for network games 2010-09-30 00:49:57 +00:00
Mark Vejvoda
3e0a87549c - by special request for ultifd (allow players to zoom out at game end when playing non network games) 2010-09-29 22:18:08 +00:00
Mark Vejvoda
f84a710d2c - initial logic to allow client side controlled AI 2010-09-14 19:10:37 +00:00
Mark Vejvoda
c295697aba - added map preview on custom game menu 2010-09-12 05:05:08 +00:00
Mark Vejvoda
ceca2de4b1 - added ability to display both error and normal messagebox in non overlapping way simultaneously
- added new hotkey to toggle photomode in game (f8)
2010-09-11 16:14:03 +00:00
Mark Vejvoda
52916bdc6e - added support for random faction selection 2010-09-11 08:09:33 +00:00
Titus Tscharntke
729bd23f58 improved box selection ( much better regarding performance now and updates selection without moving the mouse ) 2010-09-10 12:15:21 +00:00
Mark Vejvoda
cc9bde39af - updated debug stats to use render cache 2010-09-10 09:09:12 +00:00
Mark Vejvoda
0783b23e12 - bugfixes for rendering (new ini setting toggles new quad cache and is called: UseQuadCache=true) 2010-09-10 08:51:32 +00:00
Mark Vejvoda
77eadd7710 - attempt to improve explorecells usage when each unit is signalled to move 2010-09-09 01:44:25 +00:00
Titus Tscharntke
8552f76798 renamed/fixed lua function enableHunger to enableConsume and disableAI now disables consume too ( to stay somehow compatible with the former behaviour ) 2010-09-08 19:00:22 +00:00
Mark Vejvoda
958184e018 - more memory cleanup 2010-09-07 21:01:22 +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
fba29d3002 - added new menu option to toggle on / off observers 2010-09-04 01:24:17 +00:00
Mark Vejvoda
e93ac6d756 - changed observer faction to use a special team # and fog of war is auto turned off for this special team #. 2010-09-04 00:32:56 +00:00
Mark Vejvoda
89510fb656 - modified debug player in game stats to use player color and larger font 2010-09-03 07:49:28 +00:00
Mark Vejvoda
b778600d11 - modified debug player info to use player color font 2010-09-03 07:35:16 +00:00
Mark Vejvoda
358d61aa38 - first attempt to add a special builtin Observer faction to allow people to observe games 2010-09-03 07:12:40 +00:00
Mark Vejvoda
a1eebafac6 - attempt fix smooth the shadow off / on logic when rendering slows 2010-09-03 01:50:16 +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
d6d1fe2add - bugfixes for multi-build. Now the other units are checked that they can not only build but repair too. Also those who repair now try to approach from the best angle as well as the builder. 2010-09-01 04:19:20 +00:00
Mark Vejvoda
ca49e0ba68 - attempt to fix multi-build 2010-08-31 23:14:15 +00:00
Mark Vejvoda
6ce69a1e0b - added new messagebox prompt on server when data synch check enabled and data is different we stop the server from launching the game.
- added faction preview texture when users change their faction selection
2010-08-31 06:38:27 +00:00
Mark Vejvoda
e32eb9c162 - modified command object to support special states which flow through network play as well. This allows for better handling of multi-unit build and allows for better future expanding of command processing. 2010-08-30 20:45:12 +00:00
Titus Tscharntke
13173788da mapFilter 2010-08-30 20:02:58 +00:00
Mark Vejvoda
f16bb3f28b - some bugfixes for new LUA features 2010-08-29 06:30:41 +00:00
Mark Vejvoda
5ae0430928 - added more LUA functions:
int registerCellTriggerEventForUnitToUnit(int sourceUnitId, int destUnitId);
int registerCellTriggerEventForUnitToLocation(int sourceUnitId, const Vec2i &pos);
int registerCellTriggerEventForFactionToUnit(int sourceFactionId, int destUnitId);
int registerCellTriggerEventForFactionToLocation(int sourceFactionId, const Vec2i &pos);
int getCellTriggerEventCount(int eventId);
void unregisterCellTriggerEvent(int eventId);
int startTimerEvent();
int stopTimerEvent(int eventId);
int timerEventSecondsElapsed(int eventId);
int triggeredCellEventId();
int triggeredTimerEventId();
LUA events:
timerTriggerEvent
cellTriggerEvent
2010-08-29 04:45:15 +00:00
Mark Vejvoda
03848fc84f - added more LUA features.
new event: 
gameOver
new method:
getGameWon()
2010-08-28 22:10:34 +00:00
Mark Vejvoda
4d372c12bc - added more LUA support and fixed parameter passing of Vec2i types with streflop
New LUA methods:
DisplayFormattedText
getAiEnabled
getHungerEnabled
startPerformanceTimer
endPerformanceTimer
getPerformanceTimerResults
2010-08-28 20:52:25 +00:00
Mark Vejvoda
dc5bf0f850 - bugfix for AI not losing HP when food is out
- added new LUA commands (for Tiger):
giveAttackCommand
disableAi
enableAi
disableHunger
enableHunger
2010-08-28 08:06:32 +00:00
Mark Vejvoda
db25b5391e - added in-game sound toggle hotkey (thanks Nebososo) 2010-08-28 03:41:17 +00:00
Mark Vejvoda
2ea8b69e22 - first attempt at allowing multiple units to build at the same time 2010-08-28 01:46:26 +00:00
Mark Vejvoda
a9b0f31816 - added hard coded team chat hotkey H to configurable keys
- changed dependency finder script to use only desired libs
2010-08-27 21:43:47 +00:00
Mark Vejvoda
3ee7fc902c - changed update and camera update fps to original values 2010-08-25 19:21:11 +00:00
Mark Vejvoda
5e20ab5808 - updated to allow dynamic changing of updatefps and camerafps 2010-08-25 18:26:17 +00:00
Mark Vejvoda
855443d98f - added a lookup cache for unit updater's frequently called unitOnRange logic 2010-08-25 07:29:35 +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
0e3c0a8d0e - disabled staggered unit updates 2010-08-24 02:49:55 +00:00
Mark Vejvoda
65cf1bfdac - attempt to lessen memory footprint of particles and speed up rendering 2010-08-24 01:21:34 +00:00
Mark Vejvoda
cce338a2c6 - atempt to squeeze some extra rendering performance 2010-08-21 18:50:56 +00:00
Mark Vejvoda
455876a3c0 - added the ability to change your playername from the game lobbies inline 2010-08-21 13:04:52 +00:00
Mark Vejvoda
34ff4bb2e7 - changed messagebox back to normal color and fixed lua displaytext to NOT fade 2010-08-11 23:07:18 +00:00
Mark Vejvoda
a28a20fd77 - updated messageboxes and lua script messages to use selected font color 2010-08-11 22:31:26 +00:00
Mark Vejvoda
175137631d - network and debug text now use selected text color 2010-08-10 21:41:07 +00:00
Mark Vejvoda
3f06f0133c - fixed placement of debug and network status text 2010-08-10 21:34:27 +00:00
Mark Vejvoda
a2e1b5fd57 - added a code warning comment to avoid memory issues in the future 2010-08-10 05:03:06 +00:00
Mark Vejvoda
17ce7b8c71 - bugfix for ultifd's unit particle cleanup issues causing unknown error during game end 2010-08-10 04:56:35 +00:00
James McCulloch
3d482ca366 * fix (work-around) for apparent MSVC bug, in AStarNode::operator<()
* removed some unused pathfinder stuff, and const-ified some other stuff
 * RoutePlanner is used in scenarios (for testing purposes...)
2010-08-08 04:43:24 +00:00
Mark Vejvoda
d280eefcce - moved placement of network status so you can view both network status and debug info 2010-08-07 22:49:52 +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
dfeea6fc0a - another attempt to fix ultifd's game end issue 2010-08-06 03:55:17 +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
c63283ffac - another attempt to fix game end crash for ultifd 2010-08-04 16:56:24 +00:00
Mark Vejvoda
7fda7a1d1a - attempt to fix network game end crash (on windows) 2010-08-02 04:18:03 +00:00
Mark Vejvoda
4e8fdc105c - attmpt to auto-create the screens folder at startup to avoid crashes when folder is missing and users try to take a screenshot. 2010-08-02 03:15:11 +00:00
Mark Vejvoda
4336ae3e37 - added new commandline param --validate-techtrees which will be used to check for known problems in the techtrees for an installation 2010-07-30 07:51:39 +00:00
Mark Vejvoda
6d3f6dcaf4 - added some logging when quitting a game
- another feeble attempt to fix windows game end crashes
2010-07-29 22:08:45 +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
ff586afd0d - some final updates to get the new pathfinder working after adding multi-pathing support 2010-07-21 22:05:50 +00:00
Mark Vejvoda
bca03b0c0c - initial changes to support multiple path finders 2010-07-21 18:21:40 +00:00
Mark Vejvoda
a3ec4650c4 - moved pause for lagged clients option to custom game menu
- bugfix to ignore 0.* ip addresses
2010-07-16 16:53:19 +00:00
James McCulloch
8387ed29dc * wired up RoutePlanner/Cartographer
* added DebugRenderer (mostly dysfunctional)
 * add lots of OutputDebug calls for the path finder, as macro PF_TRACE
2010-07-13 05:33:43 +00:00
James McCulloch
bdd4f306f4 * added GAE path finder (SearchEngine and friends)
* some small changes to Unit, UnitType, Vec2<> & Map needed for the new path finder
 * compiles, but not hooked up yet, old PathFinder still in use
2010-07-11 18:31:02 +00:00
Mark Vejvoda
031bfd2f60 - added LAN IP in custom Menu
- Updated readme and other text files with more accurate info (thanks Tomreyn)
- Disabled ability to zoom out when game is over if in a network game (creates to much LAG and instability)
2010-07-10 06:14:31 +00:00
Mark Vejvoda
0d7d0e139d - updated disconnect checking to include a timeout check for our custom ping 2010-07-09 17:12:57 +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
39ad29ba3d - attempt to improve rendering speed by rolling back render code to be more like 3.3.4
- added new ini setting to adjust http timeout and set default timeout to 10 seconds now
2010-07-07 18:50:55 +00:00
Mark Vejvoda
b0b775dc49 - adjusted ? toggle key to always allow toggling of FPS (whether or not debug in enabled) 2010-07-06 15:11:10 +00:00
Mark Vejvoda
8478ab80b3 - bugfixes for malformed debug statements
- updated version to 3.3.5.1
- added more null checks
- changes to try to fix crash when ending a game (delete cells bug)
2010-07-06 05:30:34 +00:00
Mark Vejvoda
3792a0af23 - added another NULL check 2010-07-03 11:07:37 +00:00
Mark Vejvoda
eda2e84aee - bugfixes for processing disconnect and game end scenarios. These fixes corrected a bunch of segfaults when client or server disconnect. 2010-07-02 19:57:47 +00:00
Mark Vejvoda
aa0db2c0f0 - network code bugfixes.
- More checking for disconnect and proper handling of those cases
- Changed battle end screen to exit via mouse click on exit button (or press ESC)
- Removed display of unused ping output
- added more error handling debug output of the mystical unknown error caught in window.cpp to track it down better if it happens again
2010-07-02 02:50:20 +00:00
Mark Vejvoda
391fd1f36d - bugfixes to properly manage and display various kinds of network error conditions. 2010-07-01 06:11:14 +00:00
Mark Vejvoda
c5cb8dbd18 - bugfixes related to chat message processing and error processing. We now stack up messages and process them in a more safe manner 2010-07-01 00:08:59 +00:00
Mark Vejvoda
9508dad51b - network related bugfixes:
menu slowdown when picking network slots
clients can once again change network slots
performance fixes for network receiving
2010-06-29 06:50:35 +00:00
Mark Vejvoda
848d953bd7 - fixed TOM's game loading screen mouse click problem 2010-06-25 05:05:52 +00:00
Mark Vejvoda
96858fcd31 - bugfixes to properly save and load exact custom game settings (including slot positions) 2010-06-25 04:06:28 +00:00
Mark Vejvoda
9b2b544b84 - fixed mouse cursor position problrm at game startup 2010-06-25 00:45:46 +00:00
Mark Vejvoda
475da10605 - bugfix for end of game crash (end the network interface) 2010-06-24 11:27:21 +00:00
Mark Vejvoda
a81286cbba - added support for showing projectile particles in the g3d viewer 2010-06-24 10:52:58 +00:00
Mark Vejvoda
1d4f47718c - added many new things and fixed a number of bugs (too tried to mention them all) 2010-06-24 01:23:18 +00:00
Mark Vejvoda
87b4706940 - Attempt to use libcurl in a thread safe manner 2010-06-23 14:49:20 +00:00
Mark Vejvoda
60c6848832 - just let delete shutdown the thread to avoid mutex deadlock 2010-06-18 17:09:42 +00:00
Mark Vejvoda
a287422930 bugfixes to correct segfault 2010-06-17 22:09:25 +00:00
Mark Vejvoda
b2f91e0f32 - attempt to make TOM happy, clickl madly while game is loading and help lame windows not choke 2010-06-17 06:55:35 +00:00
Mark Vejvoda
eeda623b4f - removed the rotateunit flag (its now just part of MG)
- updated rendering to consider both visible and explored cells when rendering untis and objects
- added a warning message when a client is lagging and coming close to being kicked off
2010-06-17 00:08:27 +00:00
Mark Vejvoda
cad295c912 - a few minor render updates to try to squeeze better performance out of the rendering (only render visible and explored unit and object cells) 2010-06-16 07:18:06 +00:00
Mark Vejvoda
c7c9e69567 - added initial work to better manage rendering (but not yet enabled)
- added new commandline parameter: --version
- some thread cleanup to try adjusted timings when threads shutdown
2010-06-15 16:27:52 +00:00
Mark Vejvoda
e091460f40 - attempt to add a client LAG checker to notify and disconnect clients that fall too far behind. 2010-06-15 05:36:07 +00:00
Mark Vejvoda
f619aad383 - bugfix for hotkey processing (allow single quoted characters to fix grouping units) 2010-06-13 17:55:39 +00:00
Mark Vejvoda
6c28167e5e - added SDL Pump events during game load to avoid hanging appearance when users click madly in startup 2010-06-13 00:59:56 +00:00
Mark Vejvoda
c800ab28cc - bugfixes for incorrect method declaration 2010-06-12 18:56:16 +00:00
Mark Vejvoda
085d4e4bfe - added more debug statements to try to track beta bugs
- added safer customization of ini files
- added ability to customize game keys
- added more error checking for ogg file loading
- added faction loader progress
- added a few more thread protections on custom menu
2010-06-12 18:27:39 +00:00
Titus Tscharntke
74400f77fc chat in menu doesn't fade and 'M'-key to show more messages works in menu too 2010-06-08 22:50:37 +00:00
Mark Vejvoda
4fd75e5d7d - fixed two nasty AI bugs which would cause out of synch and memory corruption problems
- added new glest.ini setting to log commands for each client
2010-06-08 07:40:32 +00:00
Titus Tscharntke
d14f013491 some chat changes and custom game with NetworkFramePeriod 2010-06-08 00:00:28 +00:00
Mark Vejvoda
1d0836f0ba -added another mutex release to fix a bug found from a segfault
-added a safer debug buffer output method
-added ability to specify precsion for floating point conversion
2010-06-05 15:48:50 +00:00
Mark Vejvoda
50ca413310 added more debug info related to time of day increment 2010-06-05 14:37:20 +00:00
Mark Vejvoda
cf6d43247d added networkframeperiod support to gamesettings and added possibility to over-ride in glest.ini for now 2010-06-05 07:52:14 +00:00
Mark Vejvoda
3b06db30e9 commented out ping code and added synch check for large comamnds list 2010-06-05 00:00:36 +00:00
Mark Vejvoda
6b10c5696f - added missing gamesettings to network packet and added experimental threaded server message broadcasts to client 2010-06-03 07:52:17 +00:00
Mark Vejvoda
e85a269738 - added server controlled AI as a game option 2010-06-03 01:10:40 +00:00
Mark Vejvoda
1c9b85418a - Some initial changes in prep for support server controlled AI 2010-06-01 16:54:44 +00:00
Mark Vejvoda
f4750e6f8b - added ability to remember last custom game settings 2010-05-31 19:57:10 +00:00
Mark Vejvoda
03b24659e4 - added ability to toggle the observer mode per game when players game is over (win or lose) 2010-05-31 10:20:18 +00:00
Mark Vejvoda
8ea52485cc - Attempt to fix unit id allocation issues 2010-05-31 09:24:44 +00:00
Mark Vejvoda
0069fbf4f0 - added more debug code and fixed a server bug where client connecting at the same time a server opens a slot would result in a crash sometimes. 2010-05-31 06:11:31 +00:00