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 ... 104 105 106 107 108 ... 120 150 180 210 220 · «PREV / NEXT»
Siegfried
Siegfried


Famous Hero
posted September 20, 2014 08:03 AM

Sal said:

@Siegfried:

In general erm help gives valid ranges of free vars. But that feature is old and some mods may change that list. Also, have you considered usage of SN:W vars? They are unique and virtually UNLIMITED.

Example:

!!VRv1:S1;
!!SN:W^Siegfried^/v1;
!!SN:W^Siegfried^/?y1;
!!IF:M^%Y1=%V1^;

And for loops:

!!DO12345/0/155/1:P;
!?FU12345;
!!HEx16:O?v1;
!!SN:W^Siegfried_Hero_%X16^/v1;

Using SN:W vars you can make mods which are compatible with every mod out there, as long as they don't use your codes (for example your name in code root)

As for functions, from Era manual:

Script-writers and plug-in creators may use values in the range of 40000..134217727. The tie to the 0..30000 range for ERM functions has been removed.



Thanks. Are these W variables string variables? I need numerical variables.
____________

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


Famous Hero
posted September 20, 2014 08:06 AM

Bersy said:
Siegfried, generally speaking, mod "WoG" in Era package has the same list of claimed variables as 3.58f. Functions are unlimited, though some mods and plugins, including Era, use a few ranges like 77000..77XXX, 89999, etc.

Ah, o.k.

But then i just found some used v variables not in the claimed list. Id would be a good idea to add these.

From time to time i'll check other ranges as well and report any used v variables that are not in the list.
____________

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


Honorable
Supreme Hero
posted September 20, 2014 12:32 PM

SN:W variables in fact hold a pair of values: a string and a numeric one.

!!SN:W^test^/^name^ W^test^/777 W^test^/?z1 W^test^/?y1;
!!IF:M^%Z1 %Y1^; name 777
Empty strings (^^) and zero values do not occupy space in saved games. Accessing not-existent key will return 0 or empty string.

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


Honorable
Supreme Hero
posted September 20, 2014 10:52 PM

ERM Hooker v1.0.0
Era plugin allows to easily install and remove code hooks which execute corresponding ERM handlers.
{code block address} => {erm function receiving the context}

API:
(*
ErmHandlerFunc receives two SN:X arguments: (Context pointer, ExecuteOverwrittenCode? = 1)
If you set ExecuteOverwrittenCode to 0, be sure to change context.RetAddr
Context structure (offsets in brackets):
: EDI (0), ESI (4), EBP (8), ESP (12), EBX (16), EDX (20), ECX (24), EAX (28)
: RetAddr (32)

Returns non-zero value on success. Fails if another hook is set at the same address.
*)
function SetHook (Addr: pointer; ErmHandlerFunc: integer): longbool; stdcall;
(*
Removes erm hook at specified address. Returns true if hook existed.
*)
function UnsetHook (Addr: pointer): longbool; stdcall;
(*
Prints list of hooks in "Debug\Era\erm hooks.txt"
*)
procedure PrintHooks; stdcall;

All hooks are automatically removed on the following events: new game start, game loading, game leaving (Era 2.55+).

Plugin supports both Era 2.46 and Era 2.55+. For 2.55+ it handles OnGenerateDebugInfoEvent (you can generate list of hooks by pressing F11) and OnGameLeave event.

Example of usage:
!?FU102777;
!!SN:L^EraPlugins\erm_hooker.era^/?y1 Ay1/^SetHook^/?y2;
!!SN:Ey2/1/5933074/102778; 0x5a8812

!?GM0;
!!FU102777:P;

!?PI;
!!FU102777:P;

!?FU102778;
!!IF:M^Hi from hook!^;

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

Tavern Dweller
posted September 22, 2014 11:42 AM

nice
____________

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


Hired Hero
I'm here. As always.
posted September 22, 2014 08:51 PM

Can I play era II with HotA ?

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


Honorable
Supreme Hero
posted September 23, 2014 08:07 PM

Nope.

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


Hired Hero
I'm here. As always.
posted September 25, 2014 11:46 PM

Why?

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


Honorable
Supreme Hero
posted September 26, 2014 07:42 PM

Hota is standalone addon using different code base. You can have Era in Hota in the same folder, but nothing more.

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


Hired Hero
posted September 29, 2014 02:26 PM

For a long time, there's no update at the top post. Where can i get the newest era update?

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


Honorable
Supreme Hero
posted September 29, 2014 07:44 PM

Please, keep patience. I'm preparing 2.56 release.

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


Hired Hero
posted September 29, 2014 11:18 PM

Bersy said:
Please, keep patience. I'm preparing 2.56 release.

Ok,no need hurry,Enjoy.

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


Famous Hero
posted October 02, 2014 09:31 PM

Hi,

i hope i'm not disturbing anyone with these silly questions

1. Era2 runs, with some minor bugs. Often on the battlefield i do not get the background image, instead i get the stack images staying where the stack just left. Strange and makes battles complicated, but these images are pure images, so technically it is playable.

2. I installed the new objects patch and the fred objects patch. But none of them shows up in the editor? What may have gone wrong? When starting the MapEdPatch.dll complains about some file not found. No idea what file though.

3. In the editor i cannot place monster stacks, if i try the editor crashes. I disabled the new objects patch and the fred objects, but still the same.

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


Honorable
Supreme Hero
posted October 02, 2014 09:59 PM

1. Install Morn battlefields mod or WoG revised. Will be partially fixed in the future.
2-3 never occured normally, at least under windows, I didn't try running editor under Wine, though somethings goes definitely wrong

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


Famous Hero
posted October 03, 2014 09:19 AM

Hi,

1. Thanks. I'll try that. If it helps - great. I already thought of installing WoG revised.

2.-3.: Well, i'm currently installing H3 complete into a separate directory, and will install pure WoG there, without Era. At least this worked some months ago. Then i could create maps there and still play Era with the new features. I hope this will work.

Thanks for the reply.


____________

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


Disgraceful
Undefeatable Hero
posted October 03, 2014 09:36 AM

@ siegfried: i was able to install era2 and my object patch without any issues whatsoever. i would assume the same would be true for the new objects patch.

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


Famous Hero
posted October 03, 2014 07:40 PM

Hi,

well, i got several problems. But i removed all today and installed all new from scratch. And now the editor works. Mostly. There is 1 menu point under tools, when i want to set the map title and description, when i move down the mouse over the menu points at some menu the editor crashes. Fortunately i can enter the map specification with Ctrl-Enter, so this is a problem i can live with.

Still Era (and the editor) crashes quite often. Does anyone know if there is an option to start Era in windowed mode? Some command line parameter? If i could start it windowed, then, when it crashes, i could simply kill it and do not need to reboot the computer.


____________

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


Honorable
Supreme Hero
posted October 03, 2014 07:46 PM

On Win you press F4 and should have desktop in 16-bits mode. Under wine the only option is using HiRez mod, I think.

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


Famous Hero
posted October 23, 2014 10:37 PM

Hi,

i recently had a very strange bug. I tried it several times on different maps and always got the same. It's just that this scenario is not very common, so i just found it yesterday

I was attacked in my castle by AI. I won. But then the AI hero was levelled. After that the AI hero correctly vanished. This seems to only happen if AI attacks a human player in a castle. It does not happen otherwise.

I do not have any after-battle trigger or function, only pre-battle (mostly BF setup).
____________

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


Hired Hero
posted November 06, 2014 04:53 PM
Edited by galo11 at 16:53, 06 Nov 2014.

Hello,

I've installed ERA in thesame folder as HotA, on H3 Complete, and it does not working. It crashes, when I click on "new game".
I've tried in HDMode, but it does not help.

Screen:
[url=http://www68.zippyshare.com/v/74917075/file.html][/url]

Logs:
[url=http://www68.zippyshare.com/v/5680898/file.html]WOGCRASHLOG.TXT[/url]
[url=http://www68.zippyshare.com/v/41407565/file.html]WOGERMLOG.TXT[/url]

 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 ... 104 105 106 107 108 ... 120 150 180 210 220 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.3793 seconds