[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Another DruidLoaded fix committed ...  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 discovered that the lack of synchronization between clients and the server can result in some not so happy behavior after Ghost.

On both, ModifyPawn is run again in all abilities. DruidLoaded, at a certain point, removes the SG and AR so that they can be replaced with "proper" weapons later.

On the server, the removal doesn't occur because the server knows certain things the client doesn't (mainly, the existence of the LoadedInv object). However, the client doesn't seem to see this object and also successfully creates one during a Ghost triggered ModifyPawn. This would result in the client deleting the SG and AR (but not replacing them with new ones).

The good news is that the GhostInv object that Ghost itself looks for to see if it's already run is on both the client and the server, and I added a check to DruidLoaded.ModifyPawn to check for GhostInv and return if it's found.

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

Gah I just realized this is fixed only for Ghost, or other cases after Ghost (I think - not tested but I'm fairly sure it's messed up still). It's not fixed for pre-Ghost vehicles or deemer guidings.

Will fix this afternoon.

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

Oh yeah - I used Other.Role == ROLE_Authority to fix this.

Other's role on the client is not ROLE_Authority, I guess.

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: