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 


Always decimal PID's

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 373

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

PostPosted: Mon Nov 18, 2019 3:12 am    Post subject: Always decimal PID's Reply with quote

Put this in your CE autorun folder and the processid's will always show as decimal when CE starts
Code:

z=registerFormAddNotification(function(s)
  --watches for the ProcessWindow form
  if s.ClassName=='TProcessWindow' then
    s.registerCreateCallback(function(s2)
      s.miConvertPIDToDecimal.Checked=true
    end)
  end
end)

_________________
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
Aylin
Master Cheater
Reputation: 7

Joined: 16 Feb 2017
Posts: 416

PostPosted: Mon Nov 18, 2019 3:08 pm    Post subject: Reply with quote

There seems to be something wrong.

"Error:...am Files (x86)\Cheat Engine 6.8.3\autorun\Decimal.lua:4: attempt to call a nil value (field 'registerCreateCallback')"


@atom0s had written a code for this topic. Cool

_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 373

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

PostPosted: Mon Nov 18, 2019 6:17 pm    Post subject: Reply with quote

Cheat Engine 7.0 of course
_________________
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
Aylin
Master Cheater
Reputation: 7

Joined: 16 Feb 2017
Posts: 416

PostPosted: Tue Nov 19, 2019 7:12 am    Post subject: Reply with quote

I need advice again.

EDIT:
Are these relevant?

Code:
print(z)

>>091AE030

Code:
print(s)

>>0C975180



Screenshot_2.png
 Description:
 Filesize:  76.14 KB
 Viewed:  1250 Time(s)

Screenshot_2.png



_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 373

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

PostPosted: Tue Nov 19, 2019 8:37 am    Post subject: Reply with quote

Most likely the browser you used to copy/paste from added some invisible extra characters that lua doesn't parse
_________________
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
Aylin
Master Cheater
Reputation: 7

Joined: 16 Feb 2017
Posts: 416

PostPosted: Tue Nov 19, 2019 9:08 am    Post subject: Reply with quote

The same error when typed without copying.
An extra question: Is it normal for TProcessWindow to be red?



Screenshot_3.png
 Description:
 Filesize:  37.76 KB
 Viewed:  1241 Time(s)

Screenshot_3.png



_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 373

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

PostPosted: Tue Nov 19, 2019 12:18 pm    Post subject: Reply with quote

You're sure you're saving as a .lua file using notepad and not saving the script using a cheat table and put that in your autorun?

Try copying this file to your autorun folder instead (Delete any other lua files you may have added yourself)



decimalpid.lua
 Description:

Download
 Filename:  decimalpid.lua
 Filesize:  232 Bytes
 Downloaded:  46 Time(s)


_________________
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
Aylin
Master Cheater
Reputation: 7

Joined: 16 Feb 2017
Posts: 416

PostPosted: Tue Nov 19, 2019 6:17 pm    Post subject: Reply with quote

All instructions are OK. The result is pictured.
Windows 7/64 bit system.


I guess I should be offended.
One question: Does it do the same job as the following publication?

https://forum.cheatengine.org/viewtopic.php?t=608280



Screenshot_4.png
 Description:
 Filesize:  81.71 KB
 Viewed:  1141 Time(s)

Screenshot_4.png



_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 152

Joined: 25 Jan 2006
Posts: 7827
Location: 127.0.0.1

PostPosted: Tue Nov 19, 2019 8:08 pm    Post subject: Reply with quote

Mine was before this was really a thing. I would recommend this one over mine for sure since it's much more simplified and doesn't require 'hack-arounds' from Lua to work.

Edited the main post of my version to include a link to this instead.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Aylin
Master Cheater
Reputation: 7

Joined: 16 Feb 2017
Posts: 416

PostPosted: Tue Nov 19, 2019 9:52 pm    Post subject: Reply with quote

atom0s wrote:
Mine was before this was really a thing. I would recommend this one over mine for sure since it's much more simplified and doesn't require 'hack-arounds' from Lua to work.

Edited the main post of my version to include a link to this instead.


I don't agree with that for now.
I think different results occur on different PCs.
However, the @atom0s code was fine.
Alternatively, it seems useful.

(In addition, a few more users can declare ideas.
Perhaps, it gives a negative result on my PC.)


_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 161

Joined: 07 Nov 2008
Posts: 4314
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Nov 20, 2019 11:51 am    Post subject: Reply with quote

DB plugin just "clicks" popup menu entry, this one:


registerCreateCallback was added recently. Previous CE versions do not have it.

_________________
Back to top
View user's profile Send private message MSN Messenger
Aylin
Master Cheater
Reputation: 7

Joined: 16 Feb 2017
Posts: 416

PostPosted: Wed Nov 20, 2019 3:53 pm    Post subject: Reply with quote

now okay.
Thanks DB.
Also thanks to @mrInzPlayer for identifying this detail and clarifying the issue.



Screenshot_7.jpg
 Description:
 Filesize:  56.1 KB
 Viewed:  1079 Time(s)

Screenshot_7.jpg



_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions 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