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 > Heroes 5 - Modders Workshop > Thread: Many questions and answers
Thread: Many questions and answers This thread is 3 pages long: 1 2 3 · NEXT»
vulcancolak
vulcancolak


Famous Hero
posted January 19, 2018 09:59 PM
Edited by vulcancolak at 14:04, 10 Aug 2018.

Many questions and answers

I have created this topic for 3 things and 2 parts

1-) I think it is rude and annoying to create topic for every questions (i am talking about me, do not be offended)
2-)It could be better to find many answers in one topic. Specially if you are modder and want to find useful tips
3-) I have wasted many days while discovering files, so i want to help everyone who wants to make changes or for the create their own mods

Second part is if you think create your own mod just ask me. I will answer your questions (if i know the answer) and i will add it to this post. It becomes like a wikipedi slowly.

This is why i am creating this topic. I will try to make this post updated and i will put questions and answers in here. By the way i have start with my old topics. I know most of you already knew the answers but my objective is share all of my knowledge with people if they need. I want to thanks to everyone who already helped, tried to help or planning to help in any ways. Best regards





1) How can i change the mana requirements of spells?
Click for the topic
Answered by thGryphn. Thank you thGryphn

2) Is it possible to disable monster weeks for specific maps?

Click for the topic
Answered by me

3) Can i disable the weeks that i don't want to see?
Click for the topic
Answered by me (Thanks for the assistance of dredknight and magnomagus)

4) Battle Griffin dive ability bugged
Click for the topic
Not found

5) Why we cannot find hero at tavern after we surrender or run?
Click for the topic
Answered by me

6) Why i cannot add most of the scenario heroes?
Click for the topic
Answered by mctronic. Thank you mctronic

7) Is it possible the remove condition "defeat without towns"
Click for the topic
Answered by markkur. Thank you markkur

8) Is it possible to change threat numbers?
Click for the topic
Found by me (Thanks for the assistance of Hayven)

9) How can i change threat description of creatures?
Click for the topic
Answered by me (thanks to the assistance of dredknight)

10) How to edit arena heroes?
Click for the topic
Answered by me (thanks to the assistance of dredknight and muscip)

11) How can i find hex offsets
Click for the topic

It is complicated topic and it requires reverse engineering. I have wasted 4 full months and i haven't found any of the offsets for the things i was looking for. Deflaktor already created topic and shared his knowledge with us and dredknight also created topic about hex edit Click for the topic and i will request for the offsets later.

Discovered offsets

1) Atb bonus for using mass spells
2) Atb of the creatures which uses wait
3) The maximal atb creatures can have during the start of a combat.
4) Atb bonus each sorcery skill level gives
5) Energy Channel Ability
6) Enlightenment
7) Healing Tent
8) Experience table
9) Max artifacts count
10) Mini artifacts
11) Movement costs
12) Multiple Instances
13) Tower Damage
14) Permanent and endless turns
1-14 Discovered by Deflaktor
https://deflaktor.github.io/Heroes5/Homm5Patcher/index.xhtml

12) Is it possible to change amount range of creeps?
Answered by me (thanks to the assistance of dredknight) (i forgot the topic lol)
Answer: data.pak folder > GameMechanics you will see RoughAmounts at the bottom.

And i am planning to specify hardcoded things for you. Because if you are planning to work with .pak files, you cannot change these things. Please correct me if i am wrong

--- Hardcoded things ---

* Artifacts abilities
* Abilities values

And here is my questions.

13)Changing the gold income of village hall, town hall, city hall and capital
Found by FrostyMuaddib. Check the topic.

14)Changing values of Sack of endless gold, bag of gold or estates ability
Found by FrostyMuaddib. Check the topic.

15)Adding new items
I have checked a bit, worked on heroes 5.5 files and tried to put new example item but none of them worked. Maybe someone can help
Not found (28.01.2018)

16)Changing starting bonuses
Not found (28.01.2018)

17)Changing values of Sack of endless gold, bag of gold or estates ability
Found by FrostyMuaddib. Check the topic.

18) How to change creature tier?
For example i am changing tier of skeleton from 1 to 2 (gamemechanics, creature, creatures, necropolis, skeleton.xdb) and i am placing 100+ random tier 2 creature on map but it never appears. Is it requires anything for do that?
Found by dredknight. Check the topic.

19)How to edit artifact effects
Not found (03.06.2018)

20)Is there a way to remove specific skills from Witch Hut?
Not found (15.06.2018)

21)Is it possible to create terrain with movement penalty for all heroes?
Not found (10.08.2018)

And i want to thanks everyone who already helped, tried to help or planning to help in future.

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

Tavern Dweller
posted February 28, 2018 04:42 PM

Why don't you give up?

1-) I think it is rude and annoying to create topic for every questions (i am talking about me, do not be offended)
That explains you are kind and respectful person in your life but people think you are rude because you have a problems with your english language. Your words seems rude but i believe you are not try to be a rude.

Don't take me the wrong way. I like your mod and we are playing it but it's obvious users of this forum loves 5.5 and don't care about other things. If you remember i was the one who created this topic but moderators was locked it. http://heroescommunity.com/viewthread.php3?TID=44841

I suggest you to give up but still it's helpful topic for new modders and don't expect answers.

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


Famous Hero
posted February 28, 2018 06:40 PM

I don' know what should i say. Thank you for your kind words and thank you for your warning. I already give up actually. Still i am improving my mod but at least this topic is only thing i can. No more i am creating topics and requesting help. This topic will be my "only" topic for helping people and request for the help.

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


Promising
Supreme Hero
育碧是白痴
posted February 28, 2018 08:28 PM
Edited by frostymuaddib at 15:58, 03 Mar 2018.

Hey vulcancolak. I just found this thread of yours, and I will try to help you with some questions.

Regarding the changing the income of bag artifacts, you can modify that via scripts (scripts are very powerful tools for modding, that I like to use ). Here you can download my mod for modifying income of the bags:

EDITED: Link to new version
Bag Income Modifier

It is a simple zip that you can rename to *.pak or *.h5u and place in UserMODs or data folder. Also, you can check the files and modify them There are 2 files there:

1) /scripts/modifyBags.lua

This is the script that I made. The lines that you are interested in are these two:

bagVals_modifyIncome(28,-999); -- 1000 gold bag
bagVals_modifyIncome(29,250); -- 250 gold

Here you can modify the income of this artifacts. First argument is artifatc id (28 - 1000 gold bag, 29 - 250 gold bag). The second argument is modifier. While testing, I've set that 1000 gold bag to give player only one gold (hence the -999 argument), and I've set 250 gold bag to give player 500 gold (hence the 250 argument). You can change those values according your preferences, you can even set the artifacts to take away gold The only drawback is that you will notice the gold amount update in-game: e.g. you will see 1000 gold added, and then 999 gold will be removed, but I don't see any workaround.

2) /scripts/common.lua

This actually overrides the standard script file that is loaded in all maps (it sets up some constants, etc). I've added one line near the end of the file (line 502) that says this:

doFile("/scripts/modifyBags.lua");

This will make every map load the modifyBags script, that will modify the value. If you want to use this script just for specific maps, just remove this file from the mod, and add the line above (with doFile) to your map script and it will work (you can also always copy the whole content of modifyBags.lua to your map script )

If you like this solution, I would be thankful if you could test this little mod. In next few days, I could try to add modifiers for estates and maybe even village hall, town hall, city hall and capital.

Oh, and I've tested this with latest Q's AI mod (3.1j), and I'm not sure if this would work with H5.5 withoud modification.

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


Famous Hero
posted March 01, 2018 09:28 AM

First of all thank you so much for your help. I will check this and try to implement to my mod OR i will suggest your mod for my mod. (if you don't know about my mod, check this click

Now let me talk you about the all things (estates ability, gold mines incomes, town halls or capital) i had a problems with income in this game. First i was tried to make estates ability more useful but it seems it's hardcoded and i already wasted many months and i couldn't succeed to find hex values. My objective is making gold mines and estates ability to more useful OR i want to decrease gold income to capitals by half.

After i finish my job (i am on work atm) i will check your mod. Tonight i will read it completely and try to configure.

Thank you for help frostymuaddib

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


Promising
Supreme Hero
育碧是白痴
posted March 01, 2018 10:07 AM

Glad I'm able to help. My mod is not difficult (it is a rather simple script ). Feel free to use it and modify it however you like. If you like it, I will try to help with other income things.

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


Admirable
Omnipresent Hero
Endless Revival
posted March 01, 2018 11:17 AM

Could you script a town's village hall to give no gold?
____________
H5 is still alive and kicking, join us in the Duel Map discord server!
Map also hosted on Moddb

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


Promising
Supreme Hero
育碧是白痴
posted March 01, 2018 11:39 AM
Edited by frostymuaddib at 11:40, 01 Mar 2018.

I think I would be able to, I will try that probably this evening (along with all the hall types and estates ability).

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


Admirable
Omnipresent Hero
Endless Revival
posted March 01, 2018 01:06 PM

Do you get paid in duels or credit card?
____________
H5 is still alive and kicking, join us in the Duel Map discord server!
Map also hosted on Moddb

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


Promising
Supreme Hero
育碧是白痴
posted March 01, 2018 06:03 PM bonus applied by Galaad on 03 Mar 2018.
Edited by frostymuaddib at 15:57, 03 Mar 2018.

I do this for free

I realized that this version of mod may have issues if map uses it's own new day trigger, but I will provide a suitable workaround this evening, when I add leadership and town halls.

EDIT:

Ok, here is my new version.

Download

This will now let you modify income of estates, village,town, city hall, capitol, and artifacts. Currently, all income is negated

Lines that should be edited to adjust the values are these:

1000 gold bag - change second argument (currently is -1000, so no income)
bagVals_modifyIncome(28,-1000);
250 gold bag - change second argument (currently is -250, so no income)
bagVals_modifyIncome(29,-250);
Estates - (currently is -250, so no income)
bagVals_modifyEstates(-250);
Halls - first argument is for village hall, second is for town hall, third is for city hall, and fourth is for capitol. Currently, there is no income.
bagVals_modifyTownIncome(-500,-1000,-2000,-4000);

If you want to modify only some of these thigs, just comment out the function calls (along with sleep after the call) to have better performance.

Also, as this script uses NEW_DAY_TRIGGER, if you set it in your custom maps, you will override these modifications. So, as a workaround, you can just put this line in your script:

NewDayTrigger = yourFunction;

and your function will be called as intended. This is an ugly workaraound, but it seems that this lua engine that H5 uses has some missing features, so I was unable to create better one. However, I will probably keep trying in next few days. I will also try to modify the script, so there are no sleep function calls, but at this point I'm too tired.

I would be grateful if you guys could test this and report the bugs that you find (as there will probably be some bugs ). I hope that this helps.


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


Famous Hero
posted March 02, 2018 11:08 AM

Yes thank you for your work. But there is a little problem in here. Is there a way to integrate this to my mod? You were told me the "rename it as .h5u and put it usermods" when i do this, it will affect the all maps? If the answer is yes, it solves my problem and i will give credit to you and put your mod to my "recommended mods for new order mod" list.

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


Promising
Supreme Hero
育碧是白痴
posted March 02, 2018 12:28 PM
Edited by frostymuaddib at 21:08, 02 Mar 2018.

This mod will affect all the maps with script in it (even if the script file is empty). In hotseat and multiplayer, scripts are disabled, so you need to activate them. The easiest way is to use reanimation patcher from this thread. H5.5 uses it as well, and you can find more about adding scripts here.

If you find any problems, tell me, and we will make it work

EDIT:

I've updated latest script, so that you can add new day trigger with Trigger function (like you would do regulary), instead of doing the procedure I described above. Updated mod is here.

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


Famous Hero
posted March 03, 2018 12:07 PM

Yes you did well and i am putting your mod when i release 2.1. Yes i know it is easy script but you helped me and you deserve credit if you accept or not i will do this. Now i will continue to my work. By the way upload this as a mod in somewhere OR i will put your file as a mod in New Order files. Thank you so much again.

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


Promising
Supreme Hero
育碧是白痴
posted March 03, 2018 12:26 PM
Edited by frostymuaddib at 15:57, 03 Mar 2018.

Feel free to put it alongside your mod. If I do any modifications, I will let you know, so you can update it

EDIT:

I've made a fix for last version, you can re-download it again.

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


Famous Hero
posted April 26, 2018 03:58 PM

Is it possible to integrate your script with new order.pak files?

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


Promising
Supreme Hero
育碧是白痴
posted April 26, 2018 09:15 PM

Yes, there would be no problem.
____________
"Occam's shuriken: when the answer is elusive, never rule out ninjas." -- Dr. Gordon Freeman (Freeman's Mind)
"lol" -- VERRIKER VON ERWINSSEN

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


Famous Hero
posted April 27, 2018 01:04 PM

I mean how can i do By the way i already sent you messages check your inbox.

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


Promising
Supreme Hero
育碧是白痴
posted April 29, 2018 03:38 PM

Hm, I haven't received any messages. As for adding to your pak file, just copy the contents of the arcive to the pak file and that's it. SO, in your file you should have scriptscommon.lua and scriptsmodifyBags.lua. However, if you have already modified common.lua in your mod, do not use my common.lua file, just add

doFile("/scripts/modifyBags.lua");

to common.lua before the last line  (function close_file(fileName) end).

If you have problems, I'll gladly help
____________
"Occam's shuriken: when the answer is elusive, never rule out ninjas." -- Dr. Gordon Freeman (Freeman's Mind)
"lol" -- VERRIKER VON ERWINSSEN

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


Famous Hero
posted April 30, 2018 12:22 PM
Edited by vulcancolak at 12:41, 30 Apr 2018.

Tonight i will try to integrate when i return to home and you will get the credit for it. By the way i was sure i was sent 2 or 3 messages to you on HC. I don't know why it never worked.

Thank you for your help FrostyMuaddib.

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


Promising
Supreme Hero
育碧是白痴
posted May 02, 2018 11:07 PM

Hey man! Did you have success?
____________
"Occam's shuriken: when the answer is elusive, never rule out ninjas." -- Dr. Gordon Freeman (Freeman's Mind)
"lol" -- VERRIKER VON ERWINSSEN

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 3 pages long: 1 2 3 · NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0675 seconds