Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > MapHaven Guild > Thread: Heroes 5 Map Editor Help and Tips...
Thread: Heroes 5 Map Editor Help and Tips... This thread is 43 pages long: 1 10 20 ... 27 28 29 30 31 ... 40 43 · «PREV / NEXT»
fiur
fiur


Promising
Supreme Hero
Map Creator
posted July 19, 2010 09:11 PM

hi El_Chita thats  an easy question....  :
choose Craigs (to the right)
then you  got  4 different Dwarven Walls  to choose...
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
El_Chita
El_Chita


Known Hero
Actually, my name is El Chita
posted July 20, 2010 10:38 AM
Edited by El_Chita at 10:40, 20 Jul 2010.

OH.. ok, that's maybe too easy ^^

Did you find out how to edit these craigs?
Because I created my own textured walls, I can actually place them on my map, but I want them to show up in this craig tab, so that it's easier.  

Any suggestions?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pain_Destroyer
Pain_Destroyer

Tavern Dweller
posted July 24, 2010 07:13 PM

Problem..

Hi, im new and I just have created my first map. But I have a problem. My map is 2v1 player but when i try to play it, its only 1 player ffa!. Can anybody help :S?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jharena
Jharena

Tavern Dweller
posted August 01, 2010 11:02 PM

Hi!

I too, like to play team with a friend.
I used to be able to edit the RMG map to teams,
but since i upgraded to win 7- no go =(

So three questions:

1) what OS are you running? I was ok while on winXP

2) Is there no simpler way to do this? if not- what is 7-zip?
I am not a programmer (my friend knows a bit more about this)

3) not sure how to vary your formula. I usually go with 4 vs 4
(my friend plays 2 factions, i play 2, and the AI gets the rest)
Would it be:

               <Item>4</Item>
<Item>4</Item>
</teams>

I think i could do the rest of the editing. Did you try just setting the teams as <CustomTeams>true</CustomTeams> and reloading in the editor?

It almost looks (to the uninitiated) that an editor setting could be tweaked somewhere.

Thanks!

Jharena




Quote:
My son and I like to play as a team against other teams (i.e. 2X2X2 or 2X6).  After exhausting the built-in maps and the downloadable ones, I wanted to generate a random map with teams and selectable races and quickly found that it didn't work.
I then tried creating a random map using the Map Editor, only to find out the Teams section of Map Properties was completely bugged out, it would not save my team selections or # of players properly.
As a programmer, I decided to get down & dirty and muck around with the XML.  Here's how I did it:

1)  In the game, generate a random map with your chosen size, # of players, difficulty, etc.  Make sure to choose the "Hide Minimap" and "Random Towns" options.  Save the map, then close the game.  Find the *.h5m file that got created (it is usually buried somewhere in your user profile folders).

2)  The *.h5m file is an archive - open it up with a program like 7-zip.  Inside, keep double-clicking the folders /Maps/RMG/<somenumber>/ until you see the actual files.

3)  right-click the map-tag.xdb file and choose Edit, this will open the XML file in Notepad.  You should see a section like this:
<teams>
<Item>1</Item>
<Item>1</Item>
<Item>1</Item>
<Item>1</Item>
<Item>1</Item>
<Item>1</Item>
</teams>
This shows there are 6 players total, each of them on their own team.  To change this, edit this section for the teams you want.  For example, for 6 total players with 3 teams of 2 (2X2X2), you would adjust it like this:
<teams>
<Item>2</Item>
<Item>2</Item>
<Item>2</Item>
</teams>
Save this file and then click Yes when 7-zip asks you to update the file in the archive.

4)  Next, right-click the map.xdb file and choose Edit to open it in Notepad.  This file describes everything on the map.  Do a Find for the text "customteams", it should bring you to this section:
<CustomTeams>false</CustomTeams>

Change this value to "true":
<CustomTeams>true</CustomTeams>

Underneath is the section for <players>.  This has 8 <Item> sections, one for each possible player.  The <ActivePlayer> section tells us whether that player is active on the map. (For example, if you generated a 6 player map, only the first 6 are "active".)
For each active player, adjust the value in the <Team> section to the team you want them on, starting with 0.  (I've highlighted these sections in red below):  

<players>
<Item>
<MainTown href="#xpointer(id(item_054272E1-20DD-4C5E-A3AB-5AB0FA5C6624)/AdvMapTown)"/>
<MainHero/>
<ActivePlayer>true</ActivePlayer>
<Team>0</Team>

So in my example, I would adjust the first two active players to Team 0, the next two to Team 1, and the next two to Team 2.  This would give me a 2X2x2.  

Save this file and click Yes when it asks you to update the archive.


Hopefully this helps folks who are just looking to generate some random multiplayer maps!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
CuiZinieR
CuiZinieR

Tavern Dweller
posted August 04, 2010 10:05 AM
Edited by CuiZinieR at 11:02, 04 Aug 2010.

Several questions

Hi guys!

I take advantage of this post to ask the help of the community regarding map edition. By skimming the posts, I see that they are pretty skillful people here, especially for advanced map editing (script, texture ...).
I precise that I'm rather a noob at map editing, so I'm not comfortable when it comes to advanced edition.

I have several questions.

1/ Property Map Tree > Players > Behaviour

I see that the players' behaviour is set at PB_RANDOM by default. But how will AI behave if you choose:
- PB_WARRIOR
- PB_BUILDER
- PB_EXPLORER
- PB_HUNTER
- PB_VICTIM
I can guess thanks to the explicit name, what's the player's behaviour will be, but can anyone describe precisely how these behaviours are programmed?

2/ Set a priority for the AI

The winning condition of my map is DEFEAT ALL, so the regular one. Is it possible to define to AI a priority on the map? For example, is it possible to set the priority to capture one specific town? If yes, how? It's not a winning condition, but just a secondary goal.

3/ Heroes from campaign

In my map properties, I allowed all the heroes. However, when you create the game, you choose a hero generated in town, but I can't see all the heroes from the campaign. For example, when I choose the barbarian faction, I can't see the heroes Kujin and Kunyak. In the map properties, Heroes tab, Kujin is checked but Kunyak isn't in the list. Is it normal? If no, how can I solve the issue?

Secondly, in a prison, I can't choose a hero from the campaign. Is it normal? If no, how can I put a hero from the campaign in a prison?

Thx in advance for your help.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bilonius
bilonius

Tavern Dweller
posted August 04, 2010 03:19 PM

1)  I'm running Win7-64.
2)  The "simpler" way (by using the Map Editor) seems to be broken at least in Win7.  7-zip is an archive program for opening and working with .ZIP files, like WinZip.
3)  The <teams> section you describe will show up as a 4x4.  as far as i can tell, the map-tag.xdb file controls what is shown in the game when you select a map.  The actual teams are controlled in the map.xdb file in the <players> section.


Quote:
Hi!

I too, like to play team with a friend.
I used to be able to edit the RMG map to teams,
but since i upgraded to win 7- no go =(

So three questions:

1) what OS are you running? I was ok while on winXP

2) Is there no simpler way to do this? if not- what is 7-zip?
I am not a programmer (my friend knows a bit more about this)

3) not sure how to vary your formula. I usually go with 4 vs 4
(my friend plays 2 factions, i play 2, and the AI gets the rest)
Would it be:

               <Item>4</Item>
<Item>4</Item>
</teams>

I think i could do the rest of the editing. Did you try just setting the teams as <CustomTeams>true</CustomTeams> and reloading in the editor?

It almost looks (to the uninitiated) that an editor setting could be tweaked somewhere.

Thanks!

Jharena





 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jharena
Jharena

Tavern Dweller
posted August 04, 2010 05:20 PM

Thank you!

I am running Windows 7 also- not sure if it is 64 bit.

I followed your instructions exactly- it was easy,
even for a non programmer.

And i did get the 4 x4 configuration i wanted.

I used winrar, which is the zip i use for most files.
I didnt realize that the map file was actually a zip.

This is really useful- will pass it on if anyone asks me.

Jharena


Quote:
1)  I'm running Win7-64.
2)  The "simpler" way (by using the Map Editor) seems to be broken at least in Win7.  7-zip is an archive program for opening and working with .ZIP files, like WinZip.
3)  The <teams> section you describe will show up as a 4x4.  as far as i can tell, the map-tag.xdb file controls what is shown in the game when you select a map.  The actual teams are controlled in the map.xdb file in the <players> section.







____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
CuiZinieR
CuiZinieR

Tavern Dweller
posted August 05, 2010 10:00 PM

Quote:
Hi guys!

I take advantage of this post to ask the help of the community regarding map edition. By skimming the posts, I see that they are pretty skillful people here, especially for advanced map editing (script, texture ...).
I precise that I'm rather a noob at map editing, so I'm not comfortable when it comes to advanced edition.

I have several questions.

1/ Property Map Tree > Players > Behaviour

I see that the players' behaviour is set at PB_RANDOM by default. But how will AI behave if you choose:
- PB_WARRIOR
- PB_BUILDER
- PB_EXPLORER
- PB_HUNTER
- PB_VICTIM
I can guess thanks to the explicit name, what's the player's behaviour will be, but can anyone describe precisely how these behaviours are programmed?

2/ Set a priority for the AI

The winning condition of my map is DEFEAT ALL, so the regular one. Is it possible to define to AI a priority on the map? For example, is it possible to set the priority to capture one specific town? If yes, how? It's not a winning condition, but just a secondary goal.

3/ Heroes from campaign

In my map properties, I allowed all the heroes. However, when you create the game, you choose a hero generated in town, but I can't see all the heroes from the campaign. For example, when I choose the barbarian faction, I can't see the heroes Kujin and Kunyak. In the map properties, Heroes tab, Kujin is checked but Kunyak isn't in the list. Is it normal? If no, how can I solve the issue?

Secondly, in a prison, I can't choose a hero from the campaign. Is it normal? If no, how can I put a hero from the campaign in a prison?

Thx in advance for your help.


Hi!

Nobody to answer to my questions?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pain_Destroyer
Pain_Destroyer

Tavern Dweller
posted August 07, 2010 07:32 PM

And mine

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jharena
Jharena

Tavern Dweller
posted August 07, 2010 07:41 PM

Hi Pain Destroyer:

It is possible, if you tried to make a 2 vs 1- that implies teams-
that the team set up doesnt work.

Check in the editor to see if the teams are listed correctly under
the team tab in map specifications.

If they are, not sure what the problem is. Maybe someone more knowledgeable knows.

If the teams arent right- then check out the post by Bilonus near the end of page 28 of this thread. I cant link it any closer than page 1 of this thread. He explains how to edit your map to make teams work.

For what it is worth- i used to be able to edit a map to make teams -
an 8 player FFA i could make into a 4X4, for example- when i was running win XP. Once i upgraded to Windows 7- no dice.

This could be coincidence. Or not. I dont know enough to know for sure.

JHarena
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pain_Destroyer
Pain_Destroyer

Tavern Dweller
posted August 08, 2010 04:50 PM

I didnt understand all, but now it works! Thanks Jharena and Bilonus!!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jharena
Jharena

Tavern Dweller
posted August 08, 2010 07:17 PM

You're quite welcome- just passing on the help from another hero :-D

Quote:
I didnt understand all, but now it works! Thanks Jharena and Bilonus!!

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
CuiZinieR
CuiZinieR

Tavern Dweller
posted August 10, 2010 06:51 AM

Hi!

It seems that this discussion is quite dead...
No answers to my questions so far.

Let me reask, in a short version, what I want to now.

1/ Is it possible to put a hero from scenario in a prison when you create a multiplayer map (despite I allowed all heroes, I can't choose heroes from scenario in a prison)?

2/ Is it possible, besides Defeat All (primary), to set a second objective to IA and CPU? For example, finding a border guard, capture a town... If yes, how?

3/ Is it possible to trigger a morale decrease (-3 for example) as soon as a hero steps into a specific location? I presume you must use regions and scripting to do such things but I'm a noob at this so if anyone could explain to me how it works, he would be very kind...

Thx in advance for your help.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
El_Chita
El_Chita


Known Hero
Actually, my name is El Chita
posted August 10, 2010 12:51 PM
Edited by El_Chita at 12:54, 10 Aug 2010.

Well, all your questions seem to deal with scripting. I am no scripter, but your first question is even for me very easy to deal with.
If you marked your prison red(you clicked at it), you can see down in the left corner the properties tree. It shows the properties of the object you just marked. There is an option called PrisonedHero. You click on the 3 ... right next to it, and you're in the folder AdvMapHero. Here you can choose every existing hero in clicking on the file and click on ok. For example, you can choose the DuelPresets:



Some won't work btw, they are bugged or unfinished. If that happens, the editor reacts fast and will remove that hero, in the game, the prison is empty. So I think you don't have to fear that the game or the editor do crush.
Oh, and they don't seem to be organized, and since there are no helpful names, you've to try which file is the hero you want

For the other questions, all I can do is give you a helpful link of the modding wiki, where a section for scripting exists as well:

http://www.heroesofmightandmagic.com/heroes5/modding_wiki/start?idx=scripting


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Grinder
Grinder

Tavern Dweller
posted August 10, 2010 07:54 PM

Change Teams

Hello, I dowloaded H5 map named: Land Of Confusion. I want to play with computers, so I want that they will play in one team, against me one. But when I opened this map on map editor and go to --View--map properties--teams, change 8 teams to 2 and click OK. But this change did not save. Can somebody help and tell why?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bilonius
bilonius

Tavern Dweller
posted August 10, 2010 08:16 PM

Quote:
Hello, I dowloaded H5 map named: Land Of Confusion. I want to play with computers, so I want that they will play in one team, against me one. But when I opened this map on map editor and go to --View--map properties--teams, change 8 teams to 2 and click OK. But this change did not save. Can somebody help and tell why?


the Map Editor is buggy in this regard, especially on Vista/7.  See my earlier post on page 28 for instructions on how to adjust teams in the actual game files of your map.

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
rdeford
rdeford


Known Hero
Wyld Mapper
posted August 10, 2010 08:50 PM
Edited by rdeford at 20:52, 10 Aug 2010.

@ CuiZinieR

Quote:
Is it possible, besides Defeat All (primary), to set a second objective to IA and CPU? For example, finding a border guard, capture a town... If yes, how?

3/ Is it possible to trigger a morale decrease (-3 for example) as soon as a hero steps into a specific location? I presume you must use regions and scripting to do such things but I'm a noob at this so if anyone could explain to me how it works, he would be very kind...


There is a scripting guide that answers these questions.

Go to:

http://www.celestialheavens.com/viewpage.php?id=567

Download:

The Basics of Heroes V Scripting ver. 2.01 for H5, HOF, & ToTE

NOTE: Be sure to get ver. 2.01

____________
-------------
Mage of Soquim

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
CuiZinieR
CuiZinieR

Tavern Dweller
posted August 11, 2010 09:41 AM
Edited by CuiZinieR at 09:51, 11 Aug 2010.

@El-Chita

Thx for your reply.
Concerning the prison issue, I tried what you suggested. I expanded the folders and tried every heroes possible in AdvMapHero. However, I was only able to find some of the scenario heroes, but most of them aren't available. Moreover, some heroes are doubled or buggy like you said. I'm not interested by the Duel Heroes since they are the same as the regular heroes, namely available in the prison.
And I've noticed one thing: when you choose a hero for your prison, I mean a regular one, by clicking on the prison object to access the properties, once you choose your hero, the variable concerned is this one: AdvMapHero:Maps\Multiplayer\The Great Canyon\map:item_0E41BDA4-80E6-4FCF-807D-07A311A061CD:AdvMapHero

I don't know the mechanism behind, but this variable always remains the same no matter which hero you choose. It's like the heroes list is hidden, you can't choose explicit variables to change the hero, but only use the editor assistant which provides you the regular heroes list. And as I said, most of scenario heroes aren't in the other folders of the AdvMapHero tree.
For example, I can't find Markal, Sovereign...
And in the heroes (Scenario) object list of the editor, I can find some but not everyone: I can find Sovereign but not Markal for example... Very confusing... If you find a way to put a hero like the 2 I mentionned in a prison, let me know...
[URL=http://img831.imageshack.us/i/hommv07.jpg/][/URL]


@rdeford

Thx a lot for your link, I didn't know it. I'll start to get into scripting later, once my map will be finished. For the moment, let's pend it.


New Question!

To make my map, I take inspiration from a splendid map called [url=http://bit.ly/bjiHXW]The Great Canyon[/url] by Davious Maximus. In the underground, he used a texture I can't find in the map editor. Check the snapshots below:
[URL=http://img38.imageshack.us/i/hommv05.jpg/][/URL]
[URL=http://img85.imageshack.us/i/hommv06.jpg/][/URL]

It doesn't seem to be an object because I can't select it. It seems to be a texture (tiles) but I can't find it. There are 2 things: the walls itself, very straight and vertically, and the statues at the corners (Dwarf style I suppose). And as you can see on the 2nd snapshot, the inside is totally empty, there's no material, it's not lowered, it's no rocks or anything...

Does someone know how the author did that?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
rdeford
rdeford


Known Hero
Wyld Mapper
posted August 11, 2010 02:24 PM

Quote:

It doesn't seem to be an object because I can't select it. It seems to be a texture (tiles) but I can't find it. There are 2 things: the walls itself, very straight and vertically, and the statues at the corners (Dwarf style I suppose). And as you can see on the 2nd snapshot, the inside is totally empty, there's no material, it's not lowered, it's no rocks or anything...

Does someone know how the author did that?


I haven't used the H5 Editor for a few years, but, as I recall, you dig your underground area (Lower X3) on the Tool Panel, then apply textures from the Craigs tab on the Tool Panel. You can mix and match the walls textures. The statues and other goodies appear at the corners automatically when the appropriate texture is used.

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
El_Chita
El_Chita


Known Hero
Actually, my name is El Chita
posted August 11, 2010 07:14 PM

Crazy, i asked the same question on top of this side, first post.  Are you doing that intentionally? If not, I advise you to read this thread before posting.

Quote:
I don't know the mechanism behind, but this variable always remains the same no matter which hero you choose. It's like the heroes list is hidden, you can't choose explicit variables to change the hero, but only use the editor assistant which provides you the regular heroes list. And as I said, most of scenario heroes aren't in the other folders of the AdvMapHero tree.
For example, I can't find Markal, Sovereign...
And in the heroes (Scenario) object list of the editor, I can find some but not everyone: I can find Sovereign but not Markal for example... Very confusing... If you find a way to put a hero like the 2 I mentionned in a prison, let me know...


Funny thing, Markal was one of my test heroes (see the screenshot again) ^^
This is his code:
AdvMapHero:Maps\SmallSpecialArenas\SmallSpecialArena_Dirt\Aberrar.10

And I'm sure u will find the sovereign, too, because this folder should contain all existing heroes. You just have to try every file and check if it's the right one. Btw, if A1 or A2 stand before a name, you can be sure that these heroes came with the AddOns. So you don't have to try them when you search for the Sovereign.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 43 pages long: 1 10 20 ... 27 28 29 30 31 ... 40 43 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1439 seconds