Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Unwanted boxes in XML

The general place to discuss MOD''ing Freelancer!

Post Mon Aug 15, 2005 8:58 am

Unwanted boxes in XML

I'm not great at XML, i'll be the first one to say it, but i can usually muddle through and get the infocards how i want it. I've recently had some boxes appear which I don't want and i'm guessing it is something to do with the formatting. I've screen captured the source and output from a few..
Source

Results


Source2

Results2

Any of you guys know how I can get rid of these?

Edited by - M-A-C-E_166 on 8/15/2005 10:01:48 AM

Post Mon Aug 15, 2005 10:01 am

Looks like the carriage return & linefeed characters at the end of each of your lines, from when you press enter at the end of each line. Remove them from the XML source and it should be OK, the text will wrap automatically anyway.

Post Mon Aug 15, 2005 10:15 am

I'm not 100% sure but I think you've pressed the "ENTER" key, this leaves an invisible tag behind that fled_id and Freelancer might not recognise.

*Edit* Accushot's to fast for me, he beat me to it


**shuffles of with a new headache**

Edited by - Bejaymac on 8/15/2005 11:18:00 AM

Post Mon Aug 15, 2005 10:43 am

Cheers for the responses, but it dosen't seem to be the problem. I did create a text document first and then copy the text from there into the xml window, but there shouldn't be any formatting as it was from notepad. To be honest, i'm not sure about having these entries on every ship anyway, but I am going to create a manual for the mod which will be given to the player on starting which will have the info from this stuff anyway.
I can't see whats happening in it I think it has to be formatting from somewhere, but I tried re typing the ends/starts of each sentences and it didn't make any differences..

Post Mon Aug 15, 2005 11:59 am

If you mail me one of the XML files I'll take a look - from the look of the sources it does seem like you have CrLf characters at the end of some of the lines:



I've marked where it looks like you've pressed "Enter".

Post Mon Aug 15, 2005 4:46 pm

Oh, cheers Accushot, what did you actually want? For me to copy the script from the dll to a text file and send it to you? I don't really use generating script much, i just rely on dll entries.

Post Tue Aug 16, 2005 12:13 am

Yeah, just the source from one of the affected entries ought to be enough. Actually, zip up one of the DLL's and let me know one of the incorrect IDS values - that would probably be best.

Post Tue Aug 16, 2005 3:54 am

Actually, i've just had another look at it and i think its all ok now. You were right, that was the problem. I know that i didn't add the returns to the wrong places, i'm bad at xml, but not that bad.. I'm guessing that the problem came from copying from the text doc into the xml window. It must have added those returns in an attempt to be "helpful". Cheers for your help.

Post Sat Sep 17, 2005 10:14 am

I have found that when facing the same problem in my mod that at times I accidentally hit the space bar one too many times, the double or triple spaces leaving those annoying boxes. I guess XML doesn't like more than one space between characters.

Nemo me impune lacessit.

Return to Freelancer General Editing Forum