Need help for Nexgen Position player joined and leave in the NexgenHud
-
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
edited 13.05.2025
Last edited by Letylove49 on Tue Aug 26, 2025 9:29 pm, edited 5 times in total.
-
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
Maybe describe what you want to achieve instead of posting Nexgen's code…
"If Origin not in center it be not in center." --Buggie
-
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
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
deleted
Last edited by Letylove49 on Tue Aug 26, 2025 9:27 pm, edited 1 time in total.
-
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
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
deleted
Last edited by Letylove49 on Tue Aug 26, 2025 9:27 pm, edited 1 time in total.
-
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
i have try this :
but i got unexpected if when i want to compile
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; }
}
Code: Select all
Error: D:\UT coding\UnrealTournament\Nexgen112CTG\Classes\NexgenHUD.uc(872) : Error, Unexpected 'if' -
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
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:
i got this error : Right type is incompatible with &&.. how i can do with this ?
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 ?
-
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
https://chatgpt.com/share/68aec1d3-ac44 ... f35023ac7aFind 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; }
}
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
ok thanks for your code .
for eventype : i have this on class Nexgenclient :
now i can compile but that don't work :
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.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; }