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 ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: How to edit HotA?
Thread: How to edit HotA? This thread is 34 pages long: 1 10 20 ... 22 23 24 25 26 ... 30 34 · «PREV / NEXT»
AlexSpl
AlexSpl


Responsible
Supreme Hero
posted October 03, 2017 07:40 PM

Some plugins you mentioned are distributed without a source code, so the only thing you can do is to write a similar plugin from the scratch. Are you interested in a final result, or do you want to have a source code, so you could edit it to implement your own ideas?

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


Promising
Famous Hero
posted October 03, 2017 07:50 PM

No, I don't want source code or incorporate my ideas;] I just want to test/play with them and be sure that all messages are in english to understand them all ;]

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


Known Hero
posted October 03, 2017 07:52 PM

I downloaded this eagleeye mod:
http://heroescommunity.com/viewthread.php3?TID=42152&PID=1441959#focus
And even though the source code dontains russian things... I did not see russian ingame yet.
@AlexSpl: why?

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


Responsible
Supreme Hero
posted October 03, 2017 07:54 PM
Edited by AlexSpl at 19:58, 03 Oct 2017.

Let's start with some testing. Does this Eagle Eye plugin work for you? newEagleEye

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


Responsible
Supreme Hero
posted October 03, 2017 08:06 PM

Quote:
Does anyone know why the TownPortal Plugin is not working?


There's a known issue with plugins not working if they were compiled under debug configuration.

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


Honorable
Famous Hero
posted October 03, 2017 09:29 PM
Edited by RoseKavalier at 21:34, 03 Oct 2017.

AlexSpl said:
You can always run the original code within your hook, you can even rewrite a whole function

Guess I chose my words poorly; a jump cannot have as destination any other part than the start of trampoline jump -> otherwise high likelihood of crash or weird things happening. It became an issue for me recently when HDmod 5.0 beta 9 came out

Naturally, functions can be completely overwritten to avoid issues like this but I'm usually lazy and only modify a few things then let the original code handle the rest.

Serp said:

Is the scholar code not multiplayer compatible? Can you make it compatible?
I mean MP is the only purpose of this plugin =/ When playing alone you can always save/load. But it this sucks in MP


If you don't want to learn Assembly, it's fine but you'll always need someone to do stuff.

It should be multiplayer compatible, but like I said - if it were me I would not make this available in multiplayer because it can give one player an advantage if both players don't have the plugin.

Serp said:

The error log is this:

1>c:usersserpens66documentsvisual studio 2008projectsscholarchoicehotascholarchoicehotadllmain.cpp(30) : error C2039: 'LearnSecondarySkill' : is not a member of '_Hero_'
1>        c:usersserpens66documentsvisual studio 2008projectsscholarchoicehotascholarchoicehotahotahomm3.h(492) : see declaration of '_Hero_'

Only look for errors; warnings will let you compile anyway without problem most of the time.
It seems you forgot to add the LearnSecondarySkill() function to the _Hero_ structure, check my post again.

Right-click on _Hero_ (or left-click then press F12) in your code and select "Go to Definition" ... scroll down and add the function in there towards the bottom where you will see other functions like AddBackpackArtifact(...), RemoveBackpackArtifact(...).

Also, for the code I showed, the hook needs to be here:
 _PI-> WriteLoHook (0x4A4AFE, wandering_scholar_sskill_choice);

Otherwise you may already have learned the skill and will need to reverse the procedure.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Responsible
Supreme Hero
posted October 03, 2017 10:30 PM

I advise you to start with the basics. Use patcher_x86.hpp when writing simple plugins. Thus you will be able to understand how things work in general. When you master this level, you'll automatically feel the need to optimize and simplify things.

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


Supreme Hero
Heroes is love, Heroes is life
posted October 03, 2017 11:53 PM

Is it possible to have more than 8 skills per hero in HotA?

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


Honorable
Famous Hero
posted October 04, 2017 02:02 AM

Everything you've seen in WoG+whatnot can be done through plugins, sometimes it's just more work because you have to patch a lot of things.
It's like adding new towns, you have to find all references to towns (and I mean all) and make changes for all of them to accommodate new ones.
The most complicated thing about this one, IMO, is updating the hero screen to let you see more than 8 secondary through scrolling, button click or something else. Or you could make a new hero screen background picture that has room for more than 8.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Known Hero
posted October 04, 2017 02:22 AM

@AlexSpl:
About the townportal plugin:
I made everything the same as for the other plugins and also choose "Release". Or what do you mean by "debug" ?


@RoseKavalier:
Quote:
It seems you forgot to add the LearnSecondarySkill() function to the _Hero_ structure, check my post again.


Ah I overread that I need to add code to the homm3.h file itself O.
Now it worked and also the whole plugin seems to work.

Great, thank you very very much!

For everyone else also interested in those plugins:
https://www.file-upload.net/download-12743517/ScholarChoiceHotA.zip.html
https://www.file-upload.net/download-12743519/WitchHutChoiceHotA.zip.html
(hit the blue button with the cloud symbol. Do ONLY download the zip file with the names like in the link. Unfortunately there is many spam at this upload website.)

In case someone is also interested in few plugins from the russian forum and also notices that they do not do anything for some reason, I can also upload my recompiled versions of them:
"LearningSkill" -> get more XP depending on hero level
"QuicksandAndMines" -> more mines and quicksand fields.



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


Supreme Hero
Heroes is love, Heroes is life
posted October 04, 2017 08:27 AM

@RoseKavalier
Yeah I figured it would'nt be easy and I don't think I'm gonna bother with it, perhaps there already was a plug-in for it, but probably not.

@Serp
What does your plug-ins do again?

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


Responsible
Supreme Hero
posted October 04, 2017 10:26 AM

Now at HB we have a thread for user plugins. Feel free to add your own. You can post in English.

http://handbookhmm.ru/forum/viewtopic.php?f=56&t=529

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


Known Hero
posted October 04, 2017 02:33 PM

phoenix4ever said:
@RoseKavalier
@Serp
What does your plug-ins do again?

I thought the names would be clear enough
They simply add a "confirmation window" to witchhuts and scholar (if you would receive a secondary skill). So you can hit "yes" or "no". If you hit no, your hero won't learn the skill and if it was a scholar he will still disappear without teaching anything. If you hit yes you will learn the skill as usual.

But wait.. I just tested them at my second pc and they do not work...

@AlexSpl and RoseKavalier:
I think we have to find out the problem here..
When I download plugins from the russian forum, they do not work (simply do nothing). When I use the same source code to compile the dll again, they work at my PC where I compiled the dll.
But they do not work at my second Pc.

AlexSpls "NewEagleEye" seems to be any exception (only the one from http://handbookhmm.ru ). This is the only plugin that works everywhere without problems.
The NewEagleEyeAlex" from the other russian forum has the same problem, it does not work, although it has almost the same source code.

So what did AlexSpl different when creating the DLL?
Maybe someone of you can test my plugins above, if they do work. But I guess they don't as described above.

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


Honorable
Famous Hero
posted October 04, 2017 03:54 PM

Make sure your project is set to Release.


Debug mode will only work for you after you've compiled it.

I suggest you use another host for your plugins, e.g. Google Drive, Yandex Disk, MEGA, Dropbox, ... where you can give direct links to download. Much more convenient than going through spam
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Hired Hero
posted October 04, 2017 04:03 PM
Edited by Ben80 at 16:05, 04 Oct 2017.

Serp said:


AlexSpls "NewEagleEye" seems to be any exception (only the one from http://handbookhmm.ru ). This is the only plugin that works everywhere without problems.
The NewEagleEyeAlex" from the other russian forum has the same problem, it does not work, although it has almost the same source code.

So what did AlexSpl different when creating the DLL?
Maybe someone of you can test my plugins above, if they do work. But I guess they don't as described above.



Hi !

I'm author of plugins "NewLearningSkill", "NewQuicksandMines", "NewTownPortal". Recently I have compiled it in debug mode, so they worked only on my system. Now all is compiled and will be compiled in proper release mode and they must work everywhere.
Actual links:
http://handbookhmm.ru/forum/download/file.php?id=1217
http://handbookhmm.ru/forum/download/file.php?id=1218
http://handbookhmm.ru/forum/download/file.php?id=1215

Recent (and recommended !) version of NewLearningSkill gives 5/10/15% of XP per level (this is less comparing with first version), so in recent version Learning Skill is simply more or less good skill. In first version it was too strong skill.
It is multiplier, of course.

____________

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


Promising
Famous Hero
posted October 04, 2017 04:38 PM

Ben80 said:
In first version it was too strong skill.

No, it wasn't strong skill, it was strong enough to be usefull skill. But it's blasfemy to make poor skill usefull and get a player headache what to choose - logistic or new eagle eye skill. Players don't allow to change their good, old building patches into new ones ;]  

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


Hired Hero
posted October 04, 2017 05:00 PM

avatar said:

No, it wasn't strong skill, it was strong enough to be usefull skill.  


It depends on your philosophy. I would like to see the game contains different skills, strong and not very strong. Usually other players want to see all secondary skills in general more strong than I would like to see.
So I understand that many my plugins (including future ones) will not be popular. And of course one can change some coefficients (by desire) and recompile.


____________

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


Known Hero
posted October 04, 2017 05:01 PM

@RoseKavalier:
Thank you.
That was the thing I asked few posts back about "Release" and "not saved".
When I do what is wrtten in russian forum (or at least what google translate translates) with Alt-F7 then it does not do anyhting and is still "Debug".
At your screenshot I can see the correct place to change debug into Release

Fixed downloads:
ScholarChoice:
https://mega.nz/#!kg4hTQQA!83q1o48HJhmCdNRSfomczxd0GqRzZYisQpS58fDFduA
WitchHutChoice:
https://mega.nz/#!ghYxUQJZ!HJQX_0-Vj1XiWTyBywKwjknalMa7nbaMO9oNwishS0w

Description:
They simply add a "confirmation window" to witchhuts and scholar (if you would receive a secondary skill). So you can hit "yes" or "no". If you hit no, your hero won't learn the skill and if it was a scholar he will still disappear without teaching anything. If you hit yes you will learn the skill as usual.
They also do work in multiplayer! It is important that every player has enabled those plugins, otherwise it can be unfair and also might mess the whole game (although I did not see an error or crash in testing)

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


Known Hero
posted October 04, 2017 05:20 PM

@Ben:
Thank you very much for the explanation and those great plugins
I will stick to the old code of your LearningSkill plugin (compiled with Release)

I wonder why in your townportal and also the QuicksandMines plugin, "no magic school" is identical to "basic magic school" ? (townportal both require 1200 movement points and qicksandmines both will cast 6). Maybe 4 mines/quciksand for no school would fit better?
This is just a suggestion, especially for future plugins made by you

I would like to see more secondary skill plugins, eg for mysticism and sorcery
Sorcery could also affect spells like Ressurection.
Mysticism could give percentage of total mana points, eg. 10,15,20% per day (maybe +2 +3 +4 mana points, so even if you have a total of 10mana, you will get 5 par day with expert).

I really like the commanders from WOG, but even in WOG they are not multiplayer compatible. If someone can create them MP compatible for Hota+HD I would even pay for it

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


Responsible
Supreme Hero
posted October 04, 2017 05:26 PM
Edited by AlexSpl at 17:27, 04 Oct 2017.

Quote:
How to change secondary skill description within plugin code?

See that plugin.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 34 pages long: 1 10 20 ... 22 23 24 25 26 ... 30 34 · «PREV / NEXT»
Post New Poll Post New Topic Post New Reply

Page compiled in 0.0940 seconds