Author |
Message |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 07/02/2007 19:31:11
|
Charybdis
Joined: 09/19/2006 20:38:18
Messages: 7
Offline
|
So I made my own RPG, basically a copy of the original with a few changes. But the problem is, I can't get any abilities to work. For some reason the superclass of all the abilities must be UT2004.RPGAbility. Currently, the superclass is CharyRPG.RPGAbility. The error message given is
Code:
Error, CharyRPG.AbilityJumpZ's superclass must be UT2004RPG.RPGAbility, not CharyRPG.RPGAbility"
How does it know the difference? Has anyone had this problem before?
Thanks,
Charybdis
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 07/02/2007 19:44:06
|
Continuum
Wicked Sick!
![[Avatar]](/dcforum/images/avatar/37a749d808e46495a8da1e5352d03cae.png)
Joined: 03/09/2005 05:20:36
Messages: 479
Location: Indianapolis, Indiana
Offline
|
Kind of lacking details but it sounds like you replaced UT2004.RPGAbility with CharyRPG.RPGAbility ?
What I'd do is have CharyRPG.RPGAbility extend UT2004.RPGAbility then have any additional abilities that must have CharyRPG.RPGAbility to work extend it. Anything else that does not absolutely need to extend it should extend UT2004.RPGAbility if at all possible. Others probably could provide input as to other things that need to be done but I think this should get you to the point you can check the logs to debug whats going on.
|
Current WIP:
Skins:
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 07/02/2007 20:13:08
|
Charybdis
Joined: 09/19/2006 20:38:18
Messages: 7
Offline
|
Yea, I did replace UT2004.RPGAbility with CharyRPG.RPGAbility. Well, I just copied over the source and renamed it. So tried making the CharyRPG.RPBAbility extend the UT2004.RPGAbility. But my code was "RPGAbility extends RPGAbility". THAT was a dumb move. It sent UCC into a never ending loop. How can I specify between the different RPG Abilities? I thought I could just change the name to something else, like CharyRPG.CharyAbility, but that messed up tons of stuff. I tried fixing it all, but didn't even come close. So basically how do I specify between the different RPGAbilitiy.uc's? Thanks!
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 07/03/2007 05:16:31
|
BotFodder
Wicked Sick!
![[Avatar]](/dcforum/images/avatar/6ea2ef7311b482724a9b7b0bc0dd85c6.jpg)
Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline
|
Unless you're wholesale replacing UT2004RPG, you're going to run into issues like this because there are all sorts of references to RPGAbility in the code that rely on the class in question being UT2004RPG's RPGAbility.
If you *do* rip apart UT2004RPG and replace it with something you've changed, there's probably a lot of code cleanup that's going to be involved. There's also an ethical debate brewing there but that's for another topic, and another time.
As per previous suggestions, you should rename your RPGAbility to something else and make it a child of UT2004RPG's RPGAbility - we did this quite a couple of times in DruidsRPG, namely for the "death" classes and "Class" classes.
I think most Unreal developers do everything they can to avoid naming a class the same as another class from a mod they might end up using at the same time (IE, if you looked at DruidsRPG, I'd guess that you'd see no class that has an identical name as a class from any other mod in use on DC).
|
I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives |
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 07/03/2007 07:11:21
|
Charybdis
Joined: 09/19/2006 20:38:18
Messages: 7
Offline
|
ok, thanks guys. I'll give that a try. (making a child class of the UT2004RPG.RPGAbility).
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 02/07/2008 00:11:42
|
{TARD}-GAFFA
Joined: 05/18/2007 02:04:18
Messages: 26
Offline
|
personally, i dont know why your even attempting to rename it. why not try and extend it somehow with something new like Cherls extends RPGAbility
and try and make a new ability?
|
 |
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 02/07/2008 15:12:30
|
Charybdis
Joined: 09/19/2006 20:38:18
Messages: 7
Offline
|
i found the problem and fixed this quite a while ago, and the reason i didn't want to extend it is because i needed to modify some of the main classes which wouldn't have worked out unless i made my own.
|
|
 |
|