Error message…

Discussions about Coding and Scripting
Post Reply
Jojonew
Novice
Posts: 22
Joined: Fri Oct 28, 2022 12:46 am
Personal rank: 10

Error message…

Post by Jojonew »

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.. ?
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Error message…

Post by Barbie »

Jojonew wrote: Wed Nov 16, 2022 8:51 am Is it possible name a class end in digit.. ?
With 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:

Code: Select all

echo spawn(class'MyActor1').name
>MyActor0
echo spawn(class'MyActor1').name
>MyActor1
echo spawn(class'MyActor1').name
>MyActor2
So it gets difficult to distinguish between class and instance.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Jojonew
Novice
Posts: 22
Joined: Fri Oct 28, 2022 12:46 am
Personal rank: 10

Re: Error message…

Post by Jojonew »

Make sense and thank you.
Barbie wrote: Wed Nov 16, 2022 9:33 am
Jojonew wrote: Wed Nov 16, 2022 8:51 am Is it possible name a class end in digit.. ?
With 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:

Code: Select all

echo spawn(class'MyActor1').name
>MyActor0
echo spawn(class'MyActor1').name
>MyActor1
echo spawn(class'MyActor1').name
>MyActor2
So it gets difficult to distinguish between class and instance.

Automatically merged

Actually,I tried to recompile a weapon effect into a game and reconstruct the package with some decompiled tools.

Automatically merged

Now the second….error message for the this case:

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
}

User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Error message…

Post by Barbie »

Where have you typed that in? UnrealEd is not able to process defaultproperties in the code window.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Jojonew
Novice
Posts: 22
Joined: Fri Oct 28, 2022 12:46 am
Personal rank: 10

Re: Error message…

Post by Jojonew »

:facepalm: :facepalm: Please forgive my ignorance ......i typed it in the code window, thanks again.I should read some tutorials first…
Barbie wrote: Fri Nov 18, 2022 6:52 pm Where have you typed that in? UnrealEd is not able to process defaultproperties in the code window.
Post Reply