UT Commandlet UScript Preprocessor

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Raven

Member
Jan 17, 2004
147
0
16
40
turniej.unreal.pl
Name: UEngine Preprocessor Commandlet
Version: 0.3.150
Type: UCC Commandlet
Game: Unreal Tournament
Install: Extract everything to your UT folder.
Description: It's ucc commandlet which parses .uc files in search of preprocessor directives and macros.
Usage: Complete readme at WIKI.
Download Links: http://turniej.unreal.pl/files/UEnginePPC.zip ~108kb
Screen shot:
[SCREENSHOT]http://turniej.unreal.pl/files/uengineppc_sshot.jpg[/SCREENSHOT]​
ChangeLog:
  • v 0.3.150
    • added option to delete log calls out of UScript source
  • v 0.3.144
    • added bIniVersion to commandline and project file (changes the way macro __UENGINEVERSION__ works)
  • v 0.2.123
    • new directive `else if
  • v 0.2.106
    • new directive `namespace
    • new macro __UENGINEVERSION__
    • new macro __SELF__
    • macros can be used in conditional statements
  • v 0.2.56
    • new directive `import used to create #exec directive for large number of textures/sounds
  • v 0.1.5
    • added new option bIsPackage
  • v 0.1.4
    • fixed bug with inline `write directive
  • v 0.1.1
    • initial release

This is side effect of my studies on native ucc commandlet :p. As usual complete source code is included in the archive. All comments and suggestions are most welcome.

Update

I've added new directive `import which can be used to create #exec for large number of textures/sounds.

Code:
`import(directory,extension,type,group,lodset,flags,package)

Code like this:

Code:
`import(tex,pcx,TEXTURE,HUD)

will iterate through all files in folder <project>/tex in search for *.pcx. When pcx will be found, directive will create #exec to import texture into group HUD. LodStet, flags and package are optional. Result will look like:

Code:
#exec TEXTURE IMPORT NAME=Tex001 FILE="tex/Tex001.pcx"
#exec TEXTURE IMPORT NAME=Tex002 FILE="tex/Tex002.pcx"
#exec TEXTURE IMPORT NAME=Tex003 FILE="tex/Tex003.pcx"

As type you can use only TEXTURE and SOUND. If extension will be uax or utx preprocessor will create #exec obj load instead of #exec type import.
 
Last edited: