Skip to content

Commit

Permalink
First version
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienTD committed Jul 30, 2019
1 parent 95347dc commit 6e76519
Show file tree
Hide file tree
Showing 34 changed files with 38,096 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@
*.exe
*.out
*.app

# Additions:
*.exp
*.res
test*.bat
28 changes: 28 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"files.associations": {
"cmath": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"cwchar": "cpp",
"exception": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"limits": "cpp",
"map": "cpp",
"new": "cpp",
"stdexcept": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"xmemory": "cpp",
"xmemory0": "cpp",
"xstddef": "cpp",
"xstring": "cpp",
"xtr1common": "cpp",
"xtree": "cpp",
"xutility": "cpp"
}
}
40 changes: 40 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# XXL Inspector

Memory watcher and editor for all games from the Asterix XXL series (XXL1, XXL2 original, Olympic Games) on Windows PC.

Note: only tested with original French releases

![Screenshot](scrshot00.png)

## Features

* Load a level or sector at any time.
* Cheats: Teleport Asterix/Obelix, change the game speed, ...
* Visualization of the scene graph
* List of all loaded objects with class and instance names
* Look inside the memory of a game object
* Crate detector: displays all the positions of the active crate stacks on the screen, along with the number of crates in the stack. Useful for finding Tardis strats.

Note that some features are only available for specific games and not for all XXL games.

## Building

Visual C++ 2010 or later is required.

1. Open a Visual Studio x86 command prompt, or open the Windows SDK commmand prompt and set it to x86 mode (32-bit).
2. `cd` to this repository
3. Run the batch file:
* `build_xxl1.bat` to build for Asterix & Obelix XXL 1.
* `build_xxl2.bat` to build for Asterix & Obelix XXL 2: Mission Las Vegum.
* `build_og.bat` to build for Asterix at the Olympic Games.

## Usage

Copy the resulting file `d3d9.dll` to the game's folder (where the `GameModule.elb` file is), and run the game.

It is recommended to run the game in windowed mode.

## Libraries used

* [ImGui](https://github.com/ocornut/imgui) for the GUI
* [ImGui Club](https://github.com/ocornut/imgui_club) for the memory editor control
2 changes: 2 additions & 0 deletions build_og.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@set XXLVER=4
@buildr %*
2 changes: 2 additions & 0 deletions build_xxl1.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@set XXLVER=1
@buildr %*
2 changes: 2 additions & 0 deletions build_xxl2.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@set XXLVER=2
@buildr %*
1 change: 1 addition & 0 deletions buildd.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@buildr /DDBGSTR
4 changes: 4 additions & 0 deletions buildr.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@set PATCHVER=0,1,0,0
@rc /dPATCHVER=%PATCHVER% /dXXLVER=%XXLVER% resource.rc
@cl %* /c /DPATCHVER=%PATCHVER% /DXXLVER=%XXLVER% /LD /EHsc *.cpp imgui/*.cpp
@link /DLL /DEF:d3d9.def /OUT:d3d9.dll *.obj resource.res user32.lib version.lib
4 changes: 4 additions & 0 deletions d3d9.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NAME d3d9.dll

EXPORTS
Direct3DCreate9=myDirect3DCreate9
241 changes: 241 additions & 0 deletions d3d9hook.cpp

Large diffs are not rendered by default.

Loading

0 comments on commit 6e76519

Please sign in to comment.