1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
Commit Graph

702 Commits

Author SHA1 Message Date
Michał W. Urbańczyk
5d74e61e3e Hopefully fixed compilation. Unified line endings. 2009-12-30 07:49:25 +00:00
DjWarmonger
6bff8aec34 Actually this one contains fixed Pyramid 2009-12-29 17:15:03 +00:00
Ivan Savenko
def041a8c9 #39 and #106 - fixed cosmetic buildings behaviour
#102 - fixed config + requirements system
#161 - extended clickable rectangle
and some minor fixes
2009-12-29 13:40:16 +00:00
Michał W. Urbańczyk
eb6f7fffc9 Support for smart pointer serialization. Fixed creature banks serialization. Minor fixes. 2009-12-29 01:07:17 +00:00
Michał W. Urbańczyk
01831e912a Fixes for adventure AI: battles where AI is the attacker should work, fixed drawing AI heroes under FoW.
Restructured thread structure: no new thread on yourturn, instead of that introduced update() method called by thread dispatching GUI events. 

Further changes are planned.
2009-12-28 04:08:24 +00:00
Michał W. Urbańczyk
f4dd78507c Patch from Ivan ( http://vcmi.antypika.aplus.pl/forum/viewtopic.php?p=4089#4089 )
"I've noticed that on town screen left-bottom info panel doesn't behave like in H3 and it looks that I fixed this as well as some connected issues:
-all elements now response like in H3 on mouse moves\clicks
-town status bar was not cleaned when nothing is selected
-growth calculation was a bit wrong (in case of town with grail)
-in H3 legion statue effect does not include effect of its components - only global +50% "
2009-12-23 01:46:15 +00:00
Michał W. Urbańczyk
6c4b4f21bc * Implemented rivers animation. Thanks to GrayFace for giving range of colors in palette to be shifted.
* Hopefully fixed all issues with bliwWithRotate functions family. If there are any artefacts on terrain drawing, let me know.
* Fixed drawing of objects shadows.
2009-12-22 21:53:50 +00:00
Michał W. Urbańczyk
1c32679f93 Implemented flagged garrisons passableness ( #150 ). Full support for BorderGates. 2009-12-20 17:14:14 +00:00
OnionKnight
0a96decf87 * Fixed the artifact screen completely, hopefully. Structural overhaul of the CArtPlace and CArtifactsOfHero classes, and I had to add a new server message SetArtifact to deal with things properly. The only thing that differs from H3 now is that you can't have gaps of empty slots in the backpack.
* Preliminary work on bug #112, a bigArtifacts set is added to CArtHandler.
2009-12-01 23:19:43 +00:00
Michał W. Urbańczyk
a3bfde9a41 Hopefully fixed #261, #263, #246. 2009-12-01 21:05:57 +00:00
DjWarmonger
79592d6fbb Definitelly fixed #268 2009-12-01 11:47:52 +00:00
DjWarmonger
1408269aeb Fixed wrong sight center (#276) 2009-12-01 10:23:23 +00:00
DjWarmonger
f00e3fd1e1 Fixed skeleton (part of #268) 2009-12-01 10:10:42 +00:00
DjWarmonger
0d0212642c Fixed #256 2009-11-30 16:14:41 +00:00
DjWarmonger
b87dc7950f Fixed #241 2009-11-28 11:26:32 +00:00
Michał W. Urbańczyk
82faf7538e Fixed #160, #167 2009-11-24 20:29:50 +00:00
DjWarmonger
0ffbaa457e Fixed #218 - mana will be given to heros after taking all bonuses into calculation. 2009-11-21 16:37:27 +00:00
DjWarmonger
4bb5d083f4 Added missing serialization of bank configs (bugs #9, #165 and #221) 2009-11-21 15:45:37 +00:00
Michał W. Urbańczyk
8f217c5cdf Fixed #50, #191, minor 2009-11-20 22:35:18 +00:00
Michał W. Urbańczyk
d18b6c3d5a Fixed #2, #10, #118, #209, #210 2009-11-14 20:14:15 +00:00
Michał W. Urbańczyk
a6f61e33bd * restored 0.74 savegames compatibility (for easier reproducing reported issues)
* Fixed #184 and #189
* minor fixes
2009-11-13 19:04:36 +00:00
DjWarmonger
e1c793068d 1.Support for Skyship - revealing entire map
2.Reorganization of visible tiles processing
3.Turned off revealing the map at build structure as it caused odd conflict
2009-11-11 17:45:03 +00:00
DjWarmonger
ddd755c0c1 1.Removed unused code from hero handler
2.Minor changes in GUI
3.Attempt to manage different alignments of ships
2009-10-28 10:45:45 +00:00
DjWarmonger
2c77785bc7 Hero experience tooltip will now be shown correctly despite of its type (bug #99) 2009-10-27 20:40:11 +00:00
DjWarmonger
e4417e9204 Added feature #111 - external dwellings increase town growth. 2009-10-26 09:11:10 +00:00
mateuszb
68c5bb63a4 * various improvements and code cleanups 2009-10-25 14:36:11 +00:00
DjWarmonger
1683a419a3 Implemented artifact placement rules for advMap objects, but not for the random artifacts placed via editor. (feature #119) 2009-10-24 19:21:32 +00:00
Frank Zago
e916e94a40 Commented out unused code. 2009-10-24 03:51:14 +00:00
DjWarmonger
f0e04ad850 Fixed #178 = Scholar won't give unavaliable spells anymore. 2009-10-23 19:58:21 +00:00
Frank Zago
20c4fbd25c Fixed bug 187. 2009-10-22 05:39:04 +00:00
Frank Zago
e412619ce7 Info map for terrain type. Fixes bug 5. 2009-10-22 02:09:14 +00:00
mateuszb
e88bec607b * Ubuntux's patch for Windows (now PreGame runs but we cannot start any game) 2009-10-16 14:56:57 +00:00
Frank Zago
02ee620abc Fixed bug introduced in r1301. 2009-10-14 23:18:19 +00:00
mateuszb
0078037df8 * compilation fixes for MSVC / minor changes
* CDefHandler::openFromMemory DOES NOT WORK! It seems to be design error, not windows specific.

Note: please write more C++-like code (declarations don't have to be in the beginning of block of code, use C++-style casts, follow our naming convention for structs / classes, don't write struct before structure's name etc.)
2009-10-14 12:44:44 +00:00
Frank Zago
bf64a9a851 Changed some log. 2009-10-13 02:04:06 +00:00
Frank Zago
c2cb7be227 Fixed bug 143 and possibly 142. 2009-10-12 05:00:28 +00:00
Frank Zago
a2861a82d2 Removed the magic from CDefHandler::openFromMemory. CDefHandler::openDef is using that function instead of duplicating the code. Made a few few values unsigned instead of signed. 2009-10-11 18:26:36 +00:00
Frank Zago
a5f7c913ee Changed some comments. 2009-10-11 16:08:01 +00:00
Frank Zago
cb18b7c82a Rewrote CSndHandler::CSndHandler and CVidHandler::CVidHandler to get rid of readNormalNr. 2009-10-11 16:05:40 +00:00
Frank Zago
ea361fe2b4 Removed unused code. 2009-10-11 16:03:52 +00:00
Frank Zago
eee726bd32 Removed duplicated code. 2009-10-10 23:46:42 +00:00
Frank Zago
044875d500 Rewrote a piece of CLodHandler::init. 2009-10-10 23:25:34 +00:00
DjWarmonger
9764e968cd 1.Support for Mana Vortex
2.Bonusing town buildings now dispplay correct message.
2009-10-06 07:55:39 +00:00
DjWarmonger
60085e2249 Fixed bug 116 - constructing bonusing buildings will now affect town heroes. 2009-10-06 06:15:56 +00:00
Michał W. Urbańczyk
fe7ef6bbe1 Smart map object serialization over net.
Fixed doubling click sound on map selection.
2009-10-06 00:32:33 +00:00
DjWarmonger
2cf3e6885f Support for Castle Stables. These are compatible with advMap Stables. 2009-10-05 16:38:54 +00:00
DjWarmonger
7f9d6e0a36 Fixed crash when visiting Academy of Battle Scholars.
Crash with Cage of Warlords not confirmed?
2009-10-05 11:28:49 +00:00
Frank Zago
92d856d3e4 Refactored giveFile() a bit and enhanced a couple error messages. 2009-10-05 01:47:48 +00:00
DjWarmonger
9792c64cbf Fixed bug #71. Little redesign of town buildings handling. 2009-10-04 14:20:19 +00:00
Frank Zago
1609b8fdb9 Made all paths dependent on DATA_DIR, USER_DIR, BIN_DIR or LIB_DIR. Data access can now be separated from saved games and binaries.
Fixed a file handle leak.
Bumped revision to 0.74b (linux).
Reworked the build system to remove uneeded dependencies (linux).
Removed use of PATHSEPARATOR since Windows can use / too.
2009-10-04 02:02:45 +00:00
Frank Zago
8d34b602b3 Removed a few extra semicolons. 2009-10-04 01:31:14 +00:00
DjWarmonger
6d6b3ae1ea Additional functions to obtain precise info about stacks and armed instance for OnionKnight and general use. 2009-10-03 19:31:50 +00:00
DjWarmonger
913c0af6fa Fixed bugs 11, 24 & 26
Next part of Shops script, however still no GUI.
2009-10-03 11:16:42 +00:00
Michał W. Urbańczyk
4c458a7e47 Bumped version, restored AI and Cage. 2009-10-01 22:18:37 +00:00
Michał W. Urbańczyk
5073365eb9 Disable AI and Cage of Warlorlds for release (crashes) 2009-10-01 22:13:11 +00:00
mateuszb
7382314dfd * battle should now end automatically when last stack of one of sides is killed by a spell
* minor changes
2009-09-28 14:21:48 +00:00
mateuszb
07a769601e * faster decompression with infs2
* minor changes (unused code removed, a few additional consts)
2009-09-27 11:37:15 +00:00
DjWarmonger
974acb3907 Pandora fix. Now window will contain message about joined creatures. 2009-09-26 09:16:59 +00:00
OnionKnight
e3eeed0b70 gcc compilation fixes. 2009-09-25 21:11:13 +00:00
DjWarmonger
62cb72975c 1. All Ceature Banks now have correct configs.
2. Pyramid is fully supported.
3. Minor Pandora fix.
2009-09-25 15:40:28 +00:00
mateuszb
4ba26635b6 * hero in siege won't be blitted below wall
* obstacles and units should be printed in better order (not tested)
* animations of attack and defense will follow general speed of animations
2009-09-25 11:38:18 +00:00
mateuszb
1745c3512e * config/bankconfig.txt will be used instead of ZCRBANK.TXT 2009-09-25 09:57:13 +00:00
DjWarmonger
6d881789f6 1.Messenger banks won't reset monthly.
2.Fixed ZRCBANKS and exported to bankconfig.txt file
2009-09-25 09:38:59 +00:00
Frank Zago
66541027b5 Correct spelling. 2009-09-25 04:05:01 +00:00
Frank Zago
fc301e9127 gcc compile fix. 2009-09-25 03:43:16 +00:00
Frank Zago
ad5b30294b Compile fix. 2009-09-25 03:21:56 +00:00
DjWarmonger
0937653e0a getAllowedSpells fixed. Shrines will use it from now on. 2009-09-24 19:28:26 +00:00
DjWarmonger
55925e0eea 1.Fixes for RazeStructures net packs.
2.Support for Pyramid. Unfortunately untested entirely as combats won't work on my system.
2009-09-24 17:54:02 +00:00
Michał W. Urbańczyk
307c20e7dc * fixed crash on clicking on the map frame
* battle settings will be stored
* fixed calculating battle casualties
* fixed crash when clicking on enemy stack without moving mouse when we receive action
* fixed issue when splitting stack to the hero with only one creatures
2009-09-24 13:23:52 +00:00
mateuszb
dce07fe1c9 * fixes for previous commit 2009-09-23 12:42:14 +00:00
mateuszb
e9c991a180 * compilation fixes (I didn't test everything, I hope it works) 2009-09-23 12:05:33 +00:00
DjWarmonger
91b4212c5f Support for Magic Spring
Optimized Pandora Box
2009-09-22 16:12:33 +00:00
DjWarmonger
7c2b54844f Update for previous rev. Support for synchronous building demolition. 2009-09-22 14:27:46 +00:00
DjWarmonger
1f92b2af2c Towns belonging to specific player will now allow only one capitol. Function triggers on InitObj and after siege. 2009-09-22 11:28:05 +00:00
DjWarmonger
b29ac50dcb 1.Support for cage of Warlord, Temple of Valhalla, Wall of Knowledge, Order of Fire
2.Level-up from newly implemented School of War crashed the game.
3.A sketch of shops support
2009-09-21 09:00:33 +00:00
Michał W. Urbańczyk
ee3c318ed9 Version for development release 0.73c
* version set to 0.73c, bumped save format version, updated changelog
* new stack queue for higher resolutions (needs new graphics!)
* improved stack ordering during battle
* many minor fixes
* temporarily disabled AI
2009-09-20 12:47:40 +00:00
DjWarmonger
763571062d Utopia won't give same artifact twice. 2009-09-19 09:47:22 +00:00
mateuszb
d5ba0fc4fb * faster and less memory-consuming def handling
* minor leak in battle interface fixed
2009-09-18 12:50:00 +00:00
DjWarmonger
4c1c03cf37 Proper handling of bank names. 2009-09-17 14:27:28 +00:00
mateuszb
1a08772bc8 * reading of creature banks' names 2009-09-17 11:05:50 +00:00
mateuszb
320e3b9cde * small fixes for creature banks info 2009-09-17 10:47:47 +00:00
DjWarmonger
7660e29751 Creature banks are now functional, however there are some glitches listed on our board. 2009-09-17 06:19:27 +00:00
DjWarmonger
df6a7d680e Creature banks display resonable info about gathered loot. 2009-09-16 16:16:57 +00:00
Michał W. Urbańczyk
670a408fab Fixes for handling starting spells / spellbook. 2009-09-13 22:45:58 +00:00
Michał W. Urbańczyk
efb1049860 * fixed crashes with paths when fastly switching heroes
* fixed and improved slider behavior
* fixed possible thread access conflicts
* support for attacking town with visiting hero
* fixed dwellings saving
* minor improvements
2009-09-12 22:17:23 +00:00
OnionKnight
3d2ab9c753 * Garrison dialogs for garrisons. Required a bit restructuring of the code to take removable units into account. All showGarrisonDialog methods and the GarrisonDialog struct now takes it as a parameter. Visiting ally towns would benefit from this other than garrisons.
* Garrison right-click information shown, but not taking detailed info into account.
* Town info dialogs centered around cursor.
2009-09-09 17:49:03 +00:00
mateuszb
ea5a836a7e * better positioning of moat/mlip
* minor change
2009-09-07 12:30:10 +00:00
Michał W. Urbańczyk
956a87f264 * redone stack queue algorithm
* recalculating paths only after finished movement / switching selection
* moving hero uses "new" pathfinder
* moving hero by arrow keys / numpad
* VCMI window should start centered
* fixed pairing Subterranean Gates
* fixed issues with creatures sounds after loading
* several minor changes and improvements
2009-09-07 02:29:44 +00:00
mateuszb
05b0d82769 * next part of sieges 2009-09-05 14:10:26 +00:00
DjWarmonger
749d54f686 I don't have time this week to finish and test Creature Banks, so I submit what have been made so far. 2009-09-01 14:36:48 +00:00
OnionKnight
e60c6785a4 * Necromancy implemented. Not sure if they client/server communication is right, but it works.
* Cloak of the Undead King implemented as well.
2009-08-31 22:04:00 +00:00
mateuszb
399f58f1af * partially implemented puzzle map 2009-08-31 15:57:15 +00:00
mateuszb
4672070e8c * positions of obstacles in the battlefield can now be individually shifted by config file 2009-08-30 12:58:38 +00:00
mateuszb
03b91b1ed7 * fixed reading of guards / granted creatures (for BankConfig)
* minor changes
2009-08-29 16:08:58 +00:00
mateuszb
fceeb05e16 * a bit of pathfinder interface redesign
* a few fixes for sieges
* better wall parts' positions by Ivan
2009-08-28 09:03:58 +00:00
Frank Zago
e806399246 Compile fixes. 2009-08-26 23:38:17 +00:00
mateuszb
adcfb3c020 * second part of sieges
* minor changes
2009-08-26 14:09:55 +00:00
DjWarmonger
af0cfe13a4 Fixed desync problem with Creature Banks and some other glitches.
The game is still unstable though. Please let me know if your game tends to crash when starting new map.
2009-08-26 05:08:59 +00:00
OnionKnight
5f2d6b5e4c Partial garrison support, battles are played out and the object gets flagged. 2009-08-25 15:08:18 +00:00
OnionKnight
a13d7fd595 * Added Blind to CCreatureHandler::getMindSpells()
* Fixed Angelic Alliance to the right factions.
* Added functions to determine good/evil status of a unit/faction. Was going to use it for both Evil Fog/Holy Ground and Angelic Alliance, but turned out the latter was a bit special. Could still be useful in the future with additional towns. CCreatureHandler seemed to be the best place for it.
2009-08-24 17:40:20 +00:00
DjWarmonger
20ef4c0fb9 I managed to display battlefield in creature bank - before game crashed. 2009-08-24 16:01:45 +00:00
DjWarmonger
82ddb607e6 1.blocked critical AI call
2.Yet another chapter of epic battle with creature banks
2009-08-24 14:59:24 +00:00
mateuszb
543e3c6431 * one more fix for r1145 2009-08-24 10:35:11 +00:00
mateuszb
226a8a8102 * minor fixes for #1145 2009-08-24 10:23:44 +00:00
OnionKnight
7a45f707a0 * Giants/Titans now immune to Blind.
* Added hero bonuses for the composite artifacts.
* Angelic Alliance troop mixing implemented.
* Elixir of Life gives regenerating capabilities.
* Power of the Dragon Father gives spell level immunity, though that is still not implemented.
2009-08-23 20:33:05 +00:00
Michał W. Urbańczyk
1f79af440f * @previous revision: not an AI bug, it was a vector traversing bug. Fixed :-)
* Scrolling through scenario list with mouse wheel, HOME, END, PAGE UP and PAGE DOWN buttons
* Starting selected scenario with double-click
2009-08-23 18:01:08 +00:00
DjWarmonger
23c917f874 Next part of Creature Banks script, partial support for once visitable objects in towns.
Can't test it anymore due to new major bug in AI library (vector subscript out of range)
2009-08-23 15:02:21 +00:00
Michał W. Urbańczyk
66dd31fd8a * attacking and capturing towns
* r-click popups on selected town/hero.bonus and teams in pregame
* disabled music due to bugs in SDL_mixer and smpeg (probably it was the source of reported random crashes / hangups)
* minor fixes
2009-08-22 13:59:15 +00:00
mateuszb
5256038dc3 * restructured changes done in commits #1138 and #1139 2009-08-22 12:50:23 +00:00
OnionKnight
ae918b3930 * Fixed Ring of the Magi (56 durations instead of 50)
* Implemented Elixir of Life (although the 25% HP bonus only shows up in battle)
* Minor, reverted the inclusion of a header.
2009-08-21 20:20:46 +00:00
OnionKnight
9bc40f1a8d * Fixed bug #72
* Implemented artifacts: Wizard's Well, Ring of the Magi, Cornucopia.
* Partially implemented artifacts: Armageddon's Blade,  Angelic Alliance, Cloak of the Undead King, Armor of the Damned, Power of the Dragon Father, Titan's Thunder, Admiral's Hat, Bow of the Sharpshooter.
Most of these only have their bonuses set.
* Updated AUTHORS
2009-08-21 19:31:41 +00:00
mateuszb
9c45f050ef * minor changes to code handling cartographer (next time please make more documentation of your code, especially interfaces and especially when it's not consistent with the rest of the engine (map level description in this case) ) 2009-08-20 10:30:00 +00:00
mateuszb
de886abc0e * reading ZCRBANK.TXT config file
* fixed off by one error reported here: http://antypika.aplus.pl/vcmi/forum/viewtopic.php?p=3324&sid=ee179a979bdc27add85c21c72161f539#3324
2009-08-20 10:07:23 +00:00
Frank Zago
655daf238f Typos. 2009-08-20 01:56:00 +00:00
mateuszb
c4b0bd9d7e * new spell: remove obstacle
* minor changes
2009-08-19 10:59:42 +00:00
DjWarmonger
d38c8e5ada Fixed Cartographer. 2009-08-19 07:03:12 +00:00
DjWarmonger
dd2509f4e8 Support for Cartographers of all types.
But damn, it's slow.
2009-08-19 06:56:53 +00:00
Frank Zago
6312a55bac Fixed uninitialized variables. 2009-08-19 05:00:59 +00:00
Michał W. Urbańczyk
3915b71869 Various fixes. Subtitles for choosen hero/town/bonus in pregame. Fixed arrows behavior. Really fixed shortcuts. Fixed map scrolling. Fixed disappearing battle interface. 2009-08-18 08:22:56 +00:00
OnionKnight
d8ddc4236b Shipyard window fixed. 2009-08-17 17:19:09 +00:00
mateuszb
49a142b92e * minor changes 2009-08-17 13:08:05 +00:00
mateuszb
e892913635 * support for battles in creature banks (hopefully) 2009-08-17 10:47:08 +00:00
DjWarmonger
fbc117b034 1.Pandora and Event now give experience correctly
2.Better, but not complete handling for big exp values
2009-08-17 10:02:29 +00:00
Michał W. Urbańczyk
b4070c6b3e Third part of GUI reorganization:
* Rewritten pregame
* FNT fonts support
* Several additions to GUI system. 

Changes are significant, some things may be broken.
2009-08-17 08:50:31 +00:00
Frank Zago
2844fe7738 Removed extra qualifier. 2009-08-17 02:26:56 +00:00
DjWarmonger
dd91e7e406 1. Support for Pandora Box
2. Improved functions handling experience. Now it works with values over 65K, but still didn't with event giving 99M exp
I have no idea what it has to do with AI though
2009-08-16 15:39:18 +00:00
mateuszb
4fc25c7b98 * corrected per-stack spell immunity handling
* support for new artifacts: * of Legion, shackles of war
2009-08-16 13:44:17 +00:00
DjWarmonger
f9881af0a6 Lookout Tower support 2009-08-15 16:12:30 +00:00
DjWarmonger
9dbb6b03dd A bunch of minor fixes, including enforced conversion warnings. 2009-08-14 06:01:08 +00:00
Michał W. Urbańczyk
2af6d85c23 Various fixes and improvements, mostly for r1093 2009-08-13 01:03:11 +00:00
Frank Zago
2bc0efe71f Compile fixes for gcc. 2009-08-12 02:02:58 +00:00
Michał W. Urbańczyk
1d765e8f29 Second part of GUI reorganization. Some things may not work properly. 2009-08-11 16:05:33 +00:00
DjWarmonger
4653396d76 1.Support for Keymaster Tent & Borderguard, Eye & Hut of The Magi, Stables.
2.Partially done support for creature banks. ToDo: load config file, start battle with surrounding enemies
3.Attempt to increase hero exp capacity. You may ignore it at the moment.
4.Fixed negative countdown in timeHandler.
2009-08-11 07:50:29 +00:00
Michał W. Urbańczyk
a91ab8872b First part of GUI reorganization: extracted CGuiHandler from CPlayerInterface.
Minor fixes for Creature Generators and recruitment window.
2009-08-06 22:36:51 +00:00
mateuszb
507597301f * new spells: resurrection, animate dead
* a lot of minor fixes in battles
* resolution & depth in settings.txt reverted to 800x600 and 24bpp
2009-08-05 12:46:08 +00:00
Michał W. Urbańczyk
de1ed92379 * version set 0.73b
* config entry for 1600x1200 resolution
* several fixes
* http://vcmi.antypika.aplus.pl/forum/viewtopic.php?p=3185#3185
2009-08-03 23:53:18 +00:00
Frank Zago
2496cb4aa5 Fixed buffer overrun. 2009-08-02 15:18:35 +00:00
Michał W. Urbańczyk
1f75aeaf34 Video working with 32 bpp. Proper loading of hero on boat. Fixed problems with newly recruited hero blockvis info. Fixed possible crashes. 2009-08-01 10:08:16 +00:00
Michał W. Urbańczyk
78afb07f52 New, experimental crashhandler for windows (creates minidumps).
Several minor fixes and improvements.
2009-07-31 20:10:22 +00:00
mateuszb
8e63c73cf8 * flaggable objects change their color on minimap when taken over
* corrected damage inflicted by spells and ballista
* minor changes
2009-07-30 12:49:45 +00:00
Michał W. Urbańczyk
25663d2605 Fixes for exchange window in non 800x600 res
Minor improvements and fixes.
2009-07-27 17:55:56 +00:00
Michał W. Urbańczyk
e358845873 Golems Factory and Elemental Conflux creature generators supported. Minor improvements. Updated changelog. 2009-07-26 10:43:22 +00:00
Michał W. Urbańczyk
9fd4b5bb62 Fourth part of sailing code.
Support for Shipyard (both for town and adventure map versions). Improved boat displaying code. Minor changes.
2009-07-26 03:33:13 +00:00
mateuszb
7853a19b54 * minor changes, I hope it spoils nothing 2009-07-25 16:35:47 +00:00
mateuszb
1c2edcf496 * support for new objects:
- magic plains
- fiery fields
- rock lands
- magic clouds
- lucid pools
- holy ground
- clover field
- evil fog
2009-07-21 13:53:26 +00:00
Michał W. Urbańczyk
9206a13390 Fixed fighting guardians of Dwellings (and other objs as well).
Most of creature generators should work fine.
2009-07-20 23:34:06 +00:00
Michał W. Urbańczyk
c8cab314f1 Changed experience needed for level formula to follow H3 one. 2009-07-20 03:30:48 +00:00
Michał W. Urbańczyk
3a1e252895 Minor changes (visitdir organization) 2009-07-19 22:16:07 +00:00
Michał W. Urbańczyk
1916ba6e9f Third part of sailing code.
New objects supported:
 - Buoy
 - Mermaid
 - Ocean bottle
 - Sirens
2009-07-19 07:16:33 +00:00
Michał W. Urbańczyk
9272f501cd Second part of sailing support:
* boat graphics and appropriate flags are used
* disembarking possible
* new objects supported:
 - Flotsam
 - Shipwreck Survivor
 - Sea Chest
2009-07-19 03:10:24 +00:00
Michał W. Urbańczyk
2ca7cc5b5c First part of Boat and sailing support.
[It's possible to enter the boat and move by sea, graphical glitches removal and disembarking will be done soon]
2009-07-19 01:00:19 +00:00
Michał W. Urbańczyk
eb40ade906 * saving system options
* saving hero direction
* minor changes in saving
2009-07-18 03:13:13 +00:00
mateuszb
01a222066b * minor change 2009-07-16 11:38:07 +00:00
Michał W. Urbańczyk
bb87a43a9f Double quotation in artifacts events and bumped save format version. 2009-07-16 00:00:57 +00:00
Michał W. Urbańczyk
23803c9f17 * improved Events handling
* fixed saving town available creatures info
* minor improvements
2009-07-15 22:46:00 +00:00
Michał W. Urbańczyk
48661bd714 * artifacts will be present on morale/luck bonuses list
* fixed problems with 3-tiles monoliths
* fixed some descriptions for events
2009-07-14 16:20:15 +00:00
Michał W. Urbańczyk
98c9b5cd0a * proper initialization of coverage map in hero defs
* updated changelog
2009-07-12 21:17:35 +00:00
Michał W. Urbańczyk
64d9665c39 * fixed crash when there was flaggable building next to map edge
* increased char per line limit for subtitles under components
* saves are sorted primary by map format, secondary by name
* fixed displaying date of saved game (uses local time, removed square character)
* removed redundant quotation marks from artifact events text
* corrected some exp/level values
* primary skills cannot negative values
* fixed crash on entering hall when town was near map edge
* workaround to prevent crashes when gaining same sec skill on leveling serie
* fixed displaying luck effect animation
* minor improvements
2009-07-12 14:07:36 +00:00
Michał W. Urbańczyk
db2f8c1d7c * capitol bar in town hall is grey (not red) if already one exists
* disabled autosaving on first turn
* bonuses from bonus artifacts
* fixed crash on battle with neutral creatures
* minor improvements
2009-07-10 23:40:10 +00:00
Frank Zago
7d9da8974d Moved the rest of creatures abilities to cr_abils.txt. 2009-07-10 02:42:18 +00:00
Michał W. Urbańczyk
1d816b2eb9 Further part of external dwellings handling. Still not done.
Redone MetaString.
2009-07-09 19:15:22 +00:00
Frank Zago
83791aa3e1 Moved some creatures abilities to cr_abils.txt. 2009-07-07 04:12:41 +00:00
Frank Zago
df1e3bf7bd Many typos. 2009-07-07 03:48:00 +00:00
Frank Zago
02ddeb8e88 Use ability name instead of number. 2009-07-07 03:34:23 +00:00
Michał W. Urbańczyk
b551f6a72b Partially done support for external creature dwellings. 2009-07-06 19:41:27 +00:00
Michał W. Urbańczyk
2f73b6cd1e * pressing enter or escape close spellbook
* spellbook shows adventure spells when opened on adventure map
* removed redundant quotation marks from skills description
* erasing path after picking objects with last movement point
2009-07-03 19:57:14 +00:00
Michał W. Urbańczyk
38f8745777 Heroes start with appropriate spells.
Starting spells list has been prepared by Dru. Thanks!
2009-07-03 18:40:36 +00:00
mateuszb
50a49460bf * partial handling of advmap objects changing battle background (like clover field) (their existence should change the background but nothing else)
* map should be drawn faster because empty tiles are no more blitted (according to info from .msk files) - I hope it will work correctly, if not please report or turn it off if too hard to make it work
2009-07-01 15:58:20 +00:00
mateuszb
1cac083239 * added native terrain bonuses in battles
* number of units in stack in battle should now fit the box
* non-living and undead creatures have now always 0 morale
2009-06-30 12:28:22 +00:00
Frank Zago
4dbc7495d6 Added battle result videos. Videos in 2 parts are not supported yet. 2009-06-28 16:02:39 +00:00
Frank Zago
f86e23414e Compile fix. 2009-06-28 14:58:58 +00:00
mateuszb
18bca3dce9 * loadUnitAnimInfo is now more clear 2009-06-28 14:57:00 +00:00
mateuszb
85eb5c7eb9 * artifact manipulation in exchange window works (without switching artifacts between different heroes)
* support for 3 new artifacts:
- Ring of Vitality
- Ring of Life
- Vial of Lifeblood
* restructures creature ability preparing (creature abilities are now loaded from cr_abils.txt file). It needs further work - all changes in abilities should be moved from CCreatureHandler.cpp to cr_abils.txt as it's done in this commit (I hope it's clear how it should be done as there is an example)
2009-06-28 13:49:39 +00:00
Michał W. Urbańczyk
9093320da8 Garrison interface in Exchange Window. 2009-06-28 08:21:50 +00:00
Frank Zago
6be7a77fee Linux video player updates. 2009-06-27 23:33:59 +00:00
mateuszb
0919235948 * next part of hero exchange window
* minor changes
2009-06-26 15:41:19 +00:00
mateuszb
20676e8f95 * compilation error fix 2009-06-24 12:14:48 +00:00
Michał W. Urbańczyk
f0dea8d708 Video in Tavern Window. Minor improvements. 2009-06-24 09:17:33 +00:00
Michał W. Urbańczyk
60f7048662 Finished BIK handler. Refactored CVideoPlayer. Added intro and main menu animation. (Win only). 2009-06-24 06:56:36 +00:00
Michał W. Urbańczyk
9ff6501ba3 Mostly done .BIK video handling (WIN only).
Refactoring.
2009-06-23 08:14:49 +00:00
Frank Zago
d8cfced035 Fixed include path. 2009-06-23 00:00:15 +00:00
mateuszb
3e7a180613 * playing smk videos on Windows (currently only spellbook animation) 2009-06-22 11:12:40 +00:00
mateuszb
c6b11ee917 * VCMI compiles now under MSVC 2009-06-21 13:44:15 +00:00
Frank Zago
af7605b363 s/WIN32/_WIN32/ 2009-06-20 14:52:20 +00:00
Frank Zago
4e9fb63a8b Fixed potential issue in video player. 2009-06-20 02:18:27 +00:00
Frank Zago
dcbf717a07 Basic video player, with no sound, using FFMpeg. Currently plays SMK only. 2009-06-20 01:34:26 +00:00
Frank Zago
e874681fc0 Fixed CVidHandler entry parser. 2009-06-20 01:31:45 +00:00
mateuszb
d2003d59c7 * next part of exchange window
* corrected typo in constructors of CSndHandler and CVidHandler causing compilation errors under MSVC
2009-06-19 12:10:36 +00:00
Frank Zago
7bb09341a0 Derive CSndHandler and CVidHandler from new class CMediaHandler. 2009-06-19 04:27:12 +00:00
mateuszb
ae3fa69134 * next part of exchange window
* changed some CDefHandlers to CDefEssential (the second is less memory consuming)
* minor changes
2009-06-17 16:46:16 +00:00
mateuszb
8231a6e6cc * first part of exchange window
* minor changes
2009-06-16 11:18:14 +00:00
Michał W. Urbańczyk
e2c30df5a6 * fix for problems after r-clicking hero in tavern
* refactored Options::show
* minor improvements
2009-06-10 20:48:55 +00:00
Michał W. Urbańczyk
29e1f2a0b8 * removed redundant code for displaying map difficulty
* bumped version name to 0.72b
* more diagnostics in music handler (should help to catch the reported bug with not playing main menu theme)
* probably fixed problems with horde buildings in towns that start with upgraded dwellings (0.72#1 http://vcmi.antypika.aplus.pl/forum/viewtopic.php?t=159)
2009-06-10 19:44:09 +00:00
Frank Zago
574780da21 Fixed primary/secondary skill levels given by a scholar. 2009-06-10 00:06:35 +00:00
Michał W. Urbańczyk
a17936908a * updated changelog
* version set to 0.72
* integrated save format version to the CLoadFile
* fixed problems on entering non-number as resolution number
* minor improvements
2009-06-01 22:31:11 +00:00
Michał W. Urbańczyk
cff70406f1 * enter can be used to open window with selected hero/town
* fixed slider behavior when showing less maps/games than available slots
* added a few missing sounds for creatures
* fixed problems with artifacts info caused by bug in serialization
* fixed bug in Scholar's serializetion
* all stacks features will be serialized (should fix problems with missing premies from artifacts)
* proper serialization of HeroBonus, fixes some problems/crashes
* resource silos won't give resources on the first day
* fixed problems with removing artifacts when all visiblebackpack slots are full
2009-05-30 16:00:26 +00:00
Frank Zago
5eb067e3fd Revert memory mapped support for LOD files (r881, r886 and r895) because on Windows these files get locked and other applications cannot access them anymore. 2009-05-26 04:52:34 +00:00
Michał W. Urbańczyk
4581c30b20 * VCMI won't try to calculate path when clicking terrain on the other map level then that of currently selected hero (caused hangs)
* Mines / Resource Silos won't give income in the first turn
* Double click on hero slot during stack splitting won't crash
* Fixed problems with updating buttons / minimap
2009-05-24 23:21:55 +00:00
mateuszb
d3e5020da1 * fixed #28 bug
* fixed #30 bug (those elementals were wrongly double-wide)
* fixed #40 bug
* RowAdd always initialized in getSprite

bugs from http://antypika.aplus.pl/vcmi/forum/viewtopic.php?t=148&sid=1813b5192666d21ca931aac9ad778606
2009-05-24 14:32:36 +00:00
Frank Zago
6635cf4f23 Made a few functions static or static inline. 2009-05-23 22:57:39 +00:00
Frank Zago
a0417e95c4 Do not return reference to temporary. 2009-05-23 21:16:42 +00:00
Frank Zago
d5bd4d4aaf Optimized (a little) CDefHandler::getSprite. 2009-05-23 04:22:21 +00:00
Frank Zago
e3c3d3478d Simplify infs2. 2009-05-23 01:23:09 +00:00
Frank Zago
8e2a6466e2 Split audioh into soundh and musich. Derive both from a new CAudioBase class. Fixed crash when there is no sound card present. 2009-05-22 04:14:59 +00:00
Michał W. Urbańczyk
1d5565b3a3 * updated project files for MSVC
* fixed a few includes paths
* it's possible to enter Tavern via Brotherhood of Sword
* fixes for statusbar
* fixes for townlist
* fixed crashes on building / clicking some buildings
* bumped version number to 0.71c
* bonuses from wearing more than one same artifact won't cumulate
2009-05-21 23:50:45 +00:00
Frank Zago
73949f3367 Build fixes for linux. 2009-05-21 00:55:30 +00:00
mateuszb
429b226517 * moved a few files 2009-05-20 10:08:56 +00:00
mateuszb
4c0936a3dc * further code reorganization 2009-05-20 09:02:50 +00:00
Michał W. Urbańczyk
7fbd4e696c * Fixed crashbug on iterating stack effects
* Altered probabilities of starting with 1/2/3 stacks (according to Zamolxis tests)
* fix compilation min/max (windef.h is somehow included and it has its own macros min/max)
2009-05-17 22:52:22 +00:00
Frank Zago
0f6bb0d8b0 Use mapped memory for LOD files. Fixed a few bugs. 2009-05-17 20:31:57 +00:00
mateuszb
cc78c2d350 * more of the new stack bonus system 2009-05-15 12:07:55 +00:00
mateuszb
f07c80ce44 * more of the new stack bonus system 2009-05-14 17:26:55 +00:00
Frank Zago
1f337764bd Support for combat spell sounds. 2009-05-14 04:49:04 +00:00
Frank Zago
bbf4394ecc Removed unused variable. 2009-05-14 03:28:55 +00:00
Frank Zago
e7d4635da8 Use the creatures parameter. 2009-05-14 03:13:54 +00:00
mateuszb
a93796e9d8 * a few changes to new stack bonus system 2009-05-13 20:40:23 +00:00
Frank Zago
788343dd1d Typo: cast is an irregular verb. 2009-05-12 03:35:51 +00:00
Frank Zago
a8ebc0fb5b Fix include path. 2009-05-11 04:57:58 +00:00
Frank Zago
4dd4912b81 Unused file. 2009-05-11 00:59:10 +00:00
mateuszb
8a32855900 * further changes in stack's bonus code 2009-05-10 15:09:42 +00:00
Michał W. Urbańczyk
90fd75e66c * Removed trailing newline from settings.txt (caused warning)
* Sprite/Bitmap handlers moved to VCMI_Lib
* Moved volume sliders 1px down for better look
2009-05-09 16:18:27 +00:00
mateuszb
ae2909667d * redesign of stack's abilities and bonuses - not 100% working, but close ;] 2009-05-08 16:55:04 +00:00
mateuszb
b5ae7d5cbe * refactorings and comment coverage improvements 2009-05-07 17:20:41 +00:00
Frank Zago
a594beea92 Added volume support. 2009-05-06 03:13:46 +00:00
Frank Zago
11779956b1 Fix spelling: pickup_sounds -> pickupSounds 2009-05-06 02:39:03 +00:00
Frank Zago
2bb0eab5f9 Split CMusicHandler into CMusicHandler, CSoundHandler and CAudioHandler. Audio handler is now audioh instead of mush. 2009-05-06 02:32:36 +00:00
Michał W. Urbańczyk
ab1a759458 * reduntant quotation marks from artifact descriptions are removed
* fixed map scrolling with ctrl+arrows when some windows are opened
2009-05-03 23:15:18 +00:00
mateuszb
51821ad5c4 * missing change for previous commit 2009-05-03 16:15:22 +00:00
mateuszb
047590427f * support for new hero bonuses (BLOCK_MORALE, SECONDARY_SKILL_PREMY (archery), AIR_SPELL_DMG_PREMY, EARTH_SPELL_DMG_PREMY, FIRE_SPELL_DMG_PREMY, WATER_SPELL_DMG_PREMY, BLOCK_SPELLS_ABOVE_LEVEL, SPELL_IMMUNITY, BLOCK_MORALE, FIRE_SPELLS, AIR_SPELLS, WATER_SPELLS, EARTH_SPELLS, SPELL, SPELLS_OF_LEVEL). It means that following artifacts are now supported:
- Orb of the Firmament
- Orb of Silt
- Orb of Tempestuous Fire
- Orb of Driving Rain
- Bow of Elven Cherrywood
- Bowstring of the Unicorn's Mane
- Angel Feather Arrows
- Tome of Fire Magic
- Tome of Air Magic
- Tome of Water Magic
- Tome of Earth Magic
- Recanter's Cloak
- Orb of Inhibition
- Pendant of Dispassion
- Pendant of Second Sight
- Pendant of Holiness
- Pendant of Life
- Pendant of Death
- Pendant of Free Will
- Pendant of Negativity
- Pendant of Total Recall
- Spellbinder's Hat
- Spirit of Oppression
- Sphere of Permanence
I hope I listed them all here :). Please try them and report if something's wrong.
2009-05-03 16:14:16 +00:00
Michał W. Urbańczyk
1661da2fcb * fixed selecting new path
* always restoring default cursor when movng mouse out of the terrain
* fixed herolist scrolling
* fixed picking guarded resources
2009-05-01 22:08:03 +00:00
Michał W. Urbańczyk
8c6c0df45e Sound patch from Ubuntux #11: Add music infrastruture + some musics in various places
[With mine minor fixes and updated MSVC project]
vcmi_music.diff
2009-04-30 23:25:17 +00:00
Michał W. Urbańczyk
df25dd7efb Sound patches from Ubuntux #7 - #10:
* Some sound code cleanups
* Renamed soundBase::soundNames into soundBase::soundID
* Add a music handler destructor
* Add Archdevil and vampire pre and post movement sounds

I've applied minor change to fix CMusicHandler - GeniusAI conflict: moved sounds bimap to the .cpp file.

(vcmi_sounds_cleanup.diff
vcmi_sounds_cleanup2.diff
vcmi_sounds_cleanup3.diff
vcmi_add_sounds.diff)
2009-04-30 10:53:06 +00:00
Michał W. Urbańczyk
6ccd9c2701 Sound patch from Ubuntux #6 - adds sound to units during combats
(vcmi_sound_battle.diff)
2009-04-25 23:31:39 +00:00
Michał W. Urbańczyk
92671947a0 Sound patch from Ubuntux #5 - fixes a bug in stopSound where all channels would be stopped if -1 is given in parameter.
(vcmi_sound_stop_one_channel.diff)
2009-04-25 22:51:16 +00:00
Michał W. Urbańczyk
275ec5f640 Added sounds to several objects, minor improvements. 2009-04-23 21:09:10 +00:00
Michał W. Urbańczyk
992ce92ae5 Sound patch from Ubuntux #4 - sounds for hero movement
(vcmi_sound_hero_moving.diff)
2009-04-23 19:50:27 +00:00
Michał W. Urbańczyk
a81378617f Little more events
[Still need more work]
2009-04-23 15:48:53 +00:00
Michał W. Urbańczyk
ff131a3b2f Sound patch from Ubuntux #3
(vcmi_sounds_sets.diff)
2009-04-22 18:50:22 +00:00
Michał W. Urbańczyk
ade4b46edd Sound patch from Ubuntux #2
(vcmi_sounds.diff)
2009-04-22 18:48:56 +00:00
Michał W. Urbańczyk
d625066449 Sound patch from Ubuntux #1 2009-04-22 18:28:01 +00:00
mateuszb
d14083272d * new spells
- protection from air
- protection from fire
- protection from water
- protection from earth
* a bit of refactoring in spell handling code
2009-04-22 10:03:13 +00:00
Michał W. Urbańczyk
c8b6858716 * mostly done Events objects handling
* some moving hero code improvements
* fixed Blacksmith
* minor changes
2009-04-20 22:57:07 +00:00
mateuszb
7319e5cb0e * canceling of casting a spell by pressing Escape or R-click (R-click on a creatures does not cancel a spell)
* new spells:
- frost ring
- fireball
- inferno
- meteor shower
- death ripple
- destroy undead
* spellbook button is inactive when hero cannot cast any spell
* obstacles will be placed more properly when resolution is different than 800x600
* minor changes
2009-04-16 14:01:27 +00:00
mateuszb
cc631b1362 * next ubuntux's patch
* normalized line endings (CR+LF)
* translated comments in CMessage.cpp
2009-04-16 11:14:13 +00:00
Michał W. Urbańczyk
d80afb1902 * server sends confirmation (given later to player interface) after applying request (will be needed for AI)
* created new package for injuring multiple units - needed for area spells (not tested)
* proper screen updating on garrison change
* spell effects will be removed when they time out
* Corpse (Skeleton) will be accessible from all directions
* new objects supported:
- Corpse
- Lean To
- Wagon
- Warrior's Tomb

* several minor improvements
2009-04-16 00:28:54 +00:00
mateuszb
f9ae91d88c * further changes towards support for ranged spells
* added info about author & license in files
2009-04-15 14:03:31 +00:00
Michał W. Urbańczyk
38b680ed30 * Patch from Ubuntux: fix to avoid resources becoming negative [on handling timed events]
* improvements for Garrison Window
* some changes towards Events support
* minor fixes
2009-04-14 23:29:26 +00:00
mateuszb
ece364f735 * partial implementation of SRSL parser (although it's enough for almost all Heroes III spells)
* config/spell_info.txt is now less unholy (its size is no more 666 bytes) :)
2009-04-14 14:48:57 +00:00
mateuszb
4d3808cfa0 * applied ubuntux's patches
* fixed AmptyAI (it builds now)
2009-04-13 18:52:20 +00:00
Michał W. Urbańczyk
de71191307 * Neutral creatures can join or escape depending on hero strength / army (partially done)
* Diplomacy secondary skill support
2009-04-12 01:48:50 +00:00