Commit Graph
100 Commits
Author SHA1 Message Date
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
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 ec3b254c83 Castle interface: improved town scrolling.
Minor changes for future loading-without-restarting.
2009-07-20 08:18:33 +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 fbd496b756 Infowindows for enemy towns. 2009-07-20 02:56:35 +00:00
Michał W. Urbańczyk c9cac18482 Support for infowindows on enemy heroes. 2009-07-20 01:47:49 +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
Michał W. Urbańczyk d1d2823c58 * fixes for glitches in garrisons in non 800x600 resolutions
* fixed timed events
* in recruitment window upgraded creatures will be selected by default
* bumped version number
* spell points won't be negative
2009-07-17 21:53:28 +00:00
Michał W. Urbańczyk b24bd585bc Really fixed glitches in garrison slots. 2009-07-16 01:10:16 +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 ac175895b1 MKinor bugfixes.
(cf http://vcmi.antypika.aplus.pl/forum/viewtopic.php?p=2980#2980 )
2009-07-15 23:58:47 +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 acfe94a966 Bumped version. 2009-07-12 21:19:05 +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
Michał W. Urbańczyk 1d816b2eb9 Further part of external dwellings handling. Still not done.
Redone MetaString.
2009-07-09 19:15:22 +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
Michał W. Urbańczyk 824061e185 * it's possible to exchange stacks between heroes
* fixed bugs with displaying stacks health
* 'T' hotkey opens marketplace window
2009-07-01 07:04:21 +00:00
Michał W. Urbańczyk 9aff190899 Added palette colors for neutral "player" (Thx to Dru). Support for using them via blueToPlayersAdv(surface, 255). 2009-06-30 15:36:12 +00:00
Michał W. Urbańczyk 9093320da8 Garrison interface in Exchange Window. 2009-06-28 08:21:50 +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 576dbe62d0 include windows.h before WORD usage. 2009-06-23 18:34:59 +00:00
Michał W. Urbańczyk 9ff6501ba3 Mostly done .BIK video handling (WIN only).
Refactoring.
2009-06-23 08:14:49 +00:00
Michał W. Urbańczyk ffe2ff9647 Estates / hero bonuses won't give resources on first day. 2009-06-19 01:01:43 +00:00
Michał W. Urbańczyk 527ec27ef5 * fixed handling second horde building in Rampart/Inferno
* garrisoned hero can buy a spellbook if he is selected or if there is no visiting hero
* minor fixes
2009-06-12 23:34:02 +00:00
Michał W. Urbańczyk 58c12e8d73 Reshaped some code responsible for hero list / paths.
* Garrisoning, then removing hero from garrison move him at the end of the list
* problems with the hero window hero list should be fixed
2009-06-11 17:21:06 +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
Michał W. Urbańczyk fcc4acc451 Two more fixes for CSDL_Ext::alphaTransform usage. 2009-06-07 07:38:51 +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
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
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
Michał W. Urbańczyk a8c4a53e91 Updated changelog. 2009-05-17 23:29:50 +00:00
Michał W. Urbańczyk 37f38aed0c No newline at the end of settings.txt please. 2009-05-17 23:24:38 +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
Michał W. Urbańczyk b961d22052 * the number of creatures at the beginning is their base growth
* clicking scrolling arrows in town/hero list won't open town/hero window
* fixed crash on NewGame -> Single -> Back -> Back -> LoadGame -> Single when no saves available
* fixed crash on clicking "Load" in load game menu when no saved games available
2009-05-09 22:19:41 +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
Michał W. Urbańczyk 6aacc95945 Patch from Ubuntux:
* Revert a change from rev 826 that breaks compilation under gcc.

( vcmi_fix_linux_no_compile.diff )
2009-05-03 23:43:07 +00:00
Michał W. Urbańczyk 2900e75818 PreGame patches from Ubuntux:
* fromnewgame use was just broken. Replaced it with something more clear.
* Cleanup printMaps. Remove unused arguments. Can handle empty lists. Add comments.
* Try to behave when no map is present.

( vcmi_fix_fromnewgame.diff
vcmi_printmap2.diff
vcmi_fix_nomap.diff
vcmi_fix_moveByOne.diff
vcmi_sort_maps.diff )
2009-05-03 23:38:08 +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
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 e10ab66631 Patches from Ubuntux:
* clicking on "advanced options" a second time now closes the tab instead of refreshing it.
* Fix position of maps names. Made the slider cursor much more responsive. Speedup the map select screen.
* CPlayerInterface::delComps was not initialized.
* Add a few missing inits.

vcmi_missing_init.diff
vcmi_infowin.diff
vcmi_fix_advoptions.diff
vcmi_fix_printMaps.diff
2009-05-01 16:14:29 +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
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
Michał W. Urbańczyk 06bb6dcce9 Improvements for CMessage::breakText.
[ http://vcmi.antypika.aplus.pl/forum/viewtopic.php?p=2260 ]
2009-04-16 13:32:45 +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
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
Michał W. Urbańczyk d2e1c8d782 Uh... fix for previous fix :/ 2009-04-14 14:26:58 +00:00
Michał W. Urbańczyk f3ffeea72e Minor fixes. 2009-04-14 14:19:46 +00:00
Michał W. Urbańczyk 985b4930e4 Major changes to the GUI. Introduced list of interfaces (listInt) containing pointers to all shown interfaces / windows. Only top layer is active and regularly updated.
Windows should be shown using pushInt and closed with popInt or PopIntTotally (if interface needs to be also deleted).
Some things are not working yet properly, I'll try to fix them ASAP.
2009-04-14 12:47:09 +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
Michał W. Urbańczyk f9aebcc4bd * Started making support for garrison window. Leaving guardians in flagged mines. 2009-04-12 00:58:41 +00:00
Michał W. Urbańczyk d72d988a9c * fixed crash on closing application
* unified yes/no and selection dialog interface calls
* VCMI won't anymore be always giving all three stacks in the starting armies
* fix for drawing starting army creatures count
* support for School of Magic
* support for School of War
* support for Pillar of Fire
* minor changes
2009-04-11 01:32:50 +00:00
Michał W. Urbańczyk 7a9e323297 * fixed 8 hero limit to check only for wandering heroes (not garrisoned)
* srand at the beginning of handleConnection
2009-04-09 15:05:20 +00:00
Michał W. Urbańczyk e3222fd34f * fixed mana limit info in the hero window
* added support for Scholar object
* possibly fixed problems with handling obstacles info
2009-04-08 19:55:50 +00:00
Michał W. Urbańczyk 1983aee1b2 * resting in town with mage guild will replenih all the mana points
* battle will end when one side has only war machines
* fixed crasbug occurring on revisiting objects (by pressing space)
* started writing support for artifacts
2009-04-03 22:34:31 +00:00
Michał W. Urbańczyk 6a37aebec0 Added 0.71 release date to the changelog 2009-04-01 18:38:53 +00:00
Michał W. Urbańczyk 2710017049 * First Aid Tent won't get move
* presumably fixed crash occurring sometimes on battle end
* fixed problems when attacking with two-hex creature another two-hex creature, when tile before our destination was blocked
* minor changes
2009-03-31 20:47:53 +00:00
Michał W. Urbańczyk cb31f5ada3 * Ammo Cart won't get move
* fixed crashes on equipping artifacts
* fixed Wisdom handling
2009-03-29 12:02:37 +00:00
Michał W. Urbańczyk d3246cc6de * Fixed ReFixed Redwood Observatory problem
* Updated changelog
2009-03-28 20:13:26 +00:00
Michał W. Urbańczyk fca28fab10 * battle settings will be remembered between battles
* call-ins for serializing client and playerinterfaces (not used really yet)
2009-03-28 18:46:20 +00:00
Michał W. Urbańczyk 42773e67f2 * amounts of units taking actions / being an object of actions won't be shown until action ends
* provisional support for "Save" button in System Options Window
* forbidden buildings will be shown as forbidden, even if there are no res / other conditions are not fulfilled
* improved damage calculation formula
* several minor improvements
2009-03-28 00:38:48 +00:00
Michał W. Urbańczyk cebd5db8b2 * it's possible to revisit object under hero by pressing Space
* splitting window allows to rebalance two stack with the same creatures
* slightly improved sliders
* minor improvements
2009-03-26 23:05:40 +00:00
Michał W. Urbańczyk 21155f3b35 Refactored and hopefully fixed blitWithRotateNclip functions family 2009-03-26 17:55:10 +00:00
Michał W. Urbańczyk 1915811a2e Patch from keen: compatibility fixes for Mac OS X 2009-03-24 21:28:17 +00:00
Michał W. Urbańczyk b2c4f3e0fd * fixed crash on saving when some objects havebeen removed
* support for multi-target attacks/spells in the protocol
* version bumped to 0.7d
2009-03-21 12:49:58 +00:00
Michał W. Urbańczyk 0cf1b2588d * hero recruited in the town with Mage Guild will get spells (if has spellbook)
* fixed casting spells
* resolved some "taking address of temporary" warnings
* fixed removing killed Hero
2009-03-20 18:51:48 +00:00
Michał W. Urbańczyk 516b1e2b00 REMOVED FILES: CPatgFinder.h/cpp
Updated project files for MSVC and automake (I hope I didn't break it)
* Refactored pathfinding and integrated into CGameState. 
* Fixed issues with wrong calculating movement cost at server side
* Hero infowindow won't be redrawed each time experience changes
* Removed memory leaks with CPaths-s
* Support for Sign objects
* Bumped savegame formt version to ensure old not compatible saves won't be readed
* Spellscrolls will disappear on visit (won't be treated as spellbooks anymore)
2009-03-19 14:17:19 +00:00
Michał W. Urbańczyk cdc68a930b Renamed applier => applierGs in CGameState.cpp 2009-03-15 15:13:54 +00:00
Michał W. Urbańczyk f33d3894bd Possibly fixed compiling on gcc. 2009-03-15 12:53:58 +00:00
Michał W. Urbańczyk 24c2ce6a99 Improved tooltips. 2009-03-14 17:19:53 +00:00
Michał W. Urbańczyk 6ce9a253a4 * support for Redwood Observatory
* support for Shrine of Magic Incantation / Gesture / Thought
* minor improvements
2009-03-14 11:25:25 +00:00
Michał W. Urbańczyk 5bbc50fc12 * it's possible to stop hero movement
* fixed horde buildings displaying in town hall
2009-03-12 18:50:36 +00:00
Michał W. Urbańczyk d6283fd1ca * fixed crash when there was no sabegames in Games/ subfolder
* fixed crash when loading map with a mine belonging to human player
* fixed crash on moving hero into town garrison
* fixed r-click infowindow for towns
* new sight radious calculation. Works as OH3 for heroes, towns and probably all objects. (to be tested)
2009-03-11 23:25:59 +00:00
Michał W. Urbańczyk a7680d3957 Bugfixes and support for timed events. 2009-03-09 19:40:43 +00:00
Michał W. Urbańczyk 4653ca6b29 New file for VCMI_Server - NetPacksServer.cpp
Redone client -> server protocol.
2009-03-09 10:37:49 +00:00
Michał W. Urbańczyk d5da904c1f Really removed ability handler. 2009-03-07 17:10:48 +00:00
Michał W. Urbańczyk 320e04a121 New files
For VCMI_LIB: lib/RegisterTypes.cpp lib/NetPacksLib.cpp
For VCMI_CLIENT: client/NetPacksClient.cpp
(+ headers)
Removed files
FOR VCMI_CLIENT: hch/CAbilityHandler.cpp and header

Redone sending and applying messages server => client
May be still buggy.
2009-03-07 17:08:40 +00:00
Michał W. Urbańczyk 5816028322 new files 2009-03-07 15:55:56 +00:00
Michał W. Urbańczyk 5ebb54ec59 should be fine... 2009-03-07 15:54:12 +00:00
Michał W. Urbańczyk e9ebc7de5b wrong1 2009-03-06 22:25:19 +00:00