Page 2 of 3

Re: Druidstone: The Secret of the Menhir Forest

Posted: Fri May 17, 2019 3:29 pm
by Marc
Update to the values: funny thing. Greenhouse was right, it's not encrypted. Have not been able for my life to find the actual hitpoints as double, had something screwed up. So I tried a 4-byte-scan and found something.

As a matter of fact: yes, we could simply use a search for "double" to find our health. But, at least for me, this does not always work, using for the last 4 Bytes of the double works better.

Anyway: embarassing not to have the found values checked for being a double and starting 4 bytes earlier.

Code: Select all

0  = 0 (who would have thought that)
1  = 1072693248 (or 1.875   as float)
----------------------------------------------------------
2  = 1073741824 (or 2.000   as float = previous + 0.125)
3  = 1074266112 (or 2,125   as float = previous + 0.125)
4  = 1074790400 (or 2.25    as float = previous + 0.125)
----------------------------------------------------------
5  = 1075052544 (or 2.3125  as float = previous + 0.0625)
6  = 1075314688 (or 2.375   as float = previous + 0.0625)
7  = 1075576832 (or 2.4375  as float = previous + 0.0625)
8  = 1075838976 (or 2.5     as float = previous + 0.0625)
----------------------------------------------------------
9  = 1075970048 (or 2.53125 as float = previous + 0.03125)
10 = 1076101120 (or 2.5625  as float = previous + 0.03125)
11 = 1076232192 (or 2.59375 as float = previous + 0.03125)
And yes, gold and experience (at least during missions) are stored as "double", too. Both are numbers without fractions.
The crystals (at least between missions) are stored as double, too.
You'll find the gold value twice, one is the real value, the other one is climbing up to the real value.
Had no luck with differencing between party members and enemies yet...

Accordings to the license.txt, they are using LUAJit. Since I never had any luck with Games using LUA (Victor Vran, Gauntlet) this looks like a job for someone else ;)

have fun,
Marc

Re: Druidstone: The Secret of the Menhir Forest

Posted: Fri May 17, 2019 10:11 pm
by jesjames79
Yeah I am not having good luck with this one. Seems like it's on the fly.

Re: Druidstone: The Secret of the Menhir Forest

Posted: Sun May 19, 2019 5:13 am
by gvargas
Anyone found action points or movement? Thanks!

EDIT: Never mind, I also found them as double... :P

Re: Druidstone: The Secret of the Menhir Forest

Posted: Sun May 19, 2019 8:18 am
by Marc
Hiho,

Negaton from the Cheat the Game Discord helped me out here with a script for v1.0.14. (hehe, okay, same results in 1.0.15, 1.0.16, 1.0.17 and 1.0.18)

Fiddled around with it a little. Differencing between friends and enemies is not very stable currently :(

Anyway, since we always have the possibility to start the fight, the enemies just don't get to do anything ^^

Suggestions (especially to differ between "us" and "them") welcome.

have fun
Marc

Re: Druidstone: The Secret of the Menhir Forest

Posted: Sun May 19, 2019 1:56 pm
by krmit
@Marc
Thanks for the table.
Tested at 1.15 (patch1), 7 battles. Battle options works... well, mostly. Not always correctly detects allies/enemies. In fact, it "lost" allies in 2-3 turns (ap/mp/hearts reverts too normal values). And I saw just 1 enemy affected (black bull-like creature).
Battle options will affect archer-woman most likely (she may keep movement point boost even after 2-3 turns), main hero can (or cannot) receive mp boost, little mage never receive boosted mp. Action points affects 2-3 turns. Shinobi is not tested (just unlock her).
Hope you will manage to improve the script. But thanks anyway.

Re: Druidstone: The Secret of the Menhir Forest

Posted: Mon May 20, 2019 5:07 pm
by Marc
Hi all,

fiddled around with it. New checks seem to work better. But not as good as I'd like.
Anyway, give it a try. :ph34r:

have fun,
Marc

Re: Druidstone: The Secret of the Menhir Forest

Posted: Tue May 21, 2019 3:08 am
by jesjames79
Marc wrote:
Mon May 20, 2019 5:07 pm
Hi all,

fiddled around with it. New checks seem to work better. But not as good as I'd like.
Anyway, give it a try. :ph34r:

have fun,
Marc
Works pretty decent. On the mission with the extra player (druid) trying to make it to the exit, some reason the dude wouldn't move at all no matter how many end turns I did. Also most of the time you can hit and do damage but some of the enemies are invincible until you either try a different hero or a different skill on them. Nice job it is a great work in progress!!!

Re: Druidstone: The Secret of the Menhir Forest

Posted: Tue May 21, 2019 2:19 pm
by Marc
Thank you :)

Does not move at all? hehe, then he is caught by the default value of "stand still" in the script, hehe.

Re: Druidstone: The Secret of the Menhir Forest

Posted: Tue May 21, 2019 2:42 pm
by Cake-san
Here I revamp your table.

Let me know if it's unstable for anyone.

Edit
PS : If you want npc to behave normally, you have to comment out a few lines in the script
eg:
mov dword ptr [r10+4],0 // nail them on the floor except....
mov dword ptr [r10+4],0 // no action points for anyone, except...
mov dword ptr[r10+4],3FF00000 // set all hp to 1

Re: Druidstone: The Secret of the Menhir Forest

Posted: Tue May 21, 2019 3:26 pm
by Marc
Works for me, excellent! That's what we were looking for :)

Re: Druidstone: The Secret of the Menhir Forest

Posted: Tue May 21, 2019 5:23 pm
by jesjames79
Cake-san wrote:
Tue May 21, 2019 2:42 pm
Here I revamp your table.

Let me know if it's unstable for anyone.

Edit
PS : If you want npc to behave normally, you have to comment out a few lines in the script
eg:
mov dword ptr [r10+4],0 // nail them on the floor except....
mov dword ptr [r10+4],0 // no action points for anyone, except...
mov dword ptr[r10+4],3FF00000 // set all hp to 1
Works great! Trying to do your suggestion on making Fernos move as an NPC. Where do I place it in the script? After "nail them on the floor exept…."? Do I just insert his name? I am novice at best with script unless I know for sure the areas to mess with as in weapons and items,etc. Thanks!

Re: Druidstone: The Secret of the Menhir Forest

Posted: Tue May 21, 2019 10:45 pm
by Cake-san
jesjames79 wrote:
Tue May 21, 2019 5:23 pm
Works great! Trying to do your suggestion on making Fernos move as an NPC. Where do I place it in the script? After "nail them on the floor exept…."? Do I just insert his name? I am novice at best with script unless I know for sure the areas to mess with as in weapons and items,etc. Thanks!

Re: Druidstone: The Secret of the Menhir Forest

Posted: Wed May 22, 2019 1:39 am
by jesjames79
Cake-san wrote:
Tue May 21, 2019 10:45 pm
jesjames79 wrote:
Tue May 21, 2019 5:23 pm
Works great! Trying to do your suggestion on making Fernos move as an NPC. Where do I place it in the script? After "nail them on the floor exept…."? Do I just insert his name? I am novice at best with script unless I know for sure the areas to mess with as in weapons and items,etc. Thanks!
That is helpful I suppose I should use this in front of the movement script am I not right? Also Cake-san thank you!!!!

Re: Druidstone: The Secret of the Menhir Forest

Posted: Wed May 22, 2019 9:31 pm
by botisho
sorry but where i can find the script? i look everywhere in the folder and there is no file.. =D

Re: Druidstone: The Secret of the Menhir Forest

Posted: Thu May 23, 2019 2:02 pm
by Marc
download his cheat table.
open the cheat table in cheat engine
attach cheat engine to the game
make a double-click on his script in the cheat table.