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: Era II
Thread: Era II This Popular Thread is 220 pages long: 1 30 60 90 120 150 180 ... 183 184 185 186 187 ... 210 220 · «PREV / NEXT»
xericsin
xericsin


Famous Hero
posted August 02, 2019 08:11 AM

That's great.


And I found this code segment in igrik's 2.82 henchmen.erm

!?OB98&v7181=1;
!!OW:I-1/?y-2;
!!CA998&y-2=0?y-4;
!!HE-1&y-2=0:N?y-1 O?y-3;
!!IF&y-2=0/y-1>-1:Wy-1;
!!FU7108&y-2=0/w118>-1/w119=0/y-3=y-4y-1;

                >>BELOW HERE<<
*?OB16&v7181=1;    !!FU7109;
*?OB25&v7181=1;    !!FU7109;
*?OB54&v7181=1;    !!FU7109;
                >>ABOVE HERE<<
!?FU87020&v7181=1; !!FU7109;

I suspect the !!FU7109 should be disabled as well. Or it would become part of !?OB98.

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


Promising
Known Hero
posted August 02, 2019 09:57 AM

xericsin said:

I suspect the !!FU7109 should be disabled as well.

Why is this?

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


Famous Hero
posted August 02, 2019 01:20 PM


!?OB98&v7181=1;
!!OW:I-1/?y-2;
!!CA998&y-2=0?y-4;
!!HE-1&y-2=0:N?y-1 O?y-3;
!!IF&y-2=0/y-1>-1:Wy-1;
!!FU7108&y-2=0/w118>-1/w119=0/y-3=y-4y-1:P;

               >>BELOW HERE<<
*?OB16&v7181=1;    !!FU7109:P;
*?OB25&v7181=1;    !!FU7109:P;
*?OB54&v7181=1;    !!FU7109:P;
               >>ABOVE HERE<<

!?FU87020&v7181=1; !!FU7109:P;

The above is the same as below.

!?OB98&v7181=1;
!!OW:I-1/?y-2;
!!CA998&y-2=0?y-4;
!!HE-1&y-2=0:N?y-1 O?y-3;
!!IF&y-2=0/y-1>-1:Wy-1;
!!FU7108&y-2=0/w118>-1/w119=0/y-3=y-4y-1:P;
!!FU7109:P;
!!FU7109:P;
!!FU7109:P;

!?FU87020&v7181=1; !!FU7109:P;

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


Promising
Known Hero
posted August 02, 2019 05:32 PM

Damn, really. Thanks

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


Adventuring Hero
posted August 02, 2019 10:06 PM

Bersy, can you post source of era, b2 and vfs of latest version 2.8.6. Latest version from github seems to be half updated. ApiJack is not what should be and StrLib is modified also.

PS: put github link to signiture

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


Honorable
Supreme Hero
posted August 02, 2019 10:24 PM

gamemaster, only B2 libraries were outdated. Updated them.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Honorable
Supreme Hero
posted August 08, 2019 06:58 PM bonus applied by Maurice on 08 Aug 2019.

Starting from version 2.8.7 multithread is on by default (UseOnlyOneCpuCore=0).

Version 2.8.7
------------------------
[+] Added new function and event name 'OnRemoteEvent', generating !?FU(OnRemoteEvent) on remote sides with x1..x16 arguments.
   x1 is event type, values 0..9999 are reserved by Era. ERM users may use !!FU(any func):D instead with the same functionality.

[+] Added new event 'OnEveryDay', same as !?TM[xx], but occuring every day for every player/AI without any settings and before
   all other !?TM triggers.
   Example: !?FU(OnEveryDay)&-1000; every day for any AI

[+] Added new ERM command SN:R^old resource name^/^new resource name^, redirecting lod/pac/mp3 resources to other names.
   The command is a thin wrapper over RedirectFile exported function. Pass empty name as new resource name to remove
   redirection. All applied redirections are local, stored in saved game and reverted on map exit.
   '*.mp3' redirection works on all mp3 files at once.
   
   Example:
   !#SN:R^crgrif.def^/^croc.def^; let Royal Griffins look like Rocs (portraits are not changed)

   Game unloads not used resources, thus many resources can be dynamically redirected during playing.
   If resource is used in Hero Screen, perform redirection before Hero Screen is shown (and resource is cached).

   Custom interface skins may also be implemented, allowing user to switch themes right in the game (saved game
   loading may be necessary for visual update).

[+] MP trigger and receivers were fully remade. Old documentation is not applicable now. New implementation is fully
   thread-safe. From now heroes3.ini setting "UseOnlyOneCpuCore" is 0 by default, allowing running HD mod in CPU-heavy modes.

   Documentation:

   !?MP; Trigger occurs whenever game or ERM/Lua calls ChangeMp3Theme function.
   ; Here function parameters may be changed via !!MP:S, function default reaction enabled/disabled via !!MP:R

   !!MP:C?z[xx]; Get name of current theme without mp3 extension in lower case.
   ; Receiver may be called any time. Example result: 'dirt'.

   !!MP:P[theme name]/[Don't track position = 0/1]/[Loop = 0/1]; Calls ChangedMp3Theme function and generates !?MP event.
   ; Theme name is mp3 file name without extension.
   ; If 'Don't track position' is true (1), track playing is begun from start after resuming from pause.
   ; Otherwise position is remembered and restored on resume.
   ; 'Loop' controls automatical theme replay after end. 'Don't track position' must be set to 0 in order for looping to work.
   ; ---------------------
   ; Please, note, that final parameters are fully ignored if theme with the same name is being played currently.
   ; You may need to pause current theme before starting another one to force playing from start or without loops.
   Example: !!MP:P^cstletown^/0/1; start playing looped Castle theme

   !!MP:P0/[0 - pause, 1 - resume]; Pauses or resumes current theme
   Example:
   !!MP:P0/0; Silence, please, important event will occur now

   !!MP:S[theme name]/[Don't track position = 0/1]/[Loop = 0/1]; Get/change parameters for !?MP trigger.
   Examples:
   !?MP;
   !!MP:S?z2/d/0; Make all themes non-looped

   !?MP;
   !!MP:S^mainmenu^/0/1; Play SoD main menu theme during the whole gameplay process

   !!MP:R[get/set: Enable default reaction = 0/1]; Command allows to disable theme changing at all
   ; Can be used to disallow music changing for some time
   Example:
   !?MP;
   !!MP:R0; Don't switch current theme at all

[+] Added 4 new battle events as solution to !?BR and v997 mess with full backward compatibility:
   Event: 'OnBeforeBattlefieldVisible'.
   Occurs when battlefield and stacks are ready, but not visible. Right before !?BR&v997=-1.
   WoG applies spells to stacks in this phase and inits shoot/melee/attack-n-return settings.

   Event: 'OnAfterTacticsPhase'.
   Occurs right after tactics phase or after 'OnBeforeBattlefieldVisible' event if no tactics phase takes place.
   WoG summons Santa's guardians in this phase (because now stacks are in their final positions).

   Event: 'OnBattlefieldVisible'.
   Occurs when battlefield becomes visible. Game changes theme to combat right after this phase.
   
   Event: 'OnCombatRound'. A drop-in replacement for !?BR aka 'OnBattleRound'. Occurs only for visible real rounds.
   v997 is round number. For tactics phase it starts from -1000000000. For normal phase, counting starts from 0.
   Each round v997 is increased by one, thus it can serve as always increasing unique round ID.
   Note: v997 value in other triggers may be different!

   Example:
   !?FU(OnCombatRound)&v997=0; on first non-tactics visible real round
   ; apply spells, play music, change creature attributes, etc.

[-] Fixed bug: pressing Enter/Esc in ERM error dialog showed error dialog twice.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Honorable
Supreme Hero
posted August 08, 2019 07:08 PM

Available services:

ERM Scripts Extractor
Allows to extract ERM scripts from h3m maps in Era format. Scripted events will be automatically turned off.

ERM Enhancer
Converts old-style ERM scripts into Era format (named functions and labels). Supports multiple scripts uploading at once. Supports re-usage of named functions from other scripts.

Example:
Updated and fixed Atlantis script (600 KB!)

Music is not interrupted during hero movement in Atlantis now, but there is currently unsolved issue. AI theme is not stopped automatically before hero starts moving.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Promising
Supreme Hero
Researching Magic
posted August 08, 2019 09:12 PM

Nothing going on here for days and all of a sudden BÄMM new ERA version nice

Downloading....

The new Battleround triggers are much appreciated!

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


Honorable
Supreme Hero
posted August 08, 2019 09:46 PM

Thank you for feedback )
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Promising
Supreme Hero
Researching Magic
posted August 08, 2019 10:38 PM

Well, Thank YOU!

Can you confirm on the SN:R command for me:
The example with switching creature defs in battle works.
What did not work for me was switching for example artifact defs
or in Hero Screen for example skill pictures, or the speciality pic of a hero. Not that I would need it, just playing around a bit you know

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


Honorable
Supreme Hero
posted August 08, 2019 11:13 PM

Some defs may be loaded and cached. Try to change in !?PI or in !?FU(OnOpenHeroScreen). Otherwise change, save and load.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Adventuring Hero
Satisfying no one since 1994
posted August 09, 2019 03:22 PM

Bersy said:
Starting from version 2.8.7 multithread is on by default (UseOnlyOneCpuCore=0).

Version 2.8.7
Woo!! Thank you for keeping us up-to-date! Needs a clean install as usual right?
____________
~Drake Lyon~

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


Honorable
Supreme Hero
posted August 09, 2019 08:06 PM

It's my pleasure )
The changes are only in era.dll, so you may try installing over 2.8.6.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Famous Hero
posted August 10, 2019 02:07 PM

I found MR:N still has some problem in era 2.87.
Stack A stands in the grid of dead Stack B (even if Stack B has no corpse).
Spell is cast on Stack A.
FU29460 return Stack A.
MR:N returns Stack B (the dead one). <-This is the problem.

!?MR2;
!!FU29460?y10;
!!MR:N?y1;
!!IF:L^MR2 N=%Y1/%Y10^;

*FU29460?v2;(=MR:N?v2)
!?FU29460;
{
!!UN:C42231940/4/?y1;
!!UN:C6919200/4/?y2;
!!VRx1:Sy1 -y2 -21708 :1352; = MR:N?x1;
}

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


Honorable
Supreme Hero
posted August 10, 2019 05:46 PM

Try this dll
I've added check for num creatures > 0, will it help for dead clones?
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Famous Hero
posted August 11, 2019 05:48 PM

Problem is solved.

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


Known Hero
Building the Dragon City
posted August 11, 2019 08:14 PM

Question regarding map editor Find option. How to add Dragon Graveyard to list of objects or any other WoG object?

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


Adventuring Hero
posted August 17, 2019 07:58 PM

first message in this topic contains changelogs only for a bunch of the most recent versions of Era
where full (or at least more full) version history can be found?

are there any mirrors for downloads of older versions of Era and its mods, as referenced in Bersy's signature?

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


Honorable
Supreme Hero
posted August 17, 2019 09:50 PM

I don't know any other working mirrors.
Full changelog is in Heroes 3HelpEra directory.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 220 pages long: 1 30 60 90 120 150 180 ... 183 184 185 186 187 ... 210 220 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.3737 seconds