Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [Snippet] Dumping UnNames.h (Read 760 times)
Global Moderator
Unreal Rendering Guru
Developer Team

Oldunreal member

Posts: 595
Location: Germany
Joined: Dec 10th, 2014
Gender: Male
[Snippet] Dumping UnNames.h
Nov 6th, 2015 at 2:33pm
Print Post  
Just a pretty special case, but when you are building headers for a game, getting the UnNames.h right is more important then it seems. However, the hardcoded names table can easily be dumped once you have a bit of code running.

Select All
	void HanHan()
		debugf( TEXT("------------ Dumping Hardcoded Names ------------------") );
		for ( INT i=0; i<FName::GetMaxNames(); i++ )
			FNameEntry* Entry = FName::GetEntry(i);
			if ( Entry && (Entry->Flags & RF_Native) )
				if ( Entry->Flags & RF_HighlightedName )
					debugf( TEXT("REG_NAME_HIGH(%4i, %-17s)"), Entry->Index, Entry->Name );
					debugf( TEXT("REGISTER_NAME(%4i, %-17s)"), Entry->Index, Entry->Name );
		debugf( TEXT("------------ End of Hardcoded Names Dump ------------------") );

And just to be a bit more complete, although it does not matter much:
Select All
#define NAME_PROBEMIN ((EName)300) // Thats always the same id as REGISTER_NAME( 300, Spawned ) has.
#define NAME_PROBEMAX ((EName)364) <- Thats allways the last name / REGISTER_NAME( 363, All ) + 1.

NAME_PROBEMAX is always NAME_PROBEMIN+64, as this reflects the bits in the QWORDs used for probe masking.
« Last Edit: Mar 6th, 2017 at 11:54am by han »  

HX on Mod DB. Revision on Steam. Löffels on Patreon.
Back to top
IP Logged
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo