What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Apostrophe and ' with usetaxi problem

Crowley

Member
Joined
Jan 15, 2010
Messages
967
Reaction score
20
I am am guessing other post didn't get answered with a "This is what's wrong" or a "There is nothing wrong, bot working as intended" or a "No idea what's wrong" because i posted it in the wrong sub-forum. Someone has to know which of the 3 things it is and since no answer in 3 days figured i would post in support forum....which is where i probably should have posted it in the first place.

When i try to put a flight destination in for usetaxi that has an apostrophe in it, Krom'gar Fortress for example, i just can't get it to fly. It opens the taxi box up fine but here is the problem.

PHP:
<CustomBehavior File="UseTaxi" DestName="Krom'gar Fortress" MobId="35139" X="-114.6441" Y="-263.901" Z="24.00237" />

Opens the Flightmaster but doesn't fly so i tried :

PHP:
<CustomBehavior File="UseTaxi" DestName="Krom&apos;gar Fortress" MobId="35139" X="-114.6441" Y="-263.901" Z="24.00237" />

And get hit with this error after the taximap opens:

PHP:
Error occured in: Global
Count: 1
Message: [string "Hax.lua"] line 1:
   ')' expected near 'gar'

Now i am not claiming to be the sharpest pencil in the box but at the same time i am not as dumb as a rock...though some may argue that point ;p

I just don't see where the close bracket, or the open bracket for that matter, goes.
FPs without an apostrophe work fine. Any ideas or am i actually as dumb as a rock? :)
 
Last edited by a moderator:
In almost a week, this post and another in profiles sub-forum, no devs or anyone in charge has looked at these posts and knows or doesn't know what the problem is?
 
did you try Kromgar?

if not, you'll have to wait for someone who knows more about the bot to reply

if you're awesome like me, you can make the bot fly w/o that behavior ;)
 
Took you almost a week to answer this kick? :(
Love your shit man but damn.
And yes i did....it's your horde profile i was working in ;)
 
Crowley... for shits and grins, try this:

interactwith fp guy
move 10 yards away
run back to his xyz
waittimer 2
usersettings learnflightpaths=false useflightpaths=false
waittimer 2
usersettings learnflightpaths=true useflightpaths=true
waittimer 2
runto end location xyz (kromgar fortress xyz)

see what happens
 
Last edited:
the main issue on why you waited a week is that this type of stuff goes in the dev forum - moved to dev forum
 
So sorry. so it is a genuine problem yes? Didn't think it was a DEV sub-forum issue.
Figured i would post in profile sub-forum and then BOT ISSUES forum you dig and not the dev forum? Again, sorry if i embarrassed anyone.
 
Last edited:
well it's a behavior issue - the buddy team didn't make it, and we can't steal it from it's original creator and they aren't answering PM's so we can ship it or modify it.

I've had it in the QQ list for raphus to see if he can use the basic 'idea' to make his own w/ his own code and hopefully not use string

But, give it some time... maybe the other C# / script ppl know how to fix it

Click this link:
http://www.thebuddyforum.com/blogs/kickazz006/606-kicks-qq-blog-quest-bot.html

^^ for those onlookers, only 'special' ppl can view that link ;)
 
Last edited:
Well you know. I always wanted to ride the 'special' yellow school bus 20 years ago ;)


But srlsy at the end of the day. I can't make it fly to places with apos in them? As Hb stand atm.
 
the ' works fine in hb (my profile has tons of them)

i dunno if it's a core or behavior issue - i'll have the dev team check it out
 
Oh i know it does but not for getting from A-B using FPs if they have them in them.
Unless i missed something.
 
You could also try:

Code:
Krom\'gar Fortress

Dunno for XML, but would work in C# ;)
 
Okay,
I have tried everything i know and some other suggestions from others. I simple cannot get it to fly to a destination with an apostrophe in the name. Kick has tried to help as have others. Is this a bug or is there something we are missing? Would be nice to hear from a source code Dev on this.
 
A few observations:

Opens the Flightmaster but doesn't fly so i tried :

1. The DestName attribute shouldn't affect the proper operation of the behavior. Your findings are peculiar to say the least. :D

2. Honorbuddy uses the XML parsing mechanisms built into C#/.NET.
If there are bugs in the parsers supplied by M$loppy, then there is not a whole lot that HBdev can do about it short of writing their own parser--which would be silly. Best to work around the problem--even if that means leaving out the decorative single quote.
The information about &amp;apos; on this page implies that M$loppy may very well have a wide-spread bug with respect to &amp;apos; processing.

3. Although &amp;apos; is a perfectly valid IETF-standardized way to specify a single quote, you may try the alternate encoding of &amp;#39; and see if that works in your context.


Short of empirical experimentation, or some serious Googling, I don't think anyone from here can provide an authoritative answer to your question. As, the problem is M$loppy's.


cheers,
chinajade
 
Last edited:
Thanks for answer china. Will try that in a bit.
 
Last edited:
So basically what your saying is that it isn't possible to fly to a place with apostophes. All I needed to know ;)
Thank ya for answer.

That's not quite what I said. :D

I suggested two work-arounds:
chinajade said:
3. ...you may try the alternate encoding of &amp;#39; and see if that works in your context.

and
2. ...Best to work around the problem--even if that means leaving out the decorative single quote.

As far as the behavior cares, the DestName attribute is decorative only, and doesn't actually supplement functionality.


cheers,
chinajade
 
No luck :(

Code:
  DestName="Hellscream(and#39;s Watch"

Thought i would try Hellscream's Watch for a change.

Log attached incase but nothing in there i can see except for when i stopped it of course. Guess i will chalk it up to something i can't do. Unless someone else has a better idea :)

Okay...seems now i have broke the in the forum :( :D

How did you get that to show andPound39; ? lol

Now i do feel dumb as a rock :/


Also if name is only decorative how does the bot determine where to fly? Surely it has to read and parse it?
And forgive me for my stupidity. I am no coder, just a looker, seer and figure outer.

And you were right that wasn't exactly what you said which is why i edited my original post :)
 

Attachments

Last edited:
I'm sorry it didn't work. I cracked open the UseTaxi behavior and had a look. Vlad does use the DestName to build an LUA string, so what I said about DestName being 'decorative' is completely wrong--it is required for proper function.

Here's the problem:
1) To parse the profile, HB requires it to be properly XML-encoded. This means the single-quote must be encoded as either &amp;#39; or &amp;apos;.

2) The UseTaxi behavior requires the string to _not_ be XML-encoded, because it is used to build LUA to find the match with the choice of destinations presented by the NPC.

Thus, we have the problem you succinctly described as:
Crowly said:
it isn't possible to fly to a place with apostophes

I believe your are 100% correct because of the conflicting requirements. Sorry for side-tracking, and not looking at the behavior code earlier.

I've attached a modified version of UseTaxi that may work, but it is untested. (I hope Vlad forgives me, as I did not ask his permission to make these mods).

cheers & apologies,
chinajade


P.S. -
How did you get that to show andPound39; ? lol

You sometimes have to play games with the forum to get XML/HTML things to display correctly. For instance, to get "&amp;#39;", you'd need to type "&amp;amp;#39;".
 
I'm sorry it didn't work.

Don't be sorry as it isn't your fault. I appreciate your helping :)

I believe your are 100% correct because of the conflicting requirements. Sorry for side-tracking, and not looking at the behavior code earlier.

Sidetracked maybe but i have learnt a little bit more so for me personally not a waste of time at all. Just sorry i wasted yours.

Nope, your edited usetaxi doesn't work either but again thanks for trying :)
 
Back
Top