Home » Articles » Coding


First off, setting up files;

For editing code, you can either use Notepad (windows) or the Linux equivelant (Gedit usually), it works. But the alternative is Notepad++ and the USCRIPT syntax highlighting, which colours in the code to make it easier to understand, and also will be helpful for a few other aspects.
Download Notepad++ and Language File for Uscript (Right click and save-as to avoid it opening in-browser)
For Windows, install as normal.
For Linux, run the installer under Wine.
Once done and loaded, in Language drop down box, click User defined language and click Import, and select the .xml file. Save that and now any .uc files should load with the syntax highlighting.

For compiling code, install the SDK through whatever means you want. I recommend either Deus Ex Editing Pack 2.2 or Deus Ex Unreal Ed updated Installer.
Same install instructions as Notepad++.
Editing Pack includes a collection of software used for editing, most unneeded, but still handy. In the end, you should end up with a file in Deus Ex/System/ called ucc.exe. If thats there, its installed, and thats all we need.

If you want a good base to start off, open up the SDK/Unreal Ed, and in the Classes browser, just click Export All. This decompiles the entire game source code in to the Deus Ex/ folder.


If you have code you already want to compile, first, think of a name for the package, example MyMod, but maybe something more clever.

Create a folder in Deus Ex directory called MyMod (or whatever you want to call it).

Inside THAT, create a folder called Classes.

Inside THAT, put your .uc files.

Open DeusEx.ini file, search for the list of EditPackages, and at the bottom of that list, add your own, E.g. EditPackages=MyMod

This next part varies based on setups, but the end goal is to have the command line of your OS directed to Deus Ex/System.

Windows 7+: Shift-Right Click the background of the System folder with no files selected, and click Open Command Line Here.

Windows XP and earlier: Run > cmd.exe, and enter cd followed by the path to your DX system, e.g. cd C:/Deus Ex/System/

Linux: Theres many ways, the XP way works, but in the Thunar file editor, theres an option in the drop down box to Open Terminal Here.


Once you're there, enter ucc make

It'll attempt to compile the list, if the .u files exist, it'll skip it, so it'll ignore all the default DX files, and attempt your custom file.

Category: Coding | Added by: Kaiz0r (17 September 2016)
Views: 89 | Rating: 0.0/0
Total comments: 0