Did you know? All of these messages will likely be replaced before release.

Decals code troubleshooting

For questions and discussion about UnrealEd, UnrealScript, and other aspects of Unreal Engine design.

Moderators: Semfry, ividyon

jammer64
Skaarj Scout Skaarj Scout
Posts: 45
Joined: 05 Jan 2010, 02:38

Subject: Decals code troubleshooting

Post Posted: 24 Jul 2021, 16:02

Hi!

What's the general consensus as to when decals can crash the engine? And when decals are saved with game state and when not? Honestly, I cannot figure out entirely when decal should exactly be attached, detached, when can it be destroyed etc. My decal handler used to work well but after recent changes I got back to constant crashes :/ Wiki is not very robust on this, sadly.
Last edited by jammer64 on 24 Jul 2021, 16:07, edited 1 time in total.

User avatar AlCapowned
Skaarj Elder Skaarj Elder
Posts: 1175
Joined: 19 Dec 2009, 22:25

Subject: Re: Decals code troubleshooting

Post Posted: 24 Jul 2021, 16:05

What patch are you using? My 227i is very crash happy when it comes to decals (though this has been completely fixed in 227j from what I've seen).

jammer64
Skaarj Scout Skaarj Scout
Posts: 45
Joined: 05 Jan 2010, 02:38

Subject: Re: Decals code troubleshooting

Post Posted: 24 Jul 2021, 16:06

Regular UT build 4.36 as my mod is written for it :)

UB_
Nali Priest Nali Priest
Posts: 7960
Joined: 11 Nov 2007, 21:00

Subject: Re: Decals code troubleshooting

Post Posted: 24 Jul 2021, 16:16

It's probably the same number that triggers crashes when it comes to certain other actor types - 1116. But could be lower.
Decals in EXU2 are set to disappear due to this reason.
ImageImage

jammer64
Skaarj Scout Skaarj Scout
Posts: 45
Joined: 05 Jan 2010, 02:38

Subject: Re: Decals code troubleshooting

Post Posted: 24 Jul 2021, 16:27

Nono, I totally don't mean number of instances. When I handle attach/detach/destroy cycle improperly, engine crashes right away after a few decals placed and that's where I need to know how decals work EXACTLY against actor cycle, tick, engine timing and order of things in render pipeline etc., and at what exact circumstances they are prone to crash. Large number of decals rarely was problem when my decal handler was working properly, actually. I should mention that I don't base my decal actors on oldskool subclasses etc. - I root straight from engine's decal and it's handled from scratch.

User avatar AlCapowned
Skaarj Elder Skaarj Elder
Posts: 1175
Joined: 19 Dec 2009, 22:25

Subject: Re: Decals code troubleshooting

Post Posted: 24 Jul 2021, 16:47

I haven't used custom decals enough to know what's going wrong. What are you doing differently with them compared to regular decals? Could you post your code?

jammer64
Skaarj Scout Skaarj Scout
Posts: 45
Joined: 05 Jan 2010, 02:38

Subject: Re: Decals code troubleshooting

Post Posted: 24 Jul 2021, 17:01

Phew, I got them working again! :O Apparently I have to watch when I detach decals (I assume precisely before I intend to attach them again and under no other occasion) and, apparently, final DetachDecal() has to stay in Destroyed() so I shouldn't dare to detach them earlier and leave like that.

jammer64
Skaarj Scout Skaarj Scout
Posts: 45
Joined: 05 Jan 2010, 02:38

Subject: Re: Decals code troubleshooting

Post Posted: 28 Jul 2021, 11:56

Still, has anyone here really indepth knowledge of decals' implementation in engine?


Who is online

Users browsing this forum: No registered users and 28 guests

Copyright © 2001-2024 UnrealSP.org

Powered by phpBB® Forum Software © phpBB Limited