Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Need help with Crystal Story - Hero & evil Witch

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MrCatford
How do I cheat?
Reputation: 0

Joined: 01 May 2024
Posts: 1

PostPosted: Wed May 01, 2024 8:52 am    Post subject: Need help with Crystal Story - Hero & evil Witch Reply with quote

So the game plan is to get the script (using Unity) to read a battle and give me "x" amount of gold. Which I managed to get ChatGPT to help me write a good script to do so.

using System;

Code:
namespace Esc.Rpg
{
   // Token: 0x0200021C RID: 540
   public class InventoryData
   {
      // Token: 0x06000C76 RID: 3190
      public InventoryData()
      {
         this.gold = 0f;
      }

      // Token: 0x06000C77 RID: 3191
      public void AddGold()
      {
         this.gold += 15000f;
      }

      // Token: 0x04000BB6 RID: 2998
      private float gold;
   }
}


But the problem is that in Esc.Rpg.dll when I tried to finish compiling this code I get this error:

Writing F:\##SAVE D DRIVE\Program Files\Steam\steamapps\common\Crystal Story The Hero and the Evil Witch\Crystal Story_Data\Managed\Esc.Rpg.dll...

Error calculating max stack value. If the method's obfuscated, set CilBody.KeepOldMaxStack or MetadataOptions.Flags (KeepOldMaxStack, global option) to ignore this error. Otherwise fix your generated CIL code so it conforms to the ECMA standard.

Instruction operand is null

All files written to disk.


So what I'm guessing that I need someone's help using CilBody.KeepOldMaxStack code or MetadataOptions.Flags code command to override max stack issue without calculating a new one from the beginning.

Something like that but I'm sure someone will understand when they try to run and compile it in dnySPY.

I know it sounds tricky but I'm someone has knowledage about this code that was written in Unity.

Please help me when you have time, and thanks for reading.

If you need the files and / or able to help, just DM me and I'll send you the link.


Again thank you. Would definitely like to play more of this over the weekend. (I hope anyway.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites