xboxscene.org forums

Author Topic: Anyone Wanna Update Some Scripts  (Read 356 times)

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Anyone Wanna Update Some Scripts
« 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
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Anyone Wanna Update Some Scripts
« Reply #1 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
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Anyone Wanna Update Some Scripts
« Reply #2 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
Logged

Yuyu

  • Archived User
  • Hero Member
  • *
  • Posts: 908
Anyone Wanna Update Some Scripts
« Reply #3 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...
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Anyone Wanna Update Some Scripts
« Reply #4 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.
Logged

Yuyu

  • Archived User
  • Hero Member
  • *
  • Posts: 908
Anyone Wanna Update Some Scripts
« Reply #5 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
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Anyone Wanna Update Some Scripts
« Reply #6 on: February 13, 2004, 07:33:00 PM »

Really? I didn't know that.
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Anyone Wanna Update Some Scripts
« Reply #7 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
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Anyone Wanna Update Some Scripts
« Reply #8 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.
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Anyone Wanna Update Some Scripts
« Reply #9 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
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Anyone Wanna Update Some Scripts
« Reply #10 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
Logged