|
|
OxFEA

  
   
Promising
Famous Hero
feanor on DF2.ru
|
posted April 05, 2013 08:59 PM |
|
|
Use IDA + HexRays + idb from WoG-team for reversing.
|
|
Caagr98

 

Hired Hero
|
posted April 06, 2013 03:35 PM |
|
|
Is there any way to simulate casting Visions without giving any message? I've tried
!!HE-1:I?y-1;
!!OW:S1/2; //Cast Visions
!!HE-1:Iy-1;
but that opens a message box that says "Right click on any enemy to view them".
|
|
Salamandre

     
       
Admirable
Omnipresent Hero
Wog refugee
|
posted April 06, 2013 03:52 PM |
|
|
Work around, I think. Play sound, set flag, then CM0 on monsters, display number and level of aggression.
|
|
Caagr98

 

Hired Hero
|
posted April 06, 2013 04:49 PM |
|
|
Is there any way to instantly close the message after it's opened, then?
|
|
OxFEA

  
   
Promising
Famous Hero
feanor on DF2.ru
|
posted April 06, 2013 04:53 PM |
|
|
!!UN:C6919480/4/?y10;
!!VRy11:S<hero_id> *1170 +297 +136736 +y10;
!!UN:Cy11/4/2; ..0,1,2 - visions level
|
|
Caagr98

 

Hired Hero
|
posted April 06, 2013 05:06 PM |
|
|
Quote: !!UN:C6919480/4/?y10;
!!VRy11:S<hero_id> *1170 +297 +136736 +y10;
!!UN:Cy11/4/2; ..0,1,2 - visions level
Okay... UN:C is powerful, but unreadable, isn't it? Also, for <hero_id>, -1 is not current, right? Crash seems more likely.
|
|
Salamandre

     
       
Admirable
Omnipresent Hero
Wog refugee
|
posted April 06, 2013 05:09 PM |
|
|
Works perfectly here, thanks OxFea:
!?CM0;
!!OW:A-1/?y1;
!!UN:C6919480/4/?y10;
!!VRy11:Sy1 *1170 +297 +136736 +y10;
!!UN:Cy11/4/2; ..0,1,2 - visions level
____________
Era II mods and utilities
|
|
Caagr98

 

Hired Hero
|
posted April 06, 2013 05:13 PM |
|
|
Might be good to add a !!FU&<hero_id>=-1:E; just to be safe, but yeah, it works perfect. Also, hypnotized troops seems to be able to retaliate even though the description says they don't. I haven't managed to find some way to fix it, but I guess there is some?
|
|
OxFEA

  
   
Promising
Famous Hero
feanor on DF2.ru
|
posted April 06, 2013 05:26 PM |
|
|
Quote: UN:C is powerful, but unreadable, isn't it?
ERM is unreadable at all
|
|
Caagr98

 

Hired Hero
|
posted April 06, 2013 05:32 PM |
|
|
Quote:
Quote: UN:C is powerful, but unreadable, isn't it?
ERM is unreadable at all 
Yeah, but most of the commands at least make some sense... For example, !!DB:L1; (I just made that up, it stands for DeBug:Location) would be a lot easier to read than !!UN:C6916632/4/9; (makes the right-click hint of a map square contain the coordinates). Though I guess that's not relevant.
|
|
Caagr98

 

Hired Hero
|
posted April 06, 2013 06:10 PM |
|
|
How do I remove a spell effect from a creature stack? And what's the difference between BM:G and BM:M?
|
|
majaczek

 
    
Supreme Hero
Work at Magic Dimmension
|
posted April 06, 2013 07:56 PM |
|
|
where i can get this idb? or any debbuging info with names of functions? it would be a lot easier playing wit olly if I would have that... (olly supports borland debugger info, and I hope it's the one, else somebody may convert it with IDA pro ).
|
|
OxFEA

  
   
Promising
Famous Hero
feanor on DF2.ru
|
posted April 07, 2013 12:26 AM |
|
|
Decompilated:
https://dl.dropbox.com/u/61759222/HoMM/Heroes3f.c
|
|
Caagr98

 

Hired Hero
|
posted April 07, 2013 09:25 AM |
|
Edited by Caagr98 at 15:46, 07 Apr 2013.
|
Is that vanilla, WoG, Era, or something else?
EDIT: I can't find the strings "wog", "npc" (commander), "erm", or "3.5" (WoG is version 3.58/3.59), so I guess it's vanilla?
|
|
Caagr98

 

Hired Hero
|
posted April 07, 2013 03:49 PM |
|
|
Is there any way to make combo artefact not use any other slots than the one it is in (no locked slots)? I know that I should make sure you can't dissassemble it if there are any other artefacts in the slots, of course. (probably disable the click?)
|
|
Salamandre

     
       
Admirable
Omnipresent Hero
Wog refugee
|
posted April 07, 2013 04:00 PM |
|
|
I don't see how this could be done without work around. What I would do:
1) Create new combo in tables
2) Script it
3) When click and ask if you want to create combo, delete all artefacts and lock a slot with combo curse, then enable hint with right-click on locked slot.
Now not sure if deleting artefacts before enabling the combo does not trigger locked slot bug, hard to say without testing. Or maybe OxFea will again find some black magic, because in erm there is no such option.
____________
Era II mods and utilities
|
|
Caagr98

 

Hired Hero
|
posted April 07, 2013 06:10 PM |
|
|
Quote: Or maybe OxFea will again find some black magic, because in erm there is no such option.
So UN:C means black magic? Good to know. Hmm... Is the currently held artefact stored in any other way than the cursor? If it isn't (which I doubt), I have a method that might work... (Yes, it's an ugly workaround.) Though 4074 can probably find a better way.
|
|
Caagr98

 

Hired Hero
|
posted April 07, 2013 06:24 PM |
|
|
Some old (or maybe not) unanswered questions:
Hypnotized troops seems to be able to retaliate even though the description says they don't. I haven't managed to find some way to fix it, but I guess there is some?
How do I remove a spell effect from a creature stack? And what's the difference between BM:G and BM:M?
|
|
Salamandre

     
       
Admirable
Omnipresent Hero
Wog refugee
|
posted April 08, 2013 10:35 PM |
|
|
BM:R stores the number of retaliations, maybe you could set it to zero in BG trigger if creature has hypnotize applied. Try.
I don't know any way to remove a spell in real time other than dispel. BM:G says zero value means no applied, but does not remove the spell, or maybe does but only at start of round, test.
____________
Era II mods and utilities
|
|
Caagr98

 

Hired Hero
|
posted April 09, 2013 08:16 AM |
|
|
And how do I set a yellow square to be solid/not solid, like border gates? For nonsolid, I guess I should remove it? And is there any trigger that is called when you change active hero?
|
|
|