Commit Graph
100 Commits
Author SHA1 Message Date
Michał W. Urbańczyk 9707e73eda MSVC compile fixes:
* in projct file some headers were marked as compile objects
* pow(int,int) is ambiguous
* some missing includes
2012-11-03 14:29:54 +00:00
Michał W. Urbańczyk 77e4b72531 Changelog: version number and release date. 2012-09-30 21:53:05 +00:00
Michał W. Urbańczyk 3e82b92fce Version set to 0.9, updated changelog. 2012-09-30 21:51:23 +00:00
Michał W. Urbańczyk 3de9b71cc3 Fixed crash when unit dies by entering obstacle (eg. moat) on the way to perform attack. 2012-09-30 17:48:21 +00:00
Michał W. Urbańczyk 49c5f70551 Fixed #1112/#1114. 2012-09-30 11:33:19 +00:00
Michał W. Urbańczyk 6934ec13e2 Post-release version bump.
Minor correction for emptyAI VS project file.
2012-09-29 21:10:39 +00:00
Michał W. Urbańczyk dec3f9afd9 #1083 should be fixed.
To be released as dev build 0.89d.
2012-09-29 20:25:54 +00:00
Michał W. Urbańczyk f30ee8ff04 * fixed possible corruption of pack sent by server when player request is rejected
* BattleAI will restore callback to its previous state, fixes freeze after battle #1104
* BattleAI won't lose turn when unable to correctly evaluate a spell
* VCAI will correctly recognize hero standing on town entrance
* War machines of defender will have correctly set side
* Faction 9 as neutral causes crashes, changing to -1 as used elsewhere in the code
2012-09-29 14:44:06 +00:00
Michał W. Urbańczyk f8a27a9fdb * Moved CConfigHandler from client to lib, CMake/Makefile need updating. I believe other projects besides client also need access to settings. (surprisingly there was a "server" category used only by client... and now VCAI.)
* It is possible to set the battle ai that'll be used by neutrals by typing in VCMI console:
setBattleAI <AIName>
VCAI also respects that setting and uses given AI as its battle back-end.
2012-09-29 10:59:43 +00:00
Michał W. Urbańczyk 2ba0427432 * Fixed #1096
* serializing icon index, otherwise creature portraits are gone after loading a game
* VCAI: fixed crash on attempting revisiting a boat (that is no longer present because it was boarded)
* Fixed strange crash with "neutral hero" (there should be no such thing... but somehow it appears, needs further investigation)
2012-09-28 20:49:23 +00:00
Michał W. Urbańczyk a669831fc6 * VCAI: fixed crash when a locked hero died when attempting realizing a goal 2012-09-28 19:50:09 +00:00
Michał W. Urbańczyk 7e6128b653 Assurance that #1016 won't happen again. 2012-09-28 19:18:08 +00:00
Michał W. Urbańczyk 0750d46285 Fix #1095. 2012-09-28 19:11:09 +00:00
Michał W. Urbańczyk 57a76c297c Should not crash in #955. 2012-09-28 16:48:29 +00:00
Michał W. Urbańczyk 8bb4abb75a * VCAI: fixed possible endless loop of realizing GATHERRESOURCE goal
* an assertion failing when quest object cannot find its targeted monster ("crash early" policy), related to #1076
2012-09-28 16:20:18 +00:00
Michał W. Urbańczyk 786bd73e67 Fixed #1092. 2012-09-28 11:43:19 +00:00
Michał W. Urbańczyk 1fce4770fb Fixed crash when starting a game with new creatures on map using „Creature N” placeholders in armies. 2012-09-28 10:17:07 +00:00
Michał W. Urbańczyk 40624f96d9 Some assertions in hope to get clearer reason for #955/#1076. 2012-09-28 09:28:12 +00:00
Michał W. Urbańczyk 6c017a0fdf Fixed #1088. 2012-09-28 09:11:18 +00:00
Michał W. Urbańczyk ecd8947d8e Crashes on starting next campaign mission should be fixed. 2012-09-25 18:00:55 +00:00
Michał W. Urbańczyk 95b866c131 * Further work on Battle AI. Now it is able to cast a number of offensive spells. Battle callback exposes more spell-casting info.
* Took down the one Boost.Assign usage offending VC11. I'm getting impatient I guess...
2012-09-23 23:10:56 +00:00
Michał W. Urbańczyk 62e63d45b1 Work in progress on BattleAI. Related changes:
* battle AIs receive ptr to CBattleCallback (not sure why it was CPlayerBattleCallback, likely mistake)
* reworked some battle callback methods to be more generic and able to handle some hypothetic scenarios
* for testing purposes in duel mode the first AI will be taken fro mconfig and the second will remain stupid ai
* minor changes
2012-09-20 16:55:21 +00:00
Michał W. Urbańczyk 871f680ccc Fixed crash from unitialzied ptr. 2012-09-20 16:25:31 +00:00
Michał W. Urbańczyk c42f187608 Created a new battle AI project — BattleAI. Now it is merely a copy of StupidAI but it is meant to eventually replace it. 2012-09-13 23:42:11 +00:00
Michał W. Urbańczyk 74f9c19a7c Implemented spell countering. 2012-09-13 23:41:03 +00:00
Michał W. Urbańczyk 96a92d0f45 * fixed remaining part of #1071 — the screen surface has always to be created in the main thread
* hold events in the queue by value (less ptr jugglery)
2012-09-11 14:25:19 +00:00
Michał W. Urbańczyk d935e87dd8 #1071 should be fixed. 2012-09-09 23:57:22 +00:00
Michał W. Urbańczyk d961ec0507 * Fixed crash on casting spells.
* version bump
2012-09-09 23:51:20 +00:00
Michał W. Urbańczyk 529394a4e7 Development build 0.89b
* Updated changelog
* Some logging I did for #1066
2012-09-07 22:43:41 +00:00
Michał W. Urbańczyk ea4841045f Fixed #1064. 2012-09-06 10:26:18 +00:00
Michał W. Urbańczyk 3e346e737a Fixed type enum mismatch between Component and CComponent causing a crash when displaying w window with player flag.
Campaign against magic numbers.
2012-08-31 17:39:11 +00:00
Michał W. Urbańczyk 5a157290d9 Fixed crash occurring after casting Armageddon and killing all stacks.
Removed some commented-out code.
2012-08-31 16:33:30 +00:00
Michał W. Urbańczyk 6530e7a1e1 * servers will not allow using out-of-range slots ( #1061 )
* server won't crash on some scenarios when they're used
* fixed some minor discrepancies with creature placement in creature banks
2012-08-30 16:01:19 +00:00
Michał W. Urbańczyk 838c226a31 Compile fix. 2012-08-30 15:37:43 +00:00
Michał W. Urbańczyk 38b6435ee4 Shackles of War implementation uses bonus system propagation instead of looking into enemy hero. Silences some warnings. 2012-08-29 15:27:24 +00:00
Michał W. Urbańczyk d0e2f25cfe * No explosion when catapult fails to damage the wall
* Missing abilities for Azure Dragon (tons of others are still missing...)
2012-08-29 13:44:39 +00:00
Michał W. Urbańczyk 48e6c3bcf9 Fix #1060. 2012-08-29 13:01:54 +00:00
Michał W. Urbańczyk 0b85cfaf78 Fix for #1058. 2012-08-28 15:38:00 +00:00
Michał W. Urbańczyk 830d94064e Fixed #1056, #1057 and #1058.
Should also fix #152.
2012-08-28 12:28:13 +00:00
Michał W. Urbańczyk a14f381d48 Fixed #1055 - hang when creature performed automatic (not controleld by player) action.
Fixed possible crash on arrow turret turn.
2012-08-27 12:34:43 +00:00
Michał W. Urbańczyk 7c09f73402 * INFINITE_DIST is now enum, it should cause least trouble that way. Uh, it's so hard to fight magic values these days.
* Fixed crashes in battles after loading game
* Fixed crash in battle AI, when stack is blocked and stands next to an enemy
* Fixes problem when server's moveStack is called with dest==position
* Above should cover #1053.
2012-08-26 19:13:57 +00:00
Michał W. Urbańczyk d390113c23 * New files for lib: CBattleCallback.cpp and CBattleCallback.h
* Updated MSVC project files
* Filesystem: My version of .SND archive does not have \0 after WAV extension. Fixed (though hardcoded 3-char extension length).
* New bonus types: BLOCK_MAGIC_ABOVE for blocking casting spells above given level and BLOCK_ALL_MAGIC for blocking all magic.
* Heavy rewrite of battle callbacks. Fixed some minor bugs. Code reusage between lib/client/server (removed proxy calls). Better access control and support for various perspectives.
* Fixed #1031
* Fixed Orb of Inhibition and Recanter's Cloak (they were incorrectly implemented). Fixed #97.
* Fleeing hero won't lose artifacts. Spellbook won't be captured. Fixed #980.
* Fixed crash when attacking stack dies before counterattack (ie. because of Fire Shield)
* Server does some basic checks if action requests during battle are valid
* Minor stuff.
2012-08-26 09:07:48 +00:00
Michał W. Urbańczyk 08bcfd1285 * windows video player uses the new FS
* don't crash on missing sounds
2012-08-09 07:40:47 +00:00
Michał W. Urbańczyk cd63c177e2 * std::unordered_map implementation in MSVC 10 has terribly slow destructor. Since bug is fixed only in VC11, I replaced it with boost::unordered_map.
* fixed crash with invalid .lod archive (some H3 installations have fake 1 byte .lod "archives"
* fixed crash when parsing invalid map file
* minor random optimizations (rv-refs, etc)
2012-08-08 08:25:27 +00:00
Michał W. Urbańczyk 5981ad15d4 Fixed Duel mode. Integrated some changes from programmingChallenge branch - it's possible to define duel parameters using JSON. 2012-07-26 00:48:44 +00:00
Michał W. Urbańczyk 9327823355 Updated MSVC project file. 2012-07-23 11:33:25 +00:00
Michał W. Urbańczyk 9207e4f4a4 Fixed a compile error on MSVC with abs(ui64).
Fixed crash when quest object is removed.
2012-07-20 21:42:25 +00:00
Michał W. Urbańczyk 79f8e0ea3c Fail gracefully when file pointed by --start path doesn't exist. 2012-07-20 20:57:18 +00:00
Michał W. Urbańczyk edccbd4809 Rewritten many parts of query handling. Fixed several scenarios leading to a hang (including #1012). Purged boost::function from player interface (handy but impossible to serialize). VCAI will keep description for each unanswered query, so the further debugging will be easier. 2012-07-15 15:34:00 +00:00
Michał W. Urbańczyk ab0a384d31 Updated MSVC project files. 2012-07-15 15:26:12 +00:00
Michał W. Urbańczyk 54ca71d598 Update to Boost.Filesystem version 3, since Boost 1.50 drops support for version 2.
Check http://forum.vcmi.eu/viewtopic.php?t=518
2012-07-02 09:04:05 +00:00
Michał W. Urbańczyk fcdad0d323 Added class HeroPtr to VCAI that should replace CGHeroInstance*. HeroPtr is able to detect when the hero under it becomes unavailable.
Hopefully fixed #954 (and all bugs caused by keeping a reference to hero that got killed: #998, #1002, #1008, #1011, #1018).
If not, assertions should pop up earlier.
2012-06-30 23:48:40 +00:00
Michał W. Urbańczyk 933049ee91 Updated MSVC project files. 2012-06-20 21:20:07 +00:00
Michał W. Urbańczyk 84630a0984 Fixed #993, tent code cleanups. 2012-06-10 13:07:08 +00:00
Michał W. Urbańczyk d0816a7924 Fixed crash when artifact casts spell ( #991 ) 2012-06-10 12:01:56 +00:00
Michał W. Urbańczyk e6ebf42308 #994 should not crash anymore. 2012-06-09 19:58:17 +00:00
Michał W. Urbańczyk f378e5be31 MSVC compile fix #997.
CClickableHex apparently can't be held by value in vector anymore.
2012-06-09 16:45:45 +00:00
Michał W. Urbańczyk e7d82a9702 Rewritten CLoadFile::openNextFile to be cleaner and not leak. Desperate messing around for #989. 2012-06-08 00:12:31 +00:00
Michał W. Urbańczyk 3df1ddbf86 Post-release version bump.
Fixed #986.
2012-06-01 21:31:41 +00:00
Michał W. Urbańczyk dc4d30df0e Ench0's patch from #948. 2012-06-01 17:23:26 +00:00
Michał W. Urbańczyk b7c4da65b5 Integrated 1280x800 resolution from #972.
Version set to 0.89.
Updated changelog.
2012-06-01 17:11:30 +00:00
Michał W. Urbańczyk 759f85767b Solved #985. 2012-06-01 16:14:33 +00:00
Michał W. Urbańczyk 4cd77a0192 Naive solution for endianess issues. Seems to allow loading a big-endian save on little-endian build.
Fixed compile issues with CEmptyAI. Removed unnecessary methods from its.
2012-06-01 15:59:26 +00:00
Michał W. Urbańczyk 247fabc3a6 Seems to be actually a missing return and redundant check. 2012-05-29 23:22:28 +00:00
Michał W. Urbańczyk 77e7a25ed7 Fixed #970.
Fixed issue where cursed ground obstacles were appearing on holy ground (and vice versa).
Fixed battle interface blocking itself up after clicking on owned stack to open creature window.
2012-05-26 11:01:31 +00:00
Michał W. Urbańczyk 470885d719 Fixed #969.
Minor changes.
2012-05-26 10:02:55 +00:00
Michał W. Urbańczyk 41480a489e Win compile fix (#974) 2012-05-25 14:53:56 +00:00
Michał W. Urbańczyk 3c43e03d4e Changelog update. Development build 0.88b. 2012-05-22 21:26:27 +00:00
Michał W. Urbańczyk ee6e9fcc7f Fixed #947. 2012-05-22 21:08:16 +00:00
Michał W. Urbańczyk 401d6816d1 Workaround for serializer allowing sending CStackInstance* pointing to commander. (and only CStackInstance*) 2012-05-21 23:39:35 +00:00
Michał W. Urbańczyk a234b4c935 Fixed #956.
Removed unused code left after tests.
Updated changelog.
2012-05-19 22:57:24 +00:00
Michał W. Urbańczyk 7116377e4e More robust fix for #957 / #938.
AI won't try clearing way by attacking its own heroes.
2012-05-19 00:38:25 +00:00
Michał W. Urbańczyk c9af2bb251 Fixed #957 / #938.
AI won't try visit objects on which another non-enemy hero stands.
2012-05-19 00:11:20 +00:00
Michał W. Urbańczyk d2756e8c88 Partial fix for #961.
Minor fixes for VS project files.
2012-05-18 22:47:54 +00:00
Michał W. Urbańczyk d168f3eac2 * Implemented Moat functionality during siege (stops movement and deals dmg)
* Mostly implemented battle spells:
 - Fire Wall
 - Force Field
 - Land Mine
 - Quicksands
2012-05-18 20:50:16 +00:00
Michał W. Urbańczyk 5449546447 Advanced work on support for Quicksand and Land Mine spells. 2012-05-04 21:16:39 +00:00
Michał W. Urbańczyk 13e6f00e18 Compile fix #945. 2012-04-30 10:40:19 +00:00
Michał W. Urbańczyk b0371597cd A better tweak. 2012-04-24 19:11:23 +00:00
Michał W. Urbańczyk 482051eb17 Tweaks for obstacles. 2012-04-24 05:16:04 +00:00
Michał W. Urbańczyk 2ad89a29c4 Missed the file. 2012-04-23 20:20:43 +00:00
Michał W. Urbańczyk 7dc0d6878e Rewritten battle obstacles. New file for lib: CObstacleInstance.cpp.
Now obstacles should be placed exactly like they were in OH3. 
All problems with displaying obstacles in battlefield should be gone. They should be now matched to the single pixel. 
If there are still some discrepancies, please report them.
2012-04-23 19:56:37 +00:00
Michał W. Urbańczyk 017013a5a4 Throwing runtime_errors instead of string (or even char*) objects. 2012-04-22 07:32:45 +00:00
Michał W. Urbańczyk 918452d37c Fixed #930. 2012-04-17 15:08:38 +00:00
Michał W. Urbańczyk cd4c93318d #928 and #931 should be fixed.
Ignoring savegames from newer versions of VCMI.
2012-04-17 12:46:21 +00:00
Michał W. Urbańczyk 6ec3501909 Fixed #927. 2012-04-14 07:39:32 +00:00
Michał W. Urbańczyk b5526f0f54 Fixed #925. 2012-04-14 07:22:08 +00:00
Michał W. Urbańczyk 722ec55384 Redid stack artifacts. Broken save compatibility. Added serializer support for boost::variant and sending CStackInstace* over network by implicitly passing IDs. Moved seeds and checksum to StartInfo. Various minor changes. 2012-04-14 02:20:22 +00:00
Michał W. Urbańczyk d55d48b978 Diagnostics for #924. 2012-04-10 02:30:43 +00:00
Michał W. Urbańczyk 8baec8b093 Implemented #715 (load game from sys options). Fixed #224. Minor improvements. 2012-04-09 02:53:50 +00:00
Michał W. Urbańczyk f9f0fe9d97 Likely fixed #920. 2012-04-08 20:49:16 +00:00
Michał W. Urbańczyk d9064f4f7d Implemented #714 — restart functionality, including quick restart tweak (bound to CTRL+R). 2012-04-08 03:06:27 +00:00
Michał W. Urbańczyk d6223dd137 Fixed #686.
Minor changes.
2012-04-08 02:29:11 +00:00
Michał W. Urbańczyk 9f6270a1f7 Fxied #306 and #856. 2012-04-08 02:14:20 +00:00
Michał W. Urbańczyk b874295b3a Really fixed #918. 2012-04-08 01:43:40 +00:00
Michał W. Urbańczyk 69da179abb Fixed #918. 2012-04-08 01:26:33 +00:00
Michał W. Urbańczyk 3bf76cb719 Fixed #216 and #907.
* CTRL+T will open marketplace window
* T in adventure map will switch to next town
* T in castle window will open a tavern window (if available)
* G will open thieves guild window if player owns at least one town with tavern
* various minor changes
2012-04-08 01:15:18 +00:00
Michał W. Urbańczyk 7317e803db Locking pim mutex in client pack handling method, instead of dozens playerint call-ins. GUI won't try updating in between gamestate change and call-ins about it. Should fix #912.
Minor changes.
2012-04-06 15:02:15 +00:00
Michał W. Urbańczyk c61f536d8b * fixed remaining parts of #760
* it's possible to switch active creature during tacts phase by clicking on stack
* a few minor fixes after handleHex rewrite
2012-04-02 23:23:14 +00:00
Michał W. Urbańczyk 584b761d37 Fixed #917. 2012-04-02 11:38:59 +00:00
Michał W. Urbańczyk 7ccc78c757 Fized crash on attacking walls with Cyclop Kings. 2012-04-01 13:40:14 +00:00