[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
denlie bug  XML
Forum Index -> Druids RPG
Author Message
bigdavet



Joined: 08/08/2006 09:09:54
Messages: 7
Offline

Ok here a new problem been playing on a server called USG for long time now always had this bug of if you buy denlie before ghost you lose your weapon when you ghost then sometimes you get it back but lose the extra one you have picked up sometime a problem if you hold trans when die.
this proble was also with past versions.

I been thinking of the problem and thought it could have to do with denlie lvl 1 loss weapon but not toss it.

want any more info let me know
BotFodder

Wicked Sick!
[Avatar]

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

Response to Drago posted here instead of on the other thread:

Drago'Nish wrote:
-/wonders why the order of purchase methers/- 

I'm guessing the word you were looking for is "matters".

The answer is that everything happens in a sequence ...

As you die, certain things are checked in a certain order. In this case, the order in which you buy stuff. So:

You "die". Not actively looking at the code right this second, I'd say both ghost and denial probably have a "PreventDeath" or some kind of "as this person is potentially dying, do something" function. When Denial is purchased before Ghost, Denial's gets called first, does it's thing - which probably involves moving your weapon to a hidden "weapon holder" somewhere so that when you are respawned, it's moved back to you. Then "Ghost" is called, and lo and behold, you don't actually "die," and don't really "respawn" just yet.

The first trick is to check the RPG INI and see if, in the list of skills for the player, the denial class comes before the ghost class. That would follow the theory above. A "dirty" fix is to reverse the order (don't forget to reverse the levels too!).

The code fix, I'm guessing, would be to add some code to the "ghost" stuff that moves you somewhere and does it's thing to check for "denial" and to give you your stuff back after it's done ghosting you (it could be as simple as ghost calling the denial "gimme my stuff back" function directly - I dunno). Unless Dru says he's going to look at it right away, I'll put it on my list of things to look at. However, there's a big thing (meaning it will involve changing or creating some 8 classes at my current count) there already and I might not get to this for a week or more. Then add the fact that it's not like Dru has copious amounts of time to review and test any code changes I make and implement them ... I haven't gotten any feedback about my LW and Denial efforts I put up a week ago, so I don't know if I actually did get it right in Dru's eyes or if I need to go back to digging through the code.

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]
bigdavet



Joined: 08/08/2006 09:09:54
Messages: 7
Offline

ok thx the thing is you not loss all the weapons as i think denlie would do if it thinks you have died and holds weapon but i not sure you just loss the last weapon you hold . this proble has been know to us for a bit and sure other know of it too but i only just got pointed here to let you know of it . most time we just edit the server inf to correct but tell tell tell peaple of this bug and they still do it lol.
TheDruidXpawX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 18:32:13
Messages: 1946
Offline

It sounds as though Denial needs to be updated to look through the list of skills, and if it encounters Ghost after it in the list, it needs to execute the Ghost call first, and see if it will return positive data. I'll see what I can do about that in the next release, but it's not likely to go far for a few weeks. There's still lots of stuff to do with the new server.

Skin download: http://www.disastrousconsequences.com/dcforum/posts/list/1189.page

The fundamental problem is this: The first word we learn as children is NO. From that point forward society teaches women that saying no isn't polite, and society teaches men to respect those who wont take no for an answer.

The world is what you make of it, my friend. If it doesn't fit, you make alterations. -- Stella, The Morning Star
BotFodder

Wicked Sick!
[Avatar]

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

Perhaps I'll get to it before you and come up with a solution.

This weekend is "pinata". Maybe middle next week or the following weekend I'll get to this issue.

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 have an idea for a fix for this (and could have it ready given an hour or two at my home computer) but I'm waiting for some feedback from Dru about a question regarding something that might be missing from the Ghost code (I just want to make sure I spotted something that both Dru and Mysterial apparently missed in their respective versions of the Ghost code, rather than something that's not there for a very good reason).

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
Go to: