Credits... and the rest

Development assistance and tutorials here.
Post Reply
Nelsona
Posts: 128
Joined: Sat Sep 30, 2017 5:03 am

Credits... and the rest

Post by Nelsona » Wed Apr 11, 2018 3:38 pm

I was trying to setup a badge type decoration right on the wall in a certain location. First time I had in imagination options:
- attaching VIA some pawn with Shadow or developing it;
- attaching VIA projectile - UT projectiles have decals.

I decided to step with projectile, doing a sort of razor blade for the first time. The nasty problem that was with my decal, it randomly was turning around view axis and this was a bad thing.
I have figured that Kelly was using some random decals in whatever mod. A single line from there was exactly the "critical" thing helping me, I was closer, blabbering a few hours until I inspected that thing and I figured the same way of doing operated by Kelly. After removing unused codes with unused functions, I could setup a nice decal. All I have to do is tuning it properly only for client because such a decal doesn't need any sort of simulated function because what I do it's exclusive dedicated for client. This way is more easy and faster than building a mesh and texture accordingly since attaching a decal can be used even in mapping for whatever overlay effect without using other non-solid brushes, I would like to know these things before...

Conclusions:
- Credits for my new things learned goes at Kelly;
- Excessive decals means a performance loss because they are abusing timer - 200 decals it's probably the last thing needed in a zone... ResidentEvil is the class Scorch - that is the nasty thing. I do not have any clue why Epic did not used a state code or something native, a completely separate stuff accordingly.
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -

User avatar
SC]-[WARTZ_{HoF}
Site Admin
Posts: 139
Joined: Wed May 10, 2017 7:08 am

Re: Credits... and the rest

Post by SC]-[WARTZ_{HoF} » Wed Apr 11, 2018 11:38 pm

Sounds great as long as game performance is not negatively affected.

User avatar
Kelly
Posts: 74
Joined: Fri Sep 29, 2017 1:54 pm
Location: Coos Bay Oregon

Re: Credits... and the rest

Post by Kelly » Thu Apr 12, 2018 12:06 am

I tested the tagz mod out to several hundred tags in player view without a performance hit. It won't be an issue.

To be fair the credit should be passed on to Casey at Old Unreal for showing me how to fix that orientation issue. That guy is amazing.
I don’t wanna give the end away
but we’re gonna die one day

Nelsona
Posts: 128
Joined: Sat Sep 30, 2017 5:03 am

Re: Credits... and the rest

Post by Nelsona » Thu Apr 12, 2018 5:32 am

Nah, performance loss which I'm talking about happens with default decals not here. Here it was just too many stuff unused. In order to clarify a bit things, and because here it's a coding section, I'll mention the class which will be used by me in patch files where walls have more bright textures or in the those cases where I can setup a light-injection. Here it is:

Code: Select all

class NiceDecal expands BlastMark;

#exec TEXTURE IMPORT NAME=Decal1 FILE=Textures\NavAdder0.bmp

function PostBeginPlay()
{
	AttachToSurface();
}

function AttachToSurface()
{
	bAttached = AttachDecal(100, vect(0,0,1)) != None;
}

event Timer()
{
}

defaultproperties
{
	Texture=Texture'Decal1'
}
As you see I have discarded timer for safety but actually there is nothing to initialize any sort of timer here. Decal is attached directly without other SetTimer ( which parent classes do in Super.PostBeginPlay() twice ).
For testing purpose I quickly made a small mutator in order to help me in fast analysis and debugging

Code: Select all

class DecTest expands Mutator;

function Mutate(string MutateString, PlayerPawn Sender)
{
	if ( MutateString ~= "splash" )
	{
		Sender.ClientMessage("Decal Spawn.");
		SpawnDecal(Sender);
	}
	if ( NextMutator != None )
		NextMutator.Mutate(MutateString, Sender);
}

function SpawnDecal(PlayerPawn Aplayer)
{
	Spawn(class'FalseRazor',APlayer,,APlayer.Location+vect(0,0,50),APlayer.Rotation).Instigator = APlayer;
}
So I could check it triggering a "manually" attaching it in map exactly where I was interested to see it.

Then a credits reconfiguration, credits for this really nice stuff goes at Casey and Kelly as follows:
- Casey doing primary task;
- Kelly pointing me about what Casey did.
Extra credits:
- Unknown UFO - Born (Made) in Japan - author with his borked "map" - without such messed up maps I would never start any research because everyone would play happy like in a perfect world (yet, at dreaming stage).
Special thanks:
- I don't have to forget Higor, all, but all Navigation tweaks would not be possible without XC_Engine

I'm going to setup various credits here in case of other happy occurrences. I'm sorry for this sort of thread but I was too glad about it - I was thinking at those various mapping contests and that tutorial explaining how to decorate some wall using a non-solid brush and the small issues around it - I think decorating map could happen this way and it looks X times better compared with a brush work, even if it needs a bit of coding and a texture editing, background has to be a grey color not black, and final result do looks like a real painted wall. And this painting task do happens ONLY if map is running, else in Editor will be different - very confusing for noob cube-drawers, cough.
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -

Nelsona
Posts: 128
Joined: Sat Sep 30, 2017 5:03 am

Re: Credits... and the rest

Post by Nelsona » Sun Apr 15, 2018 12:22 pm

Perhaps if Epic did not bother too much to use the fixed version of RandRange which is resident in Core's natives I'll mention Legend which was fixing it at April 12 2000. I'm going to use it abusively because I think it's a nice stuff for add-ons.
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -

Post Reply