#Hello, I have some errors while

1 messages ยท Page 1 of 1 (latest)

turbid violet
#
UATHelper: Packaging (Windows): Module.SnapCentral.cpp.obj : error LNK2019: unresolved external symbol "public: __cdecl ACentralGrid::ACentralGrid(void)" (??0ACentralGrid@@QEAA@XZ) referenced in function "void __cdecl InternalConstructor<class ACentralGrid>(class FObjectInitializer const &)" (??$InternalConstructor@VACentralGrid@@@@YAXAEBVFObjectInitializer@@@Z)
UATHelper: Packaging (Windows): Module.SnapCentral.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl ACentralGrid::BeginPlay(void)" (?BeginPlay@ACentralGrid@@MEAAXXZ)
UATHelper: Packaging (Windows): Module.SnapCentral.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl ACentralGrid::Destroyed(void)" (?Destroyed@ACentralGrid@@MEAAXXZ)
UATHelper: Packaging (Windows): Module.SnapCentral.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl ACentralGrid::OnConstruction(struct UE::Math::TTransform<double> const &)" (?OnConstruction@ACentralGrid@@MEAAXAEBU?$TTransform@N@Math@UE@@@Z)
UATHelper: Packaging (Windows): Module.SnapCentral.cpp.obj : error LNK2019: unresolved external symbol "public: struct FSnapCentralParameters __cdecl ACentralGrid::GetSnapParameters(class UObject *,struct UE::Math::TVector<double>,class TEnumAsByte<enum ESnapType>,struct FSnapAxis,struct FLockAxis,class UStaticMesh *)" (?GetSnapParameters@ACentralGrid@@QEAA?AUFSnapCentralParameters@@PEAVUObject@@U?$TVector@N@Math@UE@@V?$TEnumAsByte@W4ESnapType@@@@UFSnapAxis@@UFLockAxis@@PEAVUStaticMesh@@@Z) referenced in function "public: static void __cdecl ```
misty vigil
#

only when packaging?

turbid violet
#

Yes

misty vigil
#

can you show the class in question

#

at least the header

turbid violet
misty vigil
#

yeah i see a major issue

#

already

turbid violet
#

these IF?

misty vigil
#

this is at the top of the class

#

and i bet your header file still has the declerations

#

so it cant find anything to link again

turbid violet
misty vigil
#

scroll down more

#

why did you

#

if WITH_EDITOR the entire cpp file

turbid violet
#

It's a plugin, not my code

misty vigil
#

can you find BeginPlay in header

turbid violet
misty vigil
#

yup

#

thats the issue

#

remove the '

#

if WITH EDITOR

#

from the top of the cpp file

#

and the endif from the bottom of it

#

and give it another try

turbid violet
#

ok, omg thank you so much, I will try now

misty vigil
#

is it any good?

turbid violet
#

yeah, it works very nice

#

but it's only visuals and snapping

#

its very cheap for the functionality

#

you just need some kind of ''can place logic'' on your own on top of it for placing things for example

#

its well documented so you can see what it can do on the page

misty vigil
#

yeah i made my own snapping system and building stability using subsystems and stuff

#

its similar to fortnites grid system

turbid violet
#

you could consider putting it on marketplace, thse things are usefull

#

I tried to do my own for a couple of days and it worked, but I didn't know how to make materal visible on runtime by clicking key, so I got that and it worked out of the box, then I have my own grid on top of it which holds the logic. I need to rewrite it to C++ though because it takes so long to spawn whole grid (these are actors, terrible probably) xD

misty vigil
#

any luck>

turbid violet
# misty vigil any luck>

The error dissapeared! I hoped to deliver information to you that everything is working but I'm now stuck on compligin shaders for 10minutes already xD

#

Thank you for the help with previous error ๐Ÿ˜„

misty vigil
#

well you got past the compile bit

#

so any cook errors will be project related

turbid violet
#

lovely ๐Ÿ˜„

#

if there is no error or success I should just wait?

#

because it's been like this for 10minutes at least

misty vigil
#

let it finish cooking

turbid violet
#

ok! ๐Ÿ˜„

misty vigil
#

probably some big shaders

#

did you cook or package

turbid violet
#

package

misty vigil
#

i prefer to pacakge outside UE though

#

cause editor eats performance

turbid violet
#

I did it here

misty vigil
#

yeah

turbid violet
#

you can package without editor? ill look it up

misty vigil
#

yeah

turbid violet
#

thank you, ill read while this finished, btw it moved to the next line so there is progress ๐Ÿ˜„

turbid violet
#

Well, if you were curious it's still going omg xd

#

I had some errors with structs on the way but these were yellow and probably blueprint was not compiled or something.