[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
ut2004rpg addon  XML
Forum Index -> Druids RPG Go to Page: 1, 2 Next 
Author Message
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

i made own settings using the rpg source code but now i wanna recompile them how do i need to this it is fine with me if it is just like druids rpg a addon that i needs the original rpg i dont care about that.
is there anybody who wants to tell me how to do this ?
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

can anybody please help me out on this ?
it realy means a lot to me,
and druid i know that you can help me,
as you have made a rpg expansion yourself to.
bushbomb

Killing Spree

Joined: 01/21/2005 14:06:46
Messages: 48
Offline

what would you want to make it for?

Server Admin
www.DAWGA.com
UT2004 RPG since 2004
[WWW] [MSN]
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

good question becouse i love the rpg and want to change some things ?
wel sorry but not to make it un-balanced thats for sure.

why can you help me then ?

EDIT: sorry thought you meanted WHY
wel mostly for personal use and for a friend but not for any public meanings thats what i plan to do with it
bushbomb

Killing Spree

Joined: 01/21/2005 14:06:46
Messages: 48
Offline

Be more specific. I can help some I think. I've made rpg additions to DAWGA, and they're just for our server, not something I'm publishing.

Do you want to add charms, abilities, weapon types, etc? If so, which types, and also, do you want to just "Add" some, or are you looking to try and modify the ones druid or mysterial created?

Do you know how to compile *.uc files in to a *.u server package? That will be your first step to learn if you don't know.

Server Admin
www.DAWGA.com
UT2004 RPG since 2004
[WWW] [MSN]
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

hmm somewhat i know with the dos command prompt with the u make but i get errors all the time
and about druids rpg i cannot edit any of his things cus i dont have source code ashame.
and i mostly edited things from mysterials rpg becouse i mainly want to have costs changed and some results changed.
and if i know how it all works a bit and know how to make it compile without errors i might start making my own abilitys but not yet..
and about recompiling i have tried to just recompile the original source code that came with the rpg but it still gave me a error.
maybe i should compile the rpg in a different way ?
bushbomb

Killing Spree

Joined: 01/21/2005 14:06:46
Messages: 48
Offline

You should rename anything you do. Keep mysterials stuff in place with how he set it up. Re-name the specific things you want to change in a new package. Go to www.wiki.com, I think that's the address. You'll need to read up on the basics, doesn't sound like you're too familiar with it.

You'll need to rename each class you want to use, then in the rpgini file you'll need to call those new classes in the abilities or charms or whatever it is. YourPackage.classname. It's all somewhat complicated to explain from scratch. Once you get the gist of how it all works it will be easier for me to explain things.

Server Admin
www.DAWGA.com
UT2004 RPG since 2004
[WWW] [MSN]
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

yeah wel i know a few things and renamed package and stuff but wil rename the classes now aswel
and i used the tutoral from angelmapper nog from unrealwiki but wil check.. they are kinda confusing..

EDIT: been there and have been looking for atleast 30 min now and it isnt what they tell wich i dont understand but rether the confusing build up of the site i just cant find what i need ?
sorry but this is kinda anoying me a bit also that i have been trying for about 6 months now..
and finaly there actualy is someone that is willing to help me so yeah ya got my eternal thanks and gratitute [for as long as i remember you that is wich is proberly as long as i wil play ut.. quite long]
bushbomb

Killing Spree

Joined: 01/21/2005 14:06:46
Messages: 48
Offline

To do a simple package with lets say one ability, copy mysterial's "vampire" ability (the *.uc file). Make this folder: C:\ut2004\onwersRPG\Classes and copy the AbilityVampire.uc from mysterial's source. Rename it to "onwerAbilityVampire.uc" and open the file up.

Here it is. For it to work, I'll post the changes next...

class AbilityVampire extends RPGAbility
abstract;

static simulated function int Cost(RPGPlayerDataObject Data, int CurrentLevel)
{
if (Data.Attack < 50)
return 0;
else
return Super.Cost(Data, CurrentLevel);
}

static function HandleDamage(int Damage, Pawn Injured, Pawn Instigator, out vector Momentum, class<DamageType> DamageType, bool bOwnedByInstigator, int AbilityLevel)
{
local int Health;

if (!bOwnedByInstigator || DamageType == class'DamTypeRetaliation' || Injured == Instigator || Instigator == None)
return;

Health = int(float(Damage) * 0.05 * float(AbilityLevel));
if (Health == 0)
Health = 1;
Instigator.GiveHealth(Health, Instigator.HealthMax + 50);
}

defaultproperties
{
AbilityName="Vampirism"
Description="Whenever you damage another player, you are healed for 5% of the damage per level (up to your starting health amount + 50). You can't gain health from self-damage and you can't gain health from damage caused by the Retaliation ability. You must have a Damage Bonus of at least 50 to purchase this ability. (Max Level: 10)"
StartingCost=10
CostAddPerLevel=5
MaxLevel=10
}

 


Changes....
class onwerAbilityVampire extends RPGAbility
abstract;

static simulated function int Cost(RPGPlayerDataObject Data, int CurrentLevel)
{
if (Data.Attack < 50)
return 0;
else
return Super.Cost(Data, CurrentLevel);
}

static function HandleDamage(int Damage, Pawn Injured, Pawn Instigator, out vector Momentum, class<DamageType> DamageType, bool bOwnedByInstigator, int AbilityLevel)
{
local int Health;

if (!bOwnedByInstigator || DamageType == class'DamTypeRetaliation' || Injured == Instigator || Instigator == None)
return;

Health = int(float(Damage) * 0.05 * float(AbilityLevel));
if (Health == 0)
Health = 1;
Instigator.GiveHealth(Health, Instigator.HealthMax + 50);
}

defaultproperties
{
AbilityName="Vampirism"
Description="Whenever you damage another player, you are healed for 5% of the damage per level (up to your starting health amount + 50). You can't gain health from self-damage and you can't gain health from damage caused by the Retaliation ability. You must have a Damage Bonus of at least 50 to purchase this ability. (Max Level: 10)"
StartingCost=10
CostAddPerLevel=15
MaxLevel=10
}
 

The first change is required to make it compile, the 2nd is to simply change the Cost per level to 15 instead of 5. You can tweak all you want from there.

Now, open ut2004.ini and go to EditPackages and add EditPackages=onwersRPG

Then run c:\ut2004\system\ucc.exe make

Now in the ut2004rpg.ini file, go down to the abilities section.
put a ";" in front of the line(or delete the line)
Abilities=Class'UT2004RPG.AbilityVampire' or if you use druid's stuff, delete:
Abilities=Class'DruidsRPG155.DruidVampire'
and add the line:
Abilites=Class'onwersRPG.onwerAbilityVampire'


Now run your server and you will be able to purchase the new vampire skill at the more expensive cost. That's all there is to it.

Note: Aside from copying the Vampire code, all this was off the top of my head, so if I didn't get at least one little thing missed, I'll be suprised.

Server Admin
www.DAWGA.com
UT2004 RPG since 2004
[WWW] [MSN]
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

ive edited my last post and thanks for this this might just actualy be containing the thing i am doing wrong..
if i still keep getting a error i'll post that along.
thnx for the big trouble

EDIT: i still got a error wich is same as wich i had before
see attachment for the error details i put up a screen of it.
allright wont accept image attachments.. to bad
wel the error is that it cannot find the super class of it
"onwerAbilityVampire" in this case that is.
[i left the attachment on incase you still want to see it..]
 Filename error.JPG [Disk] Download
 Description
 Filesize 61 Kbytes
 Downloaded:  229 time(s)

bushbomb

Killing Spree

Joined: 01/21/2005 14:06:46
Messages: 48
Offline

Ah, that should be simple enough. Since your rpg builds on to Mysterial's, you need to add "EditPackages=UT2004RPG" ABOVE the editpackage line adding your stuff, then re-compile.

Server Admin
www.DAWGA.com
UT2004 RPG since 2004
[WWW] [MSN]
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

oke if that is all thnx
now if that indeed fixes the error then it is all set to go
big thanks to bushbomb for helping me out with this last thing
sinds i have been till were i have been wich was this error
now i wil note if it worked or not in a few sec/min

EDIT: I love you ! your da man !
[yes this means i got it to compile, next thing coming up if it works ingame wich i do think it wil]

EDIT2: alright tested ingame and it works so good,
oh yeah you made somebody very happy [or should i say 2 ppl me and my friend]

EDIT3: [wow what a edits]
is it possible to un-compile druids rpg so i can edit things end then recompile it along ? [ i want to use his vampire for example becouse of the bug fix this also goes for his ghost/reseruction]
druid, if you think i should not do this please notify me of it and i wil not do so.
bushbomb

Killing Spree

Joined: 01/21/2005 14:06:46
Messages: 48
Offline

Ummm....I could tell you how to get it, or give it to you, but that's not my place. You'll have to ask Druid on this one.

Server Admin
www.DAWGA.com
UT2004 RPG since 2004
[WWW] [MSN]
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

druid, if you think i should not do this please notify me of it and i wil not do so.
i know and to say it in some way i did ask druid dindt i ?
and i doubt that druid even answer this wil he ? hope he does.
anyway, druid you may i use your rpg source code ?
onwer



Joined: 04/24/2005 07:23:48
Messages: 21
Offline

hmm i send him a PM and dindt got a answer but i want to know how to un-compile anyway so do you mind telling me ?
[dont worry aint gonna do stuff without permission]
 
Forum Index -> Druids RPG Go to Page: 1, 2 Next 
Go to: