Commit Graph

1037 Commits

Author SHA1 Message Date
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
5cf0313c5a - bugfix for cancel icon displaying when unit has only the 'stop' command active 2010-10-28 18:31:12 +00:00
Mark Vejvoda
df3f56a451 - cleanup of texture compression. We output stats for textures that we attempt to compress and what percent they were compressed (before and after byte sizes) 2010-10-28 06:59:43 +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
78f6f49cb6 - fixed shadow mapping by removing the use of the extension: GL_ARB_shadow_ambient
(thanks: asmodeus and Ishmaru)
- added some initial work for texture compression (but not active yet)
2010-10-27 15:04:47 +00:00
Mark Vejvoda
3db2b07e90 - removed some unneeded things from the custom game menu (as requested by tomreyn) 2010-10-26 21:52:00 +00:00
Mark Vejvoda
43670f76c9 - bugfix for invalid map co-ordinates when looking for resources 2010-10-26 15:25:38 +00:00
Mark Vejvoda
1e104f0496 - attempt to further improve pathfinder performance when MANY units are on the map 2010-10-26 06:53:04 +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
8bbbe403ad - more performance improvements for resource cache logic (try to avoid repetitive caching logic when it was already done once) 2010-10-25 22:02:36 +00:00
Mark Vejvoda
d07cd76459 - added a guard for proper slot index usage in network code 2010-10-25 20:56:57 +00:00
Mark Vejvoda
45df867490 - replaced version check on masterserver with built in php function for proper functionality 2010-10-24 21:15:09 +00:00
Mark Vejvoda
117521a8d4 - disabled the recently introduced pathfinding cache as its too slow and not sure that it really does any good. This should help performance to be better. 2010-10-24 06:53:30 +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
112bfd4445 - commented out debug code 2010-10-24 02:16:44 +00:00
Mark Vejvoda
7cb1d6a5b1 - some performance improvements with the new cached resource data 2010-10-24 01:49:25 +00:00
Mark Vejvoda
c3d41f5082 - bugfixes to master server communication logic when starting a game. Now we only send updates if the game was published, not for every network game. Also we properly delete the game from the masterserver when it has ended. 2010-10-23 22:06:49 +00:00
Mark Vejvoda
6a0e876bf2 - relaxed some of the special characters a bit so they can be used in the descriptions 2010-10-23 21:47:34 +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
fd3a8e4705 - minor bugfix when broadcasting on UDP (only one socket per unique subnet) 2010-10-23 05:12:28 +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
e53e6b49a9 - bugfix for multiple consumable resources applying incorrectly during the update interval. (thanks silnarm) 2010-10-22 22:52:37 +00:00
Mark Vejvoda
c4c812dd15 - updated chat player colors in console so ONLY playername is colored the players color
(by request from titi)
2010-10-22 21:54:47 +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
6ace9ad571 - added ability to toggle team # from 1 to 8 (for tomreyn) 2010-10-22 17:20:55 +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
707a26feb2 - bugfix for server side player color index being wrong 2010-10-22 16:35:16 +00:00
Mark Vejvoda
343fdb70b2 - fixed the cursor bug mentioned by claymore 2010-10-22 16:08:13 +00:00
Mark Vejvoda
c088889e7c - bugfix to retain proper team color based on actual slot position, regardless of how many closed slots there are. Yay, now team placement and color works properly 2010-10-22 08:10:56 +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
b869552cad - a little bit of fine tuning the new unit harvesting logic, now units are more intelligent about how they harvest (both AI and Human players) 2010-10-22 04:48:24 +00:00
Mark Vejvoda
cf5164d5ce - bugfix for consumable resources. Now we get the total usage value BEFORE applying the consequences (thanks for finding this Zoythrus) 2010-10-22 04:16:11 +00:00
Mark Vejvoda
362ae6f4fa - attempt to see if this fixes some lua problems 2010-10-21 22:12:05 +00:00
Mark Vejvoda
178809ada3 - changed resource faction cache to a map for better performance 2010-10-21 21:53:08 +00:00
Mark Vejvoda
07fe6a2196 - added to the faction resource cache pool for even better AI discovery of resources 2010-10-21 20:31:09 +00:00
Mark Vejvoda
ae367fb252 - updated to units harvesting so they try to harvest different resources when blocked if other resources are close by. 2010-10-21 19:26:14 +00:00
Mark Vejvoda
79318735ab - cleanup of last compiler warnings in Linux (hurray!) 2010-10-21 18:24:54 +00:00
Mark Vejvoda
ba088e9258 - bugfix for linux builds after compiler warning cleanup 2010-10-21 17:49:14 +00:00
Mark Vejvoda
be979590c1 - more compiler warning cleanup 2010-10-21 17:42:45 +00:00
Mark Vejvoda
cbe6860826 - more compiler warning cleanup 2010-10-21 16:36:26 +00:00
Mark Vejvoda
45a26a4597 - cleaned up more compiler warnings
- added unsigned 64 bit type for windows
2010-10-21 15:55:12 +00:00
Mark Vejvoda
c6a4e53151 - fix compile error on linux 2010-10-21 15:35:13 +00:00
Mark Vejvoda
06b9d7eef7 - cleaned up a whole pile of compiler warnings 2010-10-21 15:21:46 +00:00
Mark Vejvoda
d5117ed7fa - cleaned up a whole pile of compiler warnings 2010-10-21 07:20:17 +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
f5f406dfb3 - bugfix related to segfault when a network disconnect occurs while a thread is updating a slot 2010-10-21 00:21:58 +00:00
Mark Vejvoda
bc7ba297fd - more tweaking for units harvesting, this hopefully cleans up segfaults and makes things more stable. 2010-10-20 20:40:29 +00:00
Mark Vejvoda
6104dedc76 - added a resource harvest success cache for stuck units to look at when they cannot harvest. 2010-10-20 07:28:27 +00:00
Mark Vejvoda
ddb4c42bf5 - added some guard conditions to avoid segfault when resources are harvested quickly 2010-10-19 22:47:45 +00:00
Mark Vejvoda
913df7ec3b - added more cached information to help deal with units getting stuck while harvesting. Trying to keep them busy instead of standing around. 2010-10-19 22:26:49 +00:00
Mark Vejvoda
dda594cf33 - a slight change in dealing with units getting stuck while harvesting. Trying to keep them busy instead of standing around. 2010-10-19 16:54:48 +00:00
Mark Vejvoda
182f2cd20d - bugfixes to AI where workers harvesting think they have arrived but really did not. 2010-10-19 04:38:55 +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
3d4ccb460c - added a little extra logic for units when pathfinding. We keep temporary lists of bad cells of harvest resources where a unit simply cannot get to. This is kept for small periods of time and then the bad cell list is purged when data gets old. This tremendously helps units to be more active when getting stuck in challenging places on maps. 2010-10-17 08:50:27 +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
b3d981c2fd - updated version to 3.3.7.2 for next release 2010-10-15 19:19:36 +00:00
Mark Vejvoda
9490e64750 - turned on a flag for libcurl so timeout issues don't cause segfaults in threads 2010-10-15 17:49:18 +00:00
Mark Vejvoda
59c5fd2581 - moved version checking into one common method in the util file. Now all network related checks use this common method to determine version compatibility 2010-10-15 17:27:00 +00:00
Mark Vejvoda
1353f61069 - added some additional safety around the logger in case we have problems opening files on the filesystem 2010-10-15 16:22:35 +00:00
Mark Vejvoda
427f505c4c - updated version to 3.3.7.1 for minor update release 2010-10-15 02:03:48 +00:00
Mark Vejvoda
3d132d11a2 - added an extra guard to the masterserver thread pointer in case something happens in the constructor, now I make sure the thread pointer is set to NULL at the top of the constructor for safety. 2010-10-15 01:52:36 +00:00
Mark Vejvoda
025d8520b6 - bugfix to reset team to 1 when toggling OFF observers and we previously had an observer selected 2010-10-15 00:12:17 +00:00
Mark Vejvoda
4f3d5f0372 - when toggling observers, we now retain original faction selection 2010-10-14 23:22:09 +00:00
Mark Vejvoda
94da959fd4 - force sending game settings just before launch if we detect something has changed (like random faction calculation) 2010-10-14 22:41:03 +00:00
Mark Vejvoda
9a73cd520c - commented out printf 2010-10-14 19:53:34 +00:00
Titus Tscharntke
a01ae45ede Similar to announcements a version info is implemented now. We can put there an info string which will tell the user that his version is outdated and he should update or whatever. 2010-10-13 19:16:04 +00:00
Titus Tscharntke
15c6ea93b3 Bugfix for lua related crash 2010-10-12 10:20:00 +00:00
Mark Vejvoda
2519588148 - attempt to fix lua code that might be crashing the game 2010-10-11 23:39:44 +00:00
Mark Vejvoda
fd4054e345 - attempt to fix lua code that might be crashing the game 2010-10-11 23:33:03 +00:00
Mark Vejvoda
3a94f1506f - attempt to fix lua code that might be crashing the game 2010-10-11 23:24:10 +00:00
Mark Vejvoda
67c1c52caa - added an extra NULL check to new max unit check 2010-10-11 15:58:10 +00:00
Titus Tscharntke
d80127f697 forgot to remove label and listbox from header. 2010-10-11 00:59:45 +00:00
Titus Tscharntke
f0d7954f63 external server port is now in options menu ( and stored in glest.ini/glestuser.ini by this ) 2010-10-11 00:53:25 +00:00
Mark Vejvoda
92c6baa7ea - updated version to 3.3.7.1-dev 2010-10-10 14:29:33 +00:00
Mark Vejvoda
9fb5180a17 - new masterserver version check of only first 3 version #'s 2010-10-10 14:19:34 +00:00
Mark Vejvoda
dcc2bab85a - bugfix for master menu control registration objects that need to get cleaned up afterwards 2010-10-10 06:35:50 +00:00
Titus Tscharntke
36f380abad version ist nicht mehr 3.3.7! es ist wieder development! 3.3.8-dev! 2010-10-10 00:05:14 +00:00
Mark Vejvoda
a84f0d1b6d - bugfix to fallback to a default configured font if the specified font in the ini property fails to load. The default font is 'fixed' but can be overriden in the ini using:
DefaultFont=yourfonttype
2010-10-09 20:35:53 +00:00
Mark Vejvoda
3963b99e37 - yaahhoo, now we properly detect invalid LUA functions etc for scenarios 2010-10-09 10:43:23 +00:00
Mark Vejvoda
6cf68531ea - incremented SVN rev for release build 2010-10-08 22:59:11 +00:00
Mark Vejvoda
32cf8cd93b - bugfix (again) for playername index bug 2010-10-08 22:53:18 +00:00
Mark Vejvoda
86b11a7f05 - bugfix (again) for playername index bug 2010-10-08 22:32:23 +00:00
Mark Vejvoda
7f1d0f01cb - updated to increment SVN revision for 3.3.7 release 2010-10-08 20:05:27 +00:00
Titus Tscharntke
59b2cdb78f max-unit-count works for buildings 2010-10-08 19:30:53 +00:00
Mark Vejvoda
ae010f85ab - bugfix for playername index offset on client 2010-10-08 17:17:22 +00:00
Mark Vejvoda
54ce27d19c - attempt to turn off playername editing for this release 2010-10-08 16:32:50 +00:00
Mark Vejvoda
1c32515d7a - last minute playername editing bugfixes for pressing backspace 2010-10-08 16:19:09 +00:00
Mark Vejvoda
cdba95f6ac - fixed silly bug when editing username in custom game menu interferes with chat. 2010-10-08 15:20:24 +00:00
Mark Vejvoda
44019a0d9b - added SVN revision # to --version output 2010-10-08 02:05:42 +00:00
Mark Vejvoda
f345835fc4 - final bugfix for 3.3.7, playernames got mixed up when first slot was closed. Also fixed editing when typing playername 2010-10-08 01:41:53 +00:00
Mark Vejvoda
7759b6d069 - updated version # for 3.3.7 release 2010-10-07 18:44:44 +00:00
Mark Vejvoda
fd60b30081 - updated announcement to use a safer compare and added announcement url to ini files 2010-10-07 18:43:29 +00:00
Mark Vejvoda
e400f449d6 - bugfix, added a check to map editor and g3d viewer for ico file existance before trying to load the ico file 2010-10-07 18:13:17 +00:00
Mark Vejvoda
66725ad22d - added new commandline parameter: --lua-info 2010-10-06 23:40:26 +00:00
Mark Vejvoda
284d3bdbbe - Billy.. help!!! Your compiler stinks! (compiler fixes related to namespacing and xml) 2010-10-06 22:49:13 +00:00
Titus Tscharntke
72478c9f32 better errorhandling for announcements String must start with "Announcement from Masterserver:" now otherwise its not displayed 2010-10-06 21:43:09 +00:00
Titus Tscharntke
7fdeb7ca89 Announcements from Matserserver 2010-10-06 20:54:08 +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
Titus Tscharntke
268aa4793b particle limits are back again 2010-10-06 17:04:51 +00:00
Mark Vejvoda
5f698575d9 - added removal of fog of war at game end for scenarios 2010-10-04 21:31:53 +00:00
Titus Tscharntke
88335f112b fix for the AI not respecting max-unit-count 2010-10-04 19:21:09 +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
02e0a1302f - more AI fixes.
#1: AI does not try to harvest resources that the unit cannot yet harvest (could be an upgrade required)

#2: AI no longer tries to expand near resources that they are not yet able to harvest. (found using RealtimeFreaks test mod and map). This makes for a more aggresive CPU in scenarios where there are additional resource types since they expand much more quickly.
2010-10-02 01:11:59 +00:00
Forjan Frederic
468340403f Update the macosx main to compil 2010-09-30 10:32:28 +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
6013a96efd - stupid compiler fix for vc++ (including limits gives streflop a fit) 2010-09-29 22:59:16 +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
80051e3194 - bugfix for AI units that do nothing when resources exist in the tech that the unit cannot harvest. (thanks RealtimeFreak for pointing this out and giving me a demo tech for testing)
- bugfix for restoring saved game settings (ignore closed slots that have faction set to random)
2010-09-29 04:38:41 +00:00
Mark Vejvoda
c9f8433d83 - updated to beta3 2010-09-28 20:53:13 +00:00
Mark Vejvoda
3749d58557 - bugfix when restoring game settings (from previously saved) we no longer restore playernames of non human slots. 2010-09-28 20:15:54 +00:00
Mark Vejvoda
c300905d70 - a better attempt to fix the issue with multi-build where the repairers stop repairing 2010-09-28 19:52:31 +00:00
Mark Vejvoda
c3fc45995c - an attempt to fix the issue with multi-build where the repairers stop repairing 2010-09-28 15:22:04 +00:00
Mark Vejvoda
ab6c8471f4 - coding around winsock insanity! (see: http://bobobobo.wordpress.com/2008/11/09/resolving-winsock-error-10035-wsaewouldblock/) 2010-09-28 02:21:57 +00:00
Mark Vejvoda
d326e00539 - added another error code check for windows based master servers 2010-09-28 01:02:52 +00:00
Titus Tscharntke
0e084cabd3 minifix for particles
transparency works a bit better with existing transparent models
2010-09-27 21:02:06 +00:00
mnaumann
6c0c291e44 FreeBSD and Mac OS X support by GeoVah pt2., thanks a bunch! 2010-09-27 20:31:38 +00:00
mnaumann
65ec94e22f FreeBSD and Mac OS X support by GeoVah, thanks a bunch! 2010-09-27 20:28:08 +00:00
Mark Vejvoda
6d7cc4c7d7 - bugfix for running on Windows based (winsock) servers 2010-09-27 04:37:13 +00:00
Titus Tscharntke
d3ccebef15 switch for map preview in ingame options
some language fixes
faction preview is default now
in unix systems text is better centered on the buttons
2010-09-26 21:34:00 +00:00
Titus Tscharntke
e6ade03509 Working transparency for units! Not really perfect, but much better than before! Even shadows are rendered according to the textures now. The behaviour should be excatly the same as for the trees.
Some unit models which already used transparency might look a bit different with this change, but this change will allow so much better and detailed looking models that its a must have :) .
2010-09-25 23:03:27 +00:00
Titus Tscharntke
3b1ef055b1 - new switch for unit_particle _systems called static-particle-count
- Bugfix for "wild particles". ( the splash particle systems never died before! )
- Better german language file ( cpu  player have english words again, words like ultra are common enough in germany  )
2010-09-25 14:38:00 +00:00
James McCulloch
9d8bb49a1b * fix static resource production on unit morph 2010-09-25 02:23:47 +00:00
Mark Vejvoda
635bf616de - patch for FreeBSD (thanks m0ellemeister) 2010-09-24 23:28:54 +00:00
Titus Tscharntke
cd65927924 unit particles can now have float values for emission rates. This allows also emission rates smaller than 1 like 0.01 for example 2010-09-24 16:36:59 +00:00
Mark Vejvoda
61b66fb761 - applied Mac osX patch #4 from GeoVah (thank you) 2010-09-24 15:26:16 +00:00
James McCulloch
e8b28b4298 * Fix for phantom cancel button 2010-09-24 04:52:51 +00:00
James McCulloch
4f0846a2c3 * Fix error in RoutePlanner 2010-09-24 04:38:44 +00:00
James McCulloch
91fbc561ea * fix for freshly killed units begin rendered on Minimap 2010-09-20 04:54:20 +00:00
James McCulloch
1cce764893 * remove exception on illegal move request, invalidate path and return false instead 2010-09-17 16:10:17 +00:00
Mark Vejvoda
a056b3faa8 - added more validations on client for missing tileset 2010-09-17 08:46:34 +00:00
Mark Vejvoda
0e8ed05c2e - bugfixes for handling missing maps on client 2010-09-17 08:26:22 +00:00
Mark Vejvoda
da35728c34 - added some error handling in client connected menu for map errors 2010-09-17 06:37:08 +00:00
Mark Vejvoda
d5221a3207 - updated to beta2 for hopefully better stability 2010-09-17 05:25:47 +00:00
Mark Vejvoda
f3ea511c40 - attempt to help poor kobe and his mad need to press E continuously
- also cleanup a memory leak from code that was thus far unused
2010-09-17 04:59:32 +00:00
Mark Vejvoda
6fece48382 - bugfix for incorrect usage of playername if network packet timing is faster than expected 2010-09-17 04:15:17 +00:00
Mark Vejvoda
b836bf0039 - turned off staggered faction updates (can toggle via ini setting: StaggeredFactionUpdates)
- added more debug info for resource depletion
2010-09-17 04:00:48 +00:00
Mark Vejvoda
a259e0d8e4 - nothing is easy is windoze (renamed duplicate filename cause VC chokes on it) 2010-09-16 22:47:33 +00:00
Mark Vejvoda
b115292ee5 - added GeoVah's initila Mac osX support (via cmake) 2010-09-16 15:15:42 +00:00
Mark Vejvoda
16f048c9e2 - fixed author names 2010-09-16 07:03:38 +00:00
Mark Vejvoda
fe005b7c54 - fixed author names 2010-09-16 07:00:50 +00:00
Mark Vejvoda
66e655aaff - updated version# to 3.3.7-beta1 2010-09-16 06:39:36 +00:00
Titus Tscharntke
e23592f793 ressources are rendered a bit nicer in the map preview ( glVertex2f instead if glVertex2i ) 2010-09-16 00:02:07 +00:00
Titus Tscharntke
3bfc7daddf renderMapPreview nearly done. 2010-09-15 23:49:26 +00:00
Mark Vejvoda
7e7c7216a5 - fixed screen flickering of fog of war texture when staggered updates is enabled. 2010-09-15 23:32:29 +00:00
Mark Vejvoda
bef9c6b3b1 - fixed client connected menu to display map preview the same as custom menu 2010-09-15 06:10:08 +00:00