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 


RGB variable from CE Color Dialog
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Fri Mar 29, 2019 5:20 am    Post subject: Reply with quote

Sondio wrote:
Hi Corroder,

Smile

I respect your answer and renew my apologies,
for me you are my sensei for the scripts lua, you are a true master !!!

Smile

what do you think of this other version?


p.s.

... surely it will have to be corrected!



I think it must be a good creation, but I am not able to test your script because you attach an image.png file on CE Table File. So, that will return an error because no file found when executing your script.

Besides, like @Aylin said, beware with auto mistyped when you copy paste your script from Notepad++ to Cheat Engine Lua Script. See @Aylin post before this.


Quote:
Aylin wrote: @Corroder, You started a flow Smile
People develop and follow the flow.
You need to start a different project,
We're following you, buddy.


I have my own new once.
See this topic: https://forum.cheatengine.org/viewtopic.php?p=5747403#5747403

Good luck you all..



CRDR Color Snif.jpg
 Description:
CRDR Color Sniff
 Filesize:  161.8 KB
 Viewed:  3495 Time(s)

CRDR Color Snif.jpg



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Sondio
Newbie cheater
Reputation: 1

Joined: 07 Mar 2019
Posts: 18

PostPosted: Sun Mar 31, 2019 9:43 pm    Post subject: Reply with quote

Hey there!!!

thanks Aylin, but the bulk of the work was done by Corroder Cool
I only played with the codes ..

Aylin wrote:

You should check the variables for copy paste...


I can't get it to work Sad

Aylin wrote:

...And a suggestion: Not the code outputs, "LABEL",
Set to "EDIT".


nice suggestion Very Happy


Corroder wrote:
I think it must be a good creation, but I am not able to test your script because you attach an image.png file on CE Table File. So, that will return an error because no file found when executing your script.


Thanks Sensei!!

yes I know, I try to explain:
when I loaded the message on the forum (copy and paste of the CT file) it was truncated .. then I attached the image.png file (I realized only after loading everything on the forum, that the file name was wrong xD sorry ) however I modified the old post by inserting the link to the file.CT

I saw your link to the new script, and tried to improve the script I posted, following in your footsteps ..
i can't send you pm or post on forum urls or files but..


link -> mega.nz/#!MI823SwZ!9hTWwjCzsVsmdwV4VUiEJV2N0iPVX8kzZv9DLzYczp4 <- BASED ON CORRODER SCRIPTS

add h-t-t-p-s:// at start of the link without '-'

Very Happy Very Happy Very Happy

I hope it is correct and appreciated

now are 05.43 am, I'm going to put myself on charge Laughing

_________________
DaSpamer
I am the leader of the lazy and with the books I made filters !!!Cool
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon Apr 01, 2019 12:08 am    Post subject: Reply with quote

For who want ger @Sondio CT file above :

https://mega.nz/#!MI823SwZ!9hTWwjCzsVsmdwV4VUiEJV2N0iPVX8kzZv9DLzYczp4

suggestion :

this part :

Code:
 img = createImage(fc)
 img.top = 20
 img.left = 20
 img.Width = 220
 img.height = 220
 img.align = alNone
 img.enable = true
 img.visible = true
 img.picture.loadFromStream(findTableFile("image.png").stream)


add :

Code:
img.stretch = true
img.cursor = -21


However, it's nice work

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1551

PostPosted: Mon Apr 01, 2019 9:07 am    Post subject: Reply with quote

@Sondio,
Good job. But again a suggestion: Idea
To get only the color code,
open a large page, it can fill the screen. Wink

@Corroder knows this and
in a small and simple scenario,
Gives all the codes.
I think it's his @Corroder may be final.

---------------------------------
@Corroder,
For another topic,
You have to start a different project.
In the previous comment, I mentioned it.
People are following your projects.
Please continue to add different features for CE. Smile

Always: We wish you continued success.
Stay happy, man. Cool

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website MSN Messenger
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Wed Apr 03, 2019 11:25 am    Post subject: Reply with quote

Here's my try of your first idea, somewhat implemented fine.
There only downside at the moment there is no gray/black (can be fixed if someone creates proper pallete image and add a bigger ring around the whole pallete with gray to black transition.

Other color methods can be implemented quite easily, as we only manipulate color pixel, setting alpha is the only trouble, here's my CT



Pallete test.changeToCT.lua
 Description:

Download
 Filename:  Pallete test.changeToCT.lua
 Filesize:  94.77 KB
 Downloaded:  401 Time(s)


_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Wed Apr 03, 2019 9:10 pm    Post subject: Reply with quote

DaSpamer wrote:
Here's my try of your first idea, somewhat implemented fine.
There only downside at the moment there is no gray/black (can be fixed if someone creates proper pallete image and add a bigger ring around the whole pallete with gray to black transition.


Good work mate!.

I try to minimize the black mouse trail when moving by change this line:

Code:
-- from
if ((x > lx + 13 or x < lx - 13) or (y > ly + 13 or y < ly - 13))

-- to
if ((x > lx + 1 or x < lx - 1) or (y > ly + 1 or y < ly - 1))


Perhaps able to improving a better method for this case.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Apr 04, 2019 9:54 am    Post subject: Reply with quote

Corroder wrote:
DaSpamer wrote:
Here's my try of your first idea, somewhat implemented fine.
There only downside at the moment there is no gray/black (can be fixed if someone creates proper pallete image and add a bigger ring around the whole pallete with gray to black transition.


Good work mate!.

I try to minimize the black mouse trail when moving by change this line:

Code:
-- from
if ((x > lx + 13 or x < lx - 13) or (y > ly + 13 or y < ly - 13))

-- to
if ((x > lx + 1 or x < lx - 1) or (y > ly + 1 or y < ly - 1))


Perhaps able to improving a better method for this case.


Solution is create picture object, load image into that, initialize image object with the picture object (copyRect/draw etc.), and then moving as usually.
Since I'm drawning on image object, somehow by accessing a Bitmap property and calling a draw method it allows us to draw and clear the image but it causes the flicker too.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Sondio
Newbie cheater
Reputation: 1

Joined: 07 Mar 2019
Posts: 18

PostPosted: Tue Apr 16, 2019 9:51 am    Post subject: Reply with quote

My lazy try :

forum.cheatengine.org/viewtopic.php?t=609767

add h-t-t-p-s:// at start of the link without '-'

_________________
DaSpamer
I am the leader of the lazy and with the books I made filters !!!Cool
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 Lua Scripting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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