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 > Library of Enlightenment > Thread: New Spells Plugin, The
Thread: New Spells Plugin, The This thread is 13 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 · «PREV / NEXT»
AlexSpl
AlexSpl


Responsible
Supreme Hero
posted April 15, 2022 12:25 AM
Edited by AlexSpl at 01:08, 15 Apr 2022.

For Styg -



Btw, your animation is, again, too short and fast. Perhaps it's a clever idea to add a "damaging phase" to the animation and sound as well.

To save my time you can also provide me with fireball-like version of animation, else it will take significant time to adapt your spell to the current spell system.

Basically, I will code the Golden Touch spell as a mix of single target and AoE spell (it's already unique for damaging spells). But it will require much more lines of code to make animation Berserk-like. It's possible, but, you know, ... Occam's razor Let's save time of each other.

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


Known Hero
posted April 15, 2022 01:19 AM
Edited by Szaman at 01:21, 15 Apr 2022.

Have to adjust the animations... to "fireball" effect. Will provide you with it tomorrow.

Quote:
Btw, your animation is, again, too short and fast

I can add more frames to it... are you familiar with deftool? is there a way to slow down the animations? didn't seen any options there to do it? My only solution for this in only in increase the frames.

Quote:
Perhaps it's a clever idea to add a "damaging phase" to the animation and sound as well.


Sound good..


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


Responsible
Supreme Hero
posted April 15, 2022 01:26 AM
Edited by AlexSpl at 01:27, 15 Apr 2022.

Quote:
are you familiar with deftool? is there a way to slow down the animations?

Don't think so. You can slow down it by a plugin. This is not what we want. So, the only way is to increase frames count. For example, Toughness animation includes 33 frames.

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


Known Hero
posted April 15, 2022 09:21 PM

I have increased the frames to 34 i hope that will be enough. But sadly i failed to find a replacement to a "fireball like spell" i tried also to increase the size of the image to "fireball sizes" and that broke the color pallet:/

so... do you manage to do it without it? or i have to just give up the AOE-fireball effect?

--->Incrase frames here<---

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


Responsible
Supreme Hero
posted April 15, 2022 09:36 PM

Neither the first idea nor the second one were never implemented. So both of them technically, in some sense, 'challenging' (both of them require non-standard code). If you have problems with large animations, I can just use parts of code from my NewMagicMirror plugin. But, you must agree, having two different animations for a single spell would be cool. Actually, there are examples of multiple animations for for spells already (remember damaging spells, which use different animations for different angles?).

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


Known Hero
posted April 15, 2022 09:48 PM

Quote:
But, you must agree, having two different animations for a single spell would be cool


Is that possible? Well it sounds cool, but don't have a idea for the second animations. Maybe blind animations with yellow-gold reskin?

You can add second animation the blind animations, maybe later/someday i will find something more interesting to replace it with much more cooler animations.

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


Responsible
Supreme Hero
posted April 15, 2022 09:51 PM
Edited by AlexSpl at 22:08, 15 Apr 2022.

Also this spell is bound to be abused. Players will think about how to make more money instead of concentrating on a battle itself*

But let it be If you will really enjoy it.

Btw, it already works for a single target. Not much work really. But going AoE will require additional time for not so tangible profit. Yet I subscribed to make it real, so wait for the spell of your dream

*) You probably played Armored Princess. Well, I enjoyed this unique game. But you know what I did? I dug chests relentlessly, being not that greedy in real life. You know, optimization, and, after all I'm a competitive player with not so bad results in tournaments. So that's why this spell is bound to be abused, though I see fun in it also

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


Responsible
Supreme Hero
posted April 15, 2022 11:05 PM

Thoughts from the back of my mind. In those ancient times we all were kids playing Heroes. Dissolved in the game completely, we wanted to believe that every little detail of it was of great importance. You can (re-)read all posts about how this game works and who is more powerful - Titans of Black Dragons. All this was important then. If only there were a way to send us back to that wonderful mindset which allowed us to be really happy playing Heroes. I know, some of you are still there, in those ancient times projected to the 'now-plane', and I even envy those of you who still manage to enjoy the game. Share your secret

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


Responsible
Supreme Hero
posted April 16, 2022 01:04 PM
Edited by AlexSpl at 13:43, 16 Apr 2022.

Now it's OK animation, much better than before, but still is in HoMM2 style. Also I suggest to increase number of frames for your Hour of Power spell.

Two more questions -

1. Should we allow it to be cast on friendly units?*
2. Should a player see in the log how much gold it earned after the Golden Touch spell? Do we want to bother players by showing a message after a battle (Eagle Eye style) with total gold earned?

*) Well, I've already allowed to cast it both on friendly and enemy units, except war machines to match the AoE version of it (for damaging AoE spells you can cast them anywhere including your own units).

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


Known Hero
posted April 16, 2022 02:44 PM
Edited by Szaman at 14:45, 16 Apr 2022.

Quote:
Also this spell is bound to be abused. Players will think about how to make more money instead of concentrating on a battle itself*


Wealth brings a heavy purse; poverty, a light spirit -- Leo Tolstoy

A good morality spell, Want to win or be greedy?

Quote:
You probably played Armored Princess

You mean King's Bounty: Armored Princess? Yea played it once (passed all the campaign), nice game. Nothing special to remember, BUT the soundtrack was very good! I played also Dark Side.

My inspiration came from Might and Magic VI:


Quote:
But you know what I did? I dug chests relentlessly

I loves maps where they are grails. In HOTA i always i'm forcing to assemble the golden goose relict

Quote:
Thoughts from the back of my mind. In those ancient  times we all were kids playing Heroes. Dissolved in the game completely, we wanted to believe that every little detail of it was of great importance. You can (re-)read all posts about how this game works and who is more powerful - Titans of Black Dragons. All this was important then. If only there were a way to send us back to that wonderful mindset which allowed us to be really happy playing Heroes. I know, some of you are still there, in those ancient times projected to the 'now-plane', and I even envy those of you who still manage to enjoy the game. Share your secret


When i was a kid a to mostly played Heroes 2 or 3, for me it was "pure Magic" to have a dragons in the army or battling them. But when i discvored Might and Magic VI!! it was mindblowing for me,  I always fantasize to live in Dragonsand where in a hot day slay some dragons

To bad that i have little time to play this game But someday i will return to it

Quote:
Also I suggest to increase number of frames for your Hour of Power spell.


Will do... but have to drawn them first But will make it

Quote:
1. Should we allow it to be cast on friendly units?*

Yes, allowed.

Quote:
2. Should a player see in the log how much gold it earned after the Golden Touch spell? Do we want to bother players by showing a message after a battle (Eagle Eye style) with total gold earned?


Yes This spell is optional, so it will not always bother the player.

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


Responsible
Supreme Hero
posted April 17, 2022 03:03 AM
Edited by AlexSpl at 04:12, 17 Apr 2022.

Done with Golden Touch.

Quote:
non-upgrade/upgraded  

1 lvl creatures = 50/75 gold

2 lvl creature = 75/100gold

3 lvl creature = 100/200

4 lvl creature = 200/300

5 lvl creature = 300/400

6 lvl creature = 500/600

7 lvl creature = 1000/1500

I had thought that would be OP definitely, so I decided to implement another formula:

10%/10%/15%/20% of killed creature's cost in gold at None/Basic/Advanced/Expert.

NewSpells_Szaman_2.3

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


Known Hero
posted April 17, 2022 07:10 PM

Hi Alex! I really like the plugin you make!

I am one of the developers of ERA mods and the author of a game build with a bunch of mods for it.
I checked the plugin today - it works almost perfectly with ERA and its mods, including it is even possible to research spells - yes, yes, I did it like in HotA, only on erm
Nevertheless, there are some points that need to be finalized for full compatibility.

I ask you to post the plugin sources (as I understand, they were previously attached to the plugin, but now they are not there) so that I can correct it for ERA.
I myself study C++ and already have some experience in creating plugins, including those for the interface (adding/removing/changing its elements). I have some reversing skills, so I think I can handle it) If anything, Discord nickname #daemon_n5347

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


Responsible
Supreme Hero
posted April 17, 2022 08:31 PM

Hi! Here is the latest solution - https://handbookhmm.ru/forum/download/file.php?id=1966

Note, that you cannot fully rely on classes from HoMM3API.h yet (it's still under development, well, from time to time).

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


Responsible
Supreme Hero
posted April 18, 2022 12:23 AM

Fixed a bug preventing from playing the animation of the Golden Touch spell.

NewSpells (16 spells + 2 spells + sources)


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


Known Hero
posted April 18, 2022 12:27 AM
Edited by daemon_n at 00:35, 18 Apr 2022.

Got it
Then will use homm3.h

It says "The selected attachment no longer exists"

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


Responsible
Supreme Hero
posted April 18, 2022 12:35 AM

Actually, my plugin uses homm3.h as well, but with some reliable classes from HoMM3API.h. homm3.h is very old API without much info acquired recently, so here and there you see offsets instead of actual field names. I created HoMM3API.h to get rid of offsets in my code, but many classes have to be checked and re-checked yet to rely on them.

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


Responsible
Supreme Hero
posted April 18, 2022 12:37 AM

Quote:
It says "The selected attachment no longer exists"

Download the updated version (the latest link, 1967).

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


Known Hero
posted April 18, 2022 12:38 AM
Edited by daemon_n at 00:40, 18 Apr 2022.

So Homm3API.h is sth between Homm3.h and H3API?
If yes, then where can i download it?

Got 1967. Nice), thanks!
Just from mobile now

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


Responsible
Supreme Hero
posted April 18, 2022 12:40 AM

You'll find it in the archive above. Yes, it's something in between, WIP of some sort.

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


Known Hero
posted April 18, 2022 12:49 AM
Edited by daemon_n at 00:49, 18 Apr 2022.

Oh, great. Tomorrow will look at)

Btw, i also learn c++ to become kind of programmer, and ask advice or even help/suggestion. Mb there is taskwhere  i can be useful for that project or other modding direction, which could be useful for me as language learning student and for you as content maker, btw i am russian

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 13 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0728 seconds