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 - Source code - Help and discussion
Thread: ERA II - Source code - Help and discussion This thread is 9 pages long: 1 2 3 4 5 6 7 8 9 · «PREV
gamemaster
gamemaster


Adventuring Hero
posted June 01, 2020 10:39 PM
Edited by gamemaster at 22:53, 01 Jun 2020.

Yes. Some kind of mod for testing will be good for bug hunting.


Edit:
Two minor things:
Erm.pas(5303): Variable 'SavedTriggerLocalObjects' might not have been initialized
Erm.pas(5297): Variable 'PrevTriggerCmdIndPtr' might not have been initialized


This two warnings are from compiler. Maybe we can nil those variables at the beginning be safe and satisfy compiler.

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


Honorable
Supreme Hero
posted June 02, 2020 01:12 AM

I rechecked them both a few times, totally safe, but ok. Done.
____________
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 June 04, 2020 12:00 AM

Glad to see you on WoG forum, by the way.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Adventuring Hero
posted June 28, 2020 01:52 PM

I am now on discord too

I can see that GameExt.RegisterHandler is deprecated.
What is alternative that can be used for external plugin (Yona)?
Should RegisterHandler be avoided in future projects?

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


Honorable
Supreme Hero
posted June 28, 2020 10:34 PM

It's ok to use it for plugins. See Extern.pas:

procedure RegisterHandler (Handler: TEventHandler; EventName: pchar); stdcall;
begin
 EventMan.GetInstance.On(EventName, Handler);
end;

Singleton object instance is used as Event Dispatcher behind the scene now. It's just note for ERA code writers to use EventMan.GetInstance.On.
____________
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 thread is 9 pages long: 1 2 3 4 5 6 7 8 9 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0245 seconds