View Full Version : D3D Highlight Text Menu
Dxt-Cobra
02-08-2008, 01:37 PM
D3D Highlight Text Menu by Dxt-cobra
Again Do not post this on other sites.
ok, Well if you got text down this is a breeze.
First off we need to start up top again in D3D8dev.cpp
bool CH_Menu;
bool CH_Chams;
bool CH_Wire;////bool your hacks for on/off
int highlight[3] = {1,0,0,0}; ///this defines how many in the menu//always add +1
char chamsstring[20] = {NULL};
char wirestring[20] = {NULL};///char our strings to pass as text
Now ,On to EndScene
if (m_pFont_INFO)
{
if (CH_Menu)///do hotkey for menu if getkeypress(blahkey){CH_Menu = !CH_Menu:}
{
sprintf(chamstring, "%s", (CH_Chams ? "ON" : "OFF"));
sprintf(wirestring, " %s", (CH_Wire ? "ON" : "OFF"));////our strings here
////--------------------------- this determines if the hack is highlighted -------------//
if(highlight[1]==1)
m_pFont_INFO->DrawText(15.0f, 220.0f, txtWhite, chamsstring);
else
m_pFont_INFO->DrawText(15.0f,220.0f, txtRed, chamsstring);
if(highlight[2]==1)
m_pFont_INFO->DrawText(15.0f, 230.0f,txtWhite, wirestring);
else
m_pFont_INFO->DrawText(15.0f, 230.0f,txtRed, wirestring);
////-------------------------------------------------------------------------------------------------//
////------------------------This is how to use our menu ----------------------------------//
if(GetAsyncKeyState(VK_UP)&1)
{
for(int i=0; i < 3; i++) /////add +1 to menu here ,change the 3
{
if (highlight[i] == 1)
{
int a = i-1;
if(a < 0)
break;
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
if(GetAsyncKeyState(VK_DOWN)&1)
{
for(int i=0; i < 3; i++) //////same here change the 3 to +1 of menu
{
if (highlight[i] == 1)
{
int a = i+1;
if(a > 2) ////amount in the menu goes here ,change the 2
break;
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
////------------------------ Activate hacks on/off here ------------------------------------//
if (GetAsyncKeyState(VK_INSERT)&1))
CH_Menu = !CH_Menu;
if(highlight[1] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
CH_Chams = !CH_Chams;
if(highlight[2] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
CH_Wire = !CH_Wire;
}
}
Now you have a highlighted menu system
Wieter20
02-12-2008, 01:52 AM
damn.. this looks hardxD nice tut nd good idea for a d3d sec.
DutchHelFire
02-13-2008, 02:01 PM
I got 1 error
c:*Dokumente und Einstellungen*userDesktop*DOWNLOADS*D3D_Starterkit _v3.0b*D3D8*d3d8dev.cpp(24): error C2078: too many initializers
when i click on it
int highlight[3] = {1,0,0,0}; ///this defines how many in the menu//always add +1
DutchHelFire
02-14-2008, 11:08 AM
Wheeee some (maybe nooby and maybe in the wrong topic) errors
error1: c:Dokumente und EinstellungenuserDesktopDOWNLOADSD3D_Starterkit_v3 .0bD3D8d3d8dev.cpp(352): error C3861: 'txtWhite': identifier not found, even with argument-dependent lookup
error2: c:Dokumente und EinstellungenuserDesktopDOWNLOADSD3D_Starterkit_v3 .0bD3D8d3d8dev.cpp(347): error C2065: 'txtWhite' : undeclared identifier
error2: c:Dokumente und EinstellungenuserDesktopDOWNLOADSD3D_Starterkit_v3 .0bD3D8d3d8dev.cpp(23): error C2078: too many initializers
when i klicked on them
error1: int highlight[3] = {1,0,0,0};
error2: m_pFont_INFO->DrawText(15.0f, 220.0f, txtWhite, chamsstring);
EDIT
also add
const D3DCOLOR txtWhite = D3DCOLOR_ARGB(0, 255, 255, 255); for white (one error to go!)
-----------------
ooops I posted it in the wrong topic
i solved all errors jut one left
c:Dokumente und EinstellungenuserDesktopDOWNLOADSD3D_Starterkit_v3 .0bD3D8d3d8int.cpp(88): error C2259: 'hkIDirect3DDevice8' : cannot instantiate abstract class
this is where the erorr comes from:
HRESULT APIENTRY hkIDirect3D8::CreateDevice(UINT Adapter,D3DDEVTYPE DeviceType,HWND hFocusWindow,DWORD BehaviorFlags,D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DDevice8** ppReturnedDeviceInterface)
{
HRESULT hRet = m_pD3Dint->CreateDevice(Adapter, DeviceType, hFocusWindow, BehaviorFlags, pPresentationParameters, ppReturnedDeviceInterface);
if( SUCCEEDED(hRet) )
{
hkIDirect3DDevice8 *ret = new hkIDirect3DDevice8(ppReturnedDeviceInterface, pPresentationParameters, this);
add_log("Hooked Direct3D8 device: 0x%x -> 0x%x", ret->m_pD3Ddev, ret);
}
return hRet;
}
loller90
03-27-2008, 08:23 AM
d:\downloads\d3d_starterkit_v3.0b\d3d8\old_workspa ce\d3d8dev.cpp(7) : error C2078: too many initializers
d:\downloads\d3d_starterkit_v3.0b\d3d8\old_workspa ce\d3d8dev.cpp(9) : error C2065: 'NULL' : undeclared identifier
d:\downloads\d3d_starterkit_v3.0b\d3d8\old_workspa ce\d3d8.h(7) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
teddybear
03-29-2008, 07:57 AM
Where can i get a d3d starterkit?
loller90
04-07-2008, 07:05 AM
Hmm i've done it all but normal form pops up, what i need to do?
zarut
04-07-2008, 09:33 AM
Hmm..
Now this gives me 24 errors crying about missing objects it did work fine earlier but now i cant even build it ive tried whit plain d3d starterkit and so on so i think its problem in my sdk files. i do have sdk summer 2004 but doesnt seem work anymore ,_ ,
Wrhackadmin
04-10-2008, 09:39 AM
Fixed Ty To All
you defined : char chamsstring[20] = {NULL};
but added this into the menu..
sprintf(chamstring,......
you forgott a "S" chamsstring
idk the others, don't do Copy/paste you've just copy/pasted cobra's source and said: look errors, fix it please..
you also forgott the hotkey for the menu
if getkeypress(blahkey){CH_Menu = !CH_Menu:}
...
zarut
04-10-2008, 04:21 PM
Hmm, now i need some small game where this would work ive tried in few atm but since i dont have warrock i cant go try it in there but it didnt work in hitman blood money or lierox(not even 3d game, lol) anyway some small just like 100~mbs whitout any hack protections would be nice ;)
virus7799
04-11-2008, 06:12 AM
Hmm, now i need some small game where this would work ive tried in few atm but since i dont have warrock i cant go try it in there but it didnt work in hitman blood money or lierox(not even 3d game, lol) anyway some small just like 100~mbs whitout any hack protections would be nice ;)
Remember, most games now are DirectX9 so this would'nt work on them. The menu is meant only for DirectX8 games e.g. WarRock.
Wolfe
04-16-2008, 06:44 PM
NVM I got it
Aprill27
05-14-2008, 11:00 AM
i geep getting 6 errors :confused:
Deleting intermediate files and output files for project 'TatniumD3D - Win32 Debug'.
--------------------Configuration: TatniumD3D - Win32 Debug--------------------
Compiling...
d3d8dev.cpp
c:\documents and settings\mihkel\desktop\d3d_starterkit_v3_1_.0b\d3 d_starterkit_v3.0b\d3d8\d3d8dev.cpp(295) : error C2065: 'm_pFont_INFO' : undeclared identifier
c:\documents and settings\mihkel\desktop\d3d_starterkit_v3_1_.0b\d3 d_starterkit_v3.0b\d3d8\d3d8dev.cpp(299) : error C2065: 'chamstring' : undeclared identifier
c:\documents and settings\mihkel\desktop\d3d_starterkit_v3_1_.0b\d3 d_starterkit_v3.0b\d3d8\d3d8dev.cpp(303) : error C2227: left of '->DrawTextA' must point to class/struct/union
c:\documents and settings\mihkel\desktop\d3d_starterkit_v3_1_.0b\d3 d_starterkit_v3.0b\d3d8\d3d8dev.cpp(305) : error C2227: left of '->DrawTextA' must point to class/struct/union
c:\documents and settings\mihkel\desktop\d3d_starterkit_v3_1_.0b\d3 d_starterkit_v3.0b\d3d8\d3d8dev.cpp(308) : error C2227: left of '->DrawTextA' must point to class/struct/union
c:\documents and settings\mihkel\desktop\d3d_starterkit_v3_1_.0b\d3 d_starterkit_v3.0b\d3d8\d3d8dev.cpp(310) : error C2227: left of '->DrawTextA' must point to class/struct/union
d3d8int.cpp
d3d8tex.cpp
d3d8.cpp
main.cpp
Error executing cl.exe.
TatniumD3D.dll - 6 error(s), 0 warning(s)
sources
1:if (m_pFont_INFO)
2:sprintf(chamstring, "%s", (CH_Chams ? "ON" : "OFF"));
3:sprintf(wirestring, " %s", (CH_Wire ? "ON" : "OFF"));
4:m_pFont_INFO->DrawText(15.0f,220.0f, txtRed, chamsstring);
5: m_pFont_INFO->DrawText(15.0f, 230.0f,txtWhite, wirestring);
6:m_pFont_INFO->DrawText(15.0f, 230.0f,txtRed, wirestring);
Bigxxx
05-14-2008, 11:03 AM
this too goes under includes:
CD3DFont* m_pFont_new = NULL;//one for menu
CD3DFont* m_pFont_INFO = NULL;////one for other text (such as a header)
and this under bools:
int highlight[11] = {1,0,0,0}; ///this defines how many in the menu//always add +1
char chamsstring[20] = {NULL};
i geep getting 6 errors :confused:
Deleting intermediate files and output files for project 'TatniumD3D - Win32 Debug'.
--------------------Configuration: TatniumD3D - Win32 Debug--------------------
Compiling...
d3d8dev.cpp
c:documents and settingsmihkeldesktopd3d_starterkit_v3_1_.0bd3d_st arterkit_v3.0bd3d8d3d8dev.cpp(295) : error C2065: 'm_pFont_INFO' : undeclared identifier
c:documents and settingsmihkeldesktopd3d_starterkit_v3_1_.0bd3d_st arterkit_v3.0bd3d8d3d8dev.cpp(299) : error C2065: 'chamstring' : undeclared identifier
c:documents and settingsmihkeldesktopd3d_starterkit_v3_1_.0bd3d_st arterkit_v3.0bd3d8d3d8dev.cpp(303) : error C2227: left of '->DrawTextA' must point to class/struct/union
c:documents and settingsmihkeldesktopd3d_starterkit_v3_1_.0bd3d_st arterkit_v3.0bd3d8d3d8dev.cpp(305) : error C2227: left of '->DrawTextA' must point to class/struct/union
c:documents and settingsmihkeldesktopd3d_starterkit_v3_1_.0bd3d_st arterkit_v3.0bd3d8d3d8dev.cpp(308) : error C2227: left of '->DrawTextA' must point to class/struct/union
c:documents and settingsmihkeldesktopd3d_starterkit_v3_1_.0bd3d_st arterkit_v3.0bd3d8d3d8dev.cpp(310) : error C2227: left of '->DrawTextA' must point to class/struct/union
d3d8int.cpp
d3d8tex.cpp
d3d8.cpp
main.cpp
Error executing cl.exe.
TatniumD3D.dll - 6 error(s), 0 warning(s)
sources
1:if (m_pFont_INFO)
2:sprintf(chamstring, "%s", (CH_Chams ? "ON" : "OFF"));
3:sprintf(wirestring, " %s", (CH_Wire ? "ON" : "OFF"));
4:m_pFont_INFO->DrawText(15.0f,220.0f, txtRed, chamsstring);
5: m_pFont_INFO->DrawText(15.0f, 230.0f,txtWhite, wirestring);
6:m_pFont_INFO->DrawText(15.0f, 230.0f,txtRed, wirestring);
Fixed it again :)
Loller0
06-13-2008, 12:41 PM
Im not sure is this right topic S: im little noobish but anyway, i keep ketting 2 errors
Deleting intermediate files and output files for project 'Lolleros VIPPI - Win32 Debug'.
--------------------Configuration: Lolleros VIPPI - Win32 Debug--------------------
Compiling...
d3d8dev.cpp
c:\program files\microsoft visual studio\myprojects\lolleros vippi\d3dfont.h(11) : fatal error C1083: Cannot open include file: 'D3D8.h': No such file or directory
d3dfont.cpp
c:\program files\microsoft visual studio\myprojects\lolleros vippi\d3dfont.cpp(11) : fatal error C1083: Cannot open include file: 'D3D8.h': No such file or directory
Error executing cl.exe.
Lolleros VIPPI.dll - 2 error(s), 0 warning(s)
ToRaH
06-15-2008, 04:32 AM
can i see an example of this? xD
ppl2pass
06-19-2008, 10:23 AM
i have one error:
c:\documents and settings\desymondo\desktop\d3d_starterkit_v3_1_.0b \d3d_starterkit_v3.0b\d3d8\old_workspace\d3d8dev.c pp(393) : error C2059: syntax error : ')'
the source is: highlighted is error
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
////------------------------ Activate hacks on/off here ------------------------------------//
if (GetAsyncKeyState(VK_INSERT)&1))
CH_Menu = !CH_Menu;
if(highlight[1] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
Chams = !Chams;
if(highlight[2] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
wallhack = !wallhack;
}
}
man2fight
06-19-2008, 12:57 PM
this
if (GetAsyncKeyState(VK_INSERT)&1))
CH_Menu = !CH_Menu;
should be like this
if (GetAsyncKeyState(VK_INSERT)&1)
CH_Menu = !CH_Menu;
randompersonmatt
08-13-2008, 06:44 AM
not to sound rude or anything, but i cant figure out why anyone would make such a complicated menusystem like this. Just a normal integer would suffice, allowing easy mouse control and basically making it all alot easier to follow, i mean, surely this is just confusing people who want to learn more than helping them
if(GetAsyncKeyState(VK_UP)&1)
{
for(int i=0; i < 3; i++) /////add +1 to menu here ,change the 3
{
if (highlight[i] == 1)
{
int a = i-1;
if(a < 0)
break;
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
i cant see any way this will make the menu better with all of this code....
why?
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.