• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

TAB key in dat file

Bubba_OH

New member
After making many formatting changes that worked perfectly, I am suddenly having trouble loading a game that has TAB keys in a few of the dat files. If I replace the TABs with spaces, it works. What am I missing?

I have the authoring kit, am new to it, but have been coding for over 30 years. Is there something quirky about TAB keys?
 
I'm sorry, I don't understand what you're trying to say. Could you copy some of the code, so I can see what you're talking about?
 
Yeah, it's tough to explain because it makes no sense and TABs are working perfectly EVERYWHERE else. Hopefully the image is better than the code (because the TABs and spaces look the same).
HeroLab.png

All the indenting is done with TABs except the areas in red (those are spaces). If I use any TABs in that section, it fails to load. There are hundreds/thousands of TABs in other files, and this is the only spot that fails.

Thoughts?
 
I know when I started working on Hero Lab, my boss had be alter how EditPad Pro handles a press of the tab key - I've set it up so that pressing the tab key enters 2 space characters.

My guess is that this has to do with the XML formatting - make sure that your editor is properly enforcing the encoding that's used in Hero Lab:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

The character that your text editor is trying to add may not be an allowed character in that encoding.
 
Also, remember that the places you're pointing out are not XML sections - they're <CDATA[ blocks within the XML, and those probably have different rules for what characters are allowed.
 
Back
Top