Michał W. Urbańczyk
f6c2c96cdc
Copyright update.
2014-03-01 18:46:54 +00:00
Michał W. Urbańczyk
fe4171eb63
Fixed #1719 .
2014-03-01 17:41:29 +00:00
Michał W. Urbańczyk
03fbd4e8a7
Fixed tracking autosaves.
2014-03-01 17:35:56 +00:00
Michał W. Urbańczyk
a6f68d6870
Fixed #1726 .
2014-03-01 13:42:23 +00:00
Michał W. Urbańczyk
93b8d2e59a
AI crash — do not modify container when iterating it.
2014-03-01 12:53:09 +00:00
Michał W. Urbańczyk
2e04738859
Version bumped to 0.95.
2014-03-01 12:24:15 +00:00
Michał W. Urbańczyk
f5d945d1b2
Fixed #1679 .
2014-03-01 12:23:33 +00:00
Michał W. Urbańczyk
93856dbe98
Quick solution for #1688 .
2014-02-27 20:44:20 +00:00
Michał W. Urbańczyk
07aef4f2f6
Compilation fixes for MSVC (relative include paths)
2014-02-27 20:42:17 +00:00
Michał W. Urbańczyk
71e76966af
Updated MSVC project file after registerTypes split.
2014-02-27 20:35:05 +00:00
Michał W. Urbańczyk
6d73052ca1
Development release 0.94f
2014-02-23 23:45:58 +00:00
Michał W. Urbańczyk
458ba47965
Compile fix for non-msvc, as per https://github.com/vcmi/vcmi/pull/8
2014-02-21 12:27:56 +00:00
Michał W. Urbańczyk
1e555a8ee3
Improved serializer. See: http://forum.vcmi.eu/viewtopic.php?p=11562#11562
...
Save format changed, removed compatibility workarounds.
2014-02-19 01:04:27 +00:00
Michał W. Urbańczyk
f5e3e578e6
Version bump 0.94e.
2014-02-09 22:44:57 +00:00
Michał W. Urbańczyk
30aa07f86c
Fixed #1652 .
2014-02-09 09:57:00 +00:00
Michał W. Urbańczyk
343dd1a7d1
Properly removing stuff from hero, fixes #1646 .
2014-02-08 23:07:33 +00:00
Michał W. Urbańczyk
d6f8a6d4bf
Preparing crossover heroes works on deep copies of heroes, so the original post-mission state is not lost in the process.
2014-02-08 22:14:54 +00:00
Michał W. Urbańczyk
43ef565e7e
Added serializer-based class able to make deep copies of objects — CMemorySerializer.
...
CGameState::init will work on the deep copy of StartInfo.
Some casts to reduce warnings.
2014-02-08 21:54:35 +00:00
Michał W. Urbańczyk
8eafb9f951
Savegames loader fixed to properly know save version.
2014-02-02 14:54:12 +00:00
Michał W. Urbańczyk
55271e621b
Possibility to switch autoskip in the runtime.
2014-02-02 14:39:32 +00:00
Michał W. Urbańczyk
55165a8535
Fixed #1686 . Compatibility measures to be removed later, when format changes become to big.
2014-02-02 14:31:56 +00:00
Michał W. Urbańczyk
fabbe1eae8
Version bump.
2014-02-01 21:34:28 +00:00
Michał W. Urbańczyk
ac5e3be435
Experiment for #1679 .
2014-02-01 21:34:14 +00:00
Michał W. Urbańczyk
e5312887d1
Fixed possible crash at the game start (when victory conditions are checked before currentPlayer is set).
2014-02-01 16:08:01 +00:00
Michał W. Urbańczyk
be3bd35b95
Hopefully fixes #1677 and its duplciates.
2014-02-01 13:35:03 +00:00
Michał W. Urbańczyk
6f8974bab3
Fix for #1673 — objects vector may contain nullptr (for objects that have been removed).
2014-02-01 12:54:55 +00:00
Michał W. Urbańczyk
679c3c5830
Split conditions fixed (it should be impossible to take units from ally).
2014-01-30 14:04:09 +00:00
Michał W. Urbańczyk
f159f28b9f
Version bump 0.94c.
2014-01-29 16:55:38 +00:00
Michał W. Urbańczyk
edacdf34e5
Sometimes, when working with MS Build projects I feel pure, unconditional hate.
...
Now Launcher should work with MSVC 2013.
2014-01-06 22:11:43 +00:00
Michał W. Urbańczyk
0b2ca4416a
It is possible to use ffmpeg with Visual Studio 2013 build by definining USE_FFMPEG macro.
2014-01-06 19:12:21 +00:00
Michał W. Urbańczyk
4674e8e3d8
Initializing CHeroClass::commander.
2014-01-06 17:45:21 +00:00
Michał W. Urbańczyk
5e812492e0
VC project updated.
2014-01-04 23:01:28 +00:00
Michał W. Urbańczyk
fde8c71c5e
Fixed setting -1 as hero direction that was causing crashes, like #1488 .
2013-10-13 20:05:34 +00:00
Michał W. Urbańczyk
d5263d75f8
Fixed #1490 .
2013-10-13 17:37:59 +00:00
Michał W. Urbańczyk
f927bca146
Index for pyramid.
2013-10-13 16:05:41 +00:00
Michał W. Urbańczyk
0e8fa04d9f
Fixed #1487 .
2013-10-13 15:24:02 +00:00
Michał W. Urbańczyk
4a9194a644
Version set to 0.94.
...
Updated changelog.
2013-10-01 18:44:44 +00:00
Michał W. Urbańczyk
5cd17cd338
Version set to 0.93e.
2013-09-29 22:37:38 +00:00
Michał W. Urbańczyk
dca1f709a9
And another one. I'm sloppy today :(
2013-09-29 21:31:14 +00:00
Michał W. Urbańczyk
149ff4df14
Fixed tiny but terrible mistake from two commits ago.
2013-09-29 21:15:02 +00:00
Michał W. Urbańczyk
5c6d12400f
Fixed AI detection of battle end (solves some freezes).
2013-09-29 20:54:29 +00:00
Michał W. Urbańczyk
9ee3133077
Fixed crash on game start when buildings are customized, should finally solve #1444 .
2013-09-29 20:53:45 +00:00
Michał W. Urbańczyk
2fed37fa97
Version bumped to 0.93d.
2013-09-28 12:32:22 +00:00
Michał W. Urbańczyk
30a0237fb8
Merged the 092c-compat branch.
2013-09-28 12:31:06 +00:00
Michał W. Urbańczyk
0abbe71b25
Merged fixes from the branch.
2013-09-28 00:58:33 +00:00
Michał W. Urbańczyk
c6c53a5b1e
Few more freeze-related fixes.
2013-09-28 00:30:12 +00:00
Michał W. Urbańczyk
d1807585ad
Fixed at least two #1428 freezes, likely more.
...
They were occurring when AI hero visited bank that was also guarded by neutral creature nearby,
2013-09-27 23:46:58 +00:00
Michał W. Urbańczyk
0a0048fdf4
Updated EmptyAI project to follow the conventions.
2013-09-27 23:41:15 +00:00
Michał W. Urbańczyk
4f29b526ca
The battle callback method battleGetAllStacks will by default omit the arrow turrets. Fixes #1453 , #1455 and related.
2013-09-27 19:42:17 +00:00
Michał W. Urbańczyk
0e5a59e2a5
Changes related to #1444 — fixing affected savegames, assert to detect when things go wrong.
2013-09-27 15:20:42 +00:00
Michał W. Urbańczyk
d4a8e90460
Fixed #1448 , #1470
2013-09-14 19:09:35 +00:00
Michał W. Urbańczyk
20be1631a6
Bumped format version, merged r3457.
2013-09-13 00:37:09 +00:00
Michał W. Urbańczyk
291da5e893
Fixed #1442 , likely a few others as well.
2013-09-12 22:33:08 +00:00
Michał W. Urbańczyk
b420626a30
Merger r3544.
2013-09-11 22:11:28 +00:00
Michał W. Urbańczyk
f6ab4609fe
Version set to 0.93c.
2013-09-11 22:09:17 +00:00
Michał W. Urbańczyk
b62bb096a7
Fixed #1430 , work-around to make #1435 non-crashing.
...
Fixed at least one of the #1428 infinite turns cases.
2013-09-11 21:57:08 +00:00
Michał W. Urbańczyk
9aaaa0027e
Branch for debugging/solving 0.92b reports — compatible with its savegames and having some fixes.
2013-09-11 11:57:43 +00:00
Michał W. Urbańczyk
a1d3bcb276
Fixed #1434 .
2013-09-08 22:45:40 +00:00
Michał W. Urbańczyk
d307ed5f92
Updated readme with the links to our pages + updated the year.
2013-09-08 21:57:00 +00:00
Michał W. Urbańczyk
ab042aa685
Boat will be removed when hero is defeated on water.
...
Should fix #1303 , #1419 , #1425 .
2013-09-08 21:50:49 +00:00
Michał W. Urbańczyk
141c1a9854
Not crash when asking callback about requirements for not existing building, fixing #1444 corrupted saves (for testing).
2013-09-07 16:57:31 +00:00
Michał W. Urbańczyk
dd72261193
Fixed #1437 .
2013-09-05 22:11:13 +00:00
Michał W. Urbańczyk
6fc87d0df1
Fixed #1426 .
2013-09-04 22:57:41 +00:00
Michał W. Urbańczyk
f217c61131
Added launcher to solution, fixed .rc file so launcher has its icon.
2013-09-04 20:12:37 +00:00
Michał W. Urbańczyk
a2610de87d
Fixed #1385 (and possible some related issues)
2013-09-03 13:18:09 +00:00
Michał W. Urbańczyk
a50e9219c2
Launcher works for me.
...
Details: http://forum.vcmi.eu/viewtopic.php?p=10290#10290
2013-09-02 17:26:52 +00:00
Michał W. Urbańczyk
385f4ab7f5
#1153 and #1395 should be fixed. Terrible, terrible, terrible.
...
Fixed crash in battles, when attempted to access <0 screen coordinates.
2013-09-01 22:55:57 +00:00
Michał W. Urbańczyk
92246a2c17
* Fixed #1417 — infinite loop of AI trying to visit allied creture generator
...
* Fixed #1401 — battle AI won't attempt attacks with First Aid Tent
2013-08-25 13:03:29 +00:00
Michał W. Urbańczyk
38c1542d9d
Fixed crash on battle end — don't attempt giving exp to loser (hero is removed -> can't get exp -> crash).
2013-08-18 17:49:31 +00:00
Michał W. Urbańczyk
3b42cff3ec
#1409 should not crash anymore.
...
Fixed crash on serializing empty path. [How did it got there...?]
operator<< for boost::optional.
2013-08-18 15:46:28 +00:00
Michał W. Urbańczyk
2e92bfb617
Added missing property sheets to RD|Win32 configuration.
2013-08-18 11:44:14 +00:00
Michał W. Urbańczyk
58ccaa2e93
The cmath "fix" was not needed after all, the includes order decides.
2013-08-02 08:28:52 +00:00
Michał W. Urbańczyk
be3da8fcf8
Unique macro for minizip exports. Define to nothing on non-msvc.
2013-08-01 22:37:08 +00:00
Michał W. Urbańczyk
c57b159fc9
Missed one call.
2013-08-01 22:36:49 +00:00
Michał W. Urbańczyk
eb90f93231
Dereference optional in logs.
2013-08-01 16:26:29 +00:00
Michał W. Urbańczyk
f897333b2c
Don't crash when music file cannot be found.
2013-08-01 13:52:01 +00:00
Michał W. Urbańczyk
7a90ead051
VS-2013 issue.
2013-08-01 11:58:30 +00:00
Michał W. Urbańczyk
91a1f0eae5
Proejct file for minizip library, fixes compilation issues.
2013-08-01 09:55:57 +00:00
Michał W. Urbańczyk
d8a27d8f3c
Refactored player-specific data into single struct BattleState.
2013-07-21 22:01:29 +00:00
Michał W. Urbańczyk
0eb496fb57
Fixed #1338 and #1341 . Introduced post-load step to ease initialization of bonus source ids.
2013-07-21 14:19:29 +00:00
Michał W. Urbańczyk
1e11904d8a
Fixed Remove Obstacle. TODO: limit its working on spell-created obstacles depending on spell school level.
2013-07-21 10:25:12 +00:00
Michał W. Urbańczyk
e9d51a2670
Fixed issue that allowed to build multiple boats in town. Renamed state() to sth more sensible.
2013-07-21 10:08:32 +00:00
Michał W. Urbańczyk
e45d174ba5
Fixed crashes on Land Mines / Fire Wall casting.
2013-07-20 21:35:12 +00:00
Michał W. Urbańczyk
d4ce091d2b
A patch from Gernsworth related to #1204 — spell effects will be layered along with the creatures.
2013-07-10 10:45:51 +00:00
Michał W. Urbańczyk
2f1cf09881
VS project for Tests, not really working ATM though.
2013-07-07 08:30:06 +00:00
Michał W. Urbańczyk
516684aaab
Visual 2012 compile fixes.
...
Unfortunately no C99 math nor uniform initialization till VS 2013.
2013-07-07 08:27:27 +00:00
Michał W. Urbańczyk
68603245c4
Or should not be the same way as And.
2013-07-03 20:18:41 +00:00
Michał W. Urbańczyk
1e8c58ecdf
Patch from O01eg fixing #1308 http://forum.vcmi.eu/viewtopic.php?t=721
...
Helper functions for enabling/disabling smart vector memeber serialziation. [doesn't really save writing but adds consistency]
2013-07-02 16:48:01 +00:00
Michał W. Urbańczyk
a1f545792b
Compile fixes specific for VS 2012"
...
* Reverted std::bind to boost::bind. std::bind on Visual 2012 doesn't work in some cases (especially with std::ref), not sure why [but it seems to be a bug, since 2013 preview compiles the same code fine].
* Move assignment operator for VS 2012.
2013-07-02 15:23:32 +00:00
Michał W. Urbańczyk
7a8e401860
Ignore the cmath-fix block on non-vs compilers.
2013-07-02 15:19:54 +00:00
Michał W. Urbańczyk
4576719abe
Visual Studio 2013 Preview compile fixes:
...
* 0 is not convertible to std::function, nullptr should be used
* std::ref(rand) is not convertible to function<int()>, used lambdas (why we dont just pass "rand" ? )
* CFunctionList needs to be constructible from nullptr
* move constructor for CMapInfo (Visual cannot generate them :( )
* #ifdefed some stuff that is not needed anymore since cmath is updated with C99 stuff
* using std::make_unique instead of our vstd implementation
CSelector:
* introduced a class in place of typedef
* Having an overloaded && || operators over sth that is convertible to bool… Wasn't a good idea after all. Purged the operators, replaced with And/Or methods (chaining-style).
* constructor that is present only when constructing from class or function (SFINAE). std::function has an implicit converting constructor from T causing ambiguities (even if the overload would cause compile error in the body)
2013-07-02 12:08:30 +00:00
Michał W. Urbańczyk
1a2c8de6ad
Minor improvements.
2013-06-24 14:35:27 +00:00
Michał W. Urbańczyk
17403b544c
Various fixes for quick combat.
...
Replaced several boost::bind usages with lambdas.
2013-06-23 16:09:15 +00:00
Michał W. Urbańczyk
06f0a29b31
Compile fixes for gcc, as per http://forum.vcmi.eu/viewtopic.php?p=9638#9638
2013-06-23 12:36:18 +00:00
Michał W. Urbańczyk
04d11519ef
Quick Combat system setting works… if user doesn't click in the meantime.
2013-06-23 11:25:48 +00:00
Michał W. Urbańczyk
2a471eeb1a
Addec quick combat to system options window.
...
Compile fixes [I don't know why it has compiled for me before].
2013-06-23 07:54:33 +00:00
Michał W. Urbańczyk
4a0587d500
More work on auto-fight.
...
Dynamic libraries return smart-pointers to what they create.
2013-06-22 21:47:51 +00:00
Michał W. Urbańczyk
2be2143844
Game interfaces can register another interfaces to receive info on game events.
2013-06-22 18:22:44 +00:00
Michał W. Urbańczyk
254f194220
Some very early work towards autofight feature.
...
Added EmptyAI to the solution.
Passing callbacks by shared_ptr.
2013-06-22 14:47:20 +00:00
Michał W. Urbańczyk
06dbdd234f
Further changes for duel mode. It is possible to pass names of AIs to be used by command line. Moved things in battle AI.
2013-06-21 20:59:32 +00:00