|
|
« Reply #30 on: March 22, 2013, 05:15:53 PM » |
|
the code I wrote you simply reads and writes a 4byte (32bit) value from and to a file you give it.
numbers larger than 255
as for the file input...
the thing outputs a renamed brstm from an input brstm right??
if so, then take the input brstm and use my function to read the 32bit (or 4 byte) structures in the brstm, modify the value as needed, and write the modified value to the output brstm.
simple as that
|
|
|
Logged
|
|
|
|
|
|
|
« Reply #31 on: March 22, 2013, 05:29:07 PM » |
|
the code I wrote you simply reads and writes a 4byte (32bit) value from and to a file you give it.
numbers larger than 255
as for the file input...
the thing outputs a renamed brstm from an input brstm right??
if so, then take the input brstm and use my function to read the 32bit (or 4 byte) structures in the brstm, modify the value as needed, and write the modified value to the output brstm.
simple as that
the way this thing works, is it uses the from variable (set by the user's file selection) makes a copy of it to the app directory named "Final_Lap" and then it fidgets with that one so the original isnt damaged or lost the final lap brstm is then copied to the sd this file handling feature only runs in MKW mode, not brawl mode
|
|
« Last Edit: March 22, 2013, 05:31:03 PM by Diddy Kong »
|
Logged
|
|
|
|
|
|
|
|
« Reply #33 on: March 22, 2013, 07:39:59 PM » |
|
ok... now modify the file before writing it
you know how to encode the brstm format right?? (I assume you didn't know how to use GML to do it)
EDIT: UUGH! I hate the IEEE754 format >_<
I'm trying to figure out how to get from "1.0" to "3F800000", and it's not going well >_<
i didnt use GML, i didnt write external scripts.. the brstm compiler frmo brawlbox was used (an exe) that accepts CMD line params which the copier issues it does the rest on its own, the only thing given to it, is the file name to output, wav name to use, and the loop points spit out by vgmstream none of the encode writing was done by me
|
|
|
Logged
|
|
|
|
|
|
|
|
« Reply #35 on: March 22, 2013, 08:52:53 PM » |
|
idk if i installed the script right https://www.dropbox.com/s/dfa237vvd2p7jrs/test.exebut 1 and 2 will pull up boxes to set variables the file argument is now set to what global.from contains (which is the input file) shift to run the script of yours.... i probably fked it up though D: again i put the triggers to be manually set off by the debug object i mentioned earlier i do not want to BREAK the code i already have
|
|
|
Logged
|
|
|
|
|
|
|
« Reply #36 on: March 22, 2013, 09:28:01 PM » |
|
you're not supposed to shift to run it...
you're supposed to use the script (or function) like you would use file_bin_read_byte()
the script reads/writes 4 bytes instead of 1 byte
when reading, it returns the full int value of the 4 byte cluster (not 4 1-byte values)
when writing, it returns nothing
|
|
|
Logged
|
|
|
|
|
|
|
« Reply #37 on: March 22, 2013, 09:31:57 PM » |
|
you're not supposed to shift to run it...
you're supposed to use the script (or function) like you would use file_bin_read_byte()
the script reads/writes 4 bytes instead of 1 byte
when reading, it returns the full int value of the 4 byte cluster (not 4 1-byte values)
when writing, it returns nothing
where do you want this run then, and when? im not going to cram it into the rest of the operations until we know for sure its going to do something useful and not break the normal intended operation of it by shift , i meant the script runs when the SHIFT KEY on the keyboard is pressed i put this code on the debugger object that runs seperate from the rest of the wall of text Post Merge: March 22, 2013, 09:39:38 PM
this'd be easier if we BOTH could run test compiles of my src with your code (the GM installer i tried to give you installs the purchased version for free
|
|
« Last Edit: March 22, 2013, 09:39:38 PM by Diddy Kong »
|
Logged
|
|
|
|
|
|
|
|
« Reply #39 on: March 22, 2013, 10:13:00 PM » |
|
the shift key runs the whole thing at once, the file variables is set by the load file object (this setting is nearly isolated from your script, i only simply added another variable for it to set) 1 and 2 were to set the other two variables i dont kow what to do with so i let those be settable by you during runtime
|
|
|
Logged
|
|
|
|
|
|
|
|
« Reply #41 on: March 23, 2013, 08:40:15 AM » |
|
Hmm, I might be able to help convert floating-points (decimal) to their integer encodings and vice versa if you still need that; I'll experiment with it later today.
|
|
« Last Edit: March 23, 2013, 08:41:37 AM by jdaster64 »
|
Logged
|
|
|
|
|
|
|
« Reply #42 on: March 23, 2013, 09:48:27 AM » |
|
Hmm, I might be able to help convert floating-points (decimal) to their integer encodings and vice versa if you still need that; I'll experiment with it later today.
PLEASE =3
google searching through VTunnel on Wii connected to a phone's hotspot that only provides https access is more than a hastle. D= and slow =/
I can read IEEE floats of literally any size. (even 5-byte encoded floats)
but I can't write them.
I'll explain more on my UMC thread in this board... (don't want to clutter up Diddy's thread any more than it already is)
sry bout that Diddy =( I can delete some of my posts if you want??
|
|
« Last Edit: March 23, 2013, 09:50:21 AM by DarkPika »
|
Logged
|
|
|
|
|
|
|
« Reply #43 on: March 23, 2013, 11:50:07 AM » |
|
PLEASE =3
google searching through VTunnel on Wii connected to a phone's hotspot that only provides https access is more than a hastle. D= and slow =/
I can read IEEE floats of literally any size. (even 5-byte encoded floats)
but I can't write them.
I'll explain more on my UMC thread in this board... (don't want to clutter up Diddy's thread any more than it already is)
sry bout that Diddy =( I can delete some of my posts if you want??
it's contributing info wise, or other, to the program in topic, is it not? leave them there its because of that, its attracting programming attention
|
|
|
Logged
|
|
|
|
|
|
|
« Reply #44 on: March 23, 2013, 01:20:49 PM » |
|
it's contributing info wise, or other, to the program in topic, is it not? leave them there its because of that, its attracting programming attention
your point has been made and I fully agree with it XDD
though that programming attention is for UMC... (not trying to gain by using your thread, that line just slipped)
I still need to finish my post
for some tips on your program, I'd reccomend leaning how to do this stuff yourself instead of using other programs to do it for you
for example, internal file handling using an 8bit interger with each value being a byte of the file (UMC currently does that)
I'm actually working on archive handling with file extraction... (a smart file system for UMC)
anyways... for you, another expert thing would be your own basic audio editor
bacically, something that's able to pitch-shift, re-loop, etc...
you could help out BJ by writing that
in a way, I'm helping BJ out by learning GL and figuring out nintendo's GX formatting. (GX is GL with a few modifications)
|
|
|
Logged
|
|
|
|
|
|