xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Question, About the scope of action scripting
clogicgmather
post Jun 22 2004, 05:17 AM
Post #1


X-S Senior Member
**

Group: Members
Posts: 169
Joined: 9-November 03
Member No.: 73066
Xbox Version: unk
360 version: v1 (xenon)



Ive read through the pinned reference section of the mxm action scripting but i cannot find out if mxm allows you to edit files 1 byte at a time (id use the search but lately it never seems to be disabled) The reason for asking is because i have written a program in C to edit xbox bios files so you can change the colour of the startup and the camera animation etc, id love to have a go at writing a script to do this in mxm but cannot findout if this is beyond the scope of the scripting langauge.

Regards, Guy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pelago
post Jun 22 2004, 10:19 AM
Post #2


X-S Expert
***

Group: Members
Posts: 641
Joined: 16-January 03
Member No.: 19911



I think this capability is only in the WIP (beta) versions at the moment, as I believe they have 'proper' file i/o functions.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Jun 22 2004, 01:45 PM
Post #3


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



Yes you can in the WIP version.

http://www.mediaxmenu.com/reference.php?rc=2&rs=69#s69

Look at the Buffers section. While you wont be able to test it yourself you could still try to write a script based on the WIP specs.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Yuyu
post Jun 22 2004, 02:22 PM
Post #4


X-S Spirit Detective
*****

Group: Moderator
Posts: 1231
Joined: 11-June 03
From: Belleville, IL
Member No.: 43348
Xbox Version: v1.1
360 version: v2 (zephyr)



QUOTE (flattspott @ Jun 22 2004, 10:45 AM)
Yes you can in the WIP version.

http://www.mediaxmenu.com/reference.php?rc=2&rs=69#s69

Look at the Buffers section. While you wont be able to test it yourself you could still try to write a script based on the WIP specs.

Hmm, maybe you could or someone else could post an example of how to begin editing a file, using buffers, 1 byte at a time ?

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Jun 23 2004, 12:08 AM
Post #5


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



Well I'm not the ideal person to ask... but

This is how I would think it could be done. Mind you I tried this with the default.xbe and changed the Matrix Init screen from green to blue.

First you need to know the Buffersize you want to work with.

This is how i did it

CODE
Set COLOR RED

SetFunc SizeOfBuffer FileSize $ActualPath$\default.xbe

OpenRead InFile $ActualPath$\default.xbe
OpenWrite OutFile $ActualPath$\default.xbe.patched

CreateBuffer PATCH %SizeOfBuffer%
ReadToBuffer InFile PATCH

Goto %COLOR%

:BLUE
SetBufferByte PATCH 1977788 0x32
SetBufferByte PATCH 1977789 0x58
Goto Done

:RED
SetBufferByte PATCH 1977788 0x31
SetBufferByte PATCH 1977789 0x33

:Done

WriteFromBuffer OutFile PATCH

CloseHandle PATCH
CloseFile InFile
CloseFile OutFile


This post has been edited by flattspott: Jun 23 2004, 12:09 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
geniusalz
post Jun 23 2004, 12:18 AM
Post #6


Team MXM
*****

Group: Head Moderator
Posts: 1827
Joined: 3-January 03
Member No.: 16298
Xbox Version: v1.1
360 version: unknown



You could also read in only the part that you want to edit (instead of loading the whole file into memory), and write that part out.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 19th June 2013 - 04:07 AM