Stargate: Replicator Wars

Jonwil's CNC3 Modding Tools

Download for Command & Conquer 3 CNC3

Avatar of Eric

Eric

Category: Software
Created: Saturday August 25, 2007 - 23:50
Updated: Sunday March 29, 2009 - 14:39
Views: 4697
Summary: XML Editor, aptextract.exe , textureextract.exe, w3xdecompiler.exe,

Rating

Staff says

4.0

Members say

5.0

Average

4.3/5.0

3 votes

Included in the zip file is an XML editor with syntax highlighting based on the SciTE editor. It should make editing C&C3 XMLs just that little bit easier.

Also included is a tool called aptextract.exe which can extract any APT UI file and give you an XML file and textures you can edit and use in your mod similar to the DefaultUIScreens items in the SDK. In addition to the GUI view, you can call it with a command line similar to aptextract aptlevel0 c:\output and it will extract the data for aptlevel0 to the folder c:\output.

He realizes the names of the APT entries are not very descriptive, if anyone has any ideas on how to make the descriptions better, please let him know.

Also, He has written a tool called textureextract.exe. This will extract any texture from the game. Fill in the name of the texture (without any extention, e.g. abbhive_nrm) and it will generate a texture file plus texture XML.

The texture files are in DDS format because that is how the game stores them internally and if he converted back to the TGA format used as input when the game was made, the quality of the texture would be degraded. You should edit the DDS file in something like photoshop and then use both the dds file and texture XML in your mod. Like aptextract.exe you can pass in the name of the texture and then the output folder on the command line.

Also, he has written a tool called w3xdecompiler.exe. This tool decompiles compiled streams back into w3x files. Pass in the name of the w3x file you wish to decompile including the .w3x extention (referenced in an include tag in one of the xml files from the SDK for example). The "decompile low detail version" checkbox says that you want to decompile the "low detail" version of the model.

The output from w3xdecompiler.exe is NOT the same as what would have been passed as input when the game was made. In particular, it does not correctly decompile BoneInfluences tags, ShadeIndices tags or W3DAnimation (it may not actually be possible to decompile the data correctly as information appears to be thrown away by the build process).

Again you can pass the filename followed by the output folder on the command line. If you put l (thats a lowercase L) as the third parameter, it will extract the low quality version. (so something like this will extract the low quality version: w3xdecompiler abbhive.w3x c:\output l)

Full source code for all tools is included. The SciTE code is under the licenses specified in those folders. The other code (cc3tools.dll, aptextract.exe, textureextract.exe, w3xdecompiler.exe) is under the GNU General Public License Version 3 (basically if you make changes to the code in question and distribute a new binary version, you must also include the source code changes).

This also means that if you want to use cc3tools.dll or any of the other code in another program, you need to comply with the GPL for that program too and release its entire source code.

Links / Downloads

 HitsAdded
Download jonwil's C&C3 Tools1496August 25, 2007 - 23:57

Credits

jonwil
Email jfwfreo@tpgi.com.au
Email jfwfreo@tpgi.com.au
MSN JonathanWilson623@hotmail.com
ICQ 77572965
AIM jonwil2002
Yahoo jonwil2002

Back to Top

Network

Button for Revora.net Button for CnC3Files.com Button for the CnC Guild Button for YR Argentina Button for The3rdAge.net Button for CnC3Files.com

Affiliates

Button for Project Perfect ModButton for Command & Conquer: FilefrontButton for CnC WorldButton for CnC MapsButton for CnC Generals WorldButton for OpenWarButton for Victory Engine CNC Top 101

Our Button

CNC3.net Button