actually... I've just thought... Windows calculator can bit-shift...
Meaning you should be able to bit-shift in GML...
are you sure you can't, or you just havn't tried??
Try this: Var = 1 << 8
And output Var to the console
If you get an error, or 256 doesn't show... I'll accept that you can't bit-shift.
you know i left a debug feature in the copier right? it lets you fiddle with GML within the program
press spacebar to pull up the code execution box , to display the variable, run
wd_message_simple(var)
at the end of the code
you can run or execute pretty much anything i didnt code into the program, including entering 3d view and drawing polygons, but thats not the main purpose of it, and this isnt a 3d viewing program
** var is a variable/function thingy already assigned to something in GML, you cant use it, neither can i before compiling
globals you can't use: sd ass autohex pitch mb gb kb tb from track
these variables are all used by the program already, changing them can cause weird things to happen when the program wants to read them including freaking out the drive meter
local variables ar ejust the variable IDs and dont have global. before them
well... that's easy to pass can you bit-shift in GML?? (<< or >>)
these python functions might help explain that:
def bu16(): #read a 16bit big-endian value byte1 = file.read(1) byte2 = file.read(1) return byte1+( byte2<<8 )
def u16(): #read a 16bit little-endian value byte1 = file.read(1) byte2 = file.read(1) return byte2+( byte1<<8 )
little endian: '0100' = 1 big endian: '0001' = 1
for even more info, you can DL UMC dev4 and look at the __BIT() function in data/COMMON.py
that function actually deals with ints and floats stored in multiple and ambiguous byte sizes. (though in dev4 it can only write 32bit and 64bit floats) ^ it can read floats of any byte-size
everything starts out as an unsigned int and gets converted to a signed or float value based on the bit-format specs
I don't rmbr exactly how I stored the file in memory, but I know it involved a u8() array. (each byte as an 8bit int in either [77,68,76,48,...], or array('B',[77,68,76,48,...]) )
lol, take a guess at what those first 4 bytes are.
nope... its really limited to just byte overwriting on a per byte basis, and cannot do a strand of bytes at once, i struggled just to get the playback rate working
it returns the data in decimal so yah...:
ass=file_bin_open("Final_Lap.brstm",2) file_bin_seek(ass,$064) A=file_bin_read_byte(ass) file_bin_seek(ass,$065) B=file_bin_read_byte(ass) C=A+B if (C=315) {file_bin_seek(ass,$064);file_bin_write_byte(ass,$EA);file_bin_seek(ass,$065);file_bin_write_byte(ass,$60)} if (C=125) {file_bin_seek(ass,$064);file_bin_write_byte(ass,$AB);file_bin_seek(ass,$065);file_bin_write_byte(ass,$E0)} if (C=240) {file_bin_seek(ass,$064);file_bin_write_byte(ass,$DB);file_bin_seek(ass,$065);file_bin_write_byte(ass,$24)}
dang if I was any good at GML or command-line programing, I'd have some suggestions for you >_<
if you like, you could help me help you out by building a BRSTM template for HexEdit. that way, I could figure out the format of a BRSTM, and help you to encode it better.
I'll post the HexEdit link and tell you how to crack it if you're interested, but if not, or you're too busy, then I won't bug you.
cant - in gml i can only parse / write one byte at a time, not a strand of them
because of this i couldnt make it read the two bytes that tell the frequency and just make it add 10KHz to it and write the new value
before reading... I know your program allows you to change the pitch of a brstm w/o loosing the loop, but does it allow you to adjust the volume??
no.... i do not know how to do re-encodes.... if you could do db peak reads, and adjust in CMD, and apply ACID's volume and peak restore plugins in cmd, i might be able to...
So I see... based on that edit, I assume that it works with MKW? Could I give you Mario Sports Mix BRSAR? Maybe you could look at it...? http://www.mediafire.com/?ul3414c2aqwgs6a
??? what do you want me to *try* and look at? blackjax is dealing with brsars right now,
the sawndz support i added, makes it lazier for one to insert sawnd packets (it depends on jaklub's sawndz app)
Okay, I'm a lazy reader but does this program rename song titles in-game? Like renaming Planet Colors to Funky Dealer?
EDIT: I didn't think people really need so much help with renaming files for them to work in-game
no it does not, i would have done that, but i am limited at programming and dont know how to parse msbin files
this basically removes the need to have the song list, and the update to it, adds MKW support for CTGP and actually modifies playback speed if you press PG up
and also makes sawnd injectino more streamlined by removing the need to have sawndz on the SD card, or copy the brsar back to the SD after injection, it also backs up the brsar on its own, and any brstms a user deletes through it
i want this song here: Super Mario Guy - Starman Theme (With Lyrics) over starman theme hope that will be possible with brsar editor in brawlbox(and if the brsar got filesize for it) the best star theme ever+its peter from family guy who sing
me and soneek tested the unfinished source, it CAN, it might be able to redirect to load a brstm (mainly that unused one) instead if you want, or insert a wav, the starman theme is currently a MIDIish type entry now looping it if in wav form, thats a diff story
RSAR editing sounds boss. The item moveset editing would be nice as well, though; I've been wanting to power up the Brawl- "Gandouken" (Super Scope) for some time. Unless that's already possible somehow.
item sfx is possible from sawndz, its just everyone covered that fact with hacking character voices and announcers
i made it so squeeky golden hammer is the trololo guy going LOALOALOALOAL