Error message…

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

Error message…

Post by Jojonew » Wed Nov 16, 2022 8:51 am

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: 2479
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Error message…

Post by Barbie » 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.
You do not have the required permissions to view the files attached to this post.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Jojonew
Novice
Posts: 18
Joined: Fri Oct 28, 2022 12:46 am
Personal rank: 10

Re: Error message…

Post by Jojonew » Thu Nov 17, 2022 12:46 am

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: 2479
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Error message…

Post by Barbie » Fri Nov 18, 2022 6:52 pm

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: 18
Joined: Fri Oct 28, 2022 12:46 am
Personal rank: 10

Re: Error message…

Post by Jojonew » Sat Nov 19, 2022 11:49 pm

: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.