EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 02-15-2006, 08:39 PM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default apos '

I'm just wondering what extreemely simple thing I'm missing here. I want to display apostrophes in text. UIBuilder changes them to ' but both the game and uibuilder don't seem to chenge those back to '. I'm afraid to leave naked apostrophes in my xml.

Is there a way to make them display? Or is it just another (lovable) quirk of eq2?
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
Reply With Quote
  #2  
Unread 02-15-2006, 09:05 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

You have to do a search-and-replace with a text editor, unfortunately.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #3  
Unread 02-15-2006, 10:04 PM
DBurgdorf's Avatar
DBurgdorf DBurgdorf is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Permafrost
Posts: 320
Default

Quote:
Originally Posted by mother9987
Or is it just another (lovable) quirk of eq2?
Personally, I just count it as yet another reason not to bother with the UI builder.

-- Darryl (Milquetowst), probably the only modder who *doesn't* use the UI builder for anything.
__________________
Creator of the various Milquetowst mods
(But no longer actively modding)
Reply With Quote
  #4  
Unread 02-15-2006, 11:14 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

The problem your facing is due to improper UTF encoding.

Files that don't contain the opening UTF encoding string with the proper [] symbol intact will have progressive amp and apos conversion problems. That special character tells UIBuilder and the EQ2 Client how reserved characters are converted. If its removed or changed, the conversion gets botched.

Virtually every editor I've tried other than UIBuilder and Notepad will change that encoding character, usually resulting in thr progressive problem as follows...

1st save converts ' to '
2nd save converts ' to '
3rd save converts ' to '
etc..

To correct the problem, open any default file in Notepad, copy from the first opening bracket to the second opening bracket. Something like...
Code:
<?xml version="1.0" encoding="utf-8"?>[]<
Past into your bugged file. Delete the extra opening bracket if not needed. I include it in the copy selection just to be sure all the encoding is captured.

Once that's done, if you must use an editor other than UIBuilder or Notepad, I suggest...

1) open the file in Notepad
2) copy/paste to your editor
3) make changes
4) copy/replace all but the encoding (preserving the original encoding) back to Notepad
5) save
Reply With Quote
  #5  
Unread 02-16-2006, 01:07 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

I personally hardly ever press the save button in the uibuilder any more unless I just flat forget. I'll make my changes in the builder and the take the loc's over to ultraedit and save.

I could be wrong but from all I read about file encoding (utf-8,16, ect) is decided by the 1st two bytes of the file, so I don't know why anything after that is botching up the file. Even saving the file using the MSXML 4.0 dll, it sets the 1st two bytes in the file and strips the two after the header. Zonx is right about the UIBUIlder though if its missing the two bytes after the header the UIBilder will hack it up when u save in it.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 02-16-2006 at 01:10 AM.
Reply With Quote
  #6  
Unread 02-16-2006, 10:41 AM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default

Ok, thanks guys... I ran a working file through a hex editer after reading your responses. Apparently there's 4 special characters that are needed.

Before the "<?XML" there's 3 characters Chr(239), Chr(187), Chr(191) and then after is a Chr(10). You need all 4 for the game to display the file correctly.

Thanks for putting me on the right path.
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
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 02:34 AM.


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