|
Post by sega16 on Aug 29, 2012 19:00:01 GMT -5
Elusive wanted to use echo in BEX so I ported it over Simple unzip this in the root directory Edit forgot to clarify that when I said root directory I meant the directory of where you installed basiEgaXorz www.mediafire.com/download.php?lvte1t1lry07v7kI have made a quick sample code Here it is goto startup 'insert header stuff here 'echo includes donwloaded latest version and place in bex directory asm include "echo_includes.asm" even ;just to be sure there is no address errors end asm startup: asm lea (PointerList), a0 ;Initialize Echo jsr Echo_Init end asm main: song_num=0 ' Bit Hex Decimal Button ' 0 &h001 1 Up ' 1 &h002 2 Down ' 2 &h004 4 Left ' 3 &h008 8 Right ' 4 &h010 16 B ' 5 &h020 32 C ' 6 &h040 64 A ' 7 &h080 128 Start gosub redraw while 1 joy=JoyPad(0) if joy.2 then asm lea (SFX_Beep), a0 ; Beep! jsr Echo_PlaySFX end asm song_num-- gosub redraw waitpadup endif if joy.3 then asm lea (SFX_Beep), a0 ; Beep! jsr Echo_PlaySFX end asm if song_num < 11 then song_num++ endif gosub redraw waitpadup endif if joy.7 then gosub play_echo waitpadup endif wend
play_echo: asm moveq #0,d0 moveq #0,d1 move.w (__INTEGER_song_num),d0 lea (SongList), a1 ; Get song address lsl.l #2, d0 adda.l d0,a1 movea.l (a1),a0 moveq #0,d0 jsr Echo_PlayBGM ; Play song end asm return redraw: cls print "Song #" print song_num return
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 30, 2012 0:07:41 GMT -5
Wowwowwow! I'll let elusive ask the smart questions. Right now I've just got stupid questions like where did my pants go?!?
Thanks Sega16!!!
P.S. How do I add sound effects? My hunch is sfxs.68k has something to do with it..
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 30, 2012 8:00:27 GMT -5
Wow this is fantastic. You kick some serious ass sega16 So I'm guessing to add in whatever music tracks, I would edit the bgms.68k file and add in my own labels and include files, right? Something like this: BGM_ElusivesTune: inbin "data/music/elusive.esf" Then in songlist.68k add in dc.l BGM_ElusivesTune And then for sfx, I see everything hand written out in sfxs.68k. Is there a way to use PCM sound effects, or do these need to be hand written and tested in the sfxs.68k file?
|
|
|
Post by sega16 on Aug 30, 2012 15:27:37 GMT -5
I did not make any of the asm files in the zip file all I did was fix them so they work in asmx. I did convert the song 0 song that is it. All other songs are not made or converted by me. There are programs here for echo and other unrelated to echo stuff that is still useful for genesis homebrew github.com/sikthehedgehog/mdtoolsAnd here is another converter github.com/oerg866/xm2esfI believe you bgm and sfx are the same not sure also while checking the echo source code github.com/sikthehedgehog/Echoit appears that sik has updated the player code without building the z80 driver for some reason I will have to figure out how to build the new z80 driver.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 30, 2012 16:42:50 GMT -5
Alright, after about an hour of screwing around with this, I have it all figured out (well, except on how to make sound effects lol, and creating instruments for Echo).
I didn't bother using midi2esf because, well, I don't have a C compiler.
I did use xm2esf + gui, and it took me a few minutes to realize that it's not using the instruments in the XM file in the engine, but Sik's already created instruments. Makes it kind of a pain without any instructions on how to use the tool, but not entirely impossible to figure out.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 30, 2012 18:10:36 GMT -5
Actually, now I have a C compiler (using code:blocks), and I compiled tfi2eif and was able to convert a few TFM Music Maker instruments over. I'll try compiling midi2esf now and see how that works.
|
|
|
Post by sega16 on Aug 30, 2012 18:18:17 GMT -5
I think creating sfx is the same as creating bgm music not sure though it is worth a try.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 30, 2012 18:28:22 GMT -5
Actually, the midi2esf hasn't converted a single midi that I tried (about 20 of them), so I'll pass on that for now. Also, xm2esf for some reason thinks there's a PSG channel even when 0 is set. Kind of annoying >.<
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 30, 2012 18:29:04 GMT -5
Yeah, creating sfx appears to be the same, so it's just making an XM file and setting the appropriate instruments.
|
|
|
Post by sega16 on Aug 30, 2012 19:14:25 GMT -5
Good to hear that everything appears to be working. If you have an more question feel free to ask.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 24, 2012 15:33:40 GMT -5
I'm having some big issues converting anything to .ESF
What are the proper steps to convert an .XM file to .ESF so I can try them out in the BEX example for Echo?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 26, 2012 9:30:17 GMT -5
|
|
|
Post by sega16 on Sept 26, 2012 13:00:34 GMT -5
Step 1 goto the folder called src-68k then goto the folder called sound. Then open up bgms.68k then add your file like all the other ones Step 2 goto src-68k/core and open up songlist.68k and add dc.l songname (replace songname with the lable you used to include the song) Then your song is in there.
|
|
|
Post by beginnerxorz on Nov 26, 2013 17:07:27 GMT -5
Output File: basic.bin Pass 1 Pass 2 basic.s:5: *** Error: Unable to open INCLUDE file 'echo_includes.asm' *** 0030CC include "echo_includes.asm" basic.s:9: *** Error: Symbol 'POINTERLIST' undefined *** basic.s:9: *** Error: Symbol 'POINTERLIST' undefined *** 0030CC 41F9 00000000 lea (PointerList), a0 ;Initialize Echo basic.s:10: *** Error: Symbol 'ECHO_INIT' undefined *** 0030D2 4EB9 00000000 jsr Echo_Init basic.s:35: *** Error: Symbol 'SFX_BEEP' undefined *** basic.s:35: *** Error: Symbol 'SFX_BEEP' undefined *** 003126 41F9 00000000 lea (SFX_Beep), a0 ; Beep! basic.s:36: *** Error: Symbol 'ECHO_PLAYSFX' undefined *** 00312C 4EB9 00000000 jsr Echo_PlaySFX basic.s:51: *** Error: Symbol 'SFX_BEEP' undefined *** basic.s:51: *** Error: Symbol 'SFX_BEEP' undefined *** 003160 41F9 00000000 lea (SFX_Beep), a0 ; Beep! basic.s:52: *** Error: Symbol 'ECHO_PLAYSFX' undefined *** 003166 4EB9 00000000 jsr Echo_PlaySFX basic.s:89: *** Error: Symbol 'SONGLIST' undefined *** basic.s:89: *** Error: Symbol 'SONGLIST' undefined *** 0031D4 43F9 00000000 lea (SongList), a1 ; Get song address basic.s:94: *** Error: Symbol 'ECHO_PLAYBGM' undefined *** 0031E2 4EB9 00000000 jsr Echo_PlayBGM ; Play song 00013 Total Error(s) UnSuccessfully Compiled ! 13 Asmx errors Have a nice day Press ESC to close the log window
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 26, 2013 22:31:46 GMT -5
I don't think that's enough for sega16 to go on. What were you trying to do in the first place that led to that error log?
|
|