Help - Search - Members - Calendar
Full Version: Actionscript Concept. Bj, Please Read...
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official MediaXMenu (MXM) Forum > MXM ActionScripting Forum
SumDumGuy2
Ok, so here is my concept. I am going to make a new installer using MXM right... nothing too new there... But here is my idea. I will make info.xml files for each app, game, utility, whatever... So this xml file is basically dumped into the folder with the xbe for each, game app or whatever on the install cd/dvd. The info.xml contains certain information about the app for the sake of the installer. If you want to add a new app to the installer, all you do is drop in the folder with its info.xml. Anyone can add, remove or change components of the installer by just adding, removing or changing the folders in the installer iso and the info.xml for the apps. If a new version of an app comes out you can throw that new version (with an updated info.xml) on the installer dvd and have the option to install or upgrade that app if you already have it.

Also, to make it easy for users to manipulate things for their apps games, instead of pulling all of the data from the xbe, pull it from the xbe only if it is not already in the xml. Now, if I want to change the title or description of my apps I can just change it in the info.xml. It shows up with the changes in the mxm menus and I didn't have to use one of the tools for tampering with the xbe itself. Also, this would allow you to categorize and subcategorize games, apps, so on, without having to manually create the menu items or put them in special folders for categories or subcategories. So now MXM could sort the menu items into groups based on the categories/subcategories in the info.xml files.

So, you would have the following information in each apps xml file.

Title (Duh, the program title)
Description (again duh)
Version(another duh... app version this would be used in determining about upgrades vs install and so on)
Passcode(if you want to password protect this app)
MainCategory(for example Game, App, Dashboard, Media Player...)
SubCategory1(for example within Game you might have Emulation, HomeBrew, Retail)
SubCategory2(for example within Retail you might have Action/Adventure, Arcade, Family, Fighting, Racing, Role Playing, Shooters, Simulators, Sports and Strategy)
DefaultPath(default install path like used to place in in a relative folder. So if you had GAMESInvaderX it would install to a folder name InvaderX where ever the games were installed on this system.
ConfigFiles(configuration files that may be kept when upgrading if supported)
-File(for each config file)
-Name(Actual config file name)
-CompatibleVer(for each previous version of the program that the config file is compatible with if any)
Uninstall(list of commands for uinstall/upgrade for example to delete the E:\TDATA\face007 folders for XBMP or anything other than deleting the files in the install folder)
-Command(entry for each specific command to run)
InstallFolder(Actual folder installed to id F:\Apps\XPad used for uninstall/upgrades)
DataStore(Folder used to store data related to app, for example, F:\Media for media player files such as mpgs, wmv, mp3 so on... F:\Bioses for bios files used by flashx or what ever)

It might be useful to store some additional data in there. In fact I am sure it would need a place to store some install actionscript code for more complex installs (if you want it to configure the app during install for you). Perhaps a more generic script tag for each the uninstall and the install. Anyway, the point would be that the menus could be generated based on the information in the Info.xml if available, and generaged based on the xbe if it is not available. This data would also be used by my installer script for installing, reinstalling, upgrading or uninstalling apps, games and so fourth.

So for example You might have an xml with the following data

CODE

<Info>
<Title>SumDumGame</Title>
<Description>SumDumGame (Coding Simulator)</Description>
<Passcode></Passcode>
<MainCategory>Games</MainCategory>
<SubCategory1>HomeBrew</SubCategory1>
<SubCategory2>Simulation</SubCategory2>
<DefaultPath>GAMESSumDumGame</DefaultPath>
<Version>1.3</Version>
<ConfigFiles>
 <File>
  <Name>Settings.ini</Name>
  <CompatibleVer>1.2</CompatibleVer>
  <CompatibleVer>1.1</CompatibleVer>
 </File>
 <File>
  <Name>ButtonMap.ini</Name>
  <CompatibleVer>ALL</CompatibleVer>
 </File>
</ConfigFiles>
<Install>
 <Command></Command>
</Install>
<Uninstall>
 <Command>RmDir E:\TDATA\c0de006</Command>
 <Command>RmDir E:\UDATA\c0de006</Command>
</Uninstall>
<InstallFolder>F:\MyGames\SumDumGame</InstallFolder>
<DataStore>F:\CodeLib</DataStore>
</Info>


This all may seem like a bit of a stretch, but I am willing to code the installer scripts. Like I said, it would support, install, reinstall (same version), upgrade (newer version) and uninstall. and would be able to drop applications onto a dvd and run the installer from MXM on the hard drive or run mxm with installer from the DVD. I can think of a lot of advantages to doing it this way. But what do you all think? am I way out in left field? am I crazy, is it doable but dumb? or is it pure brilliance? (come on, patronize me...) biggrin.gif

Thanks in advance for any Constructive feedback... hehe

Regards,
SDG
BenJeremy
Well, there already is something like that: MXM_Entry.xml

MXM looks in each directory (when the menu cache has been reset) for the MXM_Entry.xml file.

You can add all the stuff you want into it - and ActionScript can access it. Putting more stuff in doesn't mean MXM can't read it like it normally does, either...
SumDumGuy2
Doh!!! Get ouda here!!! Man you are one step ahead... can you tell me where I can find more on this MXM_Entry.xml? for that matter, I guess I can just do a search on it... Thanks man... biggrin.gif
SumDumGuy2
Well, a search for mxm_entry did not turn up a lot of threads, but I will keep plugging away at it... I tell ya, MXM is so robust that it is hard to keep up with what is in it and were to find references on everything... (don't take that to mean slow down... hehe)
SumDumGuy2
Doh... found it in the MXM Users Guide.doc... of all places to put it, it was in the documentation... Well, it has 3 of them anyway, guess I will get cracking on the installer tomorrow, after I get in touch with YuYu and make sure I am not wasting my time... Thanks again... ill be around...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.