Michał W. Urbańczyk
8a4f81b981
Tribool - part II.
2013-04-21 12:28:26 +00:00
Michał W. Urbańczyk
6e1464b568
Tribool - I used it wrong.
2013-04-21 12:24:54 +00:00
Michał W. Urbańczyk
d1d67caa0b
Get rid of some old serialization workaround code that is not needed because serializer was improved in the meantime.
...
Fixing #1254 .
Fixed possible race causing corruption of the server savegame.
2013-04-20 18:44:55 +00:00
Michał W. Urbańczyk
e8354908c3
Big change: Introduced new mechanism to handle queries. It should not cause any visible changes ATM apart from fixing several long-standing bugs realted to handling post-visit/battle/levelup callback, including infamous creature bank issues: #955 , #1053 , #1063 , #1191 . Needs testing.
...
Minor changes:
* default log level set to trace
* LOG_TRACE raii guardian lifetime will last till the end of block
* compile fixes
* minor refactorings
2013-04-20 11:34:01 +00:00
beegee1
03c2aa9153
- Refactored CMapEditManager(added structure for undo functionality) - Refactored CMap(terrain pointer is private, safe access via getTile)
2013-04-19 11:43:11 +00:00
beegee1
feea589648
- Bug-fixing for last commit - Moved CMapGenOptions to CMapGenerator
2013-04-15 17:18:04 +00:00
beegee1
c10266ed97
- Reduced complexity to use the CMapGenerator(simpler interface) - Removed h3m.txt and tchar_amigaos4.h
2013-04-14 18:52:05 +00:00
beegee1
b1428bcd24
- Compile fix for editor - Renamed /Editor to /editor and Scripting/ERM to scripting/erm - Removed unused ipch folder and format file - Removed ancient lua folder
2013-04-13 11:07:32 +00:00
Ivan Savenko
0cf969d508
- console logger by default uses same format as previously (no extra data)
...
- a lot of changes in configs;
- - update to creature format - abilities are now json structure
- - multiple bugfixes revealed by validation
- made schemas a bit more strict
- creatures data can be replaced via mods
- it is possible to validate vcmi configs using schemas (disabled)
2013-04-11 19:24:14 +00:00
beegee1
f10ba48c77
- Fully integrated new logging API(ERM, Editor, missing parts) - Removed old logger
2013-04-11 15:58:01 +00:00
beegee1
6827fcdb53
- Integrated the logging API into the server project - Simplified CBasicLogConfigurator usage(exception handling, logging, log file appending)
2013-04-10 17:18:01 +00:00
beegee1
c7c2686379
- Integrated the logging API into the client and the lib - Remove some more comments and switched to /// style - Fixed recursive locks - Added Global.h to CMakeLists(now visible in qt-creator) - Removed usage of shared_mutex - Added unique_ptr to CLogger targets
2013-04-09 14:31:36 +00:00
beegee1
30bcec42c6
- Renamed client/BattleInterface to client/battle and client/UIFramework to client/gui
2013-04-07 11:52:07 +00:00
beegee1
ee51c5beb5
- Renamed /lib subfolders to lowercase
2013-04-07 10:48:07 +00:00
DjWarmonger
f39ad093b9
Compile fix.
2013-04-04 19:54:58 +00:00
Ivan Savenko
2a469d4ffc
- removed hardcoded set of catapult trajectories
...
- some more improvements into projectile blitting
Remaining issues:
- timing is off when catapult hits walls/tower
- catapult trajectory may need tweaking
2013-04-04 18:20:25 +00:00
stopiccot
f2309d70dd
replaced extern SDL_Surface* X; all over the code with single header
2013-04-04 14:58:54 +00:00
Ivan Savenko
619a07da03
- projectile blitting should be closer to original H3. But still not perfect.
...
- removed no longer needed field "projectile spins"
2013-04-04 13:18:38 +00:00
Ivan Savenko
655ade9a00
- vcmi will not crash if building selection area is smaller than def
...
- detection of transparency on selection area is closer to H3
2013-04-03 16:28:50 +00:00
Ivan Savenko
c927913f5f
- Improved json validation. Now it support most of features from latest json schema draft
...
- Set of schemas in config/schemas directory that are used to validate input from mods.
2013-04-02 17:06:43 +00:00
Ivan Savenko
c4c592b773
- bugfixing: #1243 , #1227 , #1241 , #1236 , #1233
2013-03-14 20:44:00 +00:00
Ivan Savenko
5082dafd62
- h3 hero classes and artifacts can be modified via json
...
- commander artifacts are now merged into main artifacts.json, todo - split 2.5k file into something manageable
2013-03-12 14:56:23 +00:00
alexvins
2eb8263e51
Basic Configuration for bonus types
...
* introduced new handler BonusTypeHandler
* config\bonusnames.json converted to common format and splitted info main and localizable parts
* hanlders initialization refactored
2013-03-06 18:49:56 +00:00
DjWarmonger
2ee5c4b745
Fixed stack artifact (and related buttons) not displaying in creature window.
2013-03-05 08:01:14 +00:00
mateuszb
dbec99ffc7
* PlayerColor and TeamID refactoring
2013-03-03 17:06:03 +00:00
Ivan Savenko
b5fcefe455
- moved all system-specific handling of filesystem to VCMIDirs.cpp (new file)
...
- fixed #1128 , artifact constituents are now stored as pointers
2013-03-02 18:41:25 +00:00
Ivan Savenko
f306d7bb70
some changes towards editing H3 objects via mods. Should be stable, report if not.
...
- removed duplicated json loading code in handlers
- simpler and mod-friendly handling of combined artifacts
- reorganized CCreature to avoid huge number of fields in one structure
2013-03-02 16:55:51 +00:00
Michał W. Urbańczyk
8c7c4789ca
Attempt to apply patch from stopiccot.
2013-03-01 21:32:26 +00:00
Michał W. Urbańczyk
01d1029b1f
Fixed #1221 .
2013-02-28 05:09:08 +00:00
Ivan Savenko
9c1c337a3d
- fixed #1220 and #1218
...
- vcmibuilder will correctly install campaign video
2013-02-27 15:46:14 +00:00
Ivan Savenko
b78c4c19ea
- compile fix
2013-02-26 15:07:21 +00:00
DjWarmonger
928d1d2121
- Some work on bonus system, effect range can be ignored. TODO: usage of bonus with any subtype.
...
- Fixed #1156
2013-02-26 09:36:21 +00:00
Ivan Savenko
57d23c74ee
patches from qdii
2013-02-25 19:17:36 +00:00
Ivan Savenko
e8c35bdb24
fixed extremely slow musicHandler compilation. Removed usage of boost bimap.
2013-02-24 10:05:56 +00:00
mateuszb
602827d1ae
* MSVC compilation fixes
...
* campaign epilogues and minor fixes
2013-02-23 19:16:14 +00:00
Ivan Savenko
74ac44662c
- a bit less memory usage during compilation with gcc, new file - RegisterTypes.cpp
...
- fixed several issues related to visiting town by ally
- fixed #1215
2013-02-23 12:22:23 +00:00
mateuszb
fbb1ae1bb8
* prologue videos (according to Randjan's list)
2013-02-22 21:03:56 +00:00
Ivan Savenko
9fa59276c9
- OSX patch from stoppicot
2013-02-21 17:32:50 +00:00
mateuszb
92995964f3
a bit more of prologue/epilogue screen
2013-02-20 21:01:18 +00:00
mateuszb
b776b93b0c
* a bit of campaign prologue/epilogue screen
2013-02-19 20:39:09 +00:00
Michał W. Urbańczyk
6fdf64c2b1
Little more logging.
2013-02-18 23:10:46 +00:00
Michał W. Urbańczyk
d45a554fec
Significant changes to saving system. Now both client and server store their lib part.
...
Desync detection upon loading. Fixed many desyncs. (more remain)
Monsters won't have creature count 0 even if that is set as creature properties.
2013-02-18 22:37:22 +00:00
DjWarmonger
111312636a
Fixed #1207 . Some tweaks.
2013-02-17 18:53:01 +00:00
mateuszb
560315bc48
* SlotID refactoring
2013-02-16 14:03:47 +00:00
Michał W. Urbańczyk
d23a5dcfdf
Fixed #1208 .
2013-02-14 15:19:35 +00:00
mateuszb
9e00090c42
* refactoring, a few intriguing problems remain
2013-02-13 23:55:42 +00:00
mateuszb
6d06710684
* fixes for town building campaign bonus
2013-02-13 14:21:11 +00:00
DjWarmonger
ac742affe5
Compile fix
2013-02-13 07:22:55 +00:00
mateuszb
9c1a117c1c
* refactoring
2013-02-12 22:24:48 +00:00
Ivan Savenko
7e46d462b6
- compile fixes
...
- fixed portrait initialization for random heroes
2013-02-12 21:32:55 +00:00
mateuszb
bda766b697
* refactoring
2013-02-12 19:49:40 +00:00
Ivan Savenko
5a8787b74d
- fixed some compiler warnings, gcc\clang work fine
...
- better handling of innoextract in vcmibuilder.
2013-02-11 22:36:12 +00:00
DjWarmonger
4f75e47c47
Fixed crash with Firewall / Forcefield cast when there is dead stack.
2013-02-11 20:08:53 +00:00
mateuszb
8a8eecd063
* refactoring
2013-02-11 19:11:34 +00:00
mateuszb
d540723739
* refactoring
2013-02-11 14:42:09 +00:00
mateuszb
86dc9386d6
* refactoring, including a generic solution for IDs
2013-02-10 23:24:57 +00:00
Michał W. Urbańczyk
2f39db2375
Hero portraits in campaign bonus selection.
2013-02-09 19:19:14 +00:00
Michał W. Urbańczyk
13b3d23b26
Finally working hero crossover in campaigns.
...
Uncovered new secrets of h3m.
2013-02-09 18:18:55 +00:00
mateuszb
d03dbf64a6
* refactoring
2013-02-09 12:56:35 +00:00
Ivan Savenko
a269b22741
- fixed incorrect appearence of hero in battle
...
- vcmibuilder works with spaces in filenames
- by default output directory for vcmibuilder is ~/.vcmi
2013-02-09 12:34:49 +00:00
mateuszb
0003d30991
* refactoring
2013-02-08 22:42:46 +00:00
mateuszb
9dd60b6dbe
* refactoring
...
* moat damage went to config file
2013-02-08 21:17:39 +00:00
mateuszb
f1c78e3260
* creature ID refactoring
...
* double week creatures are configurable now
2013-02-07 17:34:50 +00:00
Michał W. Urbańczyk
124d732171
* fixed race condition crash
...
* no crash when there is no creature in dwelling (that should not happen at all... but)
* removed paths from vcxproj, use property sheets
2013-02-07 15:27:22 +00:00
mateuszb
af5287c193
* fixed opening custom campaign selection window
...
* artifact positions refactored
* vstd::advance allows moving between enum values
2013-02-06 23:24:43 +00:00
Ivan Savenko
56ffd05648
patch from stoppicot:
...
1. vcmiclient now usese custom Info.plist
2. Original H3 game data is now also stored in Application Support folder
2013-02-06 15:39:34 +00:00
mateuszb
3958364884
* a bit more work on campaigns; hero crossover still buggy
2013-02-06 10:16:44 +00:00
mateuszb
dc091a1ce1
* some work on hero crossover; still buggy
2013-02-05 23:16:13 +00:00
Ivan Savenko
3f309f0c5e
- removed support for ancient versions of ffmpeg
...
- some cleanup in Linux video player
2013-02-05 23:11:48 +00:00
Michał W. Urbańczyk
60c18f1bb8
More fixes for campaigns.
2013-02-05 21:19:08 +00:00
Michał W. Urbańczyk
17755caa10
* fixed #1199
...
* fixed advancing between misisons in campaigns
2013-02-05 20:06:13 +00:00
Ivan Savenko
8ffd482324
- gcc compile fix
...
- mismatching enum (?) in HeroBonus
- probably fixed some cases of unaligned access
2013-02-05 19:56:28 +00:00
mateuszb
898228fd54
* minor fix for bonus selection screen
2013-02-05 19:33:09 +00:00
mateuszb
bda92a4a73
* refactoring
...
* fixed bug 1143
* some work on campaigns
2013-02-05 18:48:46 +00:00
mateuszb
25663ce7af
* fixed vector<bool> serialization
...
* refactoring
2013-02-04 19:43:16 +00:00
DjWarmonger
e63747d2d2
Fixed #860 and #1169
...
Imprisoned heroes as well as their commanders will get full level ups, with updated specialty, mana and movement.
2013-02-04 12:32:53 +00:00
mateuszb
8769f67c5d
* JsonReader can convert to enums
...
* refactoring
2013-02-03 21:05:44 +00:00
Michał W. Urbańczyk
1fca96257d
Fixed #1197 .
2013-02-03 15:05:30 +00:00
DjWarmonger
beb1ca1bf8
- getDate function now uses enum for different modes
...
- Fixed Black Market (#1195 )
- Fixed one-week bonuses removed eveyr day (#976 )
2013-02-02 08:29:57 +00:00
mateuszb
c4e03ef0de
* enum serialization/deserialization (si32 as basetype ought to be enough for anybody)
...
* some fields in classes refactored to use appropriate enums (not yet finished)
2013-02-01 22:04:25 +00:00
Ivan Savenko
6a5af58aed
(linux) version bump to 0.91
2013-02-01 08:58:14 +00:00
mateuszb
a1da195b85
* minor refactoring
2013-01-31 20:11:25 +00:00
mateuszb
4ae4b998a3
* bug 1165 fixed
2013-01-31 17:52:10 +00:00
mateuszb
5b0c6059e2
* bug 1193 should be fixed
...
* minor refactoring
2013-01-30 21:28:31 +00:00
Ivan Savenko
a82601db72
- playing a bit with ttf fonts: bugfix + shadow rendering
2013-01-29 22:43:39 +00:00
Ivan Savenko
9caa21a51c
- fix for #1189 (h3 text parsing fix)
...
- fix for #1188 (replaced ffmpeg detection with module from KDE)
2013-01-26 19:39:54 +00:00
beegee1
db2f468341
- Fixed some bugs when generating terrain view IDs (mock map seems to be OK) - Enabled RMG by default
2013-01-26 13:48:20 +00:00
DjWarmonger
dcedfb05d2
Fix for #1187
2013-01-25 14:39:28 +00:00
DjWarmonger
dad5771a09
Workaround for new artifacts r-click descriptions, they will be displayed in same way as OH3 artifacts.
2013-01-24 08:01:43 +00:00
Ivan Savenko
080e037c54
- fix for starting towns ( #1180 )
...
- fix for creature window (#1184 )
2013-01-23 22:09:58 +00:00
Ivan Savenko
6b3debc5ed
- fixes for market window ( #1182 )
...
- aligment issues on level-up window
2013-01-22 23:28:10 +00:00
DjWarmonger
e5783801af
Fixed #1183
2013-01-22 09:47:25 +00:00
beegee1
a4129f43f2
- Correct handling of who manages which players(player count may differ from initial start options for a RMG map) - Fixed warning
2013-01-21 20:49:19 +00:00
DjWarmonger
a0e72785a6
Fixed doubled descriptions in creature window.
2013-01-21 09:32:51 +00:00
Ivan Savenko
46eb0b3daf
- wrokaround/fix for #1177
...
- removed assert in Fonts.cpp (can be triggered a lot by old pregame\battles code)
- fixed battle console text positioning
- fixed some new compiler warnings
2013-01-20 22:49:34 +00:00
Michał W. Urbańczyk
a96f03e947
Crashes realted to illegal access to enemy hero data should be fixed, including #1178 .
2013-01-20 20:29:35 +00:00
beegee1
1cab54b87a
- Fixed bug when starting random map with 1 player - Refactoring - Fixed compile bug - Heroes can be selected in map selection screen(RMG map) - Main town gen
2013-01-20 14:43:58 +00:00
Michał W. Urbańczyk
5b919d88eb
"More stable" opening AI.
2013-01-20 12:06:49 +00:00
DjWarmonger
ce15eb37c2
- Fixed serialization of limiters
...
- Hero can now can have several separate specialty nodes
- Fixed typo (speciality->specialty)
- Fixed several crashes related to commanders
- Improvements to specialty handling, bugfixes and temporary solutions for upcoming hero specialties in mods
2013-01-17 18:15:00 +00:00
Ivan Savenko
5deb499e7e
Last breaking change into mod system (will explain on forum)
...
- paths in "filesystem" node are now relative to mod directory
- "filesystem" entry in mod.json is now optional
- made "register object" log messages visible only in log
- minor fixes, including #1173
2013-01-16 14:28:49 +00:00
Ivan Savenko
2f83b211ca
- fix for text on kingdom overview ( #1172 + some other similar cases)
...
- removed unused code from text handler
2013-01-12 19:28:38 +00:00
alexvins
f4ee750d64
[refactor] a few more cleanups
2013-01-12 13:53:02 +00:00
Ivan Savenko
7e7d12095b
- basic support for dependencies\conflicts for mods
...
- adventure map objects transparency should be more similar to h3
2013-01-10 18:53:49 +00:00
alexvins
d8b068afd9
[c::b] update projects
2013-01-08 09:41:28 +00:00
beegee1
0311e5e6f5
- Added basic mock/test generation - Added stub for terrain editing
2013-01-06 19:30:12 +00:00
alexvins
4bc2fd5519
[c::b] renamed map subfolder to workaround dependency tracking bug
2013-01-03 12:19:20 +00:00
mateuszb
2848fb6fef
Gernsworth's patch for bug #1118
2012-12-30 18:29:15 +00:00
Ivan Savenko
e023b7d6bc
another OS X patch from stopiccot
2012-12-27 09:21:30 +00:00
Ivan Savenko
96cc88ba91
- removed autotools files from ERM
...
- fixed misplaced town label
2012-12-25 15:39:06 +00:00
alexvins
9051731755
[c::b] reorganize workspace
2012-12-24 15:55:19 +00:00
Ivan Savenko
0b1c215882
- end of world, at least for autotools. Removed completely in favor of CMake
2012-12-23 19:44:37 +00:00
Ivan Savenko
da6cb0ae12
- trade windows work with new creatures\artifacts
...
- removed some duplicated code in creature loading
2012-12-23 10:23:41 +00:00
Michał W. Urbańczyk
fa3d32925e
A patch from Gernsworth that fixes #166 . CGStatusBar is extended to support alignment, old CStatusBar class is removed.
2012-12-22 20:05:08 +00:00
Ivan Savenko
4e0881f689
- fixed #1167
...
- CLabel will print text in "{}" using title color
2012-12-20 13:57:29 +00:00
Michał W. Urbańczyk
bcf8cab19a
Project files update/cleanup.
2012-12-19 18:23:21 +00:00
Michał W. Urbańczyk
27f8408c52
Compile fix for MSVC.
...
Fixed crash when no maps are present.
Fixed crash on opening the loading screen.
Fixed crash on starting the turn when Games/ subfolder is not present.
2012-12-19 18:19:09 +00:00
Ivan Savenko
b5ebf443fc
- all fonts handling is now in new file, UIFramework/Fonts.cpp/h
...
- common base class for H3 bmp and ttf fonts
- replaced fonts.txt with fonts.json
2012-12-19 17:24:53 +00:00
alexvins
66d9edf76e
small refactor secskill limit check.
2012-12-18 11:24:13 +00:00
Ivan Savenko
94c55e2632
- string ID's for spells (not configurable due to hardcode)
...
- spell chances in new towns guilds can be specified in config
2012-12-18 10:32:11 +00:00
Ivan Savenko
62e99a1ae5
- basic loading screen, no progress bar
...
- startGame() call will run in separate thread if loading screen is used (looks OK so far)
2012-12-17 18:01:17 +00:00
Ivan Savenko
ff146a80fe
- fixed empty tavern in new towns
...
- by default new heroes\new towns will be enabled on maps (no effect without mods)
2012-12-17 12:55:29 +00:00
Ivan Savenko
e36bc50504
- support for new heroes and hero classes
...
- moved hero-specific data from text handler to CHero
- moved hero classes-specific data into heroClasses.json
2012-12-16 13:47:53 +00:00
Ivan Savenko
c764ce6ebe
- one more unitialized memory crash ( #1163 )
...
- minor tweaks for hero handler
2012-12-15 13:40:22 +00:00
DjWarmonger
f05b398e5c
Compile fixes.
2012-12-15 09:04:55 +00:00
Ivan Savenko
d2ee602b29
- fix uninitialized cursor
...
- stubs for loading heroes and classes from mods (no real code yet)
- heroes loading uses string IDs for secondary skills, some cleanup in HeroHandler
2012-12-15 08:47:02 +00:00
Ivan Savenko
423a226e31
OS X patch from stopiccot
2012-12-15 07:24:25 +00:00
Ivan Savenko
e695f1ad63
- fixed slow hero screen (not specific to it, but most notable here)
...
- fixed some bugs related to animation (cove buildings mostly)
2012-12-14 19:47:38 +00:00
Ivan Savenko
ffe8b99369
- reorganized hero classes
...
- artifact iconIndex should work
- new file with hardcoded string constants: lib/StringConstants.h
Note: some minor bugs, will fix soon:
- slow to open hero window
- hero adventure map images serialization is broken\incorrect
2012-12-14 15:32:53 +00:00
Ivan Savenko
23fcdd1a4a
- missing fields in town serialization
2012-12-13 13:07:56 +00:00
Ivan Savenko
ec8e078ef8
- fixed out of sync hero armies
...
- one more crash in garrison
2012-12-12 14:52:42 +00:00
Ivan Savenko
ca4f53aea1
- some fixes for garrisons (crashfix and correct behaviour of split button)
2012-12-12 12:03:02 +00:00
Ivan Savenko
04358ed0c6
multiple changes in config system, breaks existing mods. See upcoming post on forums.
...
- filesystem initialization works in conjuction with modHandler
- (config) split buildings.json in multiple files in "factions" directory
- (mods) merged filesystem.json and config/mod.json into mod.json
2012-12-12 11:13:57 +00:00
Ivan Savenko
e3231db1c9
- primaryResource and warMachine now use string ID
...
- fixed long delays on moving units in garrisons
- fixed bug on loading available spells from map
- removed unused bigImgs from Graphics
2012-12-11 12:12:46 +00:00
Ivan Savenko
1c5a4c669c
- merged minimap.json into terrains.json
...
- removed no longer used fields from Graphics + portraits.json
- work on pregame:
- - new code for map options window icons + popups
- - fixed bugs related to new towns
- - less hardcoded magic numbers
2012-12-10 14:28:27 +00:00
DjWarmonger
730cbd930a
Parsing for new artifact format: http://wiki.vcmi.eu/index.php?title=Artifact_Format
...
Not finished, not tested.
2012-12-10 13:55:54 +00:00
Ivan Savenko
85a23e298c
- generic string ID -> numeric ID resolution system
...
- - hero army and creature upgrade names are resolved using new system
- - faction names and creatures in towns are resolved using new system
- (linux) replaced build_data.sh with hopefully better vcmibuilder script
- minor fixes
2012-12-03 16:00:17 +00:00
Ivan Savenko
c9dd80ea6d
- moved json-related functions (e.g. ParseBonus) into JsonUtils namespace
...
- replaced JsonNode::toStdVector with more universal convertTo
- some renaming in StartInfo
2012-12-02 12:21:44 +00:00
DjWarmonger
c5d9110176
Compile fix for last commit.
2012-12-01 07:17:55 +00:00
Ivan Savenko
2643762f08
Mac OS patch from stopiccot
2012-12-01 06:30:52 +00:00
DjWarmonger
52242692f1
Fixed #1130 .
...
Moved isToReverse() function to battleCallback so that creature rotation will be handled by core mechanics and not only GUI.
2012-11-29 15:02:55 +00:00
beegee1
53169abea7
- Foundation for starting a random map is done - Moved StdInc.h to header file in some /Map and /RMG compilation units(better syntax highlighting, should have no negative impact)
2012-11-20 17:53:45 +00:00
Ivan Savenko
8eba824ada
- updated icons + psd file
...
- better log messages if server failed to open port
- 1148 should be fixed. Cleanup in CGameHandler::moveHero()
- compile fixes
2012-11-15 21:29:22 +00:00
beegee1
e08db9790b
* Map size can be any integer value * Changed new_*; to new_*(); for zero-parameter c-tors (=code convention; stack allocated objects without parantheses as ever to avoid c++ most vexing parse)
2012-11-13 18:01:31 +00:00
DjWarmonger
f5ddc44827
- Compile fix - unique_ptr can't be serialized
...
- Linking fix - now MapGenOptions have DLL-interface (but probably shouldn't be called directly from client anyway)
2012-11-13 12:55:47 +00:00
Ivan Savenko
f7915d9e61
- removed creature-related code from ModHandler
...
- new towns can be loaded as mods
- removed separate DefInfos for towns\capitals
- a bit simpler handling of adventure map def's
2012-11-13 11:52:23 +00:00
beegee1
c336abcf4a
* Added RMG tab to pregame(disabled by default, activate with: enableRMG=true in settings.json) * Fixed tab intendation * Renamed colors to more comprehensible names
2012-11-11 12:23:31 +00:00
Ivan Savenko
0d863c83d7
- removed autogenerated by autotools files
...
- fixes for #386 using patches from Ixtreon
2012-11-10 21:56:19 +00:00
beegee1
105083dd70
* Code convention updates * Default values for CMap types * Updated BinaryReader c-tor * Converted "bool" int types to bool in CMap classes * Removed map event operators in favor of member methods
2012-11-06 16:39:29 +00:00
Ivan Savenko
fc85e08a64
- clang and gcc 4.5 compatibility
...
- autotools update
- debian build system fixes
2012-11-03 19:31:16 +00:00
beegee1
a878f5f79a
* Separated map loading from the map object * Moved map classes to lib/Map * Renamed map.h/cpp to CMap.h/cpp * Profiling of map loading is now optional * Updated CMemoryStream
2012-11-03 13:30:47 +00:00
DjWarmonger
347bfde310
Added patch for #1144 . Thanks cirdan!
2012-10-27 16:59:24 +00:00
beegee1
720deba838
* Added comments to map.h * Refactoring(renamed attributes, some steps towards coding guidelines, ..)
2012-10-26 17:51:05 +00:00
Ivan Savenko
8604234f8d
- fixes for autotools build
2012-10-26 12:57:18 +00:00
Ivan Savenko
db10f512d5
- game won't crash on missing dwellings (instead random one will generated)
...
- added disabled code that can be used to fix buildings blit order
- minor fixes
2012-10-07 14:58:48 +00:00
alexvins
b3f317c1ed
fix to prev. commit
2012-10-07 10:38:35 +00:00
alexvins
ff3da291a1
[refactor] reduce some code duplication. no functional changes
2012-10-06 20:35:04 +00:00
Ivan Savenko
da7a6234b1
- some tweaks towards new towns
...
- it is possible for faction to have 0 available heroes
2012-10-06 08:47:13 +00:00
Ivan Savenko
9f0441a0be
- adventure map defs are now part of town config. Should be the last part
...
- possibly fixed #1136
2012-10-05 19:57:28 +00:00
Ivan Savenko
c071a03a8a
- fix for #1135
...
- merged wall_pos.json into town config
- removed tower_shooter field from creatures.json
2012-10-05 18:03:49 +00:00
Ivan Savenko
306d64b0c4
- it is possible to read json file with vector
...
- town configuration:
- - all town-related texts are now in TownHandler
- - alignments are now part of faction
- - removed CTown::bonus field
2012-10-05 13:11:26 +00:00
Ivan Savenko
f113f9573d
- CPack support. Works on my side, needs tweaks for Win
2012-10-05 12:38:17 +00:00
DjWarmonger
4bacd97497
Quests now handled by pointers again, this time without bugs.
...
Fixed some issues with quests and AI.
2012-10-03 14:49:29 +00:00
Ivan Savenko
3542bfdc63
- fixed #1128 #1127 #1121 #1119
...
- instructions in linux readme use cmake instead of autotools
- update autoconf files
2012-10-02 14:22:58 +00:00
Ivan Savenko
42cbbc8682
- linux version update
2012-10-01 07:05:12 +00:00
mateuszb
099e6bf776
* implemented #1111
2012-09-30 12:19:14 +00:00
Ivan Savenko
07f9cb16c5
- spellbook fix ( #1110 )
...
- possible fix for kingdom overview (#1109 )
- tweaks for recruit window (part of #1113 )
2012-09-30 10:35:17 +00:00
Ivan Savenko
77710eaffb
- fix for #1106 and #1107
2012-09-29 19:18:35 +00:00
mateuszb
657ed41088
* fixed bug in campaigns
...
* turned off artifacts.json creation
* minor changes
2012-09-29 17:36:48 +00:00
Ivan Savenko
b1557bc6c4
- fixes #1105
...
- minor improvement to resolution selection dialog
- removed (hopefully) all cases where neutral faction uses id -1
2012-09-29 15:10:56 +00:00
DjWarmonger
b6a20b6e99
Fixed teleporting animation ( #818 ). Flying ability with subtype "1" will cause movement animation to skip (teleport).
2012-09-29 12:40:12 +00:00
Ivan Savenko
a602d7e9da
- build system update
...
- compile\warning fixes
2012-09-29 12:02:46 +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
Ivan Savenko
b0f669a764
- moved Sprites and Data directory to vcmi "mod'
...
- some bugfixing:
- - teleporting animation fixed #1087 , partially - #818
- - gui adjustments for #1093 and #1090
2012-09-29 08:35:31 +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
7e6128b653
Assurance that #1016 won't happen again.
2012-09-28 19:18:08 +00:00
DjWarmonger
0435d5a4f1
- Removed pointer usage for CQuest. may look rough, but works and fixes #1051 .
...
- Better autoSkip mode, now info windows are not displayed.
2012-09-28 15:46:09 +00:00
Michał W. Urbańczyk
6c017a0fdf
Fixed #1088 .
2012-09-28 09:11:18 +00:00
mateuszb
0b15a634f9
* bug 1082 fixed
2012-09-27 17:16:41 +00:00
Ivan Savenko
1fdacc4085
- fixes #1086
...
- removed outdated code from filesystem. Filesystem.json from 0.89b will no longer work.
2012-09-27 13:23:33 +00:00
mateuszb
8dca88c3c8
* start map in campaign button is properly disabled/enabled (I hope)
...
* exported json for artifact bonuses; no limiters/propagators yet, so it's not used
* minor changes
2012-09-26 18:10:29 +00:00
Ivan Savenko
4ceb6cd272
- better fix for button borders
2012-09-26 13:50:15 +00:00
Ivan Savenko
15a7f43e11
- fixed #1075 , #1080 , #1081
...
- fixed some warnings from cppcheck
2012-09-26 13:13:39 +00:00
Michał W. Urbańczyk
ecd8947d8e
Crashes on starting next campaign mission should be fixed.
2012-09-25 18:00:55 +00:00
mateuszb
7fe2692bf8
* support for campaign scenarios with no bonuses
2012-09-24 19:23:11 +00:00
mateuszb
18bd898cb1
* fixed bug when starting certain maps in campaigns
...
* introduced TPlayerColor typedef
2012-09-24 16:14:53 +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
mateuszb
6a81c8b1af
* campaign against magic numbers
...
* ArtifactID was misleading and wrongly used in one place -- renamed and fixed
* minor changes
2012-09-23 18:01:04 +00:00
Ivan Savenko
3fcba4fb5c
- fixed crash on start of some campaigns
...
- allowed on map factions is now set instead of bit field
2012-09-23 14:32:49 +00:00
mateuszb
00c079f7dc
* improvements for HERO campaign bonus
2012-09-23 11:26:26 +00:00
mateuszb
9acfa0d136
* more or less working HERO campaign bonus
...
* minor improvements
2012-09-22 17:23:28 +00:00
mateuszb
82e21f8b6e
* minor campaign related improvements
2012-09-22 15:16:45 +00:00
Ivan Savenko
8f936cd34d
- added battleAI to CMake, compile fixes
...
- icons config for towns and creatures
2012-09-22 15:10:15 +00:00
DjWarmonger
e2bfd53c98
- Fixed some issues and crashes
...
- Simplified projectile handling. New creatures can now shoot.
2012-09-21 19:49:35 +00:00
mateuszb
8e3de98059
* restoring campaign features
...
* minor improvements
2012-09-21 17:59:54 +00:00
DjWarmonger
16adfa3aa7
- Fixed crash on creature window drawn for neutral faction
...
- Fixed sound parsing. Check forum for updated mod.
It is now possible to attack & fight new creatures without crash.
2012-09-21 07:22:23 +00:00
Ivan Savenko
99dcb73a72
- filesystem.json files for wog and vcmi data
...
- merged puzzle map into town configuration (todo: sieges, adventure map, icons)
2012-09-20 21:28:18 +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
Ivan Savenko
2c88845b9e
- compile fix
2012-09-20 16:14:23 +00:00
mateuszb
4010978a91
* a bit of work on campaigns
2012-09-19 17:41:22 +00:00
mateuszb
fb2f19b4c5
* some work on campaigns
2012-09-18 17:47:52 +00:00
mateuszb
2cf4905d9c
* hopefully fixed 790
2012-09-18 15:17:32 +00:00
DjWarmonger
abd4a96bf1
Very simple loading and adding new creatures. Needs testing.
2012-09-18 07:36:07 +00:00
DjWarmonger
9438cfc7e2
Moved creature sounds to CCreature. Sound IDs are now stored as strings.
...
Creature parser is complete (untested).
2012-09-17 19:00:26 +00:00
Ivan Savenko
061ed69c63
- fixed seer hut issue ( #1073 )
...
- separate archive types in filesystem for lod\vid\snd
2012-09-17 17:25:54 +00:00
alexvins
2b2b02cccc
[static analysis] [WIP] fix few possible bugs
...
CBattleAnimations.cpp,CBitmapHandler.cpp,CGameHandler.cpp Possible null pointer dereference
2012-09-16 14:36:31 +00:00
DjWarmonger
554a98dbd7
Quests will now be handled as object member instead of inheritance. Enabled quest objects for AI.
2012-09-16 13:34:01 +00:00
alexvins
369f0ae9c6
[PLATFORM] MinGW support added
...
* disabled features unsupported by MinGW
* fixed issues with DLL_LINKAGE
! BOOST_THREAD_VERSION in now 3 workaround for existing code added, consider refactoring.
* some small tweaks ("-fpedantic" warnings)
2012-09-15 19:16:16 +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
529394a4e7
Development build 0.89b
...
* Updated changelog
* Some logging I did for #1066
2012-09-07 22:43:41 +00:00
Ivan Savenko
a138db7c9e
- removed lib headers from PCH
...
- fixed #1062
- correct terrain penalty check
2012-09-06 10:39:48 +00:00
Michał W. Urbańczyk
ea4841045f
Fixed #1064 .
2012-09-06 10:26:18 +00:00
Ivan Savenko
0ca9f64573
Next part of town configuration:
...
- town screen is mostly implemented, has some minor issues
- factions are now separate from towns, neutrals have faction with id=9
- more constants to GameConstants: town-specific buildings, strings for terrains and resources
- replaced most access to builtBuildings with isBuilt() method
- replaced id's with enums for town subtype and buildings id's
2012-09-05 12:49:23 +00:00
Ivan Savenko
44cc848edc
first part of town configuration:
...
- moved almost all loading to TownHandler
- CBuildings and CStructures are now part of CTown
- merged hall.json into buildings.json
Should not cause any crashes or glitches
2012-09-02 10:33:41 +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
DjWarmonger
31f82cade0
- Removed integer parameters from CCreature, all stats are now handled by Bonus System Only
...
- Parsing for creature format http://wiki.vcmi.eu/index.php?title=Creature_Format
Needs rearrangement of some info to work
2012-08-30 14:57:24 +00:00
Ivan Savenko
c7789992c3
- fix for hero flags along with battlehero cleanup
...
- removed unused code
2012-08-29 14:55:31 +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
Ivan Savenko
8fac276922
- a bit nicer stack queue. Check forum for graphics.
...
- warning fix
2012-08-28 16:28:21 +00:00
Michał W. Urbańczyk
0b85cfaf78
Fix for #1058 .
2012-08-28 15:38:00 +00:00
Ivan Savenko
4d4f72292e
- fixed crash on hovering indestructible walls
...
- fix for music player (no music after end of battle)
2012-08-27 20:45:58 +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
DjWarmonger
39d433c1c7
Moved game Modules to config file.
2012-08-24 09:37:52 +00:00
Ivan Savenko
e79ac5f1d7
- removed deprecated ffmpeg functions. Fixes #779
...
- removed hardcoded video name constants
2012-08-21 17:37:06 +00:00
DjWarmonger
9e0c9b4f49
Fixed #1042 . Tweaks for Commander bonuses.
2012-08-20 16:10:50 +00:00
Ivan Savenko
deb22b3674
- (linux) use empty video player if av_register_protocol function was not found
2012-08-18 10:29:54 +00:00
DjWarmonger
037d4811a1
Fixed #1047
2012-08-14 06:31:14 +00:00
Ivan Savenko
eec4d3579d
- fixed crash on missing videos
...
- fixed savegames name selection
2012-08-11 11:34:49 +00:00
DjWarmonger
289b7b68d9
Mod Handler class. It is connected with engine, but doesn't do anything yet.
2012-08-10 13:07:53 +00:00
Ivan Savenko
d72c44e4c3
- fixed modifiers keys behaviour in TextInput
...
- erm compilation is optional in cmake (too memory-consuming for old systems)
- minor fixes
2012-08-10 08:49:18 +00:00
DjWarmonger
d3d24d0737
Compile fix for windows.
2012-08-09 13:52:40 +00:00
Ivan Savenko
7e778045b8
- removed no longer used CSndHandler. Transition to new fs is finished
...
- moved TownHandler::requirements to CBuilding class
2012-08-09 10:32:50 +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
Ivan Savenko
94cfc99d7b
- fixes #1044
...
- fixes to linux video player
2012-08-08 20:58:06 +00:00
Ivan Savenko
127600311f
- linux video player uses new FS
2012-08-08 12:17:25 +00:00
Ivan Savenko
cab8955d8f
- sound player uses new FS
2012-08-08 12:03:32 +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
Ivan Savenko
9cbc1f1058
- merged basicCreatures and upgradedCreatures into single array
...
- missing fix for savegames
2012-08-07 21:46:24 +00:00
Ivan Savenko
8040a81eec
- fixed save games issues ( #1044 )
...
- hopefully some speedup for filesystem loading (#1048 )
2012-08-07 11:28:52 +00:00
Ivan Savenko
708ad6ac7f
- music player uses URI's instead of enum from music base
...
- #1045 and #1046 should be fixed
- moved pregame backgrounds to config/mainmenu
- animation can be overriden with .json multiple times
2012-08-06 07:34:37 +00:00
DjWarmonger
385be09248
Foxed #943
2012-08-06 06:01:02 +00:00
DjWarmonger
75283bf0fd
Fixed TextBox line breaking & slider.
2012-08-04 17:51:02 +00:00
Ivan Savenko
e67f8afdd9
- removed multiple unused files
...
- config folder with all json files is used via new FS API
- fixed campaigns loading. Replaced "detect h3m starts" heuristics with CCompessedStream::getNextBlock()
2012-08-02 11:03:26 +00:00
Ivan Savenko
b3c17d2788
large filesystem update. Filesysytem is now fully functional, everything should work.
...
- completely replaced CLodHandler, removed bitmaph and spriteh
- replaced CLodStream in favour of CCompressedStream (2 new files)
- renamed CResourceLoaderFactory and ResourceIndetifier to shorter names
NOTES:
- campaign loading is currently broken. Will fix.
- I am going to remove several unused files in several days (e.g. LodHandler)
2012-08-01 12:02:54 +00:00
DjWarmonger
12e71e0dff
Missing serialization for Border Gate fixes #1040 .
2012-07-29 18:18:55 +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
Ivan Savenko
a72a294a46
some work on new filesystem, not tested
...
- one more new file
- removed duplicating code
- filesystem parser is now recursive
- decompression should be possible if decompressed size is unknown
- autotools and cmake update
2012-07-23 10:23:43 +00:00