Jump to content
Tuts 4 You

How to make a .inc out of my xm?


PiZZAMiN

Recommended Posts

Posted

I have a really cool xm (Chiptune) I made, but I can't figure out how to make it a .inc I am using lena151's template, but I want to play my song. Just for clarification the .inc that lena151 provided looks like this

able	db 045h, 078h, 074h, 065h, 06Eh, 064h, 065h, 064h, 020h, 04Dh, 06Fh, 064h, 075h, 06Ch, 065h, 03Ah
db 020h, 072h, 078h, 078h, 020h, 06Bh, 065h, 079h, 067h, 065h, 06Eh, 065h, 072h,

PS. that is a part of it. Any replies are appreciated!

Posted

THANKYOU!!!!!!!! :yahoo:

Yup, just needed to get eff. Now this thread can be closed.

Posted

I have a really cool xm (Chiptune) I made, but I can't figure out how to make it a .inc I am using lena151's template, but I want to play my song. Just for clarification the .inc that lena151 provided looks like this

able	db 045h, 078h, 074h, 065h, 06Eh, 064h, 065h, 064h, 020h, 04Dh, 06Fh, 064h, 075h, 06Ch, 065h, 03Ah
db 020h, 072h, 078h, 078h, 020h, 06Bh, 065h, 079h, 067h, 065h, 06Eh, 065h, 072h,

PS. that is a part of it. Any replies are appreciated!

You can use the following tool to create an .inc file from xm tune...

Table extractor.zip

Posted

Table Extractor by Thigo xm to asm/other
/>http://tuts4you.com/download.php?view.1612

(origin:http://forum.tuts4you.com/index.php?showtopic=12597)

too have other tools
/>http://xsp21hd3r.blogspot.com/2011/01/asm-table-maker-v01a.html

other Modules Converter v0.1 a tool to convert Modules(XM, MOD, IT, S3M, MO3, MTM, UMX) to WAV
/>http://forum.tuts4you.com/index.php?showtopic=24120

origin lena keygenning:
/>http://forum.tuts4you.com/index.php?showtopic=8963

other of Raptor
/>http://forum.tuts4you.com/index.php?showtopic=21158

other toppic
/>http://forum.tuts4you.com/index.php?showtopic=14041

tool for ripping in memory
/>http://crackinglandia.reversingcode.com/Repository/LisaXM.rar

other more
/>http://www.at4re.com/download.php?view.135 //http://forum.tuts4you.com/index.php?showtopic=23239

other
/>http://forum.tuts4you.com/index.php?showtopic=23826

other for vb:
/>http://forum.tuts4you.com/index.php?showtopic=24397

or idea was used in some keygens example:
/>http://www.crackmes.de/users/black_eye/keygenme_iv/solutions/badsector/browse/src

real i think that this atached can help you

3 example to use xm made by a friend orniaco, i think that can be useful

and are atached, if wana as resume

Musica XM en archivo-> music in a file

example

.486
.model flat, stdcall ;32 bit memory model
option casemap :none ;case sensitiveinclude windows.inc
include kernel32.inc
include user32.inc
include winmm.inc
include <xm/ufmod.inc>includelib kernel32.lib
includelib user32.lib
includelib winmm.lib
includelib <xm/ufmod.lib>.data
Song db "xm/Orion.xm",0
.codestart: invoke uFMOD_PlaySong, addr Song, NULL, XM_FILE ;
invoke Sleep, 120000 ; duración de la canción
invoke ExitProcess,0end start

Musica XM en Memoria->music in memory


.486
.model flat, stdcall ;32 bit memory model
option casemap :none ;case sensitiveinclude windows.inc
include kernel32.inc
include user32.inc
include winmm.inc
include <xm/ufmod.inc>includelib kernel32.lib
includelib user32.lib
includelib winmm.lib
includelib <xm/ufmod.lib>include MusicaXM.inc.codestart: invoke uFMOD_PlaySong, addr Song, SongSize, XM_MEMORY ;
invoke Sleep, 120000 ; duración de la canción 120 seg
invoke ExitProcess,0end start

Musica XM en resource->music in resource

#define SONG							500
SONG RCDATA DISCARDABLE "xm/Orion.xm"
.486
.model flat, stdcall ;32 bit memory model
option casemap :none ;case sensitiveinclude windows.inc
include kernel32.inc
include user32.inc
include winmm.inc
include <xm/ufmod.inc>includelib kernel32.lib
includelib user32.lib
includelib winmm.lib
includelib <xm/ufmod.lib>SONG equ 500.codestart: invoke uFMOD_PlaySong, SONG, NULL, XM_RESOURCE ;
invoke Sleep, 120000 ; duración de la canción
invoke ExitProcess,0end start

MusicaXM by orniaco_uploaded by Apuromafo.rar

greetings Apuromafo

  • Like 2
Posted

Why do people insist on wanting 'their' thread closed or deleted once they have gotten the help they so desperately wanted? What is so wrong with the idea of retaining the thread as knowledge for ALL members of the forum? That way, any member who had a similar problem could reference the information and see if it helps them. One of the features of a community forum such as this one...

HR,

Ghandi

  • Like 1
  • 4 months later...
Posted (edited)

Why do people insist on wanting 'their' thread closed or deleted once they have gotten the help they so desperately wanted? What is so wrong with the idea of retaining the thread as knowledge for ALL members of the forum? That way, any member who had a similar problem could reference the information and see if it helps them. One of the features of a community forum such as this one...

HR,

Ghandi

Thank you all for all the replays, this place is always the best to learn.... I'd like to point out that you can use the tool from Hutches MASM32 package called bin2db it is located in the "tools" folder in "masm32" (source included) , just edit the XM.inc to add "table" or what ever word you use ... in the prior post some one posted this code so in the XM.inc file add "Song" in front of the first db

table db 045h, 078h, 074h, 065h, 06Eh, 064h, 065h, 064h, 020h, 04Dh, 06F

or

song db 045h, 078h, 074h, 065h, 06Eh, 064h, 065h, 064h, 020h, 04Dh, 06F

.data

include music/XM.inc

XMSize equ $ - song

.code

start:

; Initialize play Music

INVOKE uFMOD_PlaySong,addr song,XMSize,XM_MEMORY

and it works fine ! :thumbsup:

Don't forget that bin2db converts the .xm to an .inc file and does not extract a table out so it will look different inside, it wont be all neat columns and rows but it Works!

or do :

.data

include music/XM.inc

XMSize equ $ - table

.code

start:

; Initialize play Music

INVOKE uFMOD_PlaySong,addr table,XMSize,XM_MEMORY

Edited by wunder
Posted (edited)

Yu can simply use JWASM.exe instead of ml.exe.

So yu can use the incbin directive.

with that yu can stopp loading bitmaps, sounds etc as resources

in case of loading all that stuff directly from memory!


/>http://www.japheth.de/JWasm.html

Edited by hmi222
  • 1 month later...
Posted

tool for ripping in memory

http://crackinglandi...tory/LisaXM.rar

greetings Apuromafo

Thank you I have found this very useful... I have plenty of tools to rip music ...even PEinfo does it and so does PeID

but non to rip from memory ....I never could figure out how to rip XM from delphi, and VB

This is a great share....

I translated it to English using Google translate .... I hope the Author does not mind....Just means we like the tool biggrin.png

Here is that text effect named NervousText » Text Animator Component

If any body has the time to make a MASM example please feel free to post it.... thumbsup.gif

LisaXMENG.zip

textanim.zip

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...