Source Code Cham Helper

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Hey guys just thought I'd release this little tool I whipped up last night. You type the path to the file you want and it outputs a .txt file with a const BYTE array preformatted and everything.
When you type in the name of the colour/array it adds a b to the beginning and capitalizes the first letter eg if you type in "red" it will output "bRed" just so it looks nice. Feel free to change it if you want.

For best results use a 1x1 .bmp exported from paint to keep the file size down.

Enjoy!





You don't have to use a 1x1 bmp if you want. You can use anything so go wild!
Here is a rainbow cham I made :D

 

Attachments

Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,362
78,998
2,413
Approved. :)

Thank you for sharing! :)
 

Syperus

RTFM
Meme Tier VIP
Dank Tier Donator
Oct 29, 2012
432
2,638
7
Nice. I'll check this tool out later. Thanks
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Sweet tool.

You don't need to use all those long arrays of bytes though

C++:
HRESULT D3Dhelpers::GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
    if(FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)))
        return E_FAIL;
    
    WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
	            	|(WORD)(((colour32>>20)&0xF)<<8)
	             	|(WORD)(((colour32>>12)&0xF)<<4)
                 	|(WORD)(((colour32>>4)&0xF)<<0);

    D3DLOCKED_RECT d3dlr;    
    (*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
    WORD *pDst16 = (WORD*)d3dlr.pBits;

    for(int xy=0; xy < 8*8; xy++)
        *pDst16++ = colour16;

    (*ppD3Dtex)->UnlockRect(0);

    return S_OK;
}
Credits: GD (P47R!CK, and some other iirc)

Can also use PS to generate shaders..
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Another use for it:

Little sprites. Works well once you figure out how scaling and shit works in directx.

 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods