UT3 Tuto Weapons - part 4 Compiling, Game Testing, Fault Finding


Ok a quick folder check, your weapon package must be in the unpublished folder tree and in the published folder tree(for testing). Scripts in the Scr folder tree. Now we start the UT3-Ed, you get a message asking if you want to compile your scripts click yes, now wait till its finished if you get any warnings/errors double check your code for typo's (i get this every time). So every thing went well good now copy/move your .u file(mine ut40k.u) from the Unpublished/CookedPC/Script folder to the Published/CookedPC/ folder.

ok the last bit we need to do before testing in game is to edit your package config file (in my case ut40k.ini) which is found in the config folder

k

You'll notice in the top class i don't have an AmmoClassPath you have to add this your self otherwise you won't have any ammo ;)

Now start UT3 pick Instant Action/Deathmatch/map now click next then mutators, we want to use the Weapon Replacement mutator

a

now highlight the mutator and go and click configure

s

Here I've replaced 2 of the standard weapons with mine, nice and easy press accept and play till your hearts content :)

---------------------------------------------------------------------------------------------------------------------------------------------------------

Fault Finding

Ok if things don't look right in game what to do

1. check the log file for any errors ref-ing your weapon eg missing meshes/anims/textures

2. Can't see your weapon in First preson mode - play with the PlayerViewOffset=(X=?,Y=?,Z=?) line in the main weapon file default properties

3. Weapon looks to small - add the line Scale=???? in the mesh section of the default properties or re-scale in your 3d app (sometimes better if the scaling is to much)

I'd like to thank the Guys at the Epic UT3 forum Progamming mainly Bez & Parser for their help in sorting the coding problems i was having :)

ä