So many Icon errors. Thread last updated on 2005-08-10 22:22:59

Posted by member 257118 on 2005-08-09 18:57:22

When I try to change to any theme, even back to the default theme, I get like 30 error messages telling me..Variable "Icons" Dir not defined. And then underneath that it says Expression: *Popup .icon="$IconsDir$\ and then its different from there on out on each error listing things like...locations folder, desktop, my computer, network, etc etc.

After this it ussually loads the theme but only like 50% of the theme actually works, and I can never get a background to work it always displays the same default Litestep background.

Posted by member 1 on 2005-08-09 19:00:31 link

define IconsDir in your theme.rc

Posted by member 257118 on 2005-08-10 00:30:03 link

I am using Ghost theme, the Theme.RC reads:

Theme: Ghost
; Author: normanbates
;
; Step & Scripting Author: Andymon
;
; Based on Gathering Theme.
; Icons Add script by Andymon & Blind_In_Darkness/GothsSecret, taken from
; Gozer Theme by LS-Universe Team
;
;-\\----------------------------------------------------------------------------------------------------//-
;----------------------------------------------------------------------------------------------------------
;
OTSMajorVersion "2"
OTSMinorVersion "0"

;-/------------------------------------------------------\-
ThemeName "Ghost"
ThemeAuthor "NormanBates"
;-\------------------------------------------------------/-
;
; Set Main Image Folder
ThemeSkinDir "$ThemeDir$"
LSImageFolder "$ThemeDir$images"
;
; Set ConfigDir Evar
ConfigDir "$ThemeDir$config"
;
;

;To Change Modules To Other Ones Edit Only The
;"ModuleRevID" Lines In The "Themevars.rc"!!

include "$ThemeDir$setup.rc"
include "$ThemeDir$config\themevars.rc"


RainmeterIniFile "$ConfigDir$rainmeter.ini"

;DO NOT CHANGE
;*************************************
If notransparencyfade = 0
If WinXP = 1 OR Win2000 = 1
EnableTrans "1"
Else
EnableTrans "0"
EndIf
Else
EnableTrans "0"
EndIf
;*************************************




;----------------------------------------------------------------------------------------------------------
;Install "All Not Initially" loaded modules and modules used in LSBoxes
;at once to prevent new downloads at settings switch
;----------------------------------------------------------------------------------------------------------

*NetInstallModule $ScanDirRevID$
*NetInstallModule $RabidVWMRevID$
*NetInstallModule $VTrayRevID$

;----------------------------------------------------------------------------------------------------------
;
; Load The "Theme.rc" (of your "Skin") In The Config-Folders
include "$ConfigDir$skinbase.rc"

;

END

Where exactly is this IconsDir supposed to be defined, I dont see anything about Icons besides the thing about Icons add script by Andymon at the top.

EDIT: Also, as it does this on ANY theme I choose, do I have to manually set this IConsDir to every theme I download?

Posted by member 1 on 2005-08-10 01:03:07 link

ok...I searched my entire LiteStep directory for the occurance of IconsDir in any of my files and I came back with 0. This tells me it is something that was more than likely added somewhere to your personal popup config. Remove the reference to .icon=$IconsDir$blah.blah from your popup.rc and you should be ok.

Posted by member 248213 on 2005-08-10 19:55:42 link

As a side note: You can define "IconsDir" anywhere in your step :)

IconsDir "C:\robots\evilmasterplan\hypnoIcons\Litestep-Zombie-Experiment\"


:) Just make sure you dont release a theme with your system paths in it ;)

Posted by member 257118 on 2005-08-10 21:29:15 link

I searched for that .icon= reference but couldnt find it, however, I added the IconsDir "path" line to my step.rc and that did the trick, after that it came back with errors on helpdir and popupsdir, and after adding those to my step.rc all the errors dissapeared.

In case anyone runs into this problem, heres the lines i added to step.rc:

IconsDir "C:\LiteStep\themes\Ghost\Icons"
HelpDir "C:\LiteStep\"
Popupsdir "C:\LiteStep\"

I'm not sure if I'm missing any features by not specifying the Help and Popupsdir, I couldnt find these directories but the theme seems to be fully working now. I dont have to go through 30+ errors on every system start or theme switch now!

Thanks for taking the time to help guys, really appreciate it =)

Posted by member 248213 on 2005-08-10 22:22:59 link

If you actually want these "30+ icons" in the theme, you need to fix it.

Do a windows search in the Ghost theme folder.
Search for the text "IconsDir" in any file.

Then take a look into the files that come up, and run a search in the texteditor for "IconsDir"

Look at the icon file (.ico) that line points to,
then do another Ghost folder search for the name of that icon.

If its in a folder like Ghost\Misc\Icons (or something), set the IconsDir as that path,

then hopefully all the icons will show up where they are meant to.