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 


[BUG?] 0x80000001 / STATUS_GUARD_PAGE_VIOLATION in target ps

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
grasmanek94
Master Cheater
Reputation: 0

Joined: 03 Jun 2008
Posts: 283
Location: The Netherlands

PostPosted: Mon Jul 09, 2018 6:12 am    Post subject: [BUG?] 0x80000001 / STATUS_GUARD_PAGE_VIOLATION in target ps Reply with quote

Also 0xc0000005 often in target process. Even when suspending all threads with process explorer and then attaching cheat engine.

Code:

Faulting application name: barony.exe, version: 1.0.0.0, time stamp: 0x5ad49928
Faulting module name: barony.exe, version: 1.0.0.0, time stamp: 0x5ad49928
Exception code: 0xc0000005
Fault offset: 0x00076e40
Faulting process id: 0xac0
Faulting application start time: 0x01d4177ab5a800de
Faulting application path: C:\Games\_inreview\Barony - Cursed Edition\barony.exe
Faulting module path: C:\Games\_inreview\Barony - Cursed Edition\barony.exe
Report Id: 1cf2616c-e0c0-4d41-add6-97c5735cc211
Faulting package full name:
Faulting package-relative application ID:


Code:

Faulting application name: barony.exe, version: 1.0.0.0, time stamp: 0x5ad49928
Faulting module name: barony.exe, version: 1.0.0.0, time stamp: 0x5ad49928
Exception code: 0x80000001
Fault offset: 0x0005d723
Faulting process id: 0x2f34
Faulting application start time: 0x01d4177a66d32ed1
Faulting application path: C:\Games\_inreview\Barony - Cursed Edition\barony.exe
Faulting module path: C:\Games\_inreview\Barony - Cursed Edition\barony.exe
Report Id: b5e70fb9-2639-4eac-8174-e562eed571f6
Faulting package full name:
Faulting package-relative application ID:


This only happens when trying to attach Cheat Engine. Only thing the table has is simple address and pointer entries, no scripts / lua / code / aob or whatever. Happens soon after successful attachment. Only happened after I added addresses / structures for Spells. Character table works fine without crashes.

Game: Barony - Cursed Edition
Table: Can upload if needed..
Settings: https://imgur.com/a/hSUvdrS
Version: CE 5.7

Any known fixes to such issues?

This seems to occur when reading a few "invalid addresses" from the target process memory space. After finding them and removing from the table the game works fine.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25860
Location: The netherlands

PostPosted: Mon Jul 09, 2018 6:50 am    Post subject: Reply with quote

are mono functions enabled ?
do you use any plugins or lua extentions ?

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
grasmanek94
Master Cheater
Reputation: 0

Joined: 03 Jun 2008
Posts: 283
Location: The Netherlands

PostPosted: Mon Jul 09, 2018 10:36 am    Post subject: Reply with quote

Mono menu is not shown, it's a C++ / OpenGL game.
No plugins, no lua extensions.
CE is as vanilla as can be.

For example something like this:

Code:

<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>671</ID>
      <Description>"Inventory_First"</Description>
      <LastState Value="16072950" RealAddress="146AA7A8"/>
      <ShowAsHex>1</ShowAsHex>
      <VariableType>4 Bytes</VariableType>
      <Address>barony.exe+1568D8</Address>
      <Offsets>
        <Offset>340</Offset>
      </Offsets>
      <CheatEntries>
        <CheatEntry>
          <ID>705</ID>
          <Description>"Inv"</Description>
          <Options moHideChildren="1"/>
          <LastState Value="" Activated="1" RealAddress="16072950"/>
          <ShowAsHex>1</ShowAsHex>
          <VariableType>Array of byte</VariableType>
          <ByteLength>0</ByteLength>
          <Address>+0</Address>
          <Offsets>
            <Offset>+0</Offset>
          </Offsets>
          <CheatEntries>
            <CheatEntry>
              <ID>706</ID>
              <Description>"Next"</Description>
              <LastState Value="16072A70" RealAddress="16072950"/>
              <ShowAsHex>1</ShowAsHex>
              <VariableType>4 Bytes</VariableType>
              <Address>+0</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>707</ID>
              <Description>"Element"</Description>
              <LastState Value="16080428" RealAddress="1607295C"/>
              <ShowAsHex>1</ShowAsHex>
              <VariableType>4 Bytes</VariableType>
              <Address>+C</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>



does not crash, but if you keep nesting into the "next" pointer it crashes eventually, I think after 2x or 3x nesting:

Code:

<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>671</ID>
      <Description>"Inventory_First"</Description>
      <LastState Value="16072950" RealAddress="146AA7A8"/>
      <ShowAsHex>1</ShowAsHex>
      <VariableType>4 Bytes</VariableType>
      <Address>barony.exe+1568D8</Address>
      <Offsets>
        <Offset>340</Offset>
      </Offsets>
      <CheatEntries>
        <CheatEntry>
          <ID>705</ID>
          <Description>"Inv"</Description>
          <Options moHideChildren="1"/>
          <LastState Value="" Activated="1" RealAddress="16072950"/>
          <ShowAsHex>1</ShowAsHex>
          <VariableType>Array of byte</VariableType>
          <ByteLength>0</ByteLength>
          <Address>+0</Address>
          <Offsets>
            <Offset>+0</Offset>
          </Offsets>
          <CheatEntries>
            <CheatEntry>
              <ID>706</ID>
              <Description>"Next"</Description>
              <LastState Value="16072A70" RealAddress="16072950"/>
              <ShowAsHex>1</ShowAsHex>
              <VariableType>4 Bytes</VariableType>
              <Address>+0</Address>
              <CheatEntries>
                <CheatEntry>
                  <ID>708</ID>
                  <Description>"Inv"</Description>
                  <Options moHideChildren="1"/>
                  <LastState Value="" Activated="1" RealAddress="16072A70"/>
                  <ShowAsHex>1</ShowAsHex>
                  <VariableType>Array of byte</VariableType>
                  <ByteLength>0</ByteLength>
                  <Address>+0</Address>
                  <Offsets>
                    <Offset>+0</Offset>
                  </Offsets>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>709</ID>
                      <Description>"Next"</Description>
                      <LastState Value="16072B10" RealAddress="16072A70"/>
                      <ShowAsHex>1</ShowAsHex>
                      <VariableType>4 Bytes</VariableType>
                      <Address>+0</Address>
                      <CheatEntries>
                        <CheatEntry>
                          <ID>711</ID>
                          <Description>"Inv"</Description>
                          <Options moHideChildren="1"/>
                          <LastState Value="" Activated="1" RealAddress="16072B10"/>
                          <ShowAsHex>1</ShowAsHex>
                          <VariableType>Array of byte</VariableType>
                          <ByteLength>0</ByteLength>
                          <Address>+0</Address>
                          <Offsets>
                            <Offset>+0</Offset>
                          </Offsets>
                          <CheatEntries>
                            <CheatEntry>
                              <ID>712</ID>
                              <Description>"Next"</Description>
                              <LastState Value="16072B30" RealAddress="16072B10"/>
                              <ShowAsHex>1</ShowAsHex>
                              <VariableType>4 Bytes</VariableType>
                              <Address>+0</Address>
                            </CheatEntry>
                            <CheatEntry>
                              <ID>713</ID>
                              <Description>"Element"</Description>
                              <LastState Value="16080B18" RealAddress="16072B1C"/>
                              <ShowAsHex>1</ShowAsHex>
                              <VariableType>4 Bytes</VariableType>
                              <Address>+C</Address>
                            </CheatEntry>
                          </CheatEntries>
                        </CheatEntry>
                      </CheatEntries>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>710</ID>
                      <Description>"Element"</Description>
                      <LastState Value="160808A8" RealAddress="16072A7C"/>
                      <ShowAsHex>1</ShowAsHex>
                      <VariableType>4 Bytes</VariableType>
                      <Address>+C</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
              </CheatEntries>
            </CheatEntry>
            <CheatEntry>
              <ID>707</ID>
              <Description>"Element"</Description>
              <LastState Value="16080428" RealAddress="1607295C"/>
              <ShowAsHex>1</ShowAsHex>
              <VariableType>4 Bytes</VariableType>
              <Address>+C</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>


In game the code looks like:

Code:

struct list_t;
struct node_t;

struct node_t
{
   node_t* next;
   node_t* prev;
   list_t* list; // always points to parent list
   void* element;
   // ...
   size_t size;
};

struct list_t
{
   node_t* first;
   node_t* last;
};

struct player
{
    // ...
    list_t inventory;
    // ...
};

player players[4];
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