Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Commit 4cbac04

Browse files
committed
Initial commit of project into git.
1 parent 319d37c commit 4cbac04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+18333
-0
lines changed

.gitignore

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
.hg/
2+
*.dproj.local
3+
build/
4+
5+
# Uncomment these types if you want even more clean repository. But be careful.
6+
# It can make harm to an existing project source. Read explanations below.
7+
#
8+
# Resource files are binaries containing manifest, project icon and version info.
9+
# They can not be viewed as text or compared by diff-tools. Consider replacing them with .rc files.
10+
#*.res
11+
#
12+
# Type library file (binary). In old Delphi versions it should be stored.
13+
# Since Delphi 2009 it is produced from .ridl file and can safely be ignored.
14+
#*.tlb
15+
#
16+
# Diagram Portfolio file. Used by the diagram editor up to Delphi 7.
17+
# Uncomment this if you are not using diagrams or use newer Delphi version.
18+
*.ddp
19+
#
20+
# Visual LiveBindings file. Added in Delphi XE2.
21+
# Uncomment this if you are not using LiveBindings Designer.
22+
*.vlb
23+
#
24+
# Deployment Manager configuration file for your project. Added in Delphi XE2.
25+
# Uncomment this if it is not mobile development and you do not use remote debug feature.
26+
*.deployproj
27+
#
28+
# C++ object files produced when C/C++ Output file generation is configured.
29+
# Uncomment this if you are not using external objects (zlib library for example).
30+
*.obj
31+
#
32+
33+
# Delphi compiler-generated binaries (safe to delete)
34+
*.exe
35+
*.dll
36+
*.bpl
37+
*.bpi
38+
*.dcp
39+
*.so
40+
*.apk
41+
*.drc
42+
*.map
43+
*.dres
44+
*.rsm
45+
*.tds
46+
*.dcu
47+
*.lib
48+
*.a
49+
*.o
50+
*.ocx
51+
52+
# Delphi autogenerated files (duplicated info)
53+
*.cfg
54+
*.hpp
55+
*Resource.rc
56+
57+
# Delphi local files (user-specific info)
58+
*.local
59+
*.identcache
60+
*.projdata
61+
*.tvsconfig
62+
*.dsk
63+
64+
# Delphi history and backups
65+
__history/
66+
__recovery/
67+
*.~*
68+
69+
# Castalia statistics file (since XE7 Castalia is distributed with Delphi)
70+
*.stat
71+
72+
# Boss dependency manager vendor folder https://github.com/HashLoad/boss
73+
modules/

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# XDK Assist: What is XDK Assist?
2+
3+
XDK Assist is an application designed to allow you to easily communicate with an (original) Xbox in order to debug running applications. This was once the go-to application for creating trainers for modified Xbox systems.
4+
5+
The original XDK Assist was originally closed source software. It was a product of me being on the original EvolutionX team and creating custom tools for our work. It eventually evolved into something more robust and I released it to the public as-is. A few updates were released, but the project never had an official homepage or source of truth for downloads.
6+
7+
# Why release the code so late?
8+
9+
I recently saw that some people are still using XDK Assist today even though it's been almost two decades since the original Xbox was released. Two decades ago I was a much different developer and wasn't so open to open sourcing my programs. Today, however, I'm all for it. I'm hoping release of this code might benefit the few folks out there who still use it. At a minimum it at least helps to preserve what I consider an important part of the Xbox homebrew scene.
10+
11+
## Not so fast...
12+
13+
There are, however, some caveats. I was also a much (much) more junior developer two decades ago and did not use proper source control systems. Shoot, two decades ago I wasn't much of a developer at all. In the codebase you'll find a lack of decent commenting, organization, naming, etc. You'll also find lines of functional code commented out with no explanation as to why.
14+
15+
This release of the code is also compiled from multiple backups. I've attempted to pull in the latest changes from each backup, but it's entirely possible I've missed something or pulled out a vital component.
16+
17+
Given the above items it's possible this application actually does not work. I have no way to test that this application still works as expected, since it requires an original Xbox a running debug bios. It will compile and run as expected, but there are things I simply cannot review. For example, `TBreakpoint` is commented out in `XBOXManager.pas` and is present in `Breakpoint.pas`. Was that a refactor in progress? Did I finish? Who knows.
18+
19+
# Requirements
20+
21+
* Delphi 2007 <https://www.embarcadero.com>
22+
* Indy 10.1.1 <https://www.indyproject.org>
23+
* TMPHexEditor (bundled: hexcontrol)
24+
* A modded original Xbox with a debug bios loaded (i.e. EvoX)
25+
26+
I was able to get this to compile again under Delphi 2007 with Indy 10 that ships with Delphi 2007. It also requires installation of a TMPHexEditor component (bundled with) from Markus Stephany (<https://www.stephanys.de>). You can find a newer version of this component, but it is not tested. You may be able to get it to compile with different versions of Delphi or Indy, but those are untested as well.
27+
28+
# Shoutouts
29+
30+
It's a bit juvenile but I still want to shout out to several of the folks I spent a lot of time reversing and developing software with. Some good times! I'm missing several folks but it's hard to remember screennames after so long.
31+
32+
acidflash
33+
dootdoo
34+
Hack0r
35+
kai`ckul
36+
khuong
37+
jokko
38+
Thatguy2001
39+
Tsongkie
40+
xbox7887
41+
[Death]
42+
[sheep]

XDKAssist.dpr

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
program XDKAssist;
2+
3+
uses
4+
Forms,
5+
Dialogs,
6+
SysUtils,
7+
Main in 'src\Main.pas' {frmMain},
8+
Breakpoint in 'src\Breakpoint.pas',
9+
LogStream in 'src\LogStream.pas',
10+
Tool in 'src\Tool.pas',
11+
Settings in 'src\Settings.pas',
12+
AppGlobal in 'src\AppGlobal.pas',
13+
XBOXManager in 'src\XBOXManager.pas';
14+
15+
{$R *.res}
16+
17+
begin
18+
Application.Initialize;
19+
Application.Title := 'XDK Assist';
20+
try
21+
Application.CreateForm(TfrmMain, frmMain);
22+
Application.Run;
23+
except
24+
on E: Exception do ShowMessage(E.Message);
25+
end;
26+
end.

XDKAssist.dproj

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ProjectGuid>{bafd21de-c786-409f-87d5-f9f2162c20e4}</ProjectGuid>
5+
<MainSource>XDKAssist.dpr</MainSource>
6+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8+
<DCC_DCCCompiler>DCC32</DCC_DCCCompiler>
9+
<DCC_DependencyCheckOutputName>build\debug\bin\XDKAssist.exe</DCC_DependencyCheckOutputName>
10+
<DCC_EnabledPackages>true</DCC_EnabledPackages>
11+
<DCC_UsePackage>vcl;rtl;vclx;vclactnband;dbrtl;bdertl;dsnap;teeUI;teedb;tee;adortl;IndyCore;IndySystem;IndyProtocols;xmlrtl;inet;IntrawebDB_90_100;Intraweb_90_100;vclie;inetdbbde;inetdbxpress;soaprtl;VclSmp;MPHexEditor_D7;vcldb</DCC_UsePackage>
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
14+
<Version>7.0</Version>
15+
<DCC_DebugInformation>False</DCC_DebugInformation>
16+
<DCC_LocalDebugSymbols>False</DCC_LocalDebugSymbols>
17+
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
18+
<DCC_UnitSearchPath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_UnitSearchPath>
19+
<DCC_ResourcePath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_ResourcePath>
20+
<DCC_ObjPath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_ObjPath>
21+
<DCC_IncludePath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_IncludePath>
22+
<DCC_Define>RELEASE</DCC_Define>
23+
<DCC_ExeOutput>build\release\bin</DCC_ExeOutput>
24+
<DCC_DcuOutput>build\release</DCC_DcuOutput>
25+
<DCC_ObjOutput>build\release</DCC_ObjOutput>
26+
<DCC_HppOutput>build\release</DCC_HppOutput>
27+
<DCC_BplOutput>build\release</DCC_BplOutput>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
30+
<Version>7.0</Version>
31+
<DCC_SymbolReferenceInfo>2</DCC_SymbolReferenceInfo>
32+
<DCC_UnitSearchPath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_UnitSearchPath>
33+
<DCC_ResourcePath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_ResourcePath>
34+
<DCC_ObjPath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_ObjPath>
35+
<DCC_IncludePath>$(BDS)\Lib\Debug\Indy10;$(BDS)\lib\Debug</DCC_IncludePath>
36+
<DCC_Define>DEBUG</DCC_Define>
37+
<DCC_ExeOutput>build\debug\bin</DCC_ExeOutput>
38+
<DCC_DcuOutput>build\debug</DCC_DcuOutput>
39+
<DCC_ObjOutput>build\debug</DCC_ObjOutput>
40+
<DCC_HppOutput>build\debug</DCC_HppOutput>
41+
<DCC_BplOutput>build\debug</DCC_BplOutput>
42+
</PropertyGroup>
43+
<ProjectExtensions>
44+
<Borland.Personality>Delphi.Personality</Borland.Personality>
45+
<Borland.ProjectType />
46+
<BorlandProject>
47+
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters></Parameters><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">0</VersionInfo><VersionInfo Name="MinorVer">0</VersionInfo><VersionInfo Name="Release">1</VersionInfo><VersionInfo Name="Build">7</VersionInfo><VersionInfo Name="Debug">False</VersionInfo><VersionInfo Name="PreRelease">False</VersionInfo><VersionInfo Name="Special">True</VersionInfo><VersionInfo Name="Private">False</VersionInfo><VersionInfo Name="DLL">False</VersionInfo><VersionInfo Name="Locale">1033</VersionInfo><VersionInfo Name="CodePage">1252</VersionInfo></VersionInfo><VersionInfoKeys><VersionInfoKeys Name="FileVersion">0.0.1.7</VersionInfoKeys><VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys><VersionInfoKeys Name="CompanyName">EvoX-T</VersionInfoKeys><VersionInfoKeys Name="FileDescription">Private EvoX-T training tool</VersionInfoKeys><VersionInfoKeys Name="InternalName"></VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName">XDK Assist</VersionInfoKeys><VersionInfoKeys Name="SpecialBuild">Rushed public release</VersionInfoKeys></VersionInfoKeys><Excluded_Packages>
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
72+
73+
74+
75+
76+
<Excluded_Packages Name="$(BDS)\bin\dcloffice2k100.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
77+
<Excluded_Packages Name="$(BDS)\bin\dclofficexp100.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
78+
</Excluded_Packages><Source><Source Name="MainSource">XDKAssist.dpr</Source></Source></Delphi.Personality><ModelSupport>False</ModelSupport></BorlandProject></BorlandProject>
79+
</ProjectExtensions>
80+
<Import Project="$(MSBuildBinPath)\Borland.Delphi.Targets" />
81+
<ItemGroup>
82+
<DelphiCompile Include="XDKAssist.dpr">
83+
<MainSource>MainSource</MainSource>
84+
</DelphiCompile>
85+
<DCCReference Include="src\AppGlobal.pas" />
86+
<DCCReference Include="src\Breakpoint.pas" />
87+
<DCCReference Include="src\LogStream.pas" />
88+
<DCCReference Include="src\Main.pas">
89+
<Form>frmMain</Form>
90+
</DCCReference>
91+
<DCCReference Include="src\Settings.pas" />
92+
<DCCReference Include="src\Tool.pas" />
93+
<DCCReference Include="src\XBOXManager.pas" />
94+
<None Include="XDKAssist.todo" />
95+
</ItemGroup>
96+
</Project>

XDKAssist.res

5.57 KB
Binary file not shown.

XDKAssist.todo

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{TODO : Display percentage complete on progress bars}
2+
{TODO : For color logging have a rich it up function}
3+
{TODO : Fix disconnection tracking (linked with status checking?)}
4+
{TODO : Command queuing with response checking}
5+
{TODO -cLayout : Better status bar information (program status and what not)}
6+
{DONE -cLayout : Show and hide the main log. Have another log visible by a tabbed window}
7+
{TODO : Possible disassembly view?}
8+
{TODO : have a register compare option}
9+
{TODO : Keep complete breakpoint history with times and registers: list box that when you click it it changes the register information}
10+
{TODO : go through each function and make a list of what you don't like, then go back later and fix all the stuff}
11+
{TODO : Eat messages option will eat common messages like 200- ok and n: execution stopped}
12+
{TODO : Cut out 66% ram usage by reworking buffer stuff. Wait until other changes are in, so you can easily fix any speed issues}
13+
{TODO -cLayout : Redesign log area - show xbox logo faintly behind text, outline the input box, add coloring}
14+
{TODO : Solidify status changes and checking of status}
15+
{TODO : Internal tools editor}
16+
{TODO -cLayout : Redesign register window and breakpoint area}
17+
{TODO -cControls : THistoryBox - contains a 20 string list of previously entered text}
18+
{TODO -cControls : TMPHexEdit - rewrite to allow direct memory access to buffer - or - focus buffer elswhere}
19+
{TODO -cControls : THexBox - accepts only valid hexadecimal input. Features the ability to validate pastes, accept or rject different styles of notation ($,h,0x) and force capitals or zero fills}

docs/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# What's in this folder?
2+
3+
This folder contains some documents I had that were related to XDK Assist. I've included them for posterity, but they aren't of much use practically speaking.
4+
5+
What_Hack0r_Complains_About_&_Wants.txt - At some point I polled Hack0r for a list of things he'd like to see improved in XDK Assist. This is that list. There's actually an unreleased XDK Assist v2 that began to implement some of these requests.
6+
7+
xdkassist.ini - The INI file that was bundled with a copy of XDK Assist I had. It demonstrates the configuration for the Tools system, ArtMoney offsets, etc.
8+
9+
xdkassist.notes - Notes from an unknown game I was debugging at some point.
10+
11+
xdkcmds.txt - Several XDK commands that can be issued over Telnet.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
What I have problems with:
2+
- Breaking freezes game and I can't continue (most likely my bios)
3+
- Poking (SETMEM) doesn't stick
4+
- After 35-40 dumps, xbox freezes, won't complete dump
5+
- Hex Memory View will go blank if I search for a wrong address or is out of range (have re-dump to see it again)
6+
7+
What I'd like to see incorporated:
8+
- A search/filter program (kind of like Art Money or Tsearch)... includes different searching/filtering of floats/Integers by 1,2,3,4,6,8,10 bytes;
9+
Unknown values (increased (by), decreased (by), did not change)
10+
Basically, figure out Art Money, then integrate it into XDKA (easier said then done, I know :P but it makes working a lot easier)
11+
- Integrated Hex-Dec, Dec-Hex calculator (like Windows Calculator); Maybe include a base converter (32 bit, Intel) Basically Hexworkshop's base converter
12+
- Maybe a visible buffer range in the Dumping Tag, for example: PC hex ranges: 2000000h-4000000h
13+
- Customized dump button
14+
- Automatic break point copy to Notes
15+
- Change Xbox Logo
16+
- Instead of the black background, maybe include a Evox-T logo in the background (something subtle so it doesn't overpower the text)
17+
- Change logos next to "Dumping", "Notes"...etc to a more 3D look
18+
19+
If your hardcore (if not void this), then here is my "asking for too much" category:
20+
- Incorporate a picture dumping tool (takes picture of current screen)
21+
- ASM file maker (I'm too lazy to make a new .txt and save it as .asm)
22+
- Timestamp/Title ID displayer (searches through XBE to find it)
23+
- Incorporate Caustic's XBE-EXE converter
24+
25+
What I want to stay:
26+
- PC-Xbox Xbox-PC hex converter
27+
- GETMEM
28+
- The "HUD" of course (shows what's happening between PC and Xbox)(Connecting, dump...etc)
29+
- All the tabs
30+
- Dumping (obviously)
31+
32+
33+
What I never understood:
34+
- What the "Section Flags" does
35+
- Memory View (kind of pointless)

docs/xdkassist.ini

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[Connection]
2+
Host=192.168.1.153
3+
Port=3000
4+
5+
[Dumping]
6+
AutoStop=1
7+
AutoCopy=1
8+
Highlight=1
9+
10+
[Breakpoints]
11+
Type=Read
12+
13+
[Window]
14+
Width=657
15+
Height=611
16+
LastTab=0
17+
State=0
18+
19+
[Tool0]
20+
Name=bconv32.exe
21+
Class=
22+
Caption=Base Converter
23+
Load=0
24+
25+
[Tool1]
26+
Name=C:\Windows\System32\calc.exe
27+
Class=
28+
Caption=Calculator
29+
Load=0
30+
31+
[Tool2]
32+
Name=E:\Tools\ArtMoney 7.0.8 Pro\artmoney.exe
33+
Class=
34+
Caption=ArtMoney
35+
Load=0
36+
37+
[Tool3]
38+
Name=E:\Tools\tsearch\tsearch.exe
39+
Class=
40+
Caption=TSearch
41+
Load=0
42+
43+
[Logging]
44+
Verbose=0
45+
46+
[Range]
47+
Enabled=0
48+
Start=0x005F6920
49+
End=0x005F6924
50+
Caption=ArtMoney
51+
Class=TApplication
52+
State=0x00B3F500
53+
54+
[Misc]
55+
WarnConClose=1
56+
[Layout]
57+
ShowMainLog=1

0 commit comments

Comments
 (0)