Fixes for RocketX3

Need some nice Mods? Here, you are right!
Buggie
Godlike
Posts: 3275
Joined: Sat Mar 21, 2020 5:32 am

Re: Fixes for RocketX3

Post by Buggie »

If I see name collision when extract another map from archive I just keep my old version which 100% work with current setup. End of story.
If I want install new version of package which better from current one - i goes to forum and search specific thread. Not wait when better version come with random found map.
User avatar
Barbie
Godlike
Posts: 3042
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Fixes for RocketX3

Post by Barbie »

Even with RocketX3fix3 I get tons of these on network and local play:
ScriptWarning: UtilVX MH-UM-DiscoClubV4.UtilVX72 (Function RocketX3.UtilVX.sname:0034) Accessed None 'PlayerReplicationInfo'
probably because of this:

Code: Select all

class UtilVX extends SLInfoVX config (RocketX3);
...
function string sname(Actor a) {
     if (a != none) {
          if (a.isA('Pawn')) {
               return Pawn(a).playerReplicationInfo.playername;
          } else {
               return noMap(a);
          }
     } else {
          return "none";
     }
}
Can that be fixed, too?
"If Origin not in center it be not in center." --Buggie
User avatar
sektor2111
Godlike
Posts: 6489
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Fixes for RocketX3

Post by sektor2111 »

Is it that hard to understand what sanity check it's missing ?

Code: Select all

	if ( a == None || a.bDeleteMe )
		return "None";
//		return ""; Does it hurt ?
	if ( a.bIsPawn ) //I'm faster than you here... but not safe from garbage produced by some genius
	{
		if ( Pawn(a).PlayerplayerReplicationInfo != None ) //Make sure about subject before calling anything related
			return Pawn(a).playerReplicationInfo.playername;
		else
	        	return Pawn(a).GetHumanName(); //Is it even used ? Maybe...
	}
	else
		return noMap(a);