Mark Vejvoda
5f8ccd5115
tracking down oos
2013-10-18 18:16:09 +00:00
Mark Vejvoda
c1305bdd1b
- add more crc log info for oos
2013-10-06 06:59:15 +00:00
Mark Vejvoda
9e60723296
revert most doubles back to float and truncate at 6 decimals
2013-10-03 00:17:51 +00:00
Mark Vejvoda
dc503d6340
- attempt to see if this makes stability better
2013-10-02 20:22:10 +00:00
Mark Vejvoda
de8b083329
- attempt to fix additional oos issues
2013-09-30 17:38:26 +00:00
Mark Vejvoda
dc944b2a79
- attempt to fix additional oos issues
2013-09-28 16:54:32 +00:00
Mark Vejvoda
8b8267400a
- attempt to fix additional oos issues
2013-09-28 16:53:20 +00:00
Mark Vejvoda
91b7803270
- attempt to fix additional oos issues
2013-09-28 03:10:37 +00:00
Mark Vejvoda
63ed244de2
- attempt to fix additional oos issues
2013-09-27 00:14:54 +00:00
Mark Vejvoda
a73cf8470b
attempt to fix attack particle calculation for oos issue
2013-09-26 19:36:24 +00:00
Mark Vejvoda
37c2ace11a
- rollback last commit
2013-09-26 16:37:32 +00:00
Mark Vejvoda
7349a1f126
- attempt to convert use of more floats to double
2013-09-25 15:40:19 +00:00
Mark Vejvoda
3a6544a257
attempt for big cleanup of out of synch issues, please test!
2013-09-23 17:16:34 +00:00
Mark Vejvoda
836e61d5d6
loggging fixes for language specific info (use english always)
2013-09-21 20:50:58 +00:00
Mark Vejvoda
3126a10966
- added code to be able to properly render attack particles when unit is not visible (turned off for now due to questions)
2013-09-19 20:03:36 +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
4684779186
removed commented code
2013-06-22 18:09:29 +00:00
Mark Vejvoda
0ead6a36dc
full support for translated techtrees
2013-06-13 08:55:48 +00:00
Mark Vejvoda
adce76d68f
more mad attempts to squeeze better performance
2013-06-12 17:49:12 +00:00
Mark Vejvoda
8066502f9b
fix a few areas that vc++ 2012 pointed to as potential bugs
2013-06-08 03:40:04 +00:00
Mark Vejvoda
4499308888
fix a few areas that vc++ 2012 pointed to as potential bugs
2013-06-07 23:17:27 +00:00
Mark Vejvoda
6cc8f6ac75
attempt to fix the model render not properly timed
2013-05-31 07:09:25 +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
de68fc759d
comment out some world synch logging
2013-05-25 18:22:36 +00:00
Mark Vejvoda
85ab3c76cc
attempt to improve threaded logging and see if we fix targetVec
2013-05-25 05:31:32 +00:00
Mark Vejvoda
a98234c14e
THIS IS NOT BACKWARD COMPATIBLE WITHY OTHER DEV VERSIONS! buffix the attack target issue mentioned in the forums
2013-05-21 21:19:59 +00:00
Mark Vejvoda
5cfc4d07a0
added logging of threaded unit actions
2013-05-21 05:43:57 +00:00
Mark Vejvoda
2f3433688f
more logs to track out of synch
2013-05-20 21:52:36 +00:00
Mark Vejvoda
625628fc63
put change back to what it was before
2013-05-20 21:40:25 +00:00
Mark Vejvoda
6a34864c5d
see if this corrects the current out of synch issues
2013-05-20 20:06:25 +00:00
Mark Vejvoda
538314eb48
add more world synch logging
2013-05-20 19:00:08 +00:00
Mark Vejvoda
c63da54bbd
- attempt to improve performance when units are blocked badly (this is not backwards compatible with other builds, will create out of synch)
2013-02-22 06:52:51 +00:00
Mark Vejvoda
39f81afe5c
- allow threaded calculation of unit movement for attacking units (was disabled for nig's bug but this was not the cause so re-enable)
2013-02-20 19:21:55 +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
fb6cff0ed1
- bugfix for latest harvest updates
2013-02-12 22:37:14 +00:00
Mark Vejvoda
646d11f143
- if unit harvests a resource, stops and harvest the same type again they do not need to return to the store house
2013-02-12 21:51:25 +00:00
Mark Vejvoda
589962868b
- added ability for units to return harvested resources in an emergency by clicking a store house when a unit has a load
2013-02-12 08:44:12 +00:00
Mark Vejvoda
adc62b7df8
- updated code to protect against null pointers and uninitialized values and threading issues
2013-02-05 00:01:40 +00:00
Mark Vejvoda
196d1240f1
- attempt to fix the crash in game originally reported by nig
2013-02-04 23:47:54 +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
7b99501697
- added a new skill to toggle fog of war for any command.
2013-01-11 18:18:58 +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
011e0263b0
- lots more code cleanup, using safe buffer size code to avoid buffer overflows
2012-10-19 01:31:20 +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
Titus Tscharntke
b05adbc6d5
make sure humans cannot cheat with multipliers
2012-10-06 10:05:34 +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
Mark Vejvoda
a8b8dcf464
- humans may now have a custom resource multiplier
2012-10-05 22:43:00 +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
Mark Vejvoda
8e88b36723
- removed pathfinder from GAE and all references
2012-09-22 21:39:13 +00:00
Mark Vejvoda
1c211e4ce6
- lots of code cleanup from the cppcheck
2012-09-22 20:13:57 +00:00
Titus Tscharntke
78643ddcfc
savegame/loadgame works too now with the new blocking feature.
2012-09-15 23:43:31 +00:00
Titus Tscharntke
75032c3287
reserve unit place while morphing. (first try)
2012-09-11 21:16:24 +00:00
Mark Vejvoda
ed9ae076c5
- attempt to fix pizza's crash
...
- safer use of random # in unit updater (not backward compatible with other builds)
2012-07-20 23:07:44 +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
3f604ae359
I give up on this :( . Softcoder must help me here I don't understand whats going on. We still see out of syncs if this is commented in.
2012-05-31 21:54:00 +00:00
Titus Tscharntke
d6f04c66e0
ctNetworkCpuUltra was the problem ...
2012-05-31 20:59:04 +00:00
Titus Tscharntke
4a70d090a8
commented out all my last changes to hunt down out of sync
2012-05-30 23:17:17 +00:00
Titus Tscharntke
1595eb3043
Skill can be NULL ....
2012-05-30 22:26:55 +00:00
Titus Tscharntke
b8401bf208
Making it a bit random if standing or runnning units are attacked by Ultra/Mega CPUs
2012-05-30 21:53:41 +00:00
Titus Tscharntke
00b1bea1ac
CPU-Ultra and Mega attack standing units in attack range first now. Lets see if this is good ...
2012-05-30 20:35:27 +00:00
Mark Vejvoda
2d6cda1f6f
- more pathfinder tweaks to try improve performance
2012-05-09 23:56:14 +00:00
Mark Vejvoda
8c0bf75bf5
- got built in memory leak working. Just edit leak_dumper.h and uncomment:
...
//#define SL_LEAK_DUMP
- got better / more accurate stack dumps when we detect errors in game.
- Both of these need to be worked on in windows next, win32 may not compile for now until i fix it on that platform.
- BE VERY CAREFUL when working in leak_dumper.* it may cause GCC and your system to crash if you don't know what you are doing!
2012-04-14 21:21:09 +00:00
Mark Vejvoda
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
Titus Tscharntke
0c16882d0a
fix for "The last wave"-problem in amazon(light) scenario
2012-03-31 20:02:49 +00:00
Titus Tscharntke
45ff24dbd7
new switch "count-kill-for-unit-upgrade" if a unit has set this switch to false , killing it does not count up the number of kills of the attacking unit.
2012-03-31 10:14:42 +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
bf3fbf5e71
- ensure that new check for ignore resource morph does not result in an invalid command type pointer.
2012-03-27 20:13:08 +00:00
Mark Vejvoda
12fdf262da
- bugfix for passing commandtype
2012-03-27 19:53:43 +00:00
Mark Vejvoda
c0f3658faa
- bugfix for network scenarios to NOT close unconnected network slots before loading, they will turn into AI players (this is required because the scenario code may require those factions)
...
- added ability to morph and indicate the morph command should ignore resource costs, add this to the command type:
<ignore-resource-requirements value="true" />
2012-03-27 03:23:03 +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
4481151c5b
- check if unit is dead when loading game and do NOT set cell map for dead unit
2012-03-13 23:51:39 +00:00
Mark Vejvoda
917adc8c98
- bugfix for game save and load (string buffer was too small for one item)
2012-03-13 21:58:31 +00:00
Mark Vejvoda
5f95b08c17
- a ton more load game state now working (including commands)
2012-03-13 15:21:25 +00:00
Mark Vejvoda
c5331b7e8a
- initial work to save game state to XML. Current only saves when out of synch or game end occurs and saves to same folder as log files and file is called: megaglest-saved.xml
...
(Currently we store way too much info but this is a starting point)
2012-03-10 03:27:25 +00:00
Mark Vejvoda
4ad42518c0
- updated for better handling of streflop on different platforms
...
- attempt for bugfix on windows when socket send buffer is continuously full
2012-02-10 06:21:06 +00:00
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
609bc528d2
- fixed fog of war bug in map preview for connected client
...
- in headless mode keep three caches in case its related to out of synch
- comment out spurious irc console text
2011-12-03 01:19:54 +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
f626ebbe45
- attempt to fix lua code to properly get unit's killer:
...
lastDeadUnitKillerName
lastDeadUnitKiller
2011-11-18 15:43:05 +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
b5d4867316
added one too many invalid position messages to console
2011-10-28 22:28:24 +00:00
Mark Vejvoda
9ffad02f8f
- bugfix for detecting if one unit is next to another
...
- now repair command does NOT require a move skill. If a move skill is not defined then the repairer must be beside the unit he will repair or they get an invalid position console message
2011-10-28 05:22:41 +00:00
Mark Vejvoda
b1ed59959e
- bugfix so player who dies and becomes an observer can hear sounds from other players units
2011-10-12 16:03:55 +00:00
Mark Vejvoda
f8da775fe0
- fixed issue raised by Ishmaru when unit is holding position and we run out of ep, re-queue another hold position command (unless the stop skill takes ep as well then it cancels)
2011-10-12 04:40:48 +00:00
Mark Vejvoda
9caff9dac3
- in headless mode avoid init of sdl's video surface so that we stay in console window (no graphics window shown)
2011-09-27 07:01:08 +00:00
Mark Vejvoda
9268e3f5a7
- attempt to fix tomreyns segfault bug (mutex protection around cache)
2011-09-24 22:17:48 +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
Titus Tscharntke
b8010a18af
bugfix, so dragons can morph above water
2011-09-06 23:12:05 +00:00
Mark Vejvoda
57afc2d715
- phase 2 of cppcheck verbose fixes
2011-09-01 01:11:23 +00:00
Mark Vejvoda
3af608151e
- bugfixes found from cppcheck
2011-08-31 19:44:19 +00:00
Mark Vejvoda
d99a8236ae
- added the ability to synch unit particles with model animation using start-time and end-time attributes
2011-08-27 06:52:17 +00:00
Titus Tscharntke
cc5dbd467e
maxUnitCount respected by spawn attack
2011-07-06 22:35:35 +00:00
Mark Vejvoda
82ccc21d5e
- fixed a bug discovered by Elimnator when units are repairing another unit and the other unit morphs need to check of the repairers can still repair the newly morphed unit and if not stop repair
2011-06-30 04:45:17 +00:00
Mark Vejvoda
c252402e71
- initial implementation of attack-boost logic (this is in progress code which is only triggered by new xml entries). Will explain later once tested.
2011-06-25 08:53:53 +00:00
Titus Tscharntke
149e5b15b0
Changes from 2367 without formatting mess
2011-06-23 23:30:49 +00:00
Titus Tscharntke
59136a3d95
revert code formatting mess to same as revision 2366. Change from 2367 will come without this mess with next checkin
2011-06-23 23:28:39 +00:00
Titus Tscharntke
e58ddd35b4
fixes build bug reported in forum/ adds some better mega-cpu behaviour / fixed some bugs ( I hopefully did not added new ones :-D )
2011-06-20 23:51:13 +00:00
Mark Vejvoda
6b14c21446
- missed some things in last bugfix
2011-06-09 21:50:54 +00:00
Mark Vejvoda
c9518d727a
- bugfix for attacking logic to always listen to what you tell it (commented out recently added logic)
...
- bugfix for building units and unit is too far away
2011-06-09 21:38:04 +00:00