Skip to content

Conversation

alexvins
Copy link
Member

@alexvins alexvins commented Mar 11, 2016

To be done later:

  • polishing player options need some attention
  • new victory-loss condition format
  • predefined heroes
  • events(global, town)
  • mod usage tracking
  • hero placeholders and whole campaign support
  • map checksum checks

"dwellingUpLvl7": { "id" : 43, "upgrades" : "dwellingLvl7" }
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting solution.
Doesn't this 'faction' show up in pregame or RMG by any chance?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. It will be used in engine only for resolving building id for random town (and loaded explicitly - no include to gameconfig.json). Everything else is for map editor.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even in map editor this file loaded to special object outside faction list. However format of this file (and special object type) equals normal faction.

@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from c9e8167 to 92648d6 Compare March 28, 2016 02:55
@alexvins alexvins changed the title [WiP] Feature/vcmi map format2 Feature/vcmi map format2 May 21, 2016
@alexvins
Copy link
Member Author

Feature freeze for this branch.

@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from 3ee9c4e to d1f4752 Compare July 20, 2016 12:37
alexvins added a commit that referenced this pull request Sep 8, 2016
@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from 3edbeaa to 7478303 Compare November 13, 2016 10:41
@alexvins
Copy link
Member Author

All commits combined

@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from 7478303 to 1ca1645 Compare December 13, 2016 11:25
@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from affdb04 to 2b002b5 Compare January 29, 2017 08:35
@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch 2 times, most recently from 0b3ebd0 to 41ff98f Compare March 18, 2017 09:58
@ArseniyShestakov
Copy link
Member

So the first interesting bug found when testing loading of VCMI maps: currently heroes that should be spawned inside town appear two tiles in the right. Sometimes on blocked terrain.

@ArseniyShestakov
Copy link
Member

Little correction on heroes issue: this is probably editor / map conversion problem.

@ArseniyShestakov
Copy link
Member

So there is one small, but real issue that could would be nice to fix in this branch or ASAP once it merged. Currently if there is H3M and VCMI map with the same filename only VCMI version will be displayed in UI.

@ArseniyShestakov
Copy link
Member

ArseniyShestakov commented Mar 25, 2017

Also critical issue found: once map is converted by editor "Event" objects not passable for player.
Found this on my favorite map Wasteland.

UPD: Only occur when approach Event from top so likely some issue with visitability rules.

@alexvins
Copy link
Member Author

@ArseniyShestakov To allow H3M and VCMI map with same name, we need to identify map by resourceId in all places.

@ArseniyShestakov
Copy link
Member

I don't think it's fix it sadly. Event still not passable from top.

@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from bb00f2d to b933dcb Compare May 1, 2017 15:19
@ArseniyShestakov
Copy link
Member

Fixed now.

@ArseniyShestakov
Copy link
Member

ArseniyShestakov commented May 1, 2017

Now hero misplaced one tile to the left.

Just in case I tested it with latest editor too. So it's not map conversion problem.

@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from 9e7267e to 457a896 Compare May 1, 2017 18:59
@alexvins
Copy link
Member Author

alexvins commented May 1, 2017

Should be fixed

@ArseniyShestakov
Copy link
Member

Yep fixed now.

@alexvins alexvins mentioned this pull request May 26, 2017
@ArseniyShestakov
Copy link
Member

So I'll leave comment to explain why this is to be merged now since I talked with @alexvins about that already. Personally I wish to not merge anything that I can't fully test on my own, but this one was ready for quite some time and it's require massive amount of testing and messing with editor.

I did fair a bit of it, but I expect there might be still plenty of things I missed. So I think we'll benefit from merging it as it's now and then let everyone else to mess with editor and the game to help us find what's could possible break.

* Hero portrait serialization
* Fix town spells serialization

* Added support for float exponential part in Json
* Added support for int64 in Json
* Added basic Hero definitions serialization
* Added rumors serialization
* Advanced player info serialization.
* Added Disposed heroes serialization, (!) not covered with tests yet
* Added Local event serialization
* Added Pandoras box serialization
* Added Seer hut reward serialization
* Added CQuest serialization
* Added API for map object instance names serialization.
* Added random dwelling options serialization
* Advanced town options serialization
* Advanced hero options serialization
* More map format tests
* A lot of fixes, cleanup and refactoring
@alexvins alexvins force-pushed the feature/VCMIMapFormat2 branch from 25d7cc2 to a85b4cf Compare May 26, 2017 21:24
@alexvins alexvins merged commit 62b8991 into develop May 26, 2017
@alexvins alexvins deleted the feature/VCMIMapFormat2 branch May 26, 2017 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants