Page 1 of 1

Weapon Error

PostPosted: Mon Apr 16, 12 12:54 am
by atrey65789
Right now, I'm tryn to do a little somethin somethin....

Trying to Code to where instead of one enforcer a player has two.

Look in the posts below for the link to the package.

What is malfunctioning here? lol

PostPosted: Mon Apr 16, 12 4:50 am
by Kalman11
What is the name of the class? WeaponEnforcer?

PostPosted: Mon Apr 16, 12 11:02 am
by atrey65789
yes

PostPosted: Mon Apr 16, 12 11:07 am
by Alex
Please post the entire class as attachment.

PostPosted: Mon Apr 16, 12 8:18 pm
by RedDynasty
hmm i think it know what it wrong.
If this is the enforcer from ut, deus ex might not know the function of double enforcers, thus not knowing the "bBringingUp" var which controls the script of having 2 or just 1 enforcer.
I dont know if it is possible to code 2 enforcers, but there is mod that adds akimbo weapons to dx.
If u want i can send u the code ;)

PostPosted: Tue Apr 17, 12 12:55 am
by atrey65789
@Red


I can send ya the class.


@Alex


Won't let me attach anything.... I can't find the Attachment box.

PostPosted: Tue Apr 17, 12 1:44 am
by Kaiden
Yeah, probs send it in PM instead.

PostPosted: Tue Apr 17, 12 1:57 am
by atrey65789

PostPosted: Tue Apr 17, 12 5:39 am
by Alex
I was under the impression that you were trying to compile the class for DoubleEnforcer, but you're trying to extend it? As this is already a compiled .u package. Or did this one originate from UT?

PostPosted: Tue Apr 17, 12 9:47 am
by atrey65789
It IS a compiled U file... But i extended it from UnrealEd and then saved it. when you do that, you can save packages that have errors in it.

PostPosted: Tue Apr 17, 12 9:53 am
by Alex
So what you're saying is, is that it gave errors while compiling but you saved it nevertheless?

Then once again, please post the entire class (thus the .uc file).

PostPosted: Tue Apr 17, 12 9:55 am
by atrey65789
Are you thinking I compiled with UCC?

PostPosted: Tue Apr 17, 12 10:16 am
by Alex
You tell me. How did you get that .u file?

PostPosted: Tue Apr 17, 12 10:25 am
by atrey65789
First, I extended WeaponEnorcer (tnag) .

next I pasted the code for two enforcers from the original enforcer script on UT.


Then I started to compile (F7) and started fixing mistakes.

Then one comes up.. something like this "bBringingUp" cant be found in class "WeaponEnforcer."

I didn't want to lose my work.. so I went up to the class i had just created and right clicked and clicked "Save classes"

PostPosted: Tue Apr 17, 12 10:41 am
by Alex
That's the information I needed.

Code: Select all
var WeaponEnforcer SlaveEnforcer;

should be
Code: Select all
var DoubleEnforcer SlaveEnforcer;


But I can already guarantee you that you will run into a lot more errors. I'm afraid you can't just copy code from UnrealTournament to Deus Ex. You'll have to rewrite a lot of it.
I'm not sure if you're experienced with UnrealScript, but I suggest you start with the basis, such as decoration / simple items with function as Frob etc.

PostPosted: Tue Apr 17, 12 12:02 pm
by atrey65789
Oh yeah... without a doubt i have to rewrite a lot of it. And I'm experienced a little with it... its just I'm more of a code tweaker then an ACTUAL coder lol.