[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
res menu  XML
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Author Message
{TARD}-GAFFA


[Avatar]
Joined: 05/18/2007 02:04:18
Messages: 26
Offline

hi, i have been working with a couple of friends on making a res menu. well it is basically taken from someone elses script and modified. with there consent. the original is from RB1337RPG. i tried to change it so it used UT2004RPG by making a extension. which looks like this:

class MutUT2004RPGexp extends MutUT2004RPG
config(UT2004RPG);


var bool bCanUseResArtifact;







// simple utility to find the mutator in the given game
static final function MutUT2004RPGexp GetRPGMutator(GameInfo G)
{
local Mutator M;
local MutUT2004RPGexp RPGMut;

for (M = G.BaseMutator; M != None && RPGMut == None; M = M.NextMutator)
{
RPGMut = MutUT2004RPGexp(M);
}

return RPGMut;
}


defaultproperties
{

bCanUseResArtifact=True

}



but when i compile i get this error

Error, Redefinition of Function GetRPGMutator differs only by return type



[Email]
Charybdis



Joined: 09/19/2006 20:38:18
Messages: 7
Offline

so... your going to have a couple of problems perhaps with using the think tanks code. i don't remember how hard it was for milk to right that but extracting it from the rest of our code might not be the easiest thing. The error your getting is somewhat self explanatory, you can't redefine the function from the parent class file. I'm not exactly sure if you'll need to extend the Mutator class of the rpg, but if its necessary for one of the variables in the res menu classes then go for it.
{TARD}-GAFFA


[Avatar]
Joined: 05/18/2007 02:04:18
Messages: 26
Offline

deleted


[Email]
 
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Go to: