Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 14, 2011 9:00:35 GMT -5
SGTD!! outputs to several formats, one of them being a .bin file. Is this compiled the same way BEX compiles to a .BIN? I'd like to incorporate that into my graphic editor, so any help/information would be greatly appreciated
|
|
|
Post by defzonoc on Apr 14, 2011 17:08:13 GMT -5
i found BIN was easier for me. they all work pretty much the same though. theres some options i had to set a certain way to keep my sprites straight but that was more how i was using them. try it and have fun your genny wont blow up. just makes funny scrambled egg sprites. its the pallets that gave me a pain. dont ask why its embarasing.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 14, 2011 19:49:28 GMT -5
Dude, seriously, where in that post did that HELP AT ALL? You're going to be the reason why I leave the forums, I swear.
|
|
|
Post by defzonoc on Apr 14, 2011 20:33:48 GMT -5
ok dude what do you want? thats sound advice with a bit of a lite joke. what the hell man? you said you looked at my game its obvious i made the sprites. if you want any elaboration or screenshots of the how i did it i WOULD post it if you asked, but what the hell i said BIN is easy and have fun if it doesnt turn out right try different options. it appears to be a genaric binary array i could probly write a program to read them for you but i have no clue what exactly how your program works however did you post the source no. so i was just saying try different crap till it works!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 14, 2011 21:30:21 GMT -5
Ok, READ THE POST. I asked if BIN was COMPILED or another format. You just said:
"oh yahz!! I use BINZ! THEY WONDEFULZ".
Your post seriously had nothing to do what I was asking. You made mention of scrambled eggs, genesis not blowing up, and it's fun. I don't need to read BIN's. It's to OUTPUT.
|
|
|
Post by defzonoc on Apr 14, 2011 21:58:15 GMT -5
ok fine still being rude but fine. it seems to be a binary array most of the time you can make those things by making the array in your program then opening a file to write to as binary and saving the array directly to that. i still need to look up more on it. my point was try something its simple and you cant mess anything up if you save the tiles wrong it will just be scrambled like eggs that was a joke. the worst thing that could happen is the data gets saved out of order a good test would be to make a tile with bars and see if it shows right on a genny. there is that more to your taste? and please stop insulting me its not good for you i just made the post you could have taken the just try it and went with it. BIN does not mean compiled just binary. look at how to open files in your langauge of choice and look up binary. but it also depends on how BEX loads them when it compiles the rom it may load first some header bits telling the diminsions then a stream of bytes contaning the color for each pixel. use a hex veiwer for the best results. if you want an example i would code it in qbasic but i am busy right now so you would have to wait a couple of days. be nice just be cause it doesnt imediatly apply does not mean it is a waste i was trying to give you a clue. and let you figure it out on your own. their all the same is a clue to look at the other formats. and telling you i tried stuff and the worst the will occur is scrambled sprites.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 14, 2011 22:29:12 GMT -5
Oompa/Devster, just lock this thread please, I'll PM you directly instead.
|
|
|
Post by defzonoc on Apr 14, 2011 22:35:06 GMT -5
Hey that was your answer. its a binary array. you can look at it with a standerd hex editor and study its layout and you should be able to save from you programing langauge by simply opening a new file and puting the array containing the sprite data. that IS the answer what is your problem! what is it? i just gave you the answer was i rude? did i call you dumb? what the hell is wrong with you? now its just getting blatent what is wrong here? the format seems to be a standerd binary save of an array. thats the answer right there it is just a standerd binary save nothing more. what the shit if you want to make one just make the array and save it as a generic binary saved file. is that such a big deal! realy ?
|
|
|
Post by ScroGer on Apr 23, 2011 4:20:06 GMT -5
funny thread...
wish i could help
|
|
|
Post by Tom Maneiro on Apr 23, 2011 11:52:24 GMT -5
You came a bit late, and missed The First Obnoxious Troll EVAR at DevSter Forums WE NEED MOAR TROLLS.... Nah, we don't.
|
|
|
Post by jlf65 on Apr 23, 2011 13:35:07 GMT -5
It WAS kind of funny for a while - he was deleting his most offensive posts, then complaining that OTHERS were deleting posts in an effort to make him look bad.
As to the topic, I doubt the binary output of SGTD is remotely like the binary output of BEX because they are producing two different things - SGTD is producing graphics data (tiles and indexes) while BEX is producing code and specific headers for rom or CD. The binary output of SGTD will simply be the values of all the bytes of the tiles and pattern names in a particular order. When you know that order, you could simply incbin the file in you project (incbin is include binary command common to many languages - I don't know if BEX has an incbin command or not). The order should be the same as the generated asm or C code, so generate the asm or C first to get the order, then generate the binary. That's my suggestion.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 23, 2011 14:19:15 GMT -5
The BIN format that SGTD!! puts out is like this (just without the labels
tile1:0000000011111111000000001111111100000000111111110000000011111111TILE2:1111111100000000111111110000000011111111000000001111111100000000
Just replace 1's and 0's with Hex number for the palette color, and it's also stored as a byte, so each row is 4 bytes, using hex for 2 values (FF,01,F1,FE, etc).
|
|
|
Post by Tom Maneiro on Apr 23, 2011 16:34:49 GMT -5
And this is why i suggest to have SGTD/ImaGenesis change their default BINary extension to something else, for avoid confusions whenever you have other folks messing with your sources. I already use .TLF (and .TMF for tilemaps), but it's annoying to specify the extension manually BIN has already been blamed to be a overly generic extension in the whole emulation/hacking scene...
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 23, 2011 21:37:04 GMT -5
I think I'm going to change my program to have it as a .SPR or .TIL extension. I agree, BIN is very common, and can easily get confused with roms/other files
|
|
|
Post by Tiido on Apr 24, 2011 3:03:41 GMT -5
I use GIB... Graphical Image Binary I also use SIB which is same as GIB except tiles are rearranged for sprites. Sprite Image Binary.
|
|