[C# Source] - YeloDebugTools (2-03-09)

This forum is for files only, Utilities and Hacks go here, not skins.
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Considering nobody changed the RTH code in any of the other entity releases as far as I know, and they all use the same RTH.dll, it should work the same for all of the versions. Also you would have to edit the source of entity to have it work with YeloDebug, but it is possible.
User avatar
xbox7887




Socialist Coagulator Decryptor Advisor
Eureka Commentator Wave Scorched Earth

Posts: 2160
Joined: Mon Dec 27, 2004 6:19 pm
Location: New Lenox, Illinois
Contact:

Post by xbox7887 »

I'm actually surprised nobody has used this yet to release an RTH-like application for meta editation. It would take virtually no effort to integrate it into any existing map editor :?
Shock120





Posts: 318
Joined: Wed Apr 25, 2007 10:55 am

Post by Shock120 »

xbox7887 wrote:I'm actually surprised nobody has used this yet to release an RTH-like application for meta editation. It would take virtually no effort to integrate it into any existing map editor :?
most people are only interested in Halo 3. :cry: well, it could be used for Soffish.
Last edited by Shock120 on Sun Sep 21, 2008 7:26 am, edited 1 time in total.
Shock120 on XLink & XBC
User avatar
Eaton




Enthraller

Posts: 1639
Joined: Thu Jun 14, 2007 4:16 pm
Location: USA

Post by Eaton »

That truly shows the lack of attention paid to Halo 2 these days. All the good programmers have moved on to modding Halo 3. And that is really pointless considering that very few of them have the necessary tools to mod the maps. But I'm learning C# and I will hopefully use this one day. :)
Image
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

xbox7887 wrote:I'm actually surprised nobody has used this yet to release an RTH-like application for meta editation. It would take virtually no effort to integrate it into any existing map editor :?
I was messing around with it a while back and couldn't get the BinaryWriter to seek for me. I also tried it with just the FileStream and that didn't work, but the BinaryReader did seek...? I even checked the values it was giving me and they were right, but it said unable to perform operation or someething like that when I tried to seek with the writer or filestream. I was using a wireless connection and only messed with it for a little while, if the BaseStream the BinaryReader was using supports writing I could just use that but I didn't think to check that at the time. I haven't messed with it since then thought.
User avatar
ScottyGEE




Visioneer Vector Mad Hatter Artisan
Snitch! Enthraller Pi Critic
Sorceror Droplet Scorched Earth Socialist
Advisor Articulatist 500

Posts: 7352
Joined: Sun Aug 15, 2004 9:08 pm
Location: Down under
Contact:

Post by ScottyGEE »

xbox7887 wrote:I'm actually surprised nobody has used this yet to release an RTH-like application for meta editation. It would take virtually no effort to integrate it into any existing map editor :?
This is halomods! Spoon feed us (even more)!!!
Image
This collaboration is not endorsed by Halomods
Technically its only me animating though ;)
Themandyou





Posts: 193
Joined: Sat May 17, 2008 1:15 pm
Location: Silicon Valley

Post by Themandyou »

The hard part about not being spoon fed is those that can teach about how to do things don't, and mostly decide to keep it to themselves.

i.e. Source code for most Halo 2 modding programs - why not just release it at this point? It can't do anything but teach.
User avatar
ScottyGEE




Visioneer Vector Mad Hatter Artisan
Snitch! Enthraller Pi Critic
Sorceror Droplet Scorched Earth Socialist
Advisor Articulatist 500

Posts: 7352
Joined: Sun Aug 15, 2004 9:08 pm
Location: Down under
Contact:

Post by ScottyGEE »

Themandyou wrote:The hard part about not being spoon fed is those that can teach about how to do things don't, and mostly decide to keep it to themselves.

i.e. Source code for most Halo 2 modding programs - why not just release it at this point? It can't do anything but teach.
There are open sourced modding programs - ch2r and entity two bigs ones off memory. Whether or not they are helpful or not is unknown to me (I haven't looked), but I'm sure both examples are sufficient to learn off of and implement this crazy yelo stuff but they haven't really caused anything.
Image
This collaboration is not endorsed by Halomods
Technically its only me animating though ;)
Themandyou





Posts: 193
Joined: Sat May 17, 2008 1:15 pm
Location: Silicon Valley

Post by Themandyou »

Seriously? Where can I find the source code for Entity?
User avatar
Anthony




Translator Connoisseur New Age ONI

Posts: 1001
Joined: Thu Jul 06, 2006 10:19 pm
Location: Whittier, CA
Contact:

Post by Anthony »

Themandyou wrote:Seriously? Where can I find the source code for Entity?
Wow.. so you were bitching... and you didn't even bother looking?? :roll:
Themandyou





Posts: 193
Joined: Sat May 17, 2008 1:15 pm
Location: Silicon Valley

Post by Themandyou »

No, I looked, I never saw it, and now I find out it is open source, and I still can't find it.
User avatar
DemonicSandwich




Advisor Connoisseur

Posts: 1198
Joined: Sat Sep 30, 2006 6:10 pm
Location:

Post by DemonicSandwich »

Themandyou wrote:No, I looked, I never saw it, and now I find out it is open source, and I still can't find it.
Utilities, it's a sticky.
AIM wrote:Demonic5andwich (6:10:10 PM): structure of a first person weapon animation:
Demonic5andwich (6:10:43 PM): mess, mess, maybe a node?, another header?! wtf!, more mess, tacos, more shit
User avatar
Eaton




Enthraller

Posts: 1639
Joined: Thu Jun 14, 2007 4:16 pm
Location: USA

Post by Eaton »

And look at the last page of the topic. The main post's link is dead.
Image
User avatar
DemonicSandwich




Advisor Connoisseur

Posts: 1198
Joined: Sat Sep 30, 2006 6:10 pm
Location:

Post by DemonicSandwich »

"Hey xbox7887, I would have talked to you over AIM, but you either are never on or I don't remember your AIM anymore :p

I had a few requests: I was very confused the last time I used this, although I am sure that was just due to me being a nub: however it would heolp me out a tonne if you could post some code snippets to help me along.

1) How to establish a connection to a debug xbox
2) How to find the offset of meta in memory (is it Offset + Magic? I cannot remember...)
3) How to "poke" a byte array at a memory offset

Gracias, Cougar."
AIM wrote:Demonic5andwich (6:10:10 PM): structure of a first person weapon animation:
Demonic5andwich (6:10:43 PM): mess, mess, maybe a node?, another header?! wtf!, more mess, tacos, more shit
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

DemonicSandwich wrote:"Hey xbox7887, I would have talked to you over AIM, but you either are never on or I don't remember your AIM anymore :p

I had a few requests: I was very confused the last time I used this, although I am sure that was just due to me being a nub: however it would heolp me out a tonne if you could post some code snippets to help me along.

1) How to establish a connection to a debug xbox
2) How to find the offset of meta in memory (is it Offset + Magic? I cannot remember...)
3) How to "poke" a byte array at a memory offset

Gracias, Cougar."
You should NOT post for someone who isn't allowed here, and I don't want to see it again, though its a question that could help other so, so I'll leave this as a last.

2). The offsets in the map are already memory offsets... =|

The rest, I never used his class so I wouldn't know.
Image
Themandyou





Posts: 193
Joined: Sat May 17, 2008 1:15 pm
Location: Silicon Valley

Post by Themandyou »

Part of the not finding it also has to do with dead links, might I add.
User avatar
xbox7887




Socialist Coagulator Decryptor Advisor
Eureka Commentator Wave Scorched Earth

Posts: 2160
Joined: Mon Dec 27, 2004 6:19 pm
Location: New Lenox, Illinois
Contact:

Post by xbox7887 »

DemonicSandwich wrote:"Hey xbox7887, I would have talked to you over AIM, but you either are never on or I don't remember your AIM anymore :p

I had a few requests: I was very confused the last time I used this, although I am sure that was just due to me being a nub: however it would heolp me out a tonne if you could post some code snippets to help me along.

1) How to establish a connection to a debug xbox
2) How to find the offset of meta in memory (is it Offset + Magic? I cannot remember...)
3) How to "poke" a byte array at a memory offset

Gracias, Cougar."
I thought its useage was quite straightforward but I guess not :? Maybe this will help a bit :P

Code: Select all

// establish xbox connection
Xbox.Connect("Mike");   // specify debug name or debug ip, although i believe the method doesnt require this anymore...

// Setmem can be used to poke all basic datatypes into xbox memory, use commas to separate multiple contiguous writes
Xbox.Setmem(0x10000, (byte)0xFF);   // writes byte to xbox address 0x10000
Xbox.Setmem(0x10000, new byte[10]); // writes 10 bytes to xbox address 0x10000
Xbox.Setmem(0x10000, 1, 2, 3, 4);   // writes an array of integers to xbox address 0x10000

// Retrieving memory from xbox requires you to call the method associated with the datatype you wish to retrieve
byte[] bytes = Xbox.GetBytes(0x10000, 64);  // gets 64 bytes of memory from xbox address 0x10000
int intdata = Xbox.GetInt32(0x10000);      // get integer from xbox memory address 0x10000
string str = Xbox.GetASCIIString(0x10000);  // get a string from xbox memory address 0x10000 - dont use MemoryStream.ReadString()

// you can also stream files between xbox and pc
XStream.File xfs = new XStream.File(Xbox, "E:\\newfile.bin");
BinaryReader br = new BinaryReader(xfs);
BinaryWriter bw = new BinaryWriter(xfs);
bw.Write(ASCIIEncoding.ASCII.GetBytes("file data to write"));   // dont use bw.WriteString()
xfs.Position = 0;
string filedata = ASCIIEncoding.ASCII.GetString(br.ReadBytes((int)xfs.Length));   // dont use br.ReadString()

// some benchmark code
string streamstats = Xbox.StreamTest();

// you can allocate and free memory on the xbox from your pc (THINK OF THIS AS HEAP MEMORY IN LARGE QUANTITIES, DONT REPEATEDLY ALLOCATE/FREE A FEW BYTES OF SPACE)
// there are more advanced memory allocation features available but i advise you to not use them unless you know what youre doing ;P
uint memptr = Xbox.AllocateMemory(0x1000);    // by default will allocate as virtual memory padded to next 4kb boundary (xbox page size)
Xbox.FreeMemory(memptr);

// you can also specify certain code you want executed on your xbox (ADVANCED)
//Xbox.CallAddress(0x12345678);   //specify the starting address of the code you want the xbox to execute
//Xbox.CallAddressEx(0x12345678, CPUContext, arg1, arg1 etc...);    // allows you to specify cpu context and arguments before the call takes place

// you can send raw commands and communicate directly with xbdm.dll
Xbox.SendCommand("walkmem");

// lots of other cool stuff...
Xbox.SetLEDState(LEDState.Red, LEDState.Orange, LEDState.Green, LEDState.Off);
Xbox.EjectTray();
Xbox.LoadTray();
byte[] eepromdata = Xbox.ReadEEPROM();
Xbox.Ping(10);  // check connection status
Xbox.Screenshot();
Xbox.Reconnect();
Xbox.Reboot(BootFlag.Warm);
Xbox.Shutdown();

// a bunch of other undocumented stuff that might be fully supported later on...
// gamepad hooking (controlling xbox from pc)
// complete control of threads and processes
// noficiation sessions
// making all of the methods that are only used by other functions, private...
// native dll code injection so you can code trainers in c++ (kornman ftw)
// possibly a patch for xbdm.dll to support faster memory writes (fuck microsoft and their gay ways)
// suggestions???
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Thanks, that should hopefully help me out. Do you have any idea why it would give me an error when I tried to seek with Both the BinaryWriter and Stream for the memory? I checked to make sure that CanSeek was true for both of them when I set a breakpoint.
My only suggestion is to keep this great stuff coming if you still have the ambition to get it all the way done.
User avatar
xbox7887




Socialist Coagulator Decryptor Advisor
Eureka Commentator Wave Scorched Earth

Posts: 2160
Joined: Mon Dec 27, 2004 6:19 pm
Location: New Lenox, Illinois
Contact:

Post by xbox7887 »

OwnZ joO wrote:Thanks, that should hopefully help me out. Do you have any idea why it would give me an error when I tried to seek with Both the BinaryWriter and Stream for the memory? I checked to make sure that CanSeek was true for both of them when I set a breakpoint.
My only suggestion is to keep this great stuff coming if you still have the ambition to get it all the way done.
Seeking is disabled for memory streams for some reason...cant exactly remember why I did it that way :?
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Good, it wasn't me then, I'll just use the Setmem method, I didn't think that would be the best way to do it at the time, but it should work fine.
Post Reply