Old 11-03-2009, 11:26 AM   #1
[CD]Troy
Senior Member
 
[CD]Troy's Avatar
 
Join Date: Sep 2009
Location: Planet Earth
Posts: 172
Send a message via MSN to [CD]Troy
Default Replacing pickups?

How do I replace a xpickups.adrenalinepickup with another pickup i chose?

thanks
[CD]Troy is offline   Reply With Quote
Old 11-03-2009, 12:15 PM   #2
NightMan
Senior Member
 
NightMan's Avatar
 
Join Date: Jun 2008
Location: at computer
Posts: 451
Default

1. search these forums for examples :P
2. if you cannot find anything that does what you want, look for something that does a similar thing.

so in this case we want to replace an adrenaline pickup, so do we know any other mut that replaces adren? no? how bout a different kind of pickup?? like an ammo pickup for a custom weapon?? lets search for that

http://utforums.epicgames.com/showth...ight=swap+ammo

and see if you can change the needed bits to make your mod work :P
__________________
//=========
// ~NightMan
//=========
NightMan is offline   Reply With Quote
Old 11-03-2009, 02:23 PM   #3
GreatEmerald
Senior Member
 
GreatEmerald's Avatar
 
Join Date: Nov 2007
Location: Lithuania
Posts: 1,816
Default

Create a mutator with a CheckReplacement() function. See http://wiki.beyondunreal.com/Legacy:CheckReplacement
GreatEmerald is offline   Reply With Quote
Old 11-03-2009, 03:14 PM   #4
[CD]Troy
Senior Member
 
[CD]Troy's Avatar
 
Join Date: Sep 2009
Location: Planet Earth
Posts: 172
Send a message via MSN to [CD]Troy
Default

Hmm, thanks both!

First i'll try the utwiki way, and if that doesnt work, i'll use the way nightman told.

Also next time i will search more for it, before i ask something.
[CD]Troy is offline   Reply With Quote
Old 11-03-2009, 06:22 PM   #5
NightMan
Senior Member
 
NightMan's Avatar
 
Join Date: Jun 2008
Location: at computer
Posts: 451
Default

there both the same way troy :P
__________________
//=========
// ~NightMan
//=========
NightMan is offline   Reply With Quote
Old 11-04-2009, 04:49 AM   #6
[CD]Troy
Senior Member
 
[CD]Troy's Avatar
 
Join Date: Sep 2009
Location: Planet Earth
Posts: 172
Send a message via MSN to [CD]Troy
Default

the different is copy pasting and learning from it
[CD]Troy is offline   Reply With Quote
Old 11-04-2009, 12:02 PM   #7
[CD]Troy
Senior Member
 
[CD]Troy's Avatar
 
Join Date: Sep 2009
Location: Planet Earth
Posts: 172
Send a message via MSN to [CD]Troy
Default

****, my umake and ucc is doin very weird:

Select project, D:\UT2004\Replacements
No valid project directory found for package 'Replacements' (which requires recomplication)

I deleted UMake.ini but didnt work..

also ucc didnt do best:

Code:
Heading: ----------------------------Core - Release----------------------------
Heading: ---------------------------Engine - Release---------------------------
Heading: ----------------------------Fire - Release----------------------------
Heading: ---------------------------Editor - Release---------------------------
Heading: --------------------------UnrealEd - Release--------------------------
Heading: ---------------------------IpDrv - Release----------------------------
Heading: ----------------------------UWeb - Release----------------------------
Heading: --------------------------GamePlay - Release--------------------------
Heading: -------------------------UnrealGame - Release-------------------------
Heading: --------------------------XGame_rc - Release--------------------------
Heading: --------------------------XEffects - Release--------------------------
Heading: ------------------------XWeapons_rc - Release-------------------------
Heading: ------------------------XPickups_rc - Release-------------------------
Heading: --------------------------XPickups - Release--------------------------
Heading: ---------------------------XGame - Release----------------------------
Heading: --------------------------XWeapons - Release--------------------------
Heading: -------------------------XInterface - Release-------------------------
Heading: ---------------------------XAdmin - Release---------------------------
Heading: -------------------------XWebAdmin - Release--------------------------
Heading: --------------------------Vehicles - Release--------------------------
Heading: -------------------------BonusPack - Release--------------------------
Heading: -----------------------SkaarjPack_rc - Release------------------------
Heading: -------------------------SkaarjPack - Release-------------------------
Heading: -------------------------UTClassic - Release--------------------------
Heading: ------------------------UT2k4Assault - Release------------------------
Heading: -------------------------Onslaught - Release--------------------------
Heading: ---------------------------GUI2K4 - Release---------------------------
Heading: ----------------------UT2k4AssaultFull - Release----------------------
Heading: -----------------------OnslaughtFull - Release------------------------
Heading: --------------------------xVoting - Release---------------------------
Heading: ------------------------StreamlineFX - Release------------------------
Heading: --------------------------UTV2004c - Release--------------------------
Heading: --------------------------UTV2004s - Release--------------------------
Heading: ------------------------Replacements - Release------------------------
Warning: Failed to load 'Replacements.u': Can't find file 'Replacements.u'
Warning: Failed loading package: Can't find file 'Replacements.u'
Log: Analyzing...
Critical: Can't find files matching Replacements\Classes\*.uc
Exit: Executing UObject::StaticShutdownAfterError
Critical: UMakeCommandlet::Main
Exit: Exiting.
I really had replacement.uc wtf am i doin wrong

Last edited by [CD]Troy; 11-04-2009 at 12:07 PM.
[CD]Troy is offline   Reply With Quote
Old 11-04-2009, 03:09 PM   #8
GreatEmerald
Senior Member
 
GreatEmerald's Avatar
 
Join Date: Nov 2007
Location: Lithuania
Posts: 1,816
Default

It needs to be located in D:\UT2004\Replacements\Classes\replacement.uc.
GreatEmerald is offline   Reply With Quote
Old 11-05-2009, 04:55 AM   #9
[CD]Troy
Senior Member
 
[CD]Troy's Avatar
 
Join Date: Sep 2009
Location: Planet Earth
Posts: 172
Send a message via MSN to [CD]Troy
Default

I already did
[CD]Troy is offline   Reply With Quote
Old 11-05-2009, 11:52 AM   #10
[CD]Troy
Senior Member
 
[CD]Troy's Avatar
 
Join Date: Sep 2009
Location: Planet Earth
Posts: 172
Send a message via MSN to [CD]Troy
Default

UPDATE:

Now it works, was forgotten that my pc is other here..

Now I have a error as usual:

Script:
Code:
//========================
// Scripted by Troy
//========================

class Replacement extends mutator;

function bool CheckReplacement( Actor Other, out byte bSuperRelevant )
{
    if ( WeaponPickup(Other) != None )
    {
        if ( string(Other.Class) == "xPickups.AdrenalinePickup" )
            ReplaceWith( Other, "SENTINELSTEROIDS.baSentinelDeployerAmmoPickup");
        else
            return true;
    }
    else
        return true;

    return false;
}

defaulfproperties
{
friendlyname=SentinelAmmoReplacements
groupname=REPLACINGTHINGS
}
Now I wonder whats wrong with it? Cause it gives this error:

Code:
----- Replacements (Release)
Analyzing...
Parsing Replacement
Error in Replacement.uc (22): Unexpected 'defaulfproperties'
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)
Why unexpected, I closed the other code so I dont see a problem

And, if this code is very wrong, please give me the fix for it
[CD]Troy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Video Game Voters Network
 
All times are GMT -4. The time now is 06:26 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2009 Epic Games, Inc. All Rights Reserved.