Aller au contenu

Photo

trigger update party list


  • Veuillez vous connecter pour répondre
12 réponses à ce sujet

#1
Gollem9

Gollem9
  • Members
  • 5 messages
Heyas all,

 does anyone know if it is possible to trigger an update on the party list?

#2
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
I Am not sure what you are asking ?
Are you asking if it is possible to add/remove players from a party via script?

// Add oPC to oPartyLeader's party.  This will only work on two PCs.
// - oPC: player to add to a party
// - oPartyLeader: player already in the party

void AddToParty(object oPC, object oPartyLeader)


// Remove oPC from their current party. This will only work on a PC.
// - oPC: removes this player from whatever party they're currently in.

void RemoveFromParty(object oPC) 



#3
Gollem9

Gollem9
  • Members
  • 5 messages
Hello Lightfoot8,

Lightfoot8 wrote...

I Am not sure what you are asking ?
Are you asking if it is possible to add/remove players from a party via script?

// Add oPC to oPartyLeader's party.  This will only work on two PCs.
// - oPC: player to add to a party
// - oPartyLeader: player already in the party

void AddToParty(object oPC, object oPartyLeader)


// Remove oPC from their current party. This will only work on a PC.
// - oPC: removes this player from whatever party they're currently in.

void RemoveFromParty(object oPC) 


Nope, my question was about solving one of the (sometimes) nasty side-effects of  the AddToParty method.
Sometimes, the player's image stays black & hitpoints show up as 0/0 to the already existing members in the party.  After a while this goes away (when the game engine triggers a refresh of the party list).

I was wondering if there was a way to "trigger" such a refresh.

#4
Shadooow

Shadooow
  • Members
  • 4 471 messages
Yes if you remove him and re-add him to party, it will fix this problem. However it bring another issue to other players which is "action-cancel".

#5
Gollem9

Gollem9
  • Members
  • 5 messages
The bug I am facing is happening just because i remove and then re-add ... Somehow when you add someone via the script, it sometimes produces this "delay" in the party list update. The user is added, but his image and hitpoints look bugged.

#6
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
I have not seen this happen befor. So I would like to ask a question.

Does it appear this way to all party members?
Or does it appear that way to just some of the party members.

The reason I ask is that it sounds like a network bandwith porblem to me.
Or another Low priority problem like the game clock has.

if either of the two guess above are correct, The only thing I could see helping is to Optmize the module. Fixing ineffecent scripts ect....

@ShaDoOoW: Do you hae any Idea as to the cause of the problem?

Modifié par Lightfoot8, 27 décembre 2010 - 10:53 .


#7
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
He's not asking about how to fix bugged partymembers - he's already written a command for that. The issue he's facing is that, when he fixes the party list, by looping through and removing and readding members, it sometimes fails to refresh the party list icons after a moment - failing, for example, to show the crown properly (even though he's properly reassigned the crown to the party lead by more looping and removing/readding). I suspect the issue is clientside, but I'm not really sure. I don't remember if it appears the same for all partymembers - he'll have to answer that. I wonder if simply damaging a partymember for 1 hit point would trigger it, since hit points ARE kept updated?

Funky

Modifié par FunkySwerve, 28 décembre 2010 - 12:28 .


#8
TSMDude

TSMDude
  • Members
  • 865 messages
It is a clientside issue as it rears its head on my comp every now and then. Not really a fixable bug as it is similiar to the sometimes white square you get on items once in awhile.



Just happens.

#9
Shadooow

Shadooow
  • Members
  • 4 471 messages

Lightfoot8 wrote...
@ShaDoOoW: Do you hae any Idea as to the cause of the problem?

Nope, probably its client side as TSMDude suggests. I only saw this issue at pvp servers like BoW, anywhere else player can reenter party by his will.

Modifié par ShaDoOoW, 28 décembre 2010 - 01:37 .


#10
kalbaern

kalbaern
  • Members
  • 824 messages
I concur, it's a clientside issue. It'd used to happen to me occasionally as a player in a party, especially when someone's summons died and they resumoned another or folk that crashed or dropped party and rejoined displayed improperly. It was worse for me when DMing. I've had no issues recently, though I also use a newer comp.

#11
Gollem9

Gollem9
  • Members
  • 5 messages
Heyas all for the updates

- I will check if it occurs for everyone, since i'm not 100% sure about that. (Althought I faintly remember it is not the case).

- I like the idea of dealing 1 hp dmg and then healing one after that, will try it out

#12
kalbaern

kalbaern
  • Members
  • 824 messages

Gollem9 wrote...

Heyas all for the updates
- I will check if it occurs for everyone, since i'm not 100% sure about that. (Althought I faintly remember it is not the case).
- I like the idea of dealing 1 hp dmg and then healing one after that, will try it out


Back when I experienced this issue, damaging/healing didn't seem to update the icons properly. This used to be frustrating as I often couldn't tell if party members needed healing or not and holding down the TAB key highlighted friend and foe alike and was worthless when melee brought a mob of NPCs into attack range of PCs.

#13
Gollem9

Gollem9
  • Members
  • 5 messages
Tried it, but indeed healing/damaging did not change this...