[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Monster Points stuff  XML
Forum Index -> Druids RPG Development
Author Message
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

I've poked this a little bit and I've figured out one or two things that I'll probably get around to changing:

1. A MonsterPointsInv item is spawned for *anyone* who summons a monster. This includes using the Summoning Charm by a non-M/MM.

2. Because of 1, the Interaction is created as well - it just has nothing to display and bombs out. This probably should change.

3. It *looks* like certain events can result in the Interaction being removed - why exactly it is removed, I don't know (I understand what the comment at the event check says, but I'm not tracking that comment with what the code does). Basically, there are checks that I'd like to put in that would trigger a "detect and redo" for the Interaction in certain places. Dunno if they'll work though - it's one of those things that I have to first diagnose properly (when exactly does a Monster Points indicator stop accurately indicating), and then see if it's something preventable or if it results in something that needs a "detect and redo".

So I'm guessing that in certain cases, the interaction is toasted, but there might be an after image of the indicator - I don't know. I have a few things I need to test but I need to do it when I can control both the M/MM and any spectator, and I left my laptop at work.

I there's so much that's interrelated here; there are changes I might make but I don't want to mess up one thing by changing another. So I'll probably do some work on the Monster Summoning system next week.

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Made a couple of changes - mainly adding debugging lines that will run client side so if I see anything weird, I'll have more info to help track it down. Also added a function/call that when a monster is summoned, will check client side to see if interaction is still there - and if not, redo it.

I've set it up so that anyone without monster points at all should not spawn an interaction, ever (much less the stuff in the actual interaction that will stop the render if there aren't any MPs).

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

I've double checked the whole Interaction thing ...

Because of how spectators are done, it turns out that when a medic is spectated, the spectator gets a MonsterPointsInv object somewhere along the line. Also, MonsterPointsInv objects are spawned for all players (even non-M/MMs) when a Summoning Charm is used. Originally, *all* players who somehow got an MPInv object would also have a MMInteraction spawned for them. Spectators included.

Now, if there's a MonsterPointsInv object, but TotalMonsterPoints < 1 (and there are additional checks for spectators), it does not spawn an Interaction. This will stop superfluous interactions from being spawned for non-M/MMs or spectators (dead M/MMs spectating another M/MM have 0 TMPs too).

All this should further minimize the issues with MP indicators and spectators. In addition, routines looking for the Interaction and respawning it if necessary should also add a bit of robustness to the MP indicator (that may or may not have been needed - now that I think about it, there may have been issues with phantom Interactions left over from an M/MM spectating someone who had used a Summon Charm, had an MPInv, the M/MM gets an Interaction but not the "right" interaction - or gets an interaction that has nothing to do with their actual MPInv - and hence their Interaction doesn't show the indicator properly ... my, doing the mental trace on this hurts).

In any event the prevention of MMInteractions being spawned when someone is either a spectator or does not have any MonsterPoints should reduce the number of problems further. I hope.

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
 
Forum Index -> Druids RPG Development
Go to: