Announcement

Collapse
No announcement yet.

Getting Started Compiling a Mod

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    daaave.....
    check your .uc file save as.....
    encoding should be "unicode"
    thanks for the help however i've tried it but still seems to be unsuccessful. same error again.

    EDIT: i' resaved all other files in the mod as unicode files and it them seemed to work. without the fatal error. only 10 warnings to go :P

    Leave a comment:


  • replied
    daaave.....
    check your .uc file save as.....
    encoding should be "unicode"

    Leave a comment:


  • replied
    down to 1 error but confused

    hey. i've managed to work this down to 1 error but i'm really confused as to what this error actually is and how to fix it

    as you can see from the error message in the compiler there is an error saying unexpected i (or something similar) in the code. however i can't actually see this error in the code



    can anyone help?

    regards

    Leave a comment:


  • replied
    compiling problems

    i'm also getting compiling problems similar to euchreplayer,

    i'm getting 2 errors and 19 warnings,

    the errors seem to be to do with BEGIN OBJECT PickupLightEnvironment
    which it says is already in use, in the ammo class
    and the BEGIN OBJECT SkeletalMeshComponent0 in the Attachment class, which again it says is already in use?

    any idea's of how to get around these?

    Leave a comment:


  • replied
    After several trial and errors and googling a lot, the "error reading attributes" is not too meaningful. It will work regardless as long as you include your mutator in the setup screen for Instant Action. My mistake was to just do a new Campaign and I was therefore not including my mutator. If you want to get rid of this error, you can copy your unpublished directory to the C:\Program Files\Unreal tournament 3\ directory but again that is not necessary.

    Leave a comment:


  • replied
    Error reading attributes for ...

    Okay, I've compiled my HelloWorld.uc okay. I'm getting this runtime error now in the logs, no matter what I do. I run UT3.exe -useunpublished. Here's the code which is similar to what I found in another post:

    class HelloWorld extends UTMutator Config(Game);
    function PostBeginPlay() {
    Super.PostBeginPlay();
    LogInternal ("Hello World");
    }

    defaultproperties {
    bExportMenuData=true;
    }

    Leave a comment:


  • replied
    Okay, i've solved this one about not finding *.uc files but now I have runtime errors which I'll post separately.

    Leave a comment:


  • replied
    Problems finding source files with UT3 make

    hello,

    I've carefully read the tutorials and instructions but UT3 make seems to have problems finding my HelloWorld.uc file. Here's what I did:
    I've created subdirectories in the Src directory:
    Src/HelloWorld/Classes
    I've created HelloWorld.uc in the Classes directory
    I've added in UTEditor.ini:
    ModPackageS=HelloWorld

    When I run UT3 make I get this error. Any hints?


    Init: Version: 3487
    Init: Epic Internal: 0
    Init: Compiled: Oct 21 2007 03:17:32
    Init: Command line:
    Init: Base directory: C:\Program Files\Unreal Tournament 3\Binaries\
    Init: Character set: Unicode
    Log: Executing Class Editor.MakeCommandlet
    --------------------Core - Release--------------------
    --------------------Engine - Release--------------------
    --------------------GameFramework - Release--------------------
    --------------------Editor - Release--------------------
    --------------------UnrealEd - Release--------------------
    --------------------UnrealScriptTest - Release--------------------
    --------------------IpDrv - Release--------------------
    --------------------OnlineSubsystemGameSpy - Release--------------------
    --------------------OnlineSubsystemLive - Release--------------------
    --------------------UTGame - Release--------------------
    --------------------UTEditor - Release--------------------
    --------------------UTGameContent - Release--------------------
    --------------------HelloWorld - Release--------------------
    Warning, Can't find files matching C:\Users\myriam\Documents\My Games\Unreal Tournament 3\Binaries\..\UTGame\Src\HelloWorld\Classes\*.uc

    Warning/Error Summary
    ---------------------
    Warning, Can't find files matching C:\Users\myriam\Documents\My Games\Unreal Tournament 3\Binaries\..\UTGame\Src\HelloWorld\Classes\*.uc

    Success - 0 error(s), 1 warning(s)

    Execution of commandlet took: 3.36 seconds

    Leave a comment:


  • replied
    What does the Config(game) gives you? I'm familiar with Java but I don't understand this construct.

    Originally posted by Limi View Post
    I'm trying to run the basic of basic helloworld mutators as a test to make sure everything is working right, and to also get a feel for the engine again. But I'm having some issues.

    I have successfully compiled the mutator, and i'm using the -unpublished and -log flags to get some output. I can see that it's trying to load my mutator, but its just saying...

    Code:
    Error: Error reading attributes for 'C:\Games\Unreal Tournament 3\Binaries\..\UTGame\Unpublished\CookedPC\Script\MutHelloWorld.u'
    No idea's on whats causing this. Although the mutator does appear in the in-game lists. So I try to start a local instant action with my HelloWorld mutator and...

    Code:
    ScriptLog: Mutators MutHelloWorld.HelloWorld
    Warning: Failed to load 'Class MutHelloWorld.HelloWorld': Failed to find object 'Class MutHelloWorld.HelloWorld'
    So I have no ideas at all, anyone else got any?

    Here's the code im using...

    Code:
    class HelloWorld extends UTMutator
    	config(Game);
    
    function PostBeginPlay()
    {
      Super.PostBeginPlay();
      LogInternal("Hello World");
    }
    
    defaultproperties
    {
      bExportMenuData=true
      GroupNames(0)="TEST"
    }
    I'v also tried instead of function "simulated event" as that appears to be used about the place but no dice.

    Leave a comment:


  • replied
    I did a "ut3 -batch export" on ripperlite for ex as described here:
    http://utforums.epicgames.com/showth...=585103&page=2
    The exported scripts seemed okay...

    And tried immediately after to compile it using "ut3 - make" but got a bunch of errors (5 i think very similar)
    What did i do wrong, if anything? Help
    ex:
    Importing Defaults for UTAmmo_RipperLite
    C:\Program Files\Unreal Tournament 3\Development\Src\RipperLite\Classes\UTAmmo_Ripper Lite.uc(28) : Error, BEGIN OBJECT: The component name PickupLightEnvironment is already used (if you want to override the component, don't specify a class): Begin Object Class=DynamicLightEnvironmentComponentName=PickupL ightEnvironmentObjName=PickupLightEnvironmentArche type=DynamicLightEnvironmentComponent'UTGame.Defau lt__UTAmmo_FlakCannon:PickupLightEnvironment'
    Importing Defaults for UTAttachment_RipperLite
    C:\Program Files\Unreal Tournament 3\Development\Src\RipperLite\Classes\UTAttachment_ RipperLite.uc(11) : Error, BEGIN OBJECT: The component name SkeletalMeshComponent0 is already used (if you want to override the component, don't specify a class): Begin ObjectClass=SkeletalMeshComponentName=SkeletalMesh Component0ObjName=SkeletalMeshComponent
    0Archetype=SkeletalMeshComponent'UTGameContent.Def ault__UTAttachment_Translocator:SkeletalMeshCompon ent0'

    Leave a comment:


  • replied
    I'm only using the .upk, the texture files are in another disk, but everything was imported into the package file, need I to put all in the weapon directory at \src?

    Hm I'm not adding -useunpublished when I run the game/editor... may be that is a problem happening... I've tried Published\CookedPC, Unpublished, also placing into the game folders my .upk file, nothing never worked...

    I'll try compiling again to see if was that the problem with the mesh reference... may it also fix the pickupmesh when running the game, or not?

    I'm not even a programmer, I'm just trying something with the script too

    Leave a comment:


  • replied
    where do you put your files (UPK and so on) ? Do you also use option "-useunpublished" for compilation and run ?

    Leave a comment:


  • replied
    Hello, everyone, I've coded a mutator thats extends the Stinger to create a new behavior to the weapon, the code is working so I made a package to set a new skin to difference the weapon, everything is ok in the editor, i've copied the stinger mesh, material and textures (screen capture) and made my changes and renamed all to my new set, the new material is all ok and I made it to show on my version of Stinger mesh and it works too. Well, I've overwrited the default weapon property to reference my new package and it does not works, the compiler says that can't find my upk and the PIE shows the super.mesh...

    There is one more problem, I only can play into the editor, when I use the mutator to replace my weapon, there stills nothing on the pickup factory or in the invetory when I selected my version of the weapon, but all works when I'm playing in the editor...

    Leave a comment:


  • replied
    I'm testing my mutator using a server and client now.

    Is there a way to make LAN the default Server Type? I've also been searching around for some documentation or examples of using the Localization .int files it appears that udn.epicgames.com is down, or at least unreachable by me today.

    Thanks in advance!

    Leave a comment:


  • replied
    Prefect, thanks immortius.

    Leave a comment:

Working...
X