comment syntax/location in .CT code
Posted: Fri Mar 19, 2021 10:39 pm
I posted this in the thread for the specific table im editing, but no response. This might be the appropriate place for this question.
I need some expert help from the wise CT devs around here please. I have a few questions about editing the table. I have added a few entries under the "+Bulk GetItem (packs, quests, materials)" section (and also added the XP multiplier feature from swedishMagyar's table, with his permission). Everything works just fine after testing it for a few while. With the recent update, I copied my edits into the new table, but decided to add some comments throughout my code to mark my edits and beginning/end of some snippets. I've definitely mad a mistake, having comments in certain spots of a code block. Comments I've placed in other areas are just fine, i.e. dq 000000000000C350 //Quantity 50000 .. but the standalone comment lines sometimes will add a blank entry/checkbox to the table
In short, some of my comments are causing blank entries in the table when placed between 2 CheatEntry blocks (i.e. after an ending </CheatEntry> and before the next <CheatEntry> ..
Screenshots:
piece of the code showing some different comments (marked orange and red. Red comments are fine):[/color]
WITH the comment lines
WITHOUT the comment lines:
Ive tried reading some guides and found a few threads about commenting, but wasnt able to find information about comment placement or about the specific prob im having. Do I need to escape the comment characters?
Any help would be appreciated
I need some expert help from the wise CT devs around here please. I have a few questions about editing the table. I have added a few entries under the "+Bulk GetItem (packs, quests, materials)" section (and also added the XP multiplier feature from swedishMagyar's table, with his permission). Everything works just fine after testing it for a few while. With the recent update, I copied my edits into the new table, but decided to add some comments throughout my code to mark my edits and beginning/end of some snippets. I've definitely mad a mistake, having comments in certain spots of a code block. Comments I've placed in other areas are just fine, i.e. dq 000000000000C350 //Quantity 50000 .. but the standalone comment lines sometimes will add a blank entry/checkbox to the table
In short, some of my comments are causing blank entries in the table when placed between 2 CheatEntry blocks (i.e. after an ending </CheatEntry> and before the next <CheatEntry> ..
Screenshots:
piece of the code showing some different comments (marked orange and red. Red comments are fine):[/color]
WITH the comment lines
WITHOUT the comment lines:
Ive tried reading some guides and found a few threads about commenting, but wasnt able to find information about comment placement or about the specific prob im having. Do I need to escape the comment characters?
Any help would be appreciated