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 


GDI Starfield

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries
View previous topic :: View next topic  
Author Message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Jun 27, 2008 11:33 pm    Post subject: GDI Starfield Reply with quote

because everyone loves starfields!

This was basically my 'LEARN SOME GDI' project, partially motivated by Wiccaan's trainer.

Some fun facts:
Originally it was using SetPixel, this ended up being hilariously slow. Using DIB's is probably quite literally ten times the speed, apparently using bitmaps will yield the benefit of some nice hardware acceleration.

I'm aware it comes up suspicious when scanned, it's because I merged sections to shave a meager 1kb off the filesize. It's safe, I promise!

No floats, dodged the CRT bullet for filesize, took this one instead. Relies on msvcrt.dll instead.

edit: updated, smaller, faster. woohoo.



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.



Last edited by hcavolsdsadgadsg on Fri Jul 04, 2008 6:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Sat Jun 28, 2008 12:40 am    Post subject: Reply with quote

Looks great Razz.

EDIT:Drag the window to the right, Leet!


Last edited by DoomsDay on Sat Jun 28, 2008 4:16 am; edited 1 time in total
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sat Jun 28, 2008 3:16 am    Post subject: Reply with quote

a starfield @ just 1kb. very nice indeed Smile.


PS: if you don't mind, can i have a look at source ? just want to see how you reduced the size.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jun 28, 2008 3:57 am    Post subject: Reply with quote

STN wrote:
a starfield @ just 1kb. very nice indeed Smile.


PS: if you don't mind, can i have a look at source ? just want to see how you reduced the size.


The filesize for the most part came from avoiding the CRT. If you need any functionality, you can link against msvcrt.lib for the most part.

I'll elaborate more if you want tomorrow, it's 5:21 in the morning, the suns coming up, and I think it's about time I go to sleep. Smile
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Jun 28, 2008 4:01 am    Post subject: Reply with quote

Haha, that's cool.
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sat Jun 28, 2008 4:28 am    Post subject: Reply with quote

Code:
A-Squared     
Found nothing
AntiVir    
Found nothing
ArcaVir    
Found nothing
Avast    
Found nothing
AVG Antivirus    
Found nothing
BitDefender    
Found nothing
ClamAV    
Found nothing
CPsecure    
Found nothing
Dr.Web    
Found nothing
F-Prot Antivirus    
Found nothing
F-Secure Anti-Virus    
Found nothing
Fortinet    
Found nothing
Ikarus    
Found nothing
Kaspersky Anti-Virus    
Found nothing
NOD32    
Found nothing
Norman Virus Control    
Found nothing
Panda Antivirus    
Found nothing
Sophos Antivirus    
Found nothing
VirusBuster    
Found nothing
VBA32    
Found nothing


File appears clean. Download at your own risk!

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Labyrnth
Moderator
Reputation: 9

Joined: 28 Nov 2006
Posts: 6285

PostPosted: Sat Jun 28, 2008 12:59 pm    Post subject: Reply with quote

slocvach Lolz Smile

check out the edited version !
Hit F5 to see the attachment:



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________

Back to top
View user's profile Send private message
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Sat Jun 28, 2008 2:46 pm    Post subject: Reply with quote

Labyrnth wrote:
slocvach Lolz Smile

check out the edited version !
Hit F5 to see the attachment:
Code:
Compare: (<)C:\Documents and Settings\...\Desktop\starfield_.c (11025 bytes)
   with: (>)C:\Documents and Settings\...\Desktop\starfield.c (11025 bytes)

221c221
<   DrawTextA(dword_401B08, "\n\rLOVE AND LOVE.\n\n\r\r YES LOlz WHAT YO OWNAGE!", 45, &Rect, 0x101u);
---
>   DrawTextA(dword_401B08, "\n\rTEXT AND SHIT.\n\n\r\r HEY GUYS WHAT IS CRACKIN", 45, &Rect, 0x101u);
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Sun Jun 29, 2008 12:02 am    Post subject: Reply with quote

It looks totally awesome! And if you didn't do it using SetPixel, how did you do it?

I always used pre-made starfields from programs like SWFText for my starfield needs.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Jun 29, 2008 2:23 am    Post subject: Reply with quote

nwongfeiying wrote:
It looks totally awesome! And if you didn't do it using SetPixel, how did you do it?

I always used pre-made starfields from programs like SWFText for my starfield needs.


When you make a DIB, it also provides you with a pointer to the bits of the bitmap.

I found a lot of info on gamedev, it's a really good source. Check out these two links, they should be exactly what you need.

http://www.gamedev.net/community/forums/topic.asp?topic_id=468490

http://www.gamedev.net/reference/articles/article817.asp
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Sun Jun 29, 2008 10:56 am    Post subject: Reply with quote

Thanks! I'll read this at work Mad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries 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