Announcement

Collapse
No announcement yet.

Custom .upk package unresolved reference

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom .upk package unresolved reference

    Hi all,
    i'm trying to make some small mutator that can summon a mesh in game using custom package ATMeshes.upk

    here's the code of the staticmesh:

    Code:
    class myMesh extends StaticMeshActor;
    
    //StaticMesh=StaticMesh'UN_Cave.SM.Mesh.S_UN_Cave_SM_Pillar'
    
    defaultproperties
    {
    	bStatic=false
    	bNoDelete=false
    	Begin Object StaticMeshComponent Name=StaticMeshComponent0 ObjName=StaticMeshComponent_1 Archetype=StaticMeshComponent'Engine.Default__StaticMeshActor:StaticMeshComponent0'
            StaticMesh=StaticMesh'ATMeshes.plat'
            LightingChannels=(bInitialized=True,Static=True)
            Name="StaticMeshComponent_1"
            ObjectArchetype=StaticMeshComponent'Engine.Default__StaticMeshActor:StaticMeshComponent0'
        End Object
    }
    When ATMeshes.upk is in folder: F:\games\UT3\UTGame\CookedPC
    ut3 make works well (no errors), however when summoning the staticmeshes in-game in a multiplayer server, the mesh is not rendered (can only "feel" the collision volume of if).

    When ATMeshes.upk is in folder: F:\games\UT3\UTGame\Unpublished\CookedPC\Packages
    ut3 make generates error message

    Warning, ObjectProperty Engine.StaticMeshComponent:StaticMesh: unresolved reference to 'StaticMesh'ATMeshes.plat''
    Warning, Invalid property value in defaults: StaticMesh=StaticMesh'ATMeshes.plat'
    Any idea what's wrong?

    #2
    You probably need your package in:
    C:\Users\[USER]\Documents\My Games\Unreal Tournament 3\UTGame\published\CookedPC\Packages

    Comment


      #3
      if compiling they need to be in both unpublished and published
      My Games\Unreal Tournament 3\UTGame\published\CookedPC
      My Games\Unreal Tournament 3\UTGame\unpublished\CookedPC

      Comment


        #4
        Originally posted by unrealloco View Post
        if compiling they need to be in both unpublished and published
        My Games\Unreal Tournament 3\UTGame\published\CookedPC
        My Games\Unreal Tournament 3\UTGame\unpublished\CookedPC
        I'm using -nohomedir so it's using root UT3 folder.
        I tried to put the file in UTGame\published\CookedPC and UTGame\unpublished\CookedPC i got the same error.
        It works only if package is in
        Perhaps i need to "cook"(?) this .upk package.

        UT3 Server is not using -useunpublished option.

        Comment


          #5
          unrealloco is right.
          i was just having the same problem a second ago.
          i had the error " unresolved reference" and " invalid property".
          i removed the .u it generated and copy pasted the package into my publisged folder and magic happened. " succesfully compiled"


          i only get this error now when starting the game with the mutator
          http://www.dmc-clan.eu/useruploads/vonnis_error.jpg

          Comment


            #6
            This is really confusing all these folder,
            i can only compile when i put the package in UTGame/CookedPC.
            When i put the .upk file into:
            F:/Games/UT3/UTGame/Published/CookedPC/Package/mypackage.upk
            or F:/Games/UT3/UTGame/Unpublished/CookedPCPackage/mypackage.upk

            doesn't work (using ut3.exe -nohomedir -useunpublished)

            This is kinda confusing all these folders not working

            Update:
            worked without using "nohomedir" but why it didn't work using "nohomedir" option

            Comment


              #7
              yes i know its confusing , but does it work now?
              where is nohomedir for actually?

              Comment


                #8
                Originally posted by vonnis View Post
                yes i know its confusing , but does it work now?
                where is nohomedir for actually?
                nohomedir is where i installed UT3 which means F:/Games/UT3
                Yes works, but still the mesh does not show in game. I go to my UT3 server then using AdminToolKit, i summon the mesh "summon MeshPack.myMesh", it says mesh was summoned but can't see it. Only collision volume is summoned.
                That's weird i had made the same kind of script for UT2004 but was working (mesh showing when summoning it)

                Comment

                Working...
                X