Haunted Config Files Thread last updated on 2006-01-10 20:24:22

Posted by member 280260 on 2006-01-10 19:57:37

There is something horribly wrong with the config files for the theme I'm working on. There are a few places in my files where the text is changed after I save, no matter what I try to do. For example, there is a line in my script.rc which reads

*script bang !IconCreate

whenever I try to run the bang, this gets changed to

*script ~bang !IconCreate

There are other places where this happens: names of variables getting switched, IF statements getting deleted, etc. This only happened when I tried to consolidate all of my scripts into a single file.


The only modules I can think of that could do this are mzscript-0.9_beta-8 and xtedit-0.5. I never direct either to modify script.rc.


I have tried changing my text editor, the names of the files and even picking up the theme and re-copying all the files. I know it's an LS issue because if I type

*script bang !IconCreate
*script bang !IconCreate

the first one gets a tilde and the second one is untouched, while if I comment out the first line then it attacks the second.

Please help!

Posted by member 212670 on 2006-01-10 20:06:29 link

Well, you have this in your theme.rc:

*mzVarFile "$ConfigDir$scripts.rc"

That tells mzscript to use/write vars to your scripts.rc. You don't want that and I bet that's your problem. That should point to your vars file (like themevars.rc, for example). =)

Btw, I think mzscript-0.9.13 is the version that people like the most. (I liked 1.0-rc2 but it messes up comments in your vars file >.< )

Posted by member 280260 on 2006-01-10 20:24:22 link

He has found it!

Btw, the more recent builds of mzscript parse the writing scripts slightly differently (and make them not work).

I didn't feel like rewriting all the code so I just left it at 8.