Popup text bugged

Bug reports, feature suggestions etc...

Moderators: Programmer, WebWeaver, WillowsHeart

Post Reply
Nothingness
Evaluation User
Evaluation User
Posts: 29
Joined: Mon 19 Oct, 2009 7:18 pm
Location: Canada

Popup text bugged

Post by Nothingness »

Hello!

I'm still working on that file I've been working on that I mentioned previously. I've been adding the meanings of the cards in the CardData.xml of the deck. I've been making sure that all the text of each card fit in the popup window. The thing is that now the popup doesn't appear anymore for that particular deck. I've checked the options to make sure the popup window is enabled and it works on the other decks but not on that one anymore.

How to fix it?

I still have the majors to finish.

Thanks!
User avatar
Programmer
Major Contributor
Major Contributor
Posts: 1732
Joined: Sat 01 Jan, 2005 12:00 am
Location: Spain
Contact:

Re: Popup text bugged

Post by Programmer »

Hey, that is really strange. Pop-up notes either showing or not is a global setting, not a deck by deck one. Are you sure you don't perhaps have two copies of the deck, one with notes and one without, and you are looking at the wrong one by mistake? I know that sounds far-fetched but except for a bug that is the only reason the notes would not be showing - that there are none. Maybe you could send me the note file (to administration at orphalese dot net) and I will see if there is anything about the notes themselves that is making them not show - perhaps a glitch in the XML formatting or something.

BTW, the notes being too big for the pop-up window should not matter. You can scroll the notes up and down by using your mousewheel.
Nothingness
Evaluation User
Evaluation User
Posts: 29
Joined: Mon 19 Oct, 2009 7:18 pm
Location: Canada

Re: Popup text bugged

Post by Nothingness »

I just sent you the files by email.

And I didn't know we could access more text by scrolling the wheel, just tested it with another deck... awesome! I'll have to add more infos then.
Nothingness
Evaluation User
Evaluation User
Posts: 29
Joined: Mon 19 Oct, 2009 7:18 pm
Location: Canada

Re: Popup text bugged

Post by Nothingness »

I found the problem. After thinking about it I remembered that I had written in the meaning of one if the cards "x & x" and the & was a different color of the text. So I changed "&" for "and" and it fixed the problem. Anyway, I'm happy I had this issue because I just learned we can scroll the meanings of the cards so I can add way more texts now to the cards.
User avatar
Programmer
Major Contributor
Major Contributor
Posts: 1732
Joined: Sat 01 Jan, 2005 12:00 am
Location: Spain
Contact:

Re: Popup text bugged

Post by Programmer »

I am glad you found the problem! I just took a look at whether there was a way to read in the data ignoring problematic characters like that, in other words for me to fix up the program so that characters like would maybe just affect an individual card, not the whole deck. I expect there probably is a way but it eludes me at the moment. One thing I can do though is to change the program so it gives an error message about where the offending character is - that should at least help people find and fix the problem for themselves. It also occurs to me that if you really preferred to keep the ampersand you could replace it with an HTML marker - in this case it would be &
Post Reply