MrCatford How do I cheat?
Reputation: 0
Joined: 01 May 2024 Posts: 1
|
Posted: Wed May 01, 2024 8:52 am Post subject: Need help with Crystal Story - Hero & evil Witch |
|
|
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.)
|
|