Quantcast [5.30a2]A tiny glitch in TOC file? - WoWInterface
 
Thread Tools Display Modes
08-08-13, 07:21 PM   #1
Eternal_Lynx
An Aku'mai Servant
 
Eternal_Lynx's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 31
[5.30a2]A tiny glitch in TOC file?

Carbonite.toc line 8:
Code:
## SavedVariables: CarbData NxData
Is there missing a comma like "CarbData, NxData"?
__________________
Moo'. Are you happy now?
 
08-09-13, 08:50 PM   #2
Coasty
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 116
Originally Posted by Eternal_Lynx View Post
Carbonite.toc line 8:
Code:
## SavedVariables: CarbData NxData
Is there missing a comma like "CarbData, NxData"?
I could be wrong here (since I haven't done any programming in 25+ years), but so far as I know in a "remark" line, as indicated by the ## at the beginning of the line, the missing comma is immaterial as "SavedVariables: CarbData NxData" won't be parsed as a "command" line. It's there just for informational purposes.
__________________
Paul Stout
nUI User and Contributor
[email protected]
 
08-10-13, 11:24 AM   #3
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 757
While it is marked as a comment it's still read and used.
[...] "SavedVariables
A comma-separated list of variable names in the global environment" [...]
http://wowpedia.org/The_TOC_Format
__________________
The cataclysm broke the world ... and the pandas could not fix it!
 
08-12-13, 05:09 PM   #4
Coasty
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 116
Hmmm.... Guess I should add "(out-of-date Fuddy Duddy)" to my signature...
__________________
Paul Stout
nUI User and Contributor
[email protected]
 
08-13-13, 04:49 AM   #5
Kreelor
A Firelord
 
Kreelor's Avatar
Join Date: Feb 2008
Posts: 495
I was curious, so I looked this up. Maybe I'm misunderstanding it, but it seems this may be what Coasty had in mind?
Notes

WoW reads up to the first 1024 characters of each line only. Additional characters are ignored and do not cause an error.
The .toc files are read only when the client initially starts up. Any changes made to the .toc file will be ignored by a running client until the client is restarted (more specifically, content read from .toc files is not refreshed when you reload the user interface or log out / log in. Although some changes will be picked up if you log out to the character selection screen and back in).
Prefixing a line with one # will mark it as a comment, meaning that it will not be read. For example:

# This is a comment
Reference:
http://wowpedia.org/The_TOC_Format#Notes
 
08-13-13, 07:38 AM   #6
Rythal
Featured Artist
Featured
Join Date: Aug 2012
Posts: 1,458
They seem to do things a little backwards.

Yes normally # is a comment, however WoW reads all the information from those lines anyways, each one while appearing to be a comment actually does and instructs the wow client in some way.

As for the missing , I'm wondering if it even looks for that or not since Carbdata is the main one, Nxdata is the old 5.1 series. If it wasn't seeing or using Nxdata the options to import old settings, or delete them would not be showing up inside the game.
 
08-13-13, 09:37 AM   #7
Kreelor
A Firelord
 
Kreelor's Avatar
Join Date: Feb 2008
Posts: 495
Thanks Rythal for the clarification. I was only guessing since I'm not a programmer.

Leave it to Blizzard to screw up standardized coding! Geeeesh! Thank you for replying. I learn more all the time.
 
 

WoWInterface » Featured Projects » Carbonite » Carbonite Archive » [5.30a2]A tiny glitch in TOC file?

Thread Tools
Display Modes

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