Hi,
Background:I tried to build a package. And I made a class .uc file
Code:
Class Cloniumbow15 extend Effect;
And ucc make feedback an error message:Call names shouldn’t end in digit…
Is it possible name a class end in digit.. ?
Error message…
-
- Godlike
- Posts: 2955
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: Error message…
With 469c UnrealEd as well as ucc accept a digit as last class name character: Although it is not the best idea to do such because instances of a class are numbered with digits at the end:
Code: Select all
echo spawn(class'MyActor1').name
>MyActor0
echo spawn(class'MyActor1').name
>MyActor1
echo spawn(class'MyActor1').name
>MyActor2
You do not have the required permissions to view the files attached to this post.
"If Origin not in center it be not in center." --Buggie
-
- Novice
- Posts: 22
- Joined: Fri Oct 28, 2022 12:46 am
- Personal rank: 10
Re: Error message…
Make sense and thank you.
Actually,I tried to recompile a weapon effect into a game and reconstruct the package with some decompiled tools.
Now the second….error message for the this case:
Unexpected defaultproperties
Any information would be useful to me,THX.
Barbie wrote: ↑Wed Nov 16, 2022 9:33 amWith 469c UnrealEd as well as ucc accept a digit as last class name character:MyActor1.jpg
Although it is not the best idea to do such because instances of a class are numbered with digits at the end:So it gets difficult to distinguish between class and instance.Code: Select all
echo spawn(class'MyActor1').name >MyActor0 echo spawn(class'MyActor1').name >MyActor1 echo spawn(class'MyActor1').name >MyActor2
Automatically merged
Automatically merged
Unexpected defaultproperties
Any information would be useful to me,THX.
class CloniumBow15 extends SepEffect;
#exec OBJ LOAD FILE=../Textures/Bow_EF.utx PACKAGE=Bow_EF
#exec MESH MODELIMPORT MESH=CloniumBow15_Mesh MODELFILE=Models/CloniumBow_EF_00.PSK
#exec MESHMAP SETTEXTURE MESHMAP=CloniumBow15_Mesh NUM=0 TEXTURE=Bow_EF.CloniumBow_EF_15_01
// Decompiled with UE Explorer.
defaultproperties
{
DrawType=2
Mesh=SkeletalMesh'CloniumBow15_Mesh'
AppClassTag=USword
RelativeRotation=(Pitch=32768,Yaw=0,Roll=0)
bDivineItem=true
}
-
- Godlike
- Posts: 2955
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: Error message…
Where have you typed that in? UnrealEd is not able to process defaultproperties in the code window.
"If Origin not in center it be not in center." --Buggie
-
- Novice
- Posts: 22
- Joined: Fri Oct 28, 2022 12:46 am
- Personal rank: 10
Re: Error message…
Please forgive my ignorance ......i typed it in the code window, thanks again.I should read some tutorials first…