Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile

<a href="http://www.game-advertising-online.com/" target=_blank>Game Advertising Online</a><br> banner requires iframes

LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Era II
Thread: Era II [ This thread is 106 pages long: 1 2 3 4 5 (6) 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 ]
Emiren
Emiren


Hired Hero
posted February 12, 2012 07:40 AM

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 10:43 AM

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


Responsible
Supreme Hero
posted February 12, 2012 10:58 AM

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


Responsible
Supreme Hero
posted February 13, 2012 11:02 AM

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


Famous Hero
Work at Magic Dimmension
posted February 13, 2012 02:37 PM
Edited by majaczek at 14: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


Responsible
Supreme Hero
posted February 13, 2012 03:37 PM

Could you upload those two sets of scripts?

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


Famous Hero
Work at Magic Dimmension
posted February 13, 2012 03:56 PM
Edited by majaczek at 15: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


Responsible
Supreme Hero
posted February 14, 2012 02: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


Famous Hero
Work at Magic Dimmension
posted February 14, 2012 03: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


Responsible
Supreme Hero
posted February 14, 2012 03: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


Famous Hero
Work at Magic Dimmension
posted February 14, 2012 06:26 AM
Edited by majaczek at 07: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


Responsible
Supreme Hero
posted February 14, 2012 06:58 AM

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


Famous Hero
Work at Magic Dimmension
posted February 14, 2012 07:12 AM
Edited by majaczek at 08: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


Responsible
Supreme Hero
posted February 14, 2012 07:49 AM

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


Famous Hero
Work at Magic Dimmension
posted February 14, 2012 08:15 AM

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


Responsible
Supreme Hero
posted February 14, 2012 08:31 AM

You did it right now

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


Responsible
Supreme Hero
posted February 14, 2012 12:25 PM
Edited by Bersy at 12:26, 14 Feb 2012.

Phoenix Mod 3.61 [ENG] [MOD]

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


Famous Hero
Work at Magic Dimmension
posted February 14, 2012 12: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


Honorable
Undefeatable Hero
posted February 15, 2012 05:30 AM
Edited by Salamandre at 05: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.
____________

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


Responsible
Supreme Hero
posted February 15, 2012 06:51 AM

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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
[ This thread is 106 pages long: 1 2 3 4 5 (6) 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 ] < Prev Thread . . . Next Thread >
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.3138 seconds