View Full Version : Custom Weapons
ScorpEM
03-03-2010, 06:28 PM
I'v been trying to add custom guns into UDK for over a month now and haven't really had any success. I have read tutorials on how to do this but for some reason I cant figure it out.:confused: I already imported my gun and animations so all I need now is to make it playable.
Code Jackers
03-03-2010, 06:45 PM
http://sites.google.com/site/ut40kmod/UT40k_mod/ut3-video-tutorials
That has video tutorials that are very helpful
ScorpEM
03-06-2010, 12:54 AM
Iv gone through the tutorials but I still cant figure it out. When I compile it I get a lot of warnings. I'm new to unreal script so could someone please help me!
:confused:
geodav
03-06-2010, 01:40 PM
well how about telling us what you did and what warnings you get, try posting in my tutorial support thread http://utforums.epicgames.com/showthread.php?t=706668
ScorpEM
03-06-2010, 06:30 PM
I did everything you did in the tutorial but I think the problem is because I am using udk instead of ut3 and so Im putting things into the wrong places. The name of my package is, WP_CustomGun and the name of my weapon Mesh is, SK_WP_CustomGun_1P And SK_WP_CustomGun_3P
the name of my anim set is K_WP_CustomGun.
these are the warnings I get,
Init: Version: 6262
Init: Epic Internal: 0
Init: Compiled (32-bit): Feb 1 2010 03:03:28
Init: Command line: -DEFENGINEINI=..\..\UTGame\Config\DefaultEngineUDK. ini
Init: Base directory: C:\UDK\UDK-2010-02\Binaries\Win32\
Init: Character set: Unicode
Log: Executing Class UnrealEd.MakeCommandlet
--------------------Core - Release--------------------
--------------------Engine - Release--------------------
--------------------GameFramework - Release--------------------
--------------------UnrealEd - Release--------------------
--------------------IpDrv - Release--------------------
--------------------OnlineSubsystemPC - Release--------------------
--------------------UDKBase - Release--------------------
--------------------UTGame - Release--------------------
--------------------UTEditor - Release--------------------
--------------------UTGameContent - Release--------------------
Package UTGameContent changed, recompiling
Analyzing...
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTAttachm ent_CustomGun.uc(117) : Warning, ObjectProperty Engine.SkeletalMeshComponent:SkeletalMesh: unr
esolved reference to 'SkeletalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P ''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTAttachm ent_CustomGun.uc(117) : Warning, Invalid property value in defaults: SkeletalMesh=Ske
letalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P'
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(316) : Warning, ObjectProperty Engine.SkeletalMeshComponent:SkeletalMesh: unresolve
d reference to 'SkeletalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(316) : Warning, Invalid property value in defaults: SkeletalMesh=Ske
letalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun'
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(323) : Warning, ClassProperty UTGame.UTWeapon:AttachmentClass: unresolved reference
to 'class'UDK_CustomGun.UTAttachment_CustomGun_1P''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(323) : Warning, Invalid property value in defaults: AttachmentClass=class'UD
K_CustomGun.UTAttachment_CustomGun_1P'
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(326) : Warning, ObjectProperty Engine.SkeletalMeshComponent:SkeletalMesh: unresolve
d reference to 'SkeletalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P ''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(326) : Warning, Invalid property value in defaults: SkeletalMesh=Ske
letalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P'
Scripts successfully compiled - saving package 'C:\UDK\UDK-2010-02\Binaries\Win32\..\..\UTGame\Script\UTGameConten t.u'
Warning/Error Summary
---------------------
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTAttachm ent_CustomGun.uc(117) : Warning, ObjectProperty Engine.SkeletalMeshComponent:SkeletalMesh: unr
esolved reference to 'SkeletalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P ''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTAttachm ent_CustomGun.uc(117) : Warning, Invalid property value in defaults: SkeletalMesh=Ske
letalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P'
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(316) : Warning, ObjectProperty Engine.SkeletalMeshComponent:SkeletalMesh: unresolve
d reference to 'SkeletalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(316) : Warning, Invalid property value in defaults: SkeletalMesh=Ske
letalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun'
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(323) : Warning, ClassProperty UTGame.UTWeapon:AttachmentClass: unresolved reference
to 'class'UDK_CustomGun.UTAttachment_CustomGun_1P''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(323) : Warning, Invalid property value in defaults: AttachmentClass=class'UD
K_CustomGun.UTAttachment_CustomGun_1P'
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(326) : Warning, ObjectProperty Engine.SkeletalMeshComponent:SkeletalMesh: unresolve
d reference to 'SkeletalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P ''
C:\UDK\UDK-2010-02\Development\Src\UTGameContent\Classes\UTWeap_Cu stomGun.uc(326) : Warning, Invalid property value in defaults: SkeletalMesh=Ske
letalMesh'WP_CustomGun.Mesh.SK_WP_CustomGun_3P'
Success - 0 error(s), 8 warning(s)
Execution of commandlet took: 12.54 seconds
JohNLA
03-07-2010, 12:13 PM
I have never modded a gun before but I can see a typo in the first line.
You end the line with two ' ' instead of the correct just one '
geodav
03-07-2010, 02:04 PM
well spotted JohNLA, also watch my UDK Basics videos they show what your folder set up should be
ScorpEM
03-07-2010, 05:34 PM
when I look at my code I Its only one ' but in the error report it has two ''. why would it be different?
Blade[UG]
03-07-2010, 06:04 PM
It's quoting the entire phrase, which is why there's two '' at the end.
It's complaining that it can't find the WP_Custom_Gun package. You should really be putting this all in your own package, and not in the UTGameContent package.
ScorpEM
03-09-2010, 11:49 AM
What should the name of the folder that has my own package in it be and where should I put the folder?
geodav
03-09-2010, 01:40 PM
@ScorpEM, please watch my UDK Basics Videos, they show how to set the system up for your code package and content package, although atm it's only for a basic game the same thing applys for a weapon
ScorpEM
03-09-2010, 02:27 PM
I finally figured it out!:D Thanks for all the help. I think there was a bug or something because I just reinstalled udk and fixed my folders and it worked! how hard is it to change the sounds and the shooting affects.
Thanks again!
geodav
03-09-2010, 03:14 PM
not that hard, just look at the code and find those items in the content folders, see how epic did them and just copy it
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.