Results 1 to 6 of 6
  1. #1
    MSgt. Shooter Person
    Join Date
    Oct 2010
    Posts
    58

    Default Where do I put my content files?

    Hi guys I'm new here

    I'm having trouble knowing where to put my content files that I refer to in my code.

    I thought I could just put the folder containing the upk in UDKGame/Content
    So for example I have a file at UDKGame/Content/MyWeapons/weapon.upk

    and in my code I refer to it as 'MyWeapons/weapon'

    but I get unresolved reference warnings

    Do I have the wrong end of the stick here?

    thanks,

  2. #2
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,986

    Default

    StaticMesh'MyPackage.MyItemName' for a Static Mesh.

    Right click on the resource in the content browser, and select Copy Full Name To Clipboard.
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  3. #3
    Technical Writer - UDN
    Join Date
    Aug 2006
    Posts
    3,928
    Gamer IDs

    Gamertag: ffejnosliw

    Default

    Extended version of Blade[UG]'s answer because I was already typing it...

    Quote Originally Posted by lukesmith View Post
    and in my code I refer to it as 'MyWeapons/weapon'
    What do you mean by this? I assume in your defaultproperties? When referring to assets in code you use the following format:
    Code:
    AssetType'Package.Group.Name'
    Or an actual example:
    Code:
    StaticMesh'Pickups.Ammo_Shock.Mesh.S_Ammo_ShockRifle'
    This means the asset is a static mesh named S_Ammo_ShockRifle located in the Ammo_Shock group of the Pickups package. You need to use this same format for your own content. An easy way to get the reference is to copy it from the Content Browser by right-clicking on the asset and choosing Copy Full name to Clipboard. Then just paste that into your code.

    The folder the package is in is irrelevant other than needing to be in the Content folder at the very least.

  4. #4
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,986

    Default

    You are so much better than me at answering questions, Jeff. (seriously)
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  5. #5
    MSgt. Shooter Person
    Join Date
    Oct 2010
    Posts
    58

    Default

    Ah I see thanks guys

  6. #6
    MSgt. Shooter Person
    Join Date
    Dec 2009
    Location
    Germany, Alsdorf
    Posts
    440
    Gamer IDs

    Gamertag: KONSUMIDIOT

    Default

    Quote Originally Posted by Blade[UG] View Post
    You are so much better than me at answering questions, Jeff. (seriously)
    That's because the answers seem obvious to you, I guess
    Also I always appreciate your answers Blade, you're like a UDK encyclopedia to me


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.