EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 08-31-2006, 11:09 PM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default Saying things with buttons: SOE broke it?

Anyone else having problems /saying things with buttons anymore?

It seems after a very recent (had to be within the last week) SOE changed... something.

My button that is for a recipe parser used to work great. It now backfires badly, instead of saying the one line it should, it messes up badly.

The code for the button:
[code]<Button LocalText="Dump" LocalTooltip="Dump Data A" Location="228,64" Name="DumpButton" OnPress="say &quot;{pr5}|rname@&quot; ## Parent.Name.LocalText ## &quot;{pr5}^line0{pr5}&quot;
say &quot;{pr5}|rtext@&quot; ## Parent.Desc.LocalText ## &quot;{pr5}^line1{pr5}&quot;
say &quot;{pr5}|rlevel@&quot; ## Parent.FixedPage.LevelValue.LocalText ## &quot;{pr5}^line2{pr5}&quot;
say &quot;{pr5}|class@&quot; ## Parent.FixedPage.KnowledgeValue.LocalText ## &quot;{pr5}^line3{pr5}&quot;
say &quot;{pr5}|tech@&quot; ## Parent.FixedPage.TechniqueValue.LocalText ## &quot;{pr5}^line4{pr5}&quot;
say &quot;{pr5}|dev@&quot; ## Parent.FixedPage.DeviceValue.LocalText ## &quot;{pr5}^line5{pr5}&quot;
say &quot;{pr5}|mcomp@&quot; ## Parent.ComponentsPage.ComponentValue0.LocalText ## &quot;{pr5}^line6{pr5}&quot;
say &quot;{pr5}|comp1@&quot; ## Parent.ComponentsPage.ComponentValue1.LocalText ## &quot;{pr5}^line7{pr5}&quot;
say &quot;{pr5}|comp2@&quot; ## Parent.ComponentsPage.ComponentValue2.LocalText ## &quot;{pr5}^line8{pr5}&quot;
say &quot;{pr5}|comp3@&quot; ## Parent.ComponentsPage.ComponentValue3.LocalText ## &quot;{pr5}^line9{pr5}&quot;
say &quot;{pr5}|comp4@&quot; ## Parent.ComponentsPage.ComponentValue4.LocalText ## &quot;{pr5}^linea{pr5}&quot;
say &quot;{pr5}|fuel@&quot; ## Parent.ComponentsPage.ComponentValue5.LocalText ## &quot;{pr5}^lineb{pr5}&quot;
say &quot;{pr5}|prod@&quot; ## Parent.ProductPage.ProductValue.LocalText ## &quot;{pr5}^linec{pr5}&quot;
say &quot;{pr5}|bprod@&quot; ## Parent.ProductPage.ByproductValue.LocalText ## &quot;{pr5}^lined{pr5}&quot;" PackLocation="right,top" PackLocationProp="-045/0001,0064/0001" ScrollExtent="42,20" Size="42,20" Style="/Fetish.ButtonStyles.text_button" Tooltip="Dump Data A" UserMovable="true"></Button>[/quote]

The button is in the Examine_Recipe window.

Instead of spitting out text like it should (which would be this):
Quote:
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|rname@Alluring Feysteel Chandelier{pr5}^line0{pr5} Alluring Feysteel Chandelier{pr5}^line0{pr5} {pr5}^line0{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|rtext@The art of sculpting metal into a chandelier.{pr5}^line1{pr5} The art of sculpting metal into a chandelier.{pr5}^line1{pr5} {pr5}^line1{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|rlevel@35{pr5}^line2{pr5} 35{pr5}^line2{pr5} {pr5}^line2{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|class@Carpenter{pr5}^line3{pr5} Carpenter{pr5}^line3{pr5} {pr5}^line3{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|tech@Sculpting{pr5}^line4{pr5} Sculpting{pr5}^line4{pr5} {pr5}^line4{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|dev@Forge{pr5}^line5{pr5} Forge{pr5}^line5{pr5} {pr5}^line5{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|mcomp@Raw Feysteel{pr5}^line6{pr5} Raw Feysteel{pr5}^line6{pr5} {pr5}^line6{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|comp1@2 Raw Briarwoods{pr5}^line7{pr5} 2 Raw Briarwoods{pr5}^line7{pr5} {pr5}^line7{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|comp2@2 Raw Tussah Roots{pr5}^line8{pr5} 2 Raw Tussah Roots{pr5}^line8{pr5} {pr5}^line8{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|comp3@2 Raw Feyirons{pr5}^line9{pr5} 2 Raw Feyirons{pr5}^line9{pr5} {pr5}^line9{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|comp4@12 dark brown coals{pr5}^linea{pr5} 12 dark brown coals{pr5}^linea{pr5} {pr5}^linea{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|fuel@dne{pr5}^lineb{pr5} dne{pr5}^lineb{pr5} {pr5}^lineb{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|prod@a shaped alluring feysteel chandelier{pr5}^linec{pr5} a shaped alluring feysteel chandelier{pr5}^linec{pr5} {pr5}^linec{pr5}"
(1156297459)[Tue Aug 22 21:44:19 2006] You say, "{pr5}|bprod@{pr5}^lined{pr5} {pr5}^lined{pr5} {pr5}^lined{pr5}"
It instead causes the person to /say "& quot" over and over and over and over, and sometimes it sends something like "Raw Feyirons" to a chat channel , the number being the nubmer in front of it (EX: channel 2 would get "Raw Briarwoods" and some junk on the same line.


Does this have something to do with SOE's localization efforts?

And, does anyone know how to fix this and make it work again?
Reply With Quote
  #2  
Unread 09-04-2006, 10:05 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

&quot;

This is the HTML Entity representation of a quotation mark.

It's actually the SOE UI Builder that broke your code.

Use a text editor to replace every instance of &quot; with a " (quotation mark), and save it in your mods folder. Should (might?) fix what ails you.
Reply With Quote
  #3  
Unread 09-05-2006, 09:13 AM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

Yeah...

But I didn't use UIBuilder to add that. I did (however) find a fix.

The problem seems to be that SOE changed how it uses things like &quot

Before I used that so that it would say those strings, but the whole set of says were just one string (because it was all in " " it was a string, then when it went through it it turned the &quot s into the proper "s).


To fix it, I replaced the outer quotes with single-quotes (which also work to delimit strings) and replaced every &quot with the doublequote character (").

Seems to be working fine so far.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:08 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI