Jump to content


Photo

Skin Validator


  • Please log in to reply
4 replies to this topic

#1 koldfuzion

koldfuzion

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,480 posts

Posted 09 November 2003 - 09:45 PM

Ill post the info block below. You can get the script HERE

Makes a call to newuser.xas, so comment out or make sure the path is valid on your box (located at the bottom of the file)

The script isnt 100%, here are the issues:

-it wont copy empty sudirectories without producing an error ??
-wont work if the 2nd subfolder isnt the same as the first. (this is the most common problem, so i left it at that)


Here is the info block.

;#####################################################################
;# Name: Skin Validator
;# Author:koldfuzion
;# Date: 11-9-2003
;# Filename: SkinValidator.xas
;# Version: 1.0
;# Purpose: To check for most common errors with skins in MXM
;# -Checks for existance of MXM.XML
;# -Checks for and gets <skinspath> from MXM.XML
;# -Checks that the <skinspath> value exists on the users Hard Drive
;# -If mxm exists and skinpath exists but doesnt exist on HDD, option is givent to create
;# -If all the above are ok, then all skins are checked for a MXM_SKIN.XML in the first folder.
;# -If MXM_SKIN.XML is not found in the first folder. A copy is performed on a duplicated subfolder
;# of the same name and the files are copied one level up.
;# -Calls the NewUser.xas if the MXM.XML is not found, the skinpath is not set. (bottom of file to change path)
;#
;# Known Problems:
;# -If the problem isnt a duplicate subfolder, this script wont fix it
;# -This script wont fix broken skins.
;#
;# If you fix any of the known problems, please contact me with the updates to this script. Credit will be given.
;#########################################################################

Edited by koldfuzion, 10 November 2003 - 06:37 AM.


#2 koldfuzion

koldfuzion

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,480 posts

Posted 10 November 2003 - 06:40 AM

if anyone was actually working on or testing this script.. the problem with removing the extra subfolder has been fixed...or should I say.. I have been fixed.

My dumb ass wanted to do a delete path\* instead of the nicely provided RMDIR %s_name%\%SKINONLY% 1


Thanks for the pinned actionscript reference... I think the color brought this to my attention while i was looking for something else. kudos wink.gif


still need to figure out why it errors when copying an empty subfolder and provide some script completion info.(leaves the user guessing if its done right now)


The file on axs has been updated to reflect the change.

Edited by koldfuzion, 10 November 2003 - 06:17 PM.


#3 koldfuzion

koldfuzion

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,480 posts

Posted 10 November 2003 - 06:51 PM

I updated the script again on AXS.

-If the mxm_skin.xml is not found in the first skin folder, it will now check for the file in a subfolder of the same name before trying to copy the nested folder.
if found it offers to fix it.. otherwise the skin is marked as unrepairable and the user is offered to remove it, or continue with the validation.

-The user is now notified of script completion instead of wondering whether it was complete or not.

Still need to figure out how to copy empty subdirectories instead of erroring the script.

#4 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 11 November 2003 - 02:44 AM

QUOTE
Still need to figure out how to copy empty subdirectories instead of erroring the script.


Create a dummy file in there, copy, then delete the dummy file. laugh.gif


#5 BenJeremy

BenJeremy

    X-S Elysian

  • Head Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 11 November 2003 - 02:46 AM

QUOTE (geniusalz @ Nov 10 2003, 10:44 PM)
QUOTE
Still need to figure out how to copy empty subdirectories instead of erroring the script.


Create a dummy file in there, copy, then delete the dummy file. laugh.gif

Agh... looks like one to put on the "to do"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users