Torchmodders

Modding => Modding Questions => Topic started by: Phanjam on September 19, 2014, 06:34:07 pm


Title: [How Do I...] Commenting In TL Game Files
Post by: Phanjam on September 19, 2014, 06:34:07 pm
What's a safe way to insert comments into TL's working files (.DAT, .LAYOUT, .IMAGESET, etc.)?

I kind of remember someone saying you can do this by starting your comment line with a double of any character (like "//" in the old doom .cfg files LOL) - can anyone confirm or refute this?

Thanks!
Title: Re: [How Do I...] Commenting In TL Game Files
Post by: RnF on September 19, 2014, 10:30:35 pm
In the item editor there is a notes section.  I tested it out and looked at the code.  Not sure if this is what you are looking for, but it might work in other areas.

<NOTE>NOTES:testing the notes area
Title: Re: [How Do I...] Commenting In TL Game Files
Post by: Wolven on September 20, 2014, 03:20:34 am
I've not tried this, but you might be able to use the standard for comments in HTML and XML files. <!-- comment here -->

Code: [Select]
<!-- Anything between the two tags is commented out. -->
<data>
        <data-field1></data-field1>
        <data-field2></data-field2>
        <data-field3></data-field3>
 </data>
<!--
<data>
        <data-field1></data-field1>
        <data-field2></data-field2>
        <data-field3></data-field3>
 </data>
-->
Title: Re: [How Do I...] Commenting In TL Game Files
Post by: Phanjam on September 21, 2014, 04:06:59 am
Thanks RnF and Wolven! Will try both.

Will probably use both too, since the in-GUTS method seems covenient and the XML method seems good when using a text editor.