Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload
Search found 9 matches
VCMI Project - Heroes 3: WoG recreated Forum Index
Author Message
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-05-26, 23:28   Subject: Help with town editing
Draeganfire wrote:
I like the way that crystal palace looks, can't wait to see the whole town in action :->


I have a week off this week so I'll be looking to develop this a little further! If I can get it to work, I'll update the thread! I mean I can link you to a download but idk if I can because I've used the same graphics from the MDT Forge team...
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-05-23, 17:12   Subject: Help with town editing
***UPDATE***

I got it working! Well, kinda. I left this for a bit but recently downloaded the Amethyst Chinese town and dug around the files. I changed the building ID from 43 or 44 to 50, added a few placeholder spaces in the townhall.def file and I could recruit my Sorceresses! Only issue now is that their building is always built in the town and they are recruited from the Doomknight/Dreadlord Pit (Juggernaut Pit). So glad it's working, just need to see if I can get them to be recruited separately!

See:
https://gyazo.com/0387d246e7cfe73f8166f33a8d331d6d
https://gyazo.com/6b6061a8b4f8577d5880d2b5b43cf7d0
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-04-19, 13:08   Subject: Help with town editing
AVS wrote:
Even if I release another map editor build right now it will not help, because map format support is not yes finished inside vcmi itself. But you can try special vcmi build from http://vcmi.arseniyshestakov.com/windows/PR/200/


It didn't work, surprise surprise(!) If I could find the code behind the Dungeon's Creature Portal I could try to work something out similar to that, but even then I don't know if it'd work...guess I'll put this on hold until VCMI is developed further to allow for more recruitment!
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-04-17, 22:49   Subject: Help with town editing
AVS wrote:
Even if I release another map editor build right now it will not help, because map format support is not yes finished inside vcmi itself. But you can try special vcmi build from http://vcmi.arseniyshestakov.com/windows/PR/200/


I'll try this build an let you know how it goes!

misiokles wrote:
But you've coded external 8lvl dwelling ok in dwellings.json. Without map editor it is hard to test it, but from your side everything is ok. Now you must have lots of luck for random map generator to spawn this building on the map. High lvl external dwellings are rare, but possible. Even in standard H3, Azure Dragon's dwelling is spawned very rare.


I guess I'll pray to RNGesus for the dwelling to spawn but I don't think it will as default maps are coded to spawn level 1 - 7 buildings only. I'll have a look!
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-04-16, 20:10   Subject: Help with town editing
As thought, it didn't work. It's a lvl 8 dwelling and the standard map editor goes up to lvl 7 in dwellings. The VCMI editor allows me to place the dwelling but the map either doesn't load in the map select menu in-game, or it crashes when I click it. This happens with any map I edit in the VCMI editor, which is coincidentally the only way for me to place down the dwelling :/ if you download my mod, could you see if you could get it working? Or is the map editor the same for you?
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-04-16, 15:42   Subject: Help with town editing
misiokles wrote:
Look at the attachment, there's S-sized map called ABC. Launch game, choose this map, choose Oblivion town as starting town. Then go your hero through the portal. Behing portal you can see all seven dwellings connected to starting town, so in these case, your Oblivion's external dwellings.


Ahh thank you! I'll test it out as soon as I can! It's been very annoying not being able to see if the dwelling even worked!
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-04-16, 14:25   Subject: Help with town editing
misiokles wrote:
The more I think about this, I am more sure that it\'s impossible to do this, because "special" buildings are empy for now and only command that can be applied under building config is "produce" resources :(


Ahh, fair enough. Guess I'll have to put things on hold until the engine is further developed :/ I haven't even had the opportunity to test out the dwelling on the map as the VCMI Map Editor just crashes opening a standard vanquish all opponents map! Things don't look to bright for the near future...
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-04-16, 11:26   Subject: Help with town editing
misiokles wrote:
I think that you can try to use some empty ID for special dwellings (there's four special dwellings: special1, special2, special3, special4) Every special has it own ID, but none city use all of them. So, maybe there's way to "trick" 8th lvl dwelling.


So would simply renaming the building ID from "dwellingLvl8" to "special2" do it? I didn't really want to, but I may have to replace a building for it to work. Take the Replicator, for example:

Code:
special2" : {
    "cost" : { "crystal" : 2, "gems" : 2, "gold" : 2500, "mercury" : 2, "ore" : 5, "sulfur" : 2, "wood" : 10 },
    "description" : "The Replicator allows you to replicate Artifacts (not working yet).",
    "id" : 21,
    "name" : "Replicator",
    "requires" : [ "blacksmith" ],
},


Would it be worth me changing this building's use to recruit another unit, or would that not work either? I also can't find any file that gives buildings their uses, but I feel that the VCMI engine processes the text files in a specific way. Aghhh I'm stumped!
  Topic: Help with town editing
VampMarcie

Replies: 17
Views: 1510

PostForum: Content creation   Posted: 2017-04-15, 21:00   Subject: Help with town editing
Hi, all.

I am a novice modder but long term (~10 years) HoMM player. I set upon making my own custom town for my own use and not to be released as I am using the MDT Forge as framework. All I have done currently is successfully change creatures using other .def files, create custom creature and town portraits, implement custom creature sounds, and add an extra unit. I face no issues with any of those modifications. The trouble now lies within creating an extra unit to be recruited in the town via a new added building. I converted an adventure map def I found to one without a flag and created an area and border for it. Implementing it into the town.json file worked fine and I edited the Building Menu to accomodate for an extra building slot, which worked. I also created an image to be displayed in the slot, which again worked fine.

Screenshot of Build Menu (Gyazo)

Unfortunately, I can't seem to assign the correct unit to be recruited in the building.

Building it returns an error which is the same in both the console AND in-game:

Error ecountered when building dwelling (bid=44):no creature found (upgrade number 2, level 0!
System message: Server encountered a problem: Error ecountered when building dwelling (bid=44):no creature found (upgrade number 2, level 0!


Clicking on it makes me recruit the Level 1 units (changed from Recruits and Militians to Cultists and Assasins):

Screenshot of Recruitment Screen (Gyazo)

I have no idea how to solve this. I've spent a few hours messing around with the .json file for the unit that I have added - Evil Sorceress (which works fine, it's just trying to get it to be placed in the generator is the issue) -, the town.json file and I even used a text scanning tool to look through the entire \Content\ directory to look for anything that may give me a hint as to how to solve this.

Here is a link to the full .zip file on Dropbox: Dropbox

Key files:
Oblivion Town\content\config\forge\creatures\Lvl8Unit.json
Oblivion Town\content\config\forge\town.json
Oblivion Town\content\sprites\forge\townhall.def

Please do note that I will NOT be releasing this town as it contains content created by the Mod Design Team. This is simply a project I am working on myself to build skill and experience in modding for VCMI. All help is appreciated!

UPDATE 15/4/17 @ 21:17
Proof the unit works in combat with new hero added: Combat Example (Gyazo)

UPDATE 23/5/17 @ 17:13
I got it working! Well, kinda. I left this for a bit but recently downloaded the Amethyst Chinese town and dug around the files. I changed the building ID from 43 or 44 to 50, added a few placeholder spaces in the townhall.def file and I could recruit my Sorceresses! Only issue now is that their building is always built in the town and they are recruited from the Doomknight/Dreadlord Pit (Juggernaut Pit). So glad it's working, just need to see if I can get them to be recruited separately!

See:
https://gyazo.com/0387d246e7cfe73f8166f33a8d331d6d
https://gyazo.com/6b6061a8b4f8577d5880d2b5b43cf7d0

-- Marcie
 
Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group

Hosting provided by DigitalOcean
Page generated in 0.03 second. SQL queries: 16