I put MyMedia together after seeing so many people worried about updating and keeping their custom textures in SharedMedia (or whichever addon). I was also starting to wonder how large the SharedMedia download would get with all the requests to add textures, etc. to it. You can still request that a texture be added to SharedMedia if you would like to donate it to the community, but now you won't feel like you have to in order to not worry about updating your addons. :)
This will allow you to register your own custom media to SharedMedia, which in turn registers it with SharedMediaLib, LibSharedMedia-2.0, LibSharedMedia-3.0, and Surfaces (whatever mod still uses that...). So, whatever library your addon uses, you'll see your custom media with it!
To set up your MyMedia...
Download and install SharedMedia (DON'T use SharedMedia-2.0)
Inside SharedMedia, read INSTRUCTIONS for MyMedia
Follow the instructions and examples to set up your own MyMedia.lua file
(Note: If you use WAU and have it set to delete before extracting ALWAYS make a backup copy of your SharedMedia folder so that your custom textures and MyMedia.lua file will not be lost. You will only have to copy-paste the old stuff into the new folder.)
How do I make a lua file?
You can make one with Notepad, Wordpad, etc. You only need to save it with the .lua extension. If you're having troubles, make a copy of another lua file, replace its contents with your MyMedia stuff, and rename it.
Why isn't my stuff showing up in game?
Did you save your MyMedia file as a lua file?
Are you using the old, defunct and now deleted SharedMedia-2.0? You need to use the current/official version of SharedMedia, linked above.
Double-check that your MyMedia.lua format matches what is in the Instructions. The format was changed around March, along with SharedMedia itself, to accommodate all libraries.
Check the SharedMedia.toc file. There was a version of SharedMedia that had the MyMedia.lua file commented out, which prevented it from loading. Ensure that there are no # signs in front of MyMedia.lua in the toc file.
I don't want to use SharedMedia - can I still use the old MyMedia standalone?
The old, original one that used to be on the files page and linked in this post? No. The way media is registered has changed since it was created. What you *can* do, though, is create your very own SharedMedia-blah addon. Use the Core.lua and SharedMedia.lua files from SharedMedia, or copy from one of its derivatives (like SharedMedia-Blizzard). *OR* download MyMediaCreator from Curse (the same place the batch scripts are).
Because, like you said, then it would get bloated. :) Besides, Clearfont doesn't currently pull fonts from SharedMediaLib, just registers its fonts with it SharedMediaLib so other mods like PitBull and ElkBuffBars can use them.
MyMedia is the same as SharedMedia (same code, etc) but it allows you to use any custom textures that you have created or sounds/fonts you have come across without having to edit them into the SharedMedia files. That way, you won't have to keep editing them in every time SharedMedia gets updated.
Maybe... It was something I came up with on the fly, and originally meant to just post it in a thread where people were requesting things be added to SharedMedia. Then I decided to just upload it. Wasn't sure on modifying SharedMedia, I guess. :) But if that would be the best way I'd be glad to move it over.
Okay, MyMedia's been merged in with SharedMedia. If anyone has questions about it, they can post in either thread.
As for fontpacks, I was merely following the pattern with my #4. ;) How large do we want a download to be? Granted, you're not really sure what fonts are in each pack until you download them and see.... Unless there was a wiki page made up for them with a listing (and pictures) of what's in each pack... I'd personally love to see a link to the wiki for each addon on the files page, though I know that all of that info is just pulled from the .toc...
Sorry for rambling and thinking out loud. :P I'll see later tonight how big a file would be if all font packs were combined. Then would any new fonts need to be added to that one file? Gets back to my question of how big is too big. :)
No, they shouldn't... It should just register them with SML as additional options the same way that ClearFont2 does its fonts. Are you getting any errors or is there a specific addon that you are missing them from?
well it seems when i create the mymedia file and load into wow it doesn't give me options to load the default fonts within sharedmedia but i do have my custom files saved in a different folder which i directed the font to.. also below i added the steel texture just so i can get access to it
and no im not getting any errors from it :S
here's mymedia file:
local SML = AceLibrary("SharedMedia-1.0")
MyMedia = AceLibrary("AceAddon-2.0"):new()
local SML = AceLibrary:HasInstance("SharedMedia-1.0") and AceLibrary("SharedMedia-1.0") or nil
if SML then
--Insert your media's information (under the section headers) between here...
SML:Register("font", "PandaStyle", "Interface\\Addons\\!!!Custom\\pandastyle.ttf")
SML:Register("statusbar", "Steel", "Interface\\Addons\\SharedMedia\\statusbar\\Steel.tga")
-- ... and here
Something I want to share with all the people having problems with creating the mymedia.lua file:
I put together a .bat file witch does all the stuff you need to do to add your Media
How this works:
You need to have SharedMedia installed (http://files.wowace.com/SharedMedia/)
Copy the code below and put it into the Interface\Addons\SharedMedia\ folder and name it something like myMedia.bat
All you have to do now is to run that .bat (doubleclick it..)
It creates subdirectories inside SharedMedia. These are:
MyMedia files\background (background textures)
MyMedia files\border (border textures)
MyMedia files\font (.ttf font files)
MyMedia files\sound (.mp3 stuff)
MyMedia files\statusbar (statusbar textures)
the .bat will pause at that point so you can put your mediafiles into the corresponding folders. Then continue the .bat
It will create a working myMedia.lua file for you with all files it just found inside MyMedia files\[Subfolder]
echo.for use inside "SharedMedia" only!
if not exist "MyMedia files" mkdir "MyMedia files"
if not exist "MyMedia files\background" mkdir "MyMedia files\background"
echo creating "background" folder (Background Textures)
if not exist "MyMedia files\border" mkdir "MyMedia files\border"
echo creating "border" folder (Border Textures)
if not exist "MyMedia files\font" mkdir "MyMedia files\font"
echo creating "font" folder (.ttf Fonts)
if not exist "MyMedia files\sound" mkdir "MyMedia files\sound"
echo creating "sound" folder (annoying sounds go here)
if not exist "MyMedia files\statusbar" mkdir "MyMedia files\statusbar"
echo creating "statusbar" folder (Statusbar Textures)
echo !Please put your files into the subfolders!
echo Only Files in these Folders will be added.
echo MyMedia.lua will be overwritten!
echo -- Created by MyMediaCreator --> MyMedia.lua
echo if not SharedMedia then return end>> MyMedia.lua
echo --background>> MyMedia.lua
echo -- background
for /r ".\MyMedia files\background" %%v in (*.*) do echo SharedMedia:Register("background", "%%~nv", [[Interface\Addons\SharedMedia\MyMedia files\background\%%~nv%%~xv]])>> MyMedia.lua
for /r ".\MyMedia files\background" %%v in (*.*) do echo %%~nv%%~xv
echo --border>> MyMedia.lua
echo -- border
for /r ".\MyMedia files\border" %%v in (*.*) do echo SharedMedia:Register("border", "%%~nv", [[Interface\Addons\SharedMedia\MyMedia files\border\%%~nv%%~xv]])>> MyMedia.lua
for /r ".\MyMedia files\border" %%v in (*.*) do echo %%~nv%%~xv
echo --font>> MyMedia.lua
echo -- font
for /r ".\MyMedia files\font" %%v in (*.*) do echo SharedMedia:Register("font", "%%~nv", [[Interface\Addons\SharedMedia\MyMedia files\font\%%~nv%%~xv]])>> MyMedia.lua
for /r ".\MyMedia files\font" %%v in (*.*) do echo %%~nv%%~xv
echo --sound>> MyMedia.lua
echo -- sound
for /r ".\MyMedia files\sound" %%v in (*.*) do echo SharedMedia:Register("sound", "%%~nv", [[Interface\Addons\SharedMedia\MyMedia files\sound\%%~nv%%~xv]])>> MyMedia.lua
for /r ".\MyMedia files\sound" %%v in (*.*) do echo %%~nv%%~xv
echo --statusbar>> MyMedia.lua
echo -- statusbar
for /r ".\MyMedia files\statusbar" %%v in (*.*) do echo SharedMedia:Register("statusbar", "%%~nv", [[Interface\Addons\SharedMedia\MyMedia files\statusbar\%%~nv%%~xv]])>> MyMedia.lua
for /r ".\MyMedia files\statusbar" %%v in (*.*) do echo %%~nv%%~xv
-- Created by MyMediaCreator --
if not SharedMedia then return end
SharedMedia:Register("background", "pinkflowers", [[Interface\Addons\SharedMedia\MyMedia files\background\pinkflowers.tga]])
SharedMedia:Register("border", "clearBorder", [[Interface\Addons\SharedMedia\MyMedia files\border\clearBorder.tga]])
SharedMedia:Register("font", "ArialBold", [[Interface\Addons\SharedMedia\MyMedia files\font\ArialBold.ttf]])
SharedMedia:Register("sound", "boom", [[Interface\Addons\SharedMedia\MyMedia files\sound\boom.mp3]])
SharedMedia:Register("statusbar", "steel", [[Interface\Addons\SharedMedia\MyMedia files\statusbar\steel.tga]])
After using the above batch, I still get the following error.
[2008/04/16 13:12:03-150-x1]: SharedMediaAdditionalBackgrounds\Core.lua:28: Cannot find a library instance of SharedMedia-1.0.
Bartender3-3.1.2 r68497\libs\AceLibrary\AceLibrary.lua:490: in function `AceLibrary'
SharedMediaAdditionalBackgrounds\Core.lua:28: in main chunk
I have no clue where it's coming from, so hope any of you can make sense of it.