I have been working on this weapon in UT2004 for almost a week now and after compiling yesterday I got an error I have yet to figure out.
Let me explain before the error.
I have gotten every function of the weapon working, except the alt fire which I haven't started yet(should be easy though), except I never got the first person model working and the third person model in the right position. Well, I knew that there was something wrong with the model importing into the script because in the log it says that the animations couldn't find the model and because it shows up in third person( didn't model two different ones ). At first I just tried importing it into the Editor and saving it as a custom package, then specifying it as the skeletal mesh in the weapon's properties. This didn't work. So then I tried importing it all in the weapon's script with #exec functions. I didn't model it with 3ds, but with Maya instead so I didn't use 3ds2unr(or whatever it's called). This still didn't work. So, I went back to the editor and realized that I hadn't set the default animations for it, so I did that and saved it in the reference pose. This is when I got the error:
The weapon is extended from Weapon. As in:
So, from what I can tell, the error is telling me that the function within the class that I am trying to compile (BladeHand) is conflicting with a function within itself...... So, I tried taking the function out, it gave me the same error with a different function. I tried taking all the functions out, I got a General Protection Error. So, I copied the function back into it and left it alone to see if I could get anybody to tell me why I am getting this error.
Thanks in advance.
Let me explain before the error.
I have gotten every function of the weapon working, except the alt fire which I haven't started yet(should be easy though), except I never got the first person model working and the third person model in the right position. Well, I knew that there was something wrong with the model importing into the script because in the log it says that the animations couldn't find the model and because it shows up in third person( didn't model two different ones ). At first I just tried importing it into the Editor and saving it as a custom package, then specifying it as the skeletal mesh in the weapon's properties. This didn't work. So then I tried importing it all in the weapon's script with #exec functions. I didn't model it with 3ds, but with Maya instead so I didn't use 3ds2unr(or whatever it's called). This still didn't work. So, I went back to the editor and realized that I hadn't set the default animations for it, so I did that and saved it in the reference pose. This is when I got the error:
Code:
D:\UT2004\BladeHand\Classes\BladeHand.uc(13) : Error,'ChargeBar' conflicts with 'Function BladeHand.BladeHand.ChargeBar'
The weapon is extended from Weapon. As in:
Code:
class BladeHand extends Weapon;
Thanks in advance.
Comment