Author Topic: trigger update party list  (Read 354 times)

Legacy_Gollem9

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
trigger update party list
« on: December 27, 2010, 05:30:24 pm »


               Heyas all,

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

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
trigger update party list
« Reply #1 on: December 27, 2010, 06:13:48 pm »


               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) 


               
               

               
            

Legacy_Gollem9

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
trigger update party list
« Reply #2 on: December 27, 2010, 06:25:05 pm »


               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.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
trigger update party list
« Reply #3 on: December 27, 2010, 08:08:51 pm »


               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".
               
               

               
            

Legacy_Gollem9

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
trigger update party list
« Reply #4 on: December 27, 2010, 08:24:03 pm »


               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.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
trigger update party list
« Reply #5 on: December 27, 2010, 10:52:02 pm »


               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 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
trigger update party list
« Reply #6 on: December 28, 2010, 12:25:31 am »


               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 .
                     
                  


            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
trigger update party list
« Reply #7 on: December 28, 2010, 12:51:45 am »


               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.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
trigger update party list
« Reply #8 on: December 28, 2010, 01:21:52 am »


               

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 .
                     
                  


            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
trigger update party list
« Reply #9 on: December 28, 2010, 01:59:44 am »


               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.
               
               

               
            

Legacy_Gollem9

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
trigger update party list
« Reply #10 on: December 28, 2010, 05:44:19 pm »


               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
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
trigger update party list
« Reply #11 on: December 28, 2010, 07:06:18 pm »


               

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.
               
               

               
            

Legacy_Gollem9

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
trigger update party list
« Reply #12 on: December 30, 2010, 11:30:39 pm »


               Tried it, but indeed healing/damaging did not change this...