RPGObjects.com
http://rpgobjects.com/forum/

OpenRPG not loading maps with Text
http://rpgobjects.com/forum/viewtopic.php?f=4&t=304
Page 1 of 2

Author:  DeadEarth [ Thu May 27, 2010 5:52 am ]
Post subject:  OpenRPG not loading maps with Text

So I've tested this time and again.

Everytime I make a map with a background Image AND text, it never loads up that map ever again.

I'm at my wits end here, can anyone help me?

Author:  prof.ebral [ Thu May 27, 2010 6:34 am ]
Post subject:  Re: OpenRPG not loading maps with Text

Common problem is you are suing single or double quotes. Because the XML string for the text uses on or the other, when you add a single or double quote you pre-emptively close the attribute and then create a malformed XML string.

Try not using either, your map will save. We need to encode the single and double quotes.

Author:  Paul [ Thu May 27, 2010 2:38 pm ]
Post subject:  Re: OpenRPG not loading maps with Text

Had this same problem once till it dawned on me what I was doing wrong. I had been using ' when denoting the feet hight of certain terrain features.

Rather than redo the map I went into the xml and just deleted all the offending ' and that fixed it.

Author:  davidbyron [ Thu May 27, 2010 4:20 pm ]
Post subject:  Re: OpenRPG not loading maps with Text

Yes an apostrophe in the text can mess up the map XML. Not sure if double quotes is bad too. Not sure if this problem has been fixed in the non-released stuff... I don't think so.

Author:  prof.ebral [ Thu May 27, 2010 4:32 pm ]
Post subject:  Re: OpenRPG not loading maps with Text

davidbyron wrote:
Yes an apostrophe in the text can mess up the map XML. Not sure if double quotes is bad too. Not sure if this problem has been fixed in the non-released stuff... I don't think so.


It depends on ho the attribute is enclosed. If it is enclosed in single qutes, then a single quote will break it. If it is enclose in double quotes, then a double quote will break it.

Author:  davidbyron [ Thu May 27, 2010 8:52 pm ]
Post subject:  Re: OpenRPG not loading maps with Text

Right. And I am saying it's always enclosed in single quotes I believe, but not 100% sure.

Author:  prof.ebral [ Thu May 27, 2010 9:31 pm ]
Post subject:  Re: OpenRPG not loading maps with Text

I believe I started enclosing my text in single quotes so the XML would be more standard looking.

You really should us single quotes for text strings so you can use double quotes inside without an escape character, which are more common than an apostrophe. At least for what I am doing they are.

Author:  davidbyron [ Thu May 27, 2010 10:45 pm ]
Post subject:  Re: OpenRPG not loading maps with Text

Really? I would have guessed the apostrophe is more common.

For example,
to indicate measurement in feet ("10'x10'")
to indicate contractions in speech ("isn't")
in spelling some odd fantasy names ("F'nord")
plus anywhere double quote might be used

Author:  DeadEarth [ Thu May 27, 2010 11:51 pm ]
Post subject:  Re: OpenRPG not loading maps with Text

It still is giving me problems. I tried getting rid of any ' and " I might have used but the map is still not loading.

Should I get a new version of OpenRPG?

Author:  davidbyron [ Fri May 28, 2010 1:45 am ]
Post subject:  Re: OpenRPG not loading maps with Text

Can you somehow post a copy of the file that is failing to load?

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/