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 3.5 - WoG and Beyond > Thread: ERM help and discussion
Thread: ERM help and discussion This Popular Thread is 407 pages long: 1 50 100 ... 122 123 124 125 126 ... 150 200 250 300 350 400 407 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted December 06, 2011 11:00 PM

I can't get it to work. Now that I disabled Kaspersky and change to WiN 98 the game did not minimize as before but I got a lousy sound from computer and the next message:

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


Responsible
Supreme Hero
posted December 07, 2011 01:52 AM

I am sorry again, for the time and frustration this has caused you.  The error message means that the file was opened successfully (which is farther than I have gotten on my XP so far, except in Safe or semi-Safe startup mode), but that the codec it is using works only on the audio portion, not the video.  (I would expect in this case that avitest.exe and Windows Media Player play the audio only, without showing the video, on your XP.)

I have been making negative progress on my XP.  I noticed an icon popping up on my task bar which turned out to be a DivX icon - I had forgotten I had DivX on that machine - so I did Control Panel/Remove Program to remove DivX Codec, Converter, Player, and Web Player, as well as QuickTime and Real Player.  After doing that I lost the ability to play the video in avitest.exe and WMP, so I had to do internet searches on my W7 machine, and finally found NibbleCodecPack.exe, which restored my ability to play the video in WMP and avitest.exe.  But I still freeze Heroes by trying to play the video there (except in Safe-ish mode).

I took me about a week of trial and error to get a stable system on my Windows 7 machine, and it looks like it may take another week for my XP - with no guarantee that what I come up with will work for you, since your symptoms are different.  I am not certain at this point that your system has a codec which will play the file (both audio and video).  If you decide to try NibbleCodecpack.exe, be sure to set a Restore point first.

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 02:24 AM

Until there, I am already happy by being able to run in DL heroes bik videos. Some are running perfectly, others less. There is an index to specify in DL, but if anyone knows how to extend the index range, converting from AVI to .bik is not a big deal. So far the index stops at 13. I added some new bik files in Video.lod but did not played.

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 01:18 PM

Any knows what is the experience multiplier algorithm? How to give n additional levels without scripting 74 lines of code.

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


Promising
Legendary Hero
fallen artist
posted December 07, 2011 01:23 PM
Edited by Warmonger at 13:27, 07 Dec 2011.

Difference needed for n+1 level is equal to 1.2 * (difference between level n and n-1), starting from level 15 which needs 34140 experience. Level 14 needs 28784 exp.
____________
The future of Heroes 3 is here!

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 01:32 PM

How can we know the difference between n and n-1?

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


Promising
Legendary Hero
fallen artist
posted December 07, 2011 01:36 PM

Calculate it. It's a recursive relation, that is why you need to start with levels 14 and 15.
____________
The future of Heroes 3 is here!

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 01:40 PM
Edited by Salamandre at 13:44, 07 Dec 2011.

Thanks, got it. Now I need to find someone to do it for me, way over my head.

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


Responsible
Supreme Hero
posted December 07, 2011 04:08 PM

Or you could do something like this (not tested):

Call a function with a DO, for x16=1 to 1.508 million, with x1 = the Hero number and x2=desired level.

!!DO999/1/1508363/1:Pv100/v101; v100=Hero #, v101=level

In the function, check the Hero's level and end the DO if it is greater than or equal to the desired level, otherwise add 1000 experience points.

!?FU999; x1=Hero, x2=level
!!HEx1:Ed/?y1;
!!HEx1&y1<x2:Ed1000;
!!FU&y1<x2:E;
!!VRx16:S2000000; end DO
!!FU:E;

This should take you up to level 74.  After that, there are "ghost levels" (see ERM Help, format HL), and things get a bit more complicated.

Of course, jumping a Hero from level 1 to level 74 would take a lot clicks on the player's part, but not much time for the ERM commands.

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 05:05 PM
Edited by Salamandre at 17:09, 07 Dec 2011.

Thanks, I was more interested by precise jump from any level to next, in one click, so something like pandora  boxes are never too much or too less. Strange that there is no ERM check for this simple operation. With my maths level, calculating what Warmonger proposed would take about 5 years. Well, probably by the time I ask here I could have stored all levels in vars and just pick from.

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


Promising
Legendary Hero
fallen artist
posted December 07, 2011 05:29 PM
Edited by Warmonger at 17:54, 07 Dec 2011.

They are here:
exp levels
My not-so-precise calculator for these (no rounding):
clicky
____________
The future of Heroes 3 is here!

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 05:33 PM
Edited by Salamandre at 17:37, 07 Dec 2011.

Thanks, if only I knew how to open ods files. Open office, 145 Mo?!

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


Promising
Legendary Hero
fallen artist
posted December 07, 2011 05:50 PM
Edited by Warmonger at 17:51, 07 Dec 2011.

I believe you have some sort of MS office which is heavier and quite expensive. Exel should open it easily.
____________
The future of Heroes 3 is here!

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 05:51 PM
Edited by Salamandre at 17:54, 07 Dec 2011.

No, did not open with MS Office, sent me to OO link, ok, got it opened.
I had both lists already. The problem is how to translate in ERM those calculations of precedent level, no idea.

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


Promising
Legendary Hero
fallen artist
posted December 07, 2011 06:13 PM
Edited by Warmonger at 18:14, 07 Dec 2011.

The algoritm is so simple that I believe even ERM can handle it .

In normal script languages you could just allocate a table and the problem is gone, but here you need to try harder.
____________
The future of Heroes 3 is here!

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


Responsible
Supreme Hero
posted December 07, 2011 06:37 PM

Quote:
Thanks, I was more interested by precise jump from any level to next, in one click, so something like pandora  boxes are never too much or too less.


Format HL, levels 15-17

15 34140
16 40567
17 48279

So if the Hero is at level 15 with 36235 points (for example), and my method would put him at level 16 with 41235 points, that is unacceptable?  Then use Ed100 instead of Ed1000, which would put him at level 16 with 40635.  If +68 points out of 40 thousand is still unacceptable ...

(The number of clicks by the player will be the number of levels gained by the DO - one level, one click.  You can get the current level with Ed/? and add one to it to set the value for the DO.)

What you want is that Ed/d1 should set the exact points automatically, but unfortunately Slava did not program the command that way.

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


Honorable
Supreme Hero
posted December 07, 2011 06:40 PM

UN:J1/$1/?$2 will save you, Luke

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


Admirable
Omnipresent Hero
Wog refugee
posted December 07, 2011 07:03 PM

I misunderstood, I thought it will add 1000 points/click until it goes to next, as you said it will need much clicking. I will try it.

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


Responsible
Supreme Hero
posted December 07, 2011 07:13 PM

Quote:
UN:J1/$1/?$2 will save you, Luke :)


Sadly, no.  From ERM Help:
---------------------------------------
J1/$1/$2; Set/check/get a hero level limit for a map
$1 is a level limit (you can set/check/get it)
$2 is an XP amount for this level
Comments:
Whenever you set or get the level value, the XP amount is always for the current level limit. So if you set the level, it will return an XP for this new just set level. So to set and meanwhile get the level and level XP, you can use one command:
!!UN:J1/35/?y10;
Here you set the level to 35 and get an experience for this level to y10.

Note: the experience values returned for parameter 2 are incorrect, and the command can cause a Hero's experience to become negative! Use the Map Editor instead of this ERM command.
---------------------------------------------------
The note was added to the ERM Help based on a comment by Songfx, which was confirmed by testing.

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


Honorable
Supreme Hero
posted December 07, 2011 08:02 PM

!?FU[GetExpForLevel];
; x1 - level
; ?x2 - exp (don't use y-vars in get syntax)
!!UN:J1/?y1/d J1/12/?y2 J1/x1/?y3 J1/y1/?y4;
!!VRx2:Sy3;
!!VRx2&x1<=12:E;
!!VRx2:Sy2;
!!VRy4:S13;
!!UN:J1/y4/?y5; #5
!!VRx2:+y5;
!!VRy4:+1;
!!SN&y4<=x1:G5;
!!UN:J1/y1/?y5;

!?CM0;
!!CM:R0;
!!FU[GetExpForLevel]33/?v2;
!!IF:M^%V2^;

Explanation. UN:J returns valid values for levels 1-12 and delta between two sequential levels otherwise. UN:J1/13/?[x] will return Exp[13]-Exp[12].

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 407 pages long: 1 50 100 ... 122 123 124 125 126 ... 150 200 250 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.8856 seconds