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 ... 4 5 6 7 8 ... 30 60 90 120 150 180 210 220 · «PREV / NEXT»
Emiren
Emiren


Hired Hero
posted February 12, 2012 01:40 PM

h3wmaped still doesnt work, tried to reinstall reboot etc but it just crashes like before

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

Tavern Dweller
posted February 12, 2012 04:43 PM

Hmm just 2 quick questions
1) Can we expact ERA port to Delphi7
2) Can we expact pack witch contain ALL needed files to port it to Delphi7 ?

Reason why ask this is because ( ofcours ) i use D7 and need some external librarys that I can't find on net ( like "TextScan" and maybe more ). Ofcours all this is needed to port it to D7.

It is not hard nor time consuming. If someone can prowide all files i'll do port.

Anyway is there any particular reason for using Delphi > 7 ?

cya
____________

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


Honorable
Supreme Hero
posted February 12, 2012 04:58 PM

emastergam, any other missing modules?
http://wikisend.com/download/435184/textscan.pas

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


Honorable
Supreme Hero
posted February 13, 2012 05:02 PM

I'm really sorry, some files were missed in Era II sources.
Here is the full pack: http://wikisend.com/download/223752/Era%202.0%20Delphi.rar

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


Supreme Hero
Work at Magic Dimmension
posted February 13, 2012 08:37 PM
Edited by majaczek at 20:39, 13 Feb 2012.

I found some nasty bug occuring in era2beta2build4 when using more than one mod containing scripts. the bug is based on memory corruption. the potential results can vary between "ERM VNCopy errors" with valid scripts, damaged dialog control, damaged erm variables.

error occur even if i copy script file from one of mods to another nad change the date of later (VNCopy one) but also may be silent in other tests, and f***ing up dialog inputs or erm variables

EDIT: but the reason may be out of script handling, because once when disabling one mod the game was still using some of its resources (so another suspicient is the patch for supporting mod_folders)

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


Honorable
Supreme Hero
posted February 13, 2012 09:37 PM

Could you upload those two sets of scripts?

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


Supreme Hero
Work at Magic Dimmension
posted February 13, 2012 09:56 PM
Edited by majaczek at 21:59, 13 Feb 2012.

Contents of scripts doesn't matter, however what I did is ->

a) install SU_lite as mod folder and disable scripts from wog mod -> works as i wanted
b) created new mod folder and copied one of SU_lite scripts -> works the same
c) the mod in (b) was edited -> VNCopy Error
d) the mod in (b) content was reversed to those in (a) and checked with diff tool that files are binary identical (but file flags were changed - the date on file is different) -> still VNCopy Error (the diff check was done because i first believed that Erm Editor was faulty - but not this time)

this is minimal setup for triggering error, but I also checked with more complex mods - but those may be irrevelant as mods may conflict - however i managed to catch more silent bugs with this

NOTE that i use some standard plugins from ERA, and disabled "Dialog Fix" one as it spoils working of some older dialogs - but this is obvious.

when i managed to do it silent bug there happened some things like mixed ERM variables (script written to wrong ones) and standard dialogs (not the new DL command ones) corruption when confirming with enter instead of click - note that those bugs doesn't occur with only one set of scripts.

And a few times I manged to load some scripts from mods no longer in Mods folder! so this is a hint that something may be related to script loading, or to general mod loader.

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


Honorable
Supreme Hero
posted February 14, 2012 08:20 AM

VNCopy usually says about wrong scripts loading order. Macro cannot be used before being declared. I would much appreciate if you give a link to SU_Lite, so I could repeat your actions.

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


Supreme Hero
Work at Magic Dimmension
posted February 14, 2012 09:01 AM

I used the site http://doom3d.uw.hu/html/wog.en/dld.htm to get SU_lite (Script Update Lite) and given the mod priority  05

it worked fine with scripts from WoG mod in Era disabled

the script i copied was script25.erm from SU_lite and put it in mod with priority 06, and it was all good until I touched the file. when the file has newer date but same content the Era started giving VNCopy - so it's a bug in Era OR I don't understand priorities properly (and yes script has the same name to override the script before, my intention was just to change one line of it, but giving it newer date was enough to make Era2beta2build4 unhappy)

The dialog problem I mentioned is another story - when Used SU_lite with another mod which is big one (and also Believe when using two script mods one overriding another eg. SU and SU_lite but i'm not sure) - is that when we accept the last window in Banker dialog with just a click it works good, but if the last dialog is closed with enter it get's back to borrowing dialog and borrow (with a popup) the amount suggesting wrong negative to unsigned conversion. note that the problem doesn't occur if i use just Wog modfolder or just the scripts from SU_lite (even when accepting with enter)

PS: I'm almost sure (the VNCopy bug) it's a bug introduced in of latest builds of era2beta2, because i believe i remember it havent triggered the VNCopy bug, even using 3 sets of scripts overriding each other (I don't remember if banker-enter-key bug occured in era2beta2build2 or not, but if you want i may downgrade and check it)

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


Honorable
Supreme Hero
posted February 14, 2012 09:44 AM

majaczek, SU scripts have no priority order and can be loaded in the any order Era reads them from directory. But WoG scripts require the definite order, because many scripts use the previous ones.

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


Supreme Hero
Work at Magic Dimmension
posted February 14, 2012 12:26 PM
Edited by majaczek at 13:00, 14 Feb 2012.

I mean priority of mods (folders) not the scripts itself
and the scripts as modfolder works, but overriding it with mod with higher priority (same script name, even same content) and date of TODAY make ERA complain (should i use lower priority instead? or priority of scripts is independent of priority of mods? would overriding script file in another mod work?)

and if it isn't my mistake it have to be era bug, but again i may not understand the priority mechanism. however it looks weird that just changing date of script breaks it... well, maybe I'm just wrong and all scripts has 0 priority independent of mod mechanism and date really matter?

But still adding phoenix mod EVEN without plugins (which may be incompatible with newest ERA), using only script99 (and not patches for regular wogify) with the ERA version make the dialog of banker work wrong, and the wrong behaviour is only triggered when pressing Enter on last Ok-Only dialog, while clicking it by mouse keep correct behavior, and with only one set of scripts it works properly both methods, so i don't know where but i smell some memory corruption.

I will make today some tests to isolate problem more...

EDIT: test1 same folder config (SU_lite folder has a number below those with copied script25) the script is modified (one number changed particularly Cartographe would be changed to Tree of knowledge as in wogmod rather than Cover of Darkness like in SU/SUlite), the date changed by date picking tool to the same as in SU_lite folder up to second - result: same VNCopy Error

EDIT: test2 same folder config, using exact copy of script25 - just copying the file - VNCopy error - strange i thought it worked before

EDIT: test3 copied also ert file to check if isolation of the two files is guilty - still no luck

EDIT: test4 tested with reversed priority - still no luck (VNCopy error)

EDIT: test5 files from SU_lite and modified script25 with oryginal date as one mod - it works (so script isn't faulty - but that we know already)

EDIT: test6 tested same config as test5 with bumped (today) date of script25 - suprisingly it works (so date inside same folder doesn't really matter here

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


Honorable
Supreme Hero
posted February 14, 2012 12:58 PM

I'm making phoenix package, don't worry.
If the priority of script is not specified, the script is loaded in RANDOM order. In particular, it's the order your NTFS/FAT32 system returns names with FindNextFileA.

WoG Scripts demand strict order. Check how they are named in beta 4. Your problem is that scriptXX can be easily loaded before script00 from update and script00 registers global macros like $Day$. This is VNCopy error.

About phoenix and bank. PM 3.61 works unsafely with global variables, so key press event changes some v-vars and bank script becomes confused. This was fixed in 3.62, but 3.62 is not released in English.

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


Supreme Hero
Work at Magic Dimmension
posted February 14, 2012 01:12 PM
Edited by majaczek at 14:04, 14 Feb 2012.

SO the order is same as in folder records on my filesystem if it is in the same folder... so it's a reason that the folder always worked... but what would be order when using TWO different mod folders and TRYING to override one script with another? and if both would  have same order/file_priority would overriding work? I am supposed to have a mod which overrides some script files from oryginal wogify - is it possible to work, or since priorities are included script overriding wouldn't work? and what is the correct priority (upwards, downwards, same as in Wog mod)?

PS: since script are not tied to script numbers anymore, i suggest splitting the erm scripts so each functionality has it's own file - as working with mods like phoenix or wogmod is horrible - you have to change/override whole file to just change one of N functionalities in script. So i suggest splitting some "library" functions out, and each wog option as separate script depending on "library" scripts - that would make the life of wogify modder much easier

EDIT: OKAY priorities for scripts goes reverse way as original script numbers - I'll try to match the scheme - and THEN try again
EDIT2: if somebody needs here https://rapidshare.com/files/2218208228/05_Script_update_lite_ordered.7z is SU_lite with scripts renamed to match ERA2beta2build4 script names and priority. now I'll test overriding with more correct setup

PS: if erm files aren't to split can somebody write a cmd or bat script which renames all script??.er? to names matching the era scheme? because if i had to do it A FEW TIMES, each for another folder, I'll go crazy, now i just parsed one folder manually

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


Honorable
Supreme Hero
posted February 14, 2012 01:49 PM

If two mods have the same priority, their creation dates are checked. If even dates are equal, the order is undefined.

About Phoenix. It was planned to be a solid mod without options. Almost all functionality cannot be divided into blocks. If one part is off, others will not work. Now it's too late to break the solid file.

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


Supreme Hero
Work at Magic Dimmension
posted February 14, 2012 02:15 PM

I mean Split for ORYGINAL WOGIFY scripts not PHOENIX script, and because WOGIFY mods such as phoenix frequently changes WOGIFY scripts, so for having more than one mod which modifies ORYGINAL WOGIFY scripts it's often needed to merge changes since mods may want edit same script file but change different functionality from this script (The worst case is "Tobyn's Script" script files)

and BTW it looks it works the way I intended now - mod with priority 05 overrides Wog mod (no priority set so it's 0?) and use same names for scripts to replace them. and for seeing it work there comes Mithril Reminder from SU. OR still i have something not exactly OK?

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


Honorable
Supreme Hero
posted February 14, 2012 02:31 PM

You did it right now

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


Honorable
Supreme Hero
posted February 14, 2012 06:25 PM
Edited by Bersy at 18:26, 14 Feb 2012.

Phoenix Mod 3.61 [ENG] [MOD]

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


Supreme Hero
Work at Magic Dimmension
posted February 14, 2012 06:39 PM

HEY map editor from era don't allow me pick any DEF...
and i just wanted to add to some H3SOD object another H3SOD def, but list of defs to choose is empty (well there are dummy flag entries)
IS it KNOWN BUG? or IS it just MY mistake? how to make it work/will it be fixed?

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


Admirable
Omnipresent Hero
Wog refugee
posted February 15, 2012 11:30 AM
Edited by Salamandre at 11:47, 15 Feb 2012.

Yeah, impossible to switch defs. I think it is fixable, ERA II beta 2 has editor working, I still have a folder of it.
____________
Era II mods and utilities

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


Honorable
Supreme Hero
posted February 15, 2012 12:51 PM

majaczek, run "Tools\Fix Editor\fix editor.bat".

 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 ... 4 5 6 7 8 ... 30 60 90 120 150 180 210 220 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.2374 seconds