You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Hugh
  • Prospect
Status: Offline
Joined: Apr 13, 201212Year Member
Posts: 628
Reputation Power: 36
Status: Offline
Joined: Apr 13, 201212Year Member
Posts: 628
Reputation Power: 36
ImTerms wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons


Can you help me make a news bar for mw3? I'll put your name in it. Its for C#


Add me on Skype : fastfazz
#12. Posted:
ImTerms
  • Junior Member
Status: Offline
Joined: Mar 08, 201311Year Member
Posts: 56
Reputation Power: 2
Status: Offline
Joined: Mar 08, 201311Year Member
Posts: 56
Reputation Power: 2
XeXLooney wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons

My code is in C# though? I know my languages. I use C# to make my own tool and that is the code I use to activate my newsbar

EDIT: Just noticed the post says C++ sorry I'm tired


Can you help me make a news bar pleasre?

EDIT: Nevermind
#13. Posted:
XeXLooney
  • New Member
Status: Offline
Joined: Apr 09, 201311Year Member
Posts: 17
Reputation Power: 0
Status: Offline
Joined: Apr 09, 201311Year Member
Posts: 17
Reputation Power: 0
ImTerms wrote
XeXLooney wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons

My code is in C# though? I know my languages. I use C# to make my own tool and that is the code I use to activate my newsbar

EDIT: Just noticed the post says C++ sorry I'm tired


Can you help me make a news bar pleasre?

EDIT: Nevermind

I hit you up with a PM anyways before you even asked
#14. Posted:
Hugh
  • Prospect
Status: Offline
Joined: Apr 13, 201212Year Member
Posts: 628
Reputation Power: 36
Status: Offline
Joined: Apr 13, 201212Year Member
Posts: 628
Reputation Power: 36
ImTerms wrote
XeXLooney wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons

My code is in C# though? I know my languages. I use C# to make my own tool and that is the code I use to activate my newsbar

EDIT: Just noticed the post says C++ sorry I'm tired


Can you help me make a news bar pleasre?


Put this as HUD ELEM




public static class HElems
{
public static uint
locString = 0x8226E020,
material = 0x8226E100,
elem = 0x8223D1E0,
xOffset = 0x08,
yOffset = 0x04,
textOffset = 0x84,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x2c,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4c,
GlowColor = 0x8C,
alignOffset = 0x30;
}
public uint createElem(int client)
{
return Jtag.Call(HElems.elem, client, 0);
}

public uint spawnElem(int client, uint elemAddress)
{
Jtag.SetMemory(elemAddress + 0xA8, ReverseBytes(BitConverter.GetBytes(client)));

return elemAddress;
}

public uint createText(string text)
{
return Jtag.Call(HElems.locString, text);
}

public uint getMaterialIndex(string material)
{
return Jtag.Call(HElems.material, material);
}

public byte[] uintBytes(uint input)
{
byte[] data = BitConverter.GetBytes(input);
Array.Reverse(data);
return data;
}

public byte[] ReverseBytes(byte[] inArray)
{
byte temp;
int highCtr = inArray.Length - 1;

for (int ctr = 0; ctr < inArray.Length / 2; ctr++)
{
temp = inArray[ctr];
inArray[ctr] = inArray[highCtr];
inArray[highCtr] = temp;
highCtr -= 1;
}
return inArray;
}

public void setIcon(uint elem, uint shader, int width, int height, float x, float y, uint align, float sort = 0, int r = 255, int g = 255, int b = 255, int a = 255)
{
Jtag.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x04 });

Jtag.SetMemory(elem + HElems.relativeOffset, uintBytes(0x05));
Jtag.SetMemory(elem + HElems.relativeOffset - 4, uintBytes(0x06));
Jtag.SetMemory(elem + HElems.shaderOffset, uintBytes(shader));
Jtag.SetMemory(elem + HElems.heightOffset, ReverseBytes(BitConverter.GetBytes(height)));
Jtag.SetMemory(elem + HElems.widthOffset, ReverseBytes(BitConverter.GetBytes(width)));
Jtag.SetMemory(elem + HElems.alignOffset, uintBytes(align));
Jtag.SetMemory(elem + HElems.colorOffset, new byte[] { BitConverter.GetBytes(r)[0], BitConverter.GetBytes(g)[0], BitConverter.GetBytes(b)[0], BitConverter.GetBytes(a)[0] });
Jtag.SetMemory(elem + HElems.textOffset + 4, ReverseBytes(BitConverter.GetBytes(sort)));
Jtag.SetMemory(elem + HElems.xOffset, ReverseBytes(BitConverter.GetBytes(x)));
Jtag.SetMemory(elem + HElems.yOffset, ReverseBytes(BitConverter.GetBytes(y)));
}

public void setText(uint elem, byte[] text, uint font, float fontScale, float x, float y, uint align, int r = 255, int g = 255, int b = 255, int a = 255)
{
Jtag.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });

Jtag.SetMemory(elem + HElems.textOffset, text);
Jtag.SetMemory(elem + HElems.relativeOffset, uintBytes(0x05));
Jtag.SetMemory(elem + HElems.relativeOffset - 4, uintBytes(0x06));
Jtag.SetMemory(elem + HElems.fontOffset, uintBytes(font));
Jtag.SetMemory(elem + HElems.alignOffset, uintBytes(align));
Jtag.SetMemory(elem + HElems.textOffset + 4, new byte[] { 0x40, 0x00 });
Jtag.SetMemory(elem + HElems.fontSizeOffset, ReverseBytes(BitConverter.GetBytes(fontScale)));
Jtag.SetMemory(elem + HElems.xOffset, ReverseBytes(BitConverter.GetBytes(x)));
Jtag.SetMemory(elem + HElems.yOffset, ReverseBytes(BitConverter.GetBytes(y)));
Jtag.SetMemory(elem + HElems.colorOffset, new byte[] { BitConverter.GetBytes(r)[0], BitConverter.GetBytes(g)[0], BitConverter.GetBytes(b)[0], BitConverter.GetBytes(a)[0] });


}

Then add the same as you would for mw2





#15. Posted:
ImTerms
  • Junior Member
Status: Offline
Joined: Mar 08, 201311Year Member
Posts: 56
Reputation Power: 2
Status: Offline
Joined: Mar 08, 201311Year Member
Posts: 56
Reputation Power: 2
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons


Can you help me make a news bar for mw3? I'll put your name in it. Its for C#
#16. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
TLH-Hugh wrote
XeXLooney wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons

My code is in C# though? I know my languages. I use C# to make my own tool and that is the code I use to activate my newsbar


I know I was talking about the original post, he was asking for C++
I wasn't accusing you ..
I think he wants to have a menu like Phantom v2, where there is an option in the menu where you can toggle a scrollbar. Hence me putting in a C++ code. But I'm confused as well, does he want C++ or C#?
#17. Posted:
XeXLooney
  • New Member
Status: Offline
Joined: Apr 09, 201311Year Member
Posts: 17
Reputation Power: 0
Status: Offline
Joined: Apr 09, 201311Year Member
Posts: 17
Reputation Power: 0
Botch wrote
TLH-Hugh wrote
XeXLooney wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons

My code is in C# though? I know my languages. I use C# to make my own tool and that is the code I use to activate my newsbar


I know I was talking about the original post, he was asking for C++
I wasn't accusing you ..
I think he wants to have a menu like Phantom v2, where there is an option in the menu where you can toggle a scrollbar. Hence me putting in a C++ code. But I'm confused as well, does he want C++ or C#?

He must want C# because look at the coding and its in C# he must of got muddled up.
#18. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
XeXLooney wrote
Botch wrote
TLH-Hugh wrote
XeXLooney wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons

My code is in C# though? I know my languages. I use C# to make my own tool and that is the code I use to activate my newsbar


I know I was talking about the original post, he was asking for C++
I wasn't accusing you ..
I think he wants to have a menu like Phantom v2, where there is an option in the menu where you can toggle a scrollbar. Hence me putting in a C++ code. But I'm confused as well, does he want C++ or C#?

He must want C# because look at the coding and its in C# he must of got muddled up.

Or he wants C++, ripped someone's C# coding, and doesn't realize that C++ and C# are two different languages.
#19. Posted:
XeXLooney
  • New Member
Status: Offline
Joined: Apr 09, 201311Year Member
Posts: 17
Reputation Power: 0
Status: Offline
Joined: Apr 09, 201311Year Member
Posts: 17
Reputation Power: 0
Botch wrote
XeXLooney wrote
Botch wrote
TLH-Hugh wrote
XeXLooney wrote
TLH-Hugh wrote
XeXLooney wrote
Thread XM = new Thread(newsbar);
XM.Start();

put that into the button pressed code


Whooaaaaa skids get your Languages corect ....
Buttons is C# and if you are looking for newsbar for XRPC then these kids
Are correct , if you want it for C++ it is different

Languages ::

C# : XRPC tools and JTAGRPC Tools - yes this is the one with buttons
C++ : makes .dll's for cod - yes this is the one which had no buttons

My code is in C# though? I know my languages. I use C# to make my own tool and that is the code I use to activate my newsbar


I know I was talking about the original post, he was asking for C++
I wasn't accusing you ..
I think he wants to have a menu like Phantom v2, where there is an option in the menu where you can toggle a scrollbar. Hence me putting in a C++ code. But I'm confused as well, does he want C++ or C#?

He must want C# because look at the coding and its in C# he must of got muddled up.

Or he wants C++, ripped someone's C# coding, and doesn't realize that C++ and C# are two different languages.

Yeah I suppose thats true. He'll just be giving himself errors then.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.