xboxscene.org forums

OG Xbox Forums => Official MediaXMenu (MXM) Forum => Dashboard Forums => MXM ActionScripting Forum => Topic started by: liberty1 on June 15, 2004, 08:29:00 AM

Title: Font Swaper Script Problems
Post by: liberty1 on June 15, 2004, 08:29:00 AM
I'm tyring to edit the font swaper script to move over the fonts and rename xboxonlinedash.bak back to .xbe. I keep getting errors whenever I try to turn it on or off, any ideas??? All of the files below exist in the places they say they are.. is there possible some syntex error?  Any I did already edit the paths with the proper slashes for the rest of the program.  thanks for any help anyone can be!!!

liberty



:Swap
Rename C:\Xbox.bak C:\Xbox.xtf
Rename C:\Xbox Book.bak C:\Xbox Book.xtf
Delete C:\bert.xtf
Delete C:\ernie.xtf
Delete C:\xodash\xonlinedash.xbe
Rename C:\xodash\xonlinedash.bak C:\xodash\xonlinedash.xbe
BeginDraw UseCurrent
MessageBox " Font Hack Disabled "
EndDraw
Delay 2
Quit
:Turnon
Rename C:\Xbox.xtf C:\Xbox.bak
Rename C:\Xbox Book.xtf C:\Xbox Book.bak
Rename C:\xodash\xolinedash.xbe c:\xodash\xolinedash.bak
COPY E:\config\bert.xtf C:\bert.xtf
COPY E:\config\ernie.xtf C:\ernie.xtf
COPY E:\config\xonlinedash.xbe C:\xodash\xonlinedash.xbe
BeginDraw UseCurrent
MessageBox " Font Hack Enabled "
EndDraw
Delay 2
Quit

This post has been edited by liberty1: Jun 15 2004, 05:02 PM
Title: Font Swaper Script Problems
Post by: liberty1 on June 15, 2004, 04:11:00 PM
does anyone have any ideas? I've looked though all the action script references/tips I could find about mxm and when I look at it there doesn't seem to be anything wrong? all the slashes are right... and its pretty hard to mess up copy and rename commands... isn't it??
Title: Font Swaper Script Problems
Post by: geniusalz on June 18, 2004, 09:50:00 PM
Sorry about the late reply, didn't see this earlier.

The problem is with lines like these:

Rename C:\Xbox Book.xtf C:\Xbox Book.bak

The two arguments above need to be quoted, because they contain spaces.  And inside quotes, the backslashes need to be doubled up... So here's what the line becomes:

Rename "C:\\Xbox Book.xtf" "C:\\Xbox Book.bak"

Do this to any argument that contains spaces
Title: Font Swaper Script Problems
Post by: liberty1 on June 19, 2004, 03:30:00 PM
geniusalz,

  Awsome. I couldn't figure it out for the life of me. Tried that and it worked! thanks alot, a late reply is alot better then no reply!!

Liberty