xboxscene.org forums

OG Xbox Forums => Official MediaXMenu (MXM) Forum => Dashboard Forums => MXM ActionScripting Forum => Topic started by: Jezz_X on February 12, 2004, 08:39:00 PM

Title: Anyone Wanna Update Some Scripts
Post by: Jezz_X on February 12, 2004, 08:39:00 PM
Does anybody want to update the Xbox NameChange and the IP Change scripts to the latest wips using the virtual keyboard.

The entry maker script has got me spoilt on it now  wink.gif
Title: Anyone Wanna Update Some Scripts
Post by: geniusalz on February 12, 2004, 08:47:00 PM
Xbox name change should become a three/four line script now
Same with IP changer laugh.gif
Title: Anyone Wanna Update Some Scripts
Post by: flattspott on February 13, 2004, 03:02:00 AM
Well I considered making and Xbox Name (Nickname) switcher. But, even with the WIP's the only pratical way to do this would be to have a folder or something with several alternate XBN files to copy around. So you'd still have to to hex edit the XBN file on your PC (several times) depending on the number of avaible Nicknames you want
Title: Anyone Wanna Update Some Scripts
Post by: Yuyu on February 13, 2004, 07:19:00 AM
All you need to do for the name changer script is edit the preferences node, where the nickname tag is, in the mxm.xml... SHould not be that hard I think... Then they can just edit there nick with the Keyboard...
Title: Anyone Wanna Update Some Scripts
Post by: flattspott on February 13, 2004, 07:38:00 AM
I'm talking about the NICKNAME.XBN file found in E:\UData. The one for system link gaming.
Title: Anyone Wanna Update Some Scripts
Post by: Yuyu on February 13, 2004, 07:47:00 AM
YEah whenever you change your nick in the MXM preferences that is your Xbox's nick for System Link... MXM edits that file for you when you set your nick...

Thats why all you need to do is edit the .xml
Title: Anyone Wanna Update Some Scripts
Post by: flattspott on February 13, 2004, 07:33:00 PM
Really? I didn't know that.
Title: Anyone Wanna Update Some Scripts
Post by: Jezz_X on February 14, 2004, 04:14:00 PM
Well I ended up doing the name change one myself if your interested
OH and you need a WIP of MXM cause it uses the new virtual keyboard
Hope the forum dosn't screw up the layout

CODE

;##################################################
;#  Name: Name Changer
;#  Author:koldfuzion updated by Jezz
;#  Date: 15-2-2004
;#  File Name:NameChanger2.xas
;#  Version: 1.0
;#  Purpose: Allow user to change the xbox name.
;##########################################################

;--------  check for MXM.XML  -----------
SETFUNC XMLOK FileExists MXM.XML
IF# %XMLOK% == 1 GOTO XMLGOOD
IF# %XMLOK% == 0 GOTO XMLBAD
GOTO QUIT

:XMLGOOD
XMLOPEN TestXML $actualpath$\mxm.xml
XMLGetNodePtr TestXML XMLPtr
XMLGetValue TestXML Nickname !.Preferences.Nickname
IF "%Nickname%" != "" GOTO CONTINUENAME
IF "%Nickname%" == "" GOTO CREATENODE

:CREATENODE
XMLCreateNode TestXML NickName
XMLSetValue TestXML !.Preferences.Nickname "$Name$"

:CONTINUENAME
XMLSetNodePtr TestXML !.Preferences.Nickname
XMLGetNodePtr TestXML XMLPtr
XMLGetValue TestXML Nickname !.Preferences.Nickname



SET _kbInput "%Nickname%"
StringInput _kbInput SINGLE "Your Current XBox NickName is %Nickname%$eol$ Enter a new title or leave the same to exit"
IF "%_kbInput%" == "%Nickname%" GOTO QUIT


:ACCEPTED
 XMLSetValue TestXML !.Preferences.Nickname "%_kbInput%"
 XMLSAVE TestXML $actualpath$\mxm.xml
 XMLCLOSE TestXML
 BeginDraw UseCurrent
   MessageBox "Your new xbox name is %_kbInput%$eol$$eol$The Name Change will take effect$eol$when MXM is restarted$eol$$eol$Press X to Reboot Now$eol$Press ANY OTHER Button to Reboot Later"
 EndDraw
 Input
   If %_GP_X% == "1" GOTO REBOOT
QUIT


:REBOOT
reboot
quit

:QUIT
QUIT

:XMLBAD
QUIT
Title: Anyone Wanna Update Some Scripts
Post by: flattspott on February 14, 2004, 05:58:00 PM
I'm no scripting expert but the XMLBAD part would be better if it were

:XMLBAD
MsgBox "No MXM.xml found$eol$unable to proceed"
Quit

This way they don't think the script isn't working.
Title: Anyone Wanna Update Some Scripts
Post by: Jezz_X on February 14, 2004, 06:18:00 PM
Probably but thats how the original was I just ripped out the old VirtKeybored stuff and added in the inbuilt keybord of the wips
Title: Anyone Wanna Update Some Scripts
Post by: Jezz_X on February 14, 2004, 09:24:00 PM
Well I got around to changeing the IP Changer one as well now so heres updated versions of both the should work fine I did test them

You need a mxm version with the virtual keyboard

IP CHANGER

XBOX NAME CHANGER