1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Help with Coding...

Discussion in 'Programming' started by Cieprus, Feb 19, 2002.

  1. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    Well im not at home right now but...It doesnt make my Enforcer Shoot faster..Obvsly thats whats not working...Ill check the UCC log when I get home
     
  2. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    Now I get this error...
     
  3. TURY

    TURY SAS Lead Coder

    Joined:
    Nov 4, 2001
    Messages:
    17
    Likes Received:
    0
    well, post the latest code here that would have caused the error here
     
  4. TaoPaiPai

    TaoPaiPai Commisaire Van Loc

    Joined:
    Jun 13, 2000
    Messages:
    1,626
    Likes Received:
    0
    So apparently you DID compile now,right?
     
  5. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    Ok heres the latest code & Yes it does compile...

    SuperEnforcer.uc

    //
    class SuperEnforcer expands Enforcer;

    simulated function PlayFiring()
    {
    PlayAnim( 'Fire', 2.3, 0.05);
    PlayOwnedSound(FireSound, SLOT_Misc,Pawn(Owner).SoundDampening*4.0);
    bMuzzleFlash++;
    }

    SuperEnforcerMutator.uc

    class SuperEnforcerMutator expands Mutator;

    function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
    {
    if ( Other.IsA('Enforcer') && !Other.IsA('SuperEnforcer') ) {
    ReplaceWith(Other, "SuperEnforcer.SuperEnforcer");
    return true;
    }
    return false;
    }

    UCC Log File

    Log: Log file open, 02/21/02 14:59:59
    Init: Name subsystem initialized
    Init: Detected: Microsoft Windows NT 5.1 (Build: 2600)
    Init: Version: 436
    Init: Compiled: Oct 24 2000 23:40:18
    Init: Command line: make
    Init: Base directory: F:\Games\Unreal Tournament\System\
    Init: Character set: Unicode
    Log: Bound to Core.dll
    Init: Object subsystem initialized
    Init: Computer: COMPUTER
    Init: User: MattYP
    Init: Memory total: Phys=261616K Pagef=752580K Virt=2097024K
    Init: Working set: 32000 / 159000
    Init: CPU Speed=598.832771 MHz
    Init: CPU Page size=4096, Processors=1
    Init: CPU Detected: PentiumPro-class processor (AuthenticAMD)
    Init: CPU Features: CMov FPU RDTSC PAE MMX 3DNow!
    Log: Bound to Editor.dll
    Log: Bound to Engine.dll
    Log: Bound to Window.dll
    Log: Executing Class Editor.MakeCommandlet
    Init: Unreal engine initialized
    Heading: --------------------Core--------------------
    Heading: --------------------Engine--------------------
    Heading: --------------------Editor--------------------
    Heading: --------------------UWindow--------------------
    Heading: --------------------Fire--------------------
    Log: Bound to Fire.dll
    Heading: --------------------IpDrv--------------------
    Log: Bound to IpDrv.dll
    Heading: --------------------UWeb--------------------
    Log: Bound to UWeb.dll
    Heading: --------------------UBrowser--------------------
    Heading: --------------------UnrealShare--------------------
    Heading: --------------------UnrealI--------------------
    Heading: --------------------UMenu--------------------
    Heading: --------------------IpServer--------------------
    Heading: --------------------Botpack--------------------
    Heading: --------------------UTServerAdmin--------------------
    Heading: --------------------UTMenu--------------------
    Heading: --------------------UTBrowser--------------------
    Heading: --------------------SuperEnforcer--------------------
    Warning: Failed to load 'SuperEnforcer.u': Can't find file 'SuperEnforcer.u'
    Warning: Failed loading package: Can't find file 'SuperEnforcer.u'
    Log: Analyzing...
    Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\SuperEnforcer\Classes\SuperEnforcer.uc)
    Log: Imported: Class SuperEnforcer.SuperEnforcer
    Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\SuperEnforcer\Classes\SuperEnforcerMutator.uc)
    Log: Imported: Class SuperEnforcer.SuperEnforcerMutator
    Log: Parsing SuperEnforcer
    Log: Parsing SuperEnforcerMutator
    Log: Compiling SuperEnforcer
    Log: Compiling SuperEnforcerMutator
    Log: Success: Compiled 29 line(s), 6 statement(s).

    Warning: Failed to load '..\SystemConform\SuperEnforcer.u': Can't find file '..\SystemConform\SuperEnforcer.u'
    Log: Save=99.531158
    Log: Moving 'Save.tmp' to 'SuperEnforcer.u'
    Log: Success - 0 error(s), 0 warnings
    Exit: Preparing to exit.
    Log: Purging garbage
    Log: Unbound to Core.dll
    Log: Unbound to Editor.dll
    Log: Unbound to Engine.dll
    Log: Unbound to Window.dll
    Exit: Editor shut down
    Log: 0.0ms Unloading: Package Core
    Log: 0.0ms Unloading: Package Engine
    Log: 0.0ms Unloading: Package Editor
    Log: 0.0ms Unloading: Package UWindow
    Log: Unbound to Fire.dll
    Log: 0.0ms Unloading: Package Fire
    Log: Unbound to IpDrv.dll
    Log: 0.0ms Unloading: Package IpDrv
    Log: Unbound to UWeb.dll
    Log: 0.0ms Unloading: Package UWeb
    Log: 0.0ms Unloading: Package UBrowser
    Log: 0.0ms Unloading: Package UnrealShare
    Log: 0.0ms Unloading: Package UnrealI
    Log: 0.0ms Unloading: Package UMenu
    Log: 0.0ms Unloading: Package IpServer
    Log: 0.0ms Unloading: Package Botpack
    Log: 0.0ms Unloading: Package Female2Voice
    Log: 0.0ms Unloading: Package Male2Voice
    Log: 0.0ms Unloading: Package Female1Voice
    Log: 0.0ms Unloading: Package BossVoice
    Log: 0.0ms Unloading: Package Male1Voice
    Log: 0.0ms Unloading: Package Announcer
    Log: 0.0ms Unloading: Package UTServerAdmin
    Log: 0.0ms Unloading: Package UTMenu
    Log: 0.0ms Unloading: Package LadderSounds
    Log: 0.0ms Unloading: Package LadrArrow
    Log: 0.0ms Unloading: Package UTBrowser
    Log: Garbage: objects: 41218->0; refs: 0
    Exit: Object subsystem successfully closed.
    Exit: Exiting.
    Uninitialized: Name subsystem shut down
    Uninitialized: Allocation checking disabled
    Uninitialized: Log file closed, 02/21/02 15:00:05
     
  6. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    Please! Help me im lost without this forum!!!
     
  7. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,913
    Likes Received:
    36
    I don't think your code caused that error. Did you try playing with and without your mutator?
     
  8. Call me Erdrik

    Call me Erdrik Arch Mage

    Joined:
    Nov 24, 1999
    Messages:
    334
    Likes Received:
    0
    get a map. j/k lol :lol:


    But I agree with Wormbo. your code looks fine. Im really not sure whats wrong, but I work in Ued, instead of using UCC so why listen to me? :p lol
     
  9. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,913
    Likes Received:
    36
    Argh! An UnrealEd coder! Run for your lives!

    /me looks for cover... :rolleyes:
     
  10. TaoPaiPai

    TaoPaiPai Commisaire Van Loc

    Joined:
    Jun 13, 2000
    Messages:
    1,626
    Likes Received:
    0
    If you want to change the speed of firing of this weapon I think you should just change the variable refireRate in the default properties.
    Just make it a BIGGER value (in this case superior to 0.8)
     
  11. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    yes I did run it with and without the mutator, and no error was caused when i ran it without the mutator...Ill try cahnging that default prop. :rolleyes:
     
  12. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    How do I put in that default propertie...?

    default properties;
    {
    ...
    }

    I think thats wrong...Dont laugh :rolleyes:
     
  13. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,913
    Likes Received:
    36
    defaultproperties
    {
    }

    @TaoPaiPai: I don't think so. RefireRate is the probability that a bot "presses the fire button" a bit longer.
     
  14. jb

    jb New Member

    Joined:
    May 22, 2000
    Messages:
    278
    Likes Received:
    0
    That looks to me that it did not compile right....
     
  15. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    I dont know why it wouldnt compile...
     
  16. jb

    jb New Member

    Joined:
    May 22, 2000
    Messages:
    278
    Likes Received:
    0
    Doh my fault. I thought that was the unrealtournamnet log file.

    Can you start a practice match, then summon it:

    summon <yourpackagename>.SuperEnforcer
     
  17. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    it didnt summon
    Unrec. command
     
  18. aspie

    aspie It's all good baby.

    Joined:
    Feb 24, 2001
    Messages:
    315
    Likes Received:
    0
    Post the *.u file here so we can have a look at it.
     
  19. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    Here ya go.
     
  20. Cieprus

    Cieprus Mapper...In Progress

    Joined:
    Feb 17, 2002
    Messages:
    113
    Likes Received:
    0
    Still lost...No mutators I make will work, ive tryed different tutorials with examples and they dont work...Im trying everything and I KNOW im not screwing something up....
     

Share This Page