Commit Graph

764 Commits

Author SHA1 Message Date
Mark Vejvoda
30913d9ae1 - see if this regular game crc checking every 20th frame is ok for performance 2013-09-21 00:02:36 +00:00
Mark Vejvoda
970de758e4 - bugfix for network CRC comparison so we don't lose frames 2013-09-19 01:35:08 +00:00
Mark Vejvoda
b716cea3e7 update server crc log count 2013-09-17 16:36:05 +00:00
Mark Vejvoda
d22c10ccda - added crc logging when crc mismatch detected 2013-09-17 00:43:14 +00:00
Mark Vejvoda
b5e26070b1 - updated to beta2 and added primitive CRC checking for network games, requies the Host user to set the following ini to enable CRC's:
EnableNetworkGameSynchChecks=true
2013-09-12 03:33:43 +00:00
Mark Vejvoda
88ed55ca8e remove uuid from debug view 2013-06-24 00:29:32 +00:00
Mark Vejvoda
5524cd6a0e - updated exit game menu text vs leaving the application as requested.
- updates from transifex
2013-06-21 06:01:43 +00:00
Titus Tscharntke
511ba5134f default selection is colorpicking now 2013-06-20 21:42:01 +00:00
Mark Vejvoda
3696c3b9d4 bugfix for error when changing resource multiplier lower than 0.5 2013-06-20 19:18:29 +00:00
Mark Vejvoda
d7eaeaead5 updated next hint to a button and added english label 2013-06-19 16:12:00 +00:00
Titus Tscharntke
d13242287c client slowdown/wait/speedup messages in verbose mode only 2013-06-16 18:21:33 +00:00
Mark Vejvoda
c9aab227e5 allow pausing network games when not joining an in progress game 2013-06-13 19:57:19 +00:00
Mark Vejvoda
0ead6a36dc full support for translated techtrees 2013-06-13 08:55:48 +00:00
Mark Vejvoda
a8662c8b31 updated menus to display translated tech name 2013-06-13 01:37:15 +00:00
Mark Vejvoda
1e1676a34a more render improvements 2013-06-12 06:14:55 +00:00
Mark Vejvoda
836172f87c more render improvements 2013-06-12 01:24:10 +00:00
Mark Vejvoda
668b34db8e more mad attempts to squeeze better performance 2013-06-11 06:44:26 +00:00
Mark Vejvoda
4ca6c232cf allow game to be paused before player joins game and retain pause state 2013-06-05 17:17:03 +00:00
Mark Vejvoda
0af3e349d8 bugfixes to allow joining in progress game and also ensure disconnect list is correct. 2013-06-04 08:01:33 +00:00
Mark Vejvoda
b6780d2af7 code cleanup 2013-06-04 04:36:00 +00:00
Mark Vejvoda
aab72b863c enforce that no network commands are sent when game is paused for player who is joining except pause / unpause and disconnect 2013-06-04 04:26:37 +00:00
Mark Vejvoda
1097938c2e bugfix for loading saved games which do not have playeruuid 2013-06-03 05:33:07 +00:00
Titus Tscharntke
01e7c28992 screenshots for savegames without annoying menu in screenshot. ( I render the scene again before taking a screenshot ). 2013-06-02 21:41:09 +00:00
Mark Vejvoda
ee271467d0 attempt to fix join game out of synch (and added more logging to track further if needed) 2013-06-02 05:57:51 +00:00
Mark Vejvoda
9c4b469d09 bugfix for segfault on client disconnect (regression introduced a few checkins ago) 2013-06-02 05:08:40 +00:00
Mark Vejvoda
2cd6325806 attempt to fix message which used servers version of the text always 2013-06-01 23:45:19 +00:00
Mark Vejvoda
4af65d1e19 added unique playerid for every client 2013-06-01 02:31:12 +00:00
Mark Vejvoda
a0506e3486 bugfix for join game segfault posted by atze 2013-05-30 06:28:09 +00:00
Mark Vejvoda
79c3c1eed5 bugfix player # in disconnect message 2013-05-29 06:13:21 +00:00
Mark Vejvoda
995617e91e bugfix to allow admin to kick player in same slot multiple times 2013-05-28 07:10:13 +00:00
Mark Vejvoda
7acd500c08 bugfix for a number of legacy divide by 0 conditions discovered by Tiger. 2013-05-28 06:07:35 +00:00
Mark Vejvoda
7ee5d2b300 added a bunch of new lua methods for Tigers new scenario to montior changes to a unit 2013-05-28 00:59:44 +00:00
Mark Vejvoda
93caf14362 attempt to fix out of synch of join in progress game 2013-05-27 08:26:01 +00:00
Mark Vejvoda
f4a29d98b8 bugfix to correct out of synch, titi tried to fix this a while ago but the code was not complete, we hit this when testing today 2013-05-27 04:56:07 +00:00
Mark Vejvoda
f79dd4be83 admin can now kick player joining in progress game while he is in the lobby 2013-05-26 06:45:56 +00:00
Mark Vejvoda
2c1b181bc7 a bunch more code cleanup from cppcheck 2013-05-26 06:03:32 +00:00
Mark Vejvoda
cef0ce9978 attempt to fix weird morph bug found by Elimnator 2013-05-26 00:11:07 +00:00
Mark Vejvoda
fd9ce54063 attempt to fix morph out of synch 2013-05-25 22:44:39 +00:00
Titus Tscharntke
60a7ea172d client slowdown/catchup reenabled again 2013-05-25 22:30:31 +00:00
Mark Vejvoda
aa69a5818b added some new lua methods to determine day or night and new event 2013-05-25 20:46:36 +00:00
Mark Vejvoda
7cd6dfbdca bugfixes for loading saved games with bad data or wrong game version 2013-05-25 08:02:07 +00:00
Titus Tscharntke
a6920049e8 lets see if things work without client speedup/slowdown 2013-05-22 22:15:52 +00:00
Mark Vejvoda
5b664fb1a2 - bugfix for transifex tutorial download files now loaded into UI
- updated each thread to provide its name
2013-05-21 20:28:42 +00:00
Mark Vejvoda
f98d9fdddc attempt to see if this corrects out of synch, i COULD NOT reproduce the out of synch with my winxp and linux 64 systems, perhaps titi had different ini values between linux and windows? 2013-05-21 00:38:35 +00:00
Mark Vejvoda
c55b9c3ffe code cleanup based on cppcheck results 2013-05-17 05:01:23 +00:00
Mark Vejvoda
c30d78ff74 saved games for rejoining in progress games saves to .zip and sends that to clients. 2013-05-01 20:56:19 +00:00
Mark Vejvoda
c19065ebd0 bugfix for rain particles when loading keyboard setup in game (and memory cleanup) 2013-04-30 06:17:30 +00:00
Titus Tscharntke
a7b1f95ee4 g3d exporter sets fully transparent objects to opacity=1 2013-04-10 00:15:53 +00:00
Titus Tscharntke
59f6688dad uuh , I had some == = problems ... 2013-04-09 23:15:48 +00:00
Titus Tscharntke
1d8644bff5 making network things work... 2013-04-07 20:32:00 +00:00
Titus Tscharntke
bd5aa2e112 making network things work... 2013-04-07 19:25:02 +00:00
Titus Tscharntke
1071358140 making network things work... 2013-04-07 17:44:07 +00:00
Titus Tscharntke
571775fb30 making network things work.. 2013-04-07 17:11:29 +00:00
Titus Tscharntke
4a436066e7 slowdown and speedup clients based on recorded stats 2013-04-07 15:27:55 +00:00
Titus Tscharntke
c72cd2ac4c lets try it with a smoother catchup of clients 2013-03-25 22:25:57 +00:00
Titus Tscharntke
dba93e2bf4 I think the frames stored in messages are no network frames but world frames 2013-03-25 20:55:28 +00:00
Titus Tscharntke
30cb3926d5 maybe we are in pause mode 2013-03-25 19:57:17 +00:00
Titus Tscharntke
b6b0e989da lets try (again) if this makes things less choppy 2013-03-16 23:05:11 +00:00
Titus Tscharntke
d041f1eea6 commented my last changes ( beside "+1" )as itmade clients freeze on exiting games 2013-03-10 01:32:00 +00:00
Titus Tscharntke
c2e94985b2 "\n" was missing ( please look at my last changes it softcoder ) 2013-03-10 01:02:41 +00:00
Titus Tscharntke
9db9d12891 next try 2013-03-10 00:16:02 +00:00
Titus Tscharntke
7263274d51 trying to fix clients with high load. 2013-03-10 00:09:09 +00:00
Titus Tscharntke
c8458237e0 trying to fix slowdowns of clients ( maybe they are ahead ) 2013-03-09 23:36:25 +00:00
Mark Vejvoda
aec3ff1f63 - bugfix for restoring explorations on loading a saved game 2013-03-06 15:02:17 +00:00
Mark Vejvoda
560ed46cc0 - more bugfixes for slot switching and joining in progress games
- disallow server to toggle pause state when client is joining
- fix dmp extension on linux
2013-03-06 14:29:49 +00:00
Mark Vejvoda
47aa0050b8 - this seems to be stable now and handles lag quite well i think 2013-03-02 07:33:01 +00:00
Mark Vejvoda
951cd33ef4 - try to get threaded client working without lag 2013-03-02 02:35:53 +00:00
Mark Vejvoda
019c7edcc7 - try to get threaded client working without lag 2013-03-02 02:19:34 +00:00
Mark Vejvoda
503627f02b - try to get threaded client working without lag 2013-03-02 01:05:39 +00:00
Mark Vejvoda
6603e08c96 - try to get threaded client working without lag 2013-03-02 00:53:55 +00:00
Mark Vejvoda
2fc2e51842 - attempt to fix lagging clients 2013-03-01 23:31:53 +00:00
Mark Vejvoda
74119d0b93 - bugfix for in game joins pause / resume 2013-03-01 23:05:38 +00:00
Mark Vejvoda
c3feec02ee - increase resume speedup to improve performance 2013-03-01 19:54:27 +00:00
Mark Vejvoda
b6cefa3388 - attempt to fix lag issue when resuming paused network game (also for resume joining in progress game) 2013-03-01 06:52:33 +00:00
Mark Vejvoda
5aaa023476 - bugfix for in game joins pause / resume 2013-02-28 01:31:02 +00:00
Mark Vejvoda
e4235cc551 - attempt to further stabilize joining in progress games 2013-02-27 06:46:42 +00:00
Mark Vejvoda
b0a370900f - attempt to make joining in progress games a bit more reliable and stable 2013-02-26 23:31:59 +00:00
Mark Vejvoda
13665d58f1 - attempt to fix light sources handling as reported by tomreyn
- allow speed up / slow down for network game as long as no-one is connected
2013-02-26 20:48:20 +00:00
Mark Vejvoda
e0bda20f5e - bugfix for slot not re-opening after disconnect when required 2013-02-24 00:28:45 +00:00
Mark Vejvoda
c8cdca22fd - some code cleanup and try to improve joining in progress game performance 2013-02-19 22:00:15 +00:00
Mark Vejvoda
8916a86b8c - bugfixes for load / save game for in progress joining 2013-02-19 06:41:56 +00:00
Mark Vejvoda
69925fb887 - bugfixes for joining network games 2013-02-19 04:53:24 +00:00
Mark Vejvoda
54c026bb3e - bugfixes for in game joining 2013-02-17 07:15:01 +00:00
Mark Vejvoda
85b1365e7e - bugfix for in game joining, loading saved game needs to change this to properly indicate which faction is the joining players 2013-02-16 20:02:22 +00:00
Mark Vejvoda
45dc4c0e5d - updates to join in progress game, and now allow for switching slots 2013-02-16 19:11:36 +00:00
Mark Vejvoda
b38f6b20a1 - updates to join in progress game, and now allow for switching slots 2013-02-16 10:07:36 +00:00
Mark Vejvoda
9d19ff2b57 - added the first draft of joining games in progress 2013-02-15 18:25:10 +00:00
Mark Vejvoda
93773839fd - allow for multiple preview / loading / hud textures for different resolutions 2013-02-11 23:52:44 +00:00
Mark Vejvoda
5fd8b121a9 - allow for multiple preview / loading / hud textures for different resolutions 2013-02-11 23:43:30 +00:00
Titus Tscharntke
a3635376cf no more trouble with middle mouse button camera view 2013-02-09 23:20:40 +00:00
Mark Vejvoda
50e64e9564 - scenario description patch applied from Muwuum 2013-02-09 07:17:10 +00:00
Mark Vejvoda
9bc6d33f1d - bug fixes to stabilize the windows build 2013-02-09 06:57:05 +00:00
Titus Tscharntke
3ea6a02d95 no return in void methods 2013-02-05 22:00:50 +00:00
Mark Vejvoda
f87b8b6ee2 - updated code to protect against null pointers and uninitialized values and threading issues 2013-02-04 08:30:43 +00:00
Mark Vejvoda
bff9b1b3bc - cleanup a bunch of vc++ compile / link warnings 2013-02-01 08:12:20 +00:00
Titus Tscharntke
11cd3b4a17 now you can increase the speed step by step up to "FastSpeedLoops" 2013-01-31 12:36:51 +00:00
Titus Tscharntke
c5dd29f4ff new way to define the selectionType. No more use of EnableColorPicking and so on!
allowed values are: selectbuf color frustrum

Default is selectbuf again as Colorpicking still makes trouble.
2013-01-27 22:10:24 +00:00
Mark Vejvoda
8cd7aa0e43 - code cleanup from cppcheck 2013-01-25 02:55:28 +00:00
Mark Vejvoda
cc89b6ba65 - add selection type to debug view ingame 2013-01-24 00:14:29 +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
7b99501697 - added a new skill to toggle fog of war for any command. 2013-01-11 18:18:58 +00:00
Mark Vejvoda
5d2066fdbb - added a new thread manager to try to see if it takes less CPU cycles while the thread controller waits for slaves to do their work. To enable the experimental thread manager set: EnableNewThreadManager=true 2013-01-10 21:16:28 +00:00
Mark Vejvoda
1f49886755 - re-enabled fog of war cache to improve performance
- improve xml file loading speed
2013-01-03 17:30:59 +00:00
Mark Vejvoda
ee2ad95164 - attempt to improve ai decision performance by having each ai player updates done in a thread 2013-01-01 18:55:26 +00:00
Mark Vejvoda
56dc004119 - added fribidi for opensuse and fedora
- allow loading saved games on older versions if version are compatible
2012-12-29 21:31:54 +00:00
Mark Vejvoda
6b32c747b5 - fix end game stats if your team won it shows you as a winner. 2012-11-20 02:26:51 +00:00
Mark Vejvoda
d9b624dbb8 - fixed spelling mistake in variable name 2012-11-15 08:16:08 +00:00
Mark Vejvoda
1dbcabf12c - minor feature request added from sourceforge, when command given cannot be executed, sometimes we show the requirements of the command so the user knows why it failed 2012-11-10 19:39:55 +00:00
Mark Vejvoda
35f6a6665b - attempt to keep irc connection and just join / leave the irc channel as required to speed up irc in the lobby 2012-11-10 09:22:28 +00:00
Mark Vejvoda
ff58a868b3 - attempt to bugfix windows using proper printf syntax for data types 2012-11-10 06:37:23 +00:00
Mark Vejvoda
b178b1d1e9 - fixed messagebox word wrap with lua messages 2012-11-08 23:54:43 +00:00
Mark Vejvoda
29da478bd5 - more cppcheck code cleanup 2012-11-06 03:52:27 +00:00
Mark Vejvoda
81989f5947 - bugfix if user clicks around while game loading
- cleanup from last checkin (corrections)
2012-10-26 04:35:14 +00:00
Mark Vejvoda
3419127632 - proper way to handle size_t objects (cleanup warning on other platforms) 2012-10-26 02:42:10 +00:00
Mark Vejvoda
61ffcf8252 - cleaned up compiler warning 2012-10-22 06:44:38 +00:00
Mark Vejvoda
4598299caf - added the ability for advanced translation features (transifex users can download and remove custom files from the transfex website and test their work) 2012-10-22 05:08:52 +00:00
Mark Vejvoda
64058b17e7 - code cleanup from cppcheck
- added more checks when loading models, maps and textures
2012-10-20 07:15:13 +00:00
Mark Vejvoda
8a7190f6f1 - fixed windows build 2012-10-19 02:01:40 +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
e86cb3aeff - more code cleanup based on suggestions from cppcheck 2012-10-18 08:16:47 +00:00
Mark Vejvoda
c898371d6c - added a few new items to the save/load game logic 2012-10-17 22:57:04 +00:00
Mark Vejvoda
505206059b - added new lua method for Muwuum:
void giveStopCommand(int unitId)
	bool selectUnit(int unitId)
	void unselectUnit(int unitId)
	void addUnitToGroupSelection(int unitId,int groupIndex)
	void recallGroupSelection(int groupIndex)
	void removeUnitFromGroupSelection(int unitId,int group)
	void setAttackWarningsEnabled(bool enabled)
	bool getAttackWarningsEnabled()
2012-10-17 20:15:50 +00:00
Mark Vejvoda
9634ba58d4 - fixed faction previews for linked factions 2012-10-16 19:07:50 +00:00
Mark Vejvoda
feda398d5d - first attempt to see if we can get mod center download option working from game lobby 2012-10-15 22:19:22 +00:00
Mark Vejvoda
6fdd71cb9e - bugfix for lua usage of system generated cell flashing 2012-10-15 20:39:54 +00:00
Mark Vejvoda
68b1ae54b5 - validation now works on techtree's with linked factions 2012-10-14 21:40:35 +00:00
Mark Vejvoda
e63e634e1e - added a bit more lua and updated capture enemy flag 2012-10-13 07:33:33 +00:00
Mark Vejvoda
0180aa6bba - added new lua functions:
triggeredCellEventUnitId()
showMarker(int flashCount, int factionIndex, string note, string textureFile,Vec2i pos)

1. The first one can be called in a cell trigger event and tell you which unit triggered the event
2. The second flashes a position in the minimap
2012-10-13 05:06:53 +00:00
Titus Tscharntke
b9836685d8 Chat behaviour can be changed in options. Time display on/off via options too 2012-10-11 22:10:31 +00:00
Mark Vejvoda
6b324cbb4e - added second round of security sandboxing for lua scripts (disable a number of other potentially dangerous functions) 2012-10-11 06:10:21 +00:00
Mark Vejvoda
e3e3832070 - added first round of security sandboxing for lua scripts (disable the os library) 2012-10-11 05:17:37 +00:00
Mark Vejvoda
5c0090d488 - bug fixes for free cell lua functions 2012-10-10 19:56:52 +00:00
Mark Vejvoda
4a63060b71 - added two new lua functions:
networkSetCameraPositionForFaction(int factionIndex,Vec2i pos)
networkSetCameraPositionForTeam(int teamIndex, Vec2i pos)
2012-10-10 18:28:55 +00:00
Mark Vejvoda
84452f8633 - added new cell trigger lua function to be able to detect when any unit enters or exits a region of cells:
int registerCellAreaTriggerEvent(Vec4i pos)
int getCellTriggeredEventAreaEntryUnitId();
int getCellTriggeredEventAreaExitUnitId();
2012-10-10 05:44:14 +00:00
Mark Vejvoda
0449fbea2b - attempt to bugfix out of synch when players disconnect and we switch to AI 2012-10-10 00:27:34 +00:00
Mark Vejvoda
1d98015d5d - attempt to bugfix out of synch when players disconnect and we switch to AI 2012-10-09 23:18:07 +00:00
Mark Vejvoda
165f281f92 - added a few new lua functions to check if a cell is free 2012-10-09 20:03:09 +00:00
Mark Vejvoda
c5ac0cc8e3 - fix min player for headless game message 2012-10-06 17:50:27 +00:00
Mark Vejvoda
5e42c6dc03 - loads of code cleanup based on verbose output from the latest git version of cppcheck 2012-10-06 07:06:40 +00:00
Titus Tscharntke
f4a200e949 fix for wciows "free camera" bug ( http://glest.org/glest_board/index.php?topic=8640.0 ) 2012-10-03 20:13:11 +00:00
Mark Vejvoda
ae5018c4dc - do not continuously throw errors in game 2012-10-02 06:20:39 +00:00
Titus Tscharntke
b65ff48d29 A technically more simple way to set the camera mode 2012-09-27 21:10:28 +00:00
Mark Vejvoda
c33c1826ae - proper implementation of video repeat (looping) 2012-09-27 01:17:57 +00:00
Titus Tscharntke
de3b8355fb attack is possible in FP-view now 2012-09-26 23:21:49 +00:00
Titus Tscharntke
8dd43e2e31 finally I am a bit happy with the "f4" camera view 2012-09-26 22:52:21 +00:00
Titus Tscharntke
784ccb7e56 3rd person camera improved/fixed ( still not done ) 2012-09-26 19:25:35 +00:00
Titus Tscharntke
3db7d017e3 removed camera stuff from unit and the camera following a unit is much more smooth now. ( Not finished, work in progress ) 2012-09-26 00:15:37 +00:00
Mark Vejvoda
7c0e10684a - added lua functions to add / remove cell markers:
addCellMarker(0,'test from scenario!','',cellMarker)
param1=factionindex
param2=cell hint
param3=empty string
param4=cellPosition

removeCellMarker(0,{46,13})
param1=factionindex
param2=cellPosition
2012-09-25 07:05:52 +00:00
Mark Vejvoda
3ede912b9a - added support for custom video's on battle end screen:
look for videos in the following order:
1. check faction xml file for the following attributes (depends on win/lose) on the faction tag:
faction-battle-end-win-video="<path to video>"
faction-battle-end-lose-video="<path to video>"

if not defined 2. check the faction folder for the files:
battle_end_win_video.*
battle_end_lose_video.*

if not found check the data/core/menu/videos/ paths for:
battle_end_win.*
battle_end_lose.*
2012-09-25 00:23:25 +00:00
Mark Vejvoda
9e75b9144c - removed cell marker from popup menu and moved to hotkeys (f2 add f3 remove)
- added a new experiemntal feature called 'follow unit'. select 1 unit then press f4 and when the unit moves the camera tries to look from the units perspective. To turn this off select no unit and press f4.
2012-09-24 17:13:27 +00:00