Need help for Nexgen Position player joined and leave in the NexgenHud

Discussions about Coding and Scripting
Letylove49
Adept
Posts: 395
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: AK admin
Location: suisse

Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Letylove49 »

edited 13.05.2025
Last edited by Letylove49 on Tue Aug 26, 2025 9:29 pm, edited 5 times in total.
Image

Letylove49 aka Alicia
User avatar
Barbie
Godlike
Posts: 3225
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Barbie »

Maybe describe what you want to achieve instead of posting Nexgen's code…
"If Origin not in center it be not in center." --Buggie
User avatar
HeadHuntiing
Novice
Posts: 7
Joined: Sat May 03, 2025 11:39 am
Personal rank: CTG Founder/MHA HEAD
Location: France

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by HeadHuntiing »

Barbie wrote: Sat May 10, 2025 9:43 am Maybe describe what you want to achieve instead of posting Nexgen's code…
he says he wants to move the playerjoin message from nexgenhud down a little further, because currently it is at the very top
to understand his message you just have to understand the difference between the two nexgens,
I don't work with the system at all anymore I am not a coder on nexgen but not on Unreal Tournament at all so I don't necessarily have the time to work in, but it is not very complicated you just have to understand the meaning of coding, Letylove has difficulty in this point, I told him where it was potentially but if necessary I would look more precisely and solve the problem if he does not find it.
Letylove49
Adept
Posts: 395
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: AK admin
Location: suisse

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Letylove49 »

deleted
Last edited by Letylove49 on Tue Aug 26, 2025 9:27 pm, edited 1 time in total.
Image

Letylove49 aka Alicia
User avatar
Barbie
Godlike
Posts: 3225
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Barbie »

I think you should inspect the functions addLowMsg(...) (line 102 in above code) and/or addColorizedMessage(..) (line 107) if you want to change the location where the message is shown.
"If Origin not in center it be not in center." --Buggie
Letylove49
Adept
Posts: 395
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: AK admin
Location: suisse

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Letylove49 »

deleted
Last edited by Letylove49 on Tue Aug 26, 2025 9:27 pm, edited 1 time in total.
Image

Letylove49 aka Alicia
Letylove49
Adept
Posts: 395
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: AK admin
Location: suisse

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Letylove49 »

i have try this :

Code: Select all

/***************************************************************************************************
 *
 *  $DESCRIPTION  Position of playerjoint and playerleft messages.
 *   $PARAM  Msg
 *   $PARAM  Msgtype
 *
 *
 **************************************************************************************************/

// 26.05.2025
simulated function setPositionmsg ( string msg, name MsgType, canvas c);


// check message type
if (msgtype=='event'&& PE_PlayerJoined );
 {
c.setpos 0.0 ; 8.0;
}
else
if (msgtype=='event'&& PE_PlayerLeft);
{
c.setpos 0.0 ; 9.0; }
}
but i got unexpected if when i want to compile

Code: Select all

Error: D:\UT coding\UnrealTournament\Nexgen112CTG\Classes\NexgenHUD.uc(872) : Error, Unexpected 'if' 
Image

Letylove49 aka Alicia
Letylove49
Adept
Posts: 395
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: AK admin
Location: suisse

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Letylove49 »

I’m trying to move the players joined and players left messages little bit down but it’s not working. (i'm trying since alot of times, i hope i will be able to get helps, thanks alot.

Here is the function I tried to create:

Code: Select all

/***************************************************************************************************
 *
 *  $DESCRIPTION Set postition player join and left message on the huf
 *  $PARAM        cx
    $PARAM        cx
 *  $REQUIRE      Megtype
 *
 *
 **************************************************************************************************/


//  Set postition player join and left message on the hud


Simulated function setmessagepostion ( string msg , Name MsgType, Name eventype, Canvas c, float x, float y )    {


// check message type

if (msgtype=='event'&& eventype  "playerJoined" );
 {
cy = 8.0;
}
else
if (msgtype=='event'&& eventype "PlayerLeft");
{
cy = 9.0; }

}


 

i got this error : Right type is incompatible with &&.. how i can do with this ?
Image

Letylove49 aka Alicia
Buggie
Godlike
Posts: 3448
Joined: Sat Mar 21, 2020 5:32 am

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Buggie »

Find mistake in next unrealscript code for ut99.

i got this error : Right type is incompatible with &&.. how i can do with this ?

/***************************************************************************************************
*
* $DESCRIPTION Set postition player join and left message on the huf
* $PARAM cx
$PARAM cx
* $REQUIRE Megtype
*
*
**************************************************************************************************/


// Set postition player join and left message on the hud


Simulated function setmessagepostion ( string msg , Name MsgType, Name eventype, Canvas c, float x, float y ) {


// check message type

if (msgtype=='event'&& eventype "playerJoined" );
{
cy = 8.0;
}
else
if (msgtype=='event'&& eventype "PlayerLeft");
{
cy = 9.0; }

}

https://chatgpt.com/share/68aec1d3-ac44 ... f35023ac7a
scr_1756283446.png
scr_1756283459.png
scr_1756283468.png
You do not have the required permissions to view the files attached to this post.
Letylove49
Adept
Posts: 395
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: AK admin
Location: suisse

Re: Need help for Nexgen Position player joined and leave in the NexgenHud

Post by Letylove49 »

ok thanks for your code .

for eventype : i have this on class Nexgenclient :

Code: Select all

 // Player events.
const PE_PlayerJoined = "pj";                     // A new player has joined the server.
const PE_PlayerLeft = "pl";                       // Somebody left the server.
now i can compile but that don't work :

Code: Select all

/***************************************************************************************************
 *
 *  $DESCRIPTION Set postition player join and left message on the huf
 *  $PARAM        x
    $PARAM        y
 *  $REQUIRE      Mesgtype
 *  $REQUIRE      eventtype
 *
 **************************************************************************************************/
//  Set postition player join and left message on the hud
Simulated function setmessagepostion ( string msg , Name MsgType, Name eventype, Canvas c, float x, float y )    {
// check message type
if (msgtype=='event'&& eventype ==  'playerJoined' );
y = 8.0;
if (msgtype=='event'&& eventype == 'PlayerLeft');
y = 9.0; }
 
Image

Letylove49 aka Alicia