DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • June 17, 2013, 09:39:57 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: PVP not working?  (Read 3277 times)
0 Members and 1 Guest are viewing this topic.
Foolish Frost
Guest
« on: August 20, 2006, 06:34:19 PM »

Well.  I have the bounty system working,  and when people retire to the fields they are listed as attackable, but when you click on it, nothing happens.

No error.  Nothing.

I did a search and found nothing like this.  Any ideas?

And yes, it's turned on.
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5428



View Profile WWW
« Reply #1 on: August 20, 2006, 06:37:03 PM »

Does it load another page?  Is there a message saying that person isn't attackable yet?
Logged

Play the latest beta version here on DragonPrime
SexyCook
Codemeister
****
Offline Offline

Posts: 430



View Profile WWW
« Reply #2 on: August 20, 2006, 06:39:51 PM »

Does it give you ..../badnav.php as the url?
Logged
Foolish Frost
Guest
« Reply #3 on: August 20, 2006, 07:04:19 PM »

Does it give you ..../badnav.php as the url?

Well, what'd'ya know!

That's it!

Anybody have any ideas why, as to reduce the debug time?  I can go through the process, but hints are always nice!

 Grin
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5428



View Profile WWW
« Reply #4 on: August 20, 2006, 07:44:49 PM »

Could be due to a module you have installed, but nobody can tell you without a link to your server...
Logged

Play the latest beta version here on DragonPrime
Foolish Frost
Guest
« Reply #5 on: August 20, 2006, 09:40:04 PM »

Could be due to a module you have installed, but nobody can tell you without a link to your server...

I can.

Simple issue, with a bugger of a problem:

My players have spaces in thier names...

All of them...

<sigh>

It's even an option in the system, and yet it falls apart when used.

Suggestions no how to recode this so it works?  Why does the sapce in the name cause the badnav reaction?  Can I clean something up to fix it?
Logged
Foolish Frost
Guest
« Reply #6 on: August 20, 2006, 09:43:48 PM »

Does this have to do with the problem of spaces becomming %20 ?  The listing of allows navs in badnav is not equalling each other?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #7 on: August 20, 2006, 09:52:07 PM »

in lib/pvplist.php find this code:

Code:
if($row['pvpflag']>$pvptimeout){

beneath it should show something like this:

Code:
output("`i(Attacked too recently)`i");
}elseif ($location!=$row['location']){
output("`i(Can't reach them from here)`i");
}else{
rawoutput("<a href='$link$extra&name=".rawurlencode($row['login'])."'>$att</a>");
addnav("","$link$extra&name=".rawurlencode($row['login']));
}
make sure the rawurlencode is there in the last lines.
Logged

Running for more than three years now:
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5428



View Profile WWW
« Reply #8 on: August 20, 2006, 09:56:07 PM »

I just successfully pvp'd a player with a space in it's name on my version 1.1.0 test server.  I don't think the problem is core related (although I've been wrong before).  What version are you using?
Logged

Play the latest beta version here on DragonPrime
Foolish Frost
Guest
« Reply #9 on: August 20, 2006, 10:07:26 PM »

1.1.0 for version.

XChrisX, good call, but no.  All of that code is exactly as you show it.

And confirmed:  I can kill single name characters...

Looks about.  You just know it's going to be one line in 10000, don'tcha?

<sigh>
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #10 on: August 20, 2006, 10:11:07 PM »

This is the second case I've seen in the past few days... but try changing line 38 of pvp.php to:
Code:
$name = rawurldecode(httpget('name'));
If you are going to encode something, make sure to decode it on the other end. Tongue
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Foolish Frost
Guest
« Reply #11 on: August 21, 2006, 03:38:18 AM »

nope.  not working yet...
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #12 on: August 21, 2006, 03:47:31 AM »

this should definately be switched to acctid instead of login...
Logged

Running for more than three years now:
Foolish Frost
Guest
« Reply #13 on: August 21, 2006, 03:52:47 AM »

Aye, but your talking a lot of module reconstruction too, I would think...

Let me ask this:  WHat code determins something is a badurl?  Perhaps THAT code needs the decode line...  I can say for certain that pvp.phgp is never getting an actual call, because I put exit; near the top and badurl still does not work.

Oh, and the bio link fails as well...

This HAS to do with spaces.  It's all I got...
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #14 on: August 21, 2006, 03:58:34 AM »

No, the checking of navs works perfectly... It's just that (so it seems) some server configurations automatically encode and decode things...

Switching this to "acctid" will not harm a lot modules... There's only one module I know, which uses this and that already masks the login...

Logged

Running for more than three years now:
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
18 Guests, 1 User
KaosKaizer
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search