PDA

View Full Version : How to make .etm file



matchbox
12-16-2003, 08:14 AM
I need a little help to make a .etm file. I've edit frogger.asm with my offsets to create my own .asm file.
When i run ml.exe and type
ml /AT (my .asm file)
Then it spits out
mllink$ (has a shortcut icon)
.obj
I just don't know what to do next. Please could someone who knows what there doing help me (step by step instructions on how to make a .etm file and using the files that came with evox).
Thanks :)

Seeker2002
12-16-2003, 08:29 AM
Use the make.bat file that's included in The Trainer Source Directory. This will do the necessary steps for you.

Type: make.bat (name of your trainer source code) (name of your final output *.etm file)

example: make Vexx Vexx
This will produce a trainer file named Vexx.etm for you.

Cheers...:cool:

Goku
12-16-2003, 10:03 AM
Or you can just type this:
make vexx

This will run the batch file and when it creates the .etm file, it will name it same as source, meaning vexx.etm. So no need for extra stuff.

matchbox
12-16-2003, 11:57 AM
Seeker2002
My .asm file is called nf, so i typed
make nf nf
and it said

assemebling: nf.asm
File not found
File not found - nf.com

Then in Trainer Source file it spits out
mllink$
nf.obj
but no .etm file.

Goku
12-16-2003, 12:35 PM
Originally posted by matchbox
Seeker2002
My .asm file is called nf, so i typed
make nf nf
and it said

assemebling: nf.asm
File not found
File not found - nf.com

Then in Trainer Source file it spits out
mllink$
nf.obj
but no .etm file.

Make sure nf.asm is in the same folder as these files: LINK.EXE, ML.ERR, ML.EXE, and make.bat.

Then type:
make nf

kingsfan41
12-16-2003, 01:47 PM
Also make sure your file is called NF.ASM (make sure it has the .ASM extension). you would only specify NF as the file name as the batch file appends the .ASM to the name.

matchbox
12-16-2003, 02:41 PM
My nf.asm is in already in the same folder as link.exe, ml.err, ml.exe and make.bat
and still get
"mllink$" file
"nf.obj" file
in the same folder.
Does nf.asm have to be in caps (NF.ASM)?
When i change nf.obj to nf.com and then type
make nf
i then get a nf.etm file but i don't know i that is the right file.
Also i'm using ms-dos to run "make.bat" file, is that right or is there a other way.

kingsfan41
12-16-2003, 02:47 PM
Windows/DOS is not case sensitive. If you have "nf.asm" then you should just type "make nf" and it should compile the code for you.

If it is still not working, can you cut/paste the output you are receiving? I suspect you may be running into an error which is why this is not completing.

Also, what if you use one of the sample sources and try to compile it? Do you have the same problem or does the etm file get created? If this works with one of the sample sources then you need to look into the one you modified as that would appear to be the root cause of your problems.

Also, you may want to attach your source so someone can take a look at it and try to help determine your problem.

Goku
12-16-2003, 03:16 PM
Originally posted by matchbox
My nf.asm is in already in the same folder as link.exe, ml.err, ml.exe and make.bat
and still get
"mllink$" file
"nf.obj" file
in the same folder.
Does nf.asm have to be in caps (NF.ASM)?
When i change nf.obj to nf.com and then type
make nf
i then get a nf.etm file but i don't know i that is the right file.
Also i'm using ms-dos to run "make.bat" file, is that right or is there a other way.

if you can't get "make nf" work, you must be doing something wrong. Make sure that make.bat looks like this:
@echo off
ML.EXE /AT %1.asm
del %1.etm
ren %1.com %1.etm

That's what you need in the make.bat file.

matchbox
12-16-2003, 04:33 PM
It does the exact thing with the sample sources.
When i kept on typing "make nf" (about 10-15 trys) it give me my "nf.asm file" a "nf.etm file" and "nf.obj file".
i put these into a seperate folder, but kept nf.asm in the same folder (with ml.exe ml.err link.exe make.bat) and typed it again to see if would work but it did'nt. Just
mllink$
nf.obj
don't know why its not doing again.
Also what do you mean
Make sure that make.bat looks like this:
@echo off
ML.EXE /AT %1.asm
del %1.etm
ren %1.com %1.etm

kingsfan41
12-16-2003, 05:14 PM
Originally posted by matchbox
It does the exact thing with the sample sources.
When i kept on typing "make nf" (about 10-15 trys) it give me my "nf.asm file" a "nf.etm file" and "nf.obj file".


Now I am confused. If you are doing "make nf" and you are getting the nf.etm file then what is the problem? That is the file you want it to make.

Am I missing something here?

Also, what Goku means is check the contents of the make.bat file and make sure they match what he has put in the post to make sure there isn't a problem with the file.

Based on your previous update, it sounds like the nf.etm file is being created.

kingsfan41
12-16-2003, 05:39 PM
Actually I think I know what you are talking about. Based on your last response, you have the nf.etm file.

Are you talking about the error during the complie that the nf.etm file can not be found? If so, ignore that, along with the TINY error. If you have the nf.etm file then you compile was successful.

matchbox
12-16-2003, 05:47 PM
what i'm saying is it has only happened once and when i tried to do it again (starting from skratch) it won't make another .etm file. All its making is a "mllink$" file and "nf.obj" file. NO "nf.etm" (only happened once, can't get to do it again). :confused:

Seeker2002
12-16-2003, 07:05 PM
Originally posted by kingsfan41
Windows/DOS is not case sensitive. If you have "nf.asm" then you should just type "make nf" and it should compile the code for you.

If it is still not working, can you cut/paste the output you are receiving? I suspect you may be running into an error which is why this is not completing.

Also, what if you use one of the sample sources and try to compile it? Do you have the same problem or does the etm file get created? If this works with one of the sample sources then you need to look into the one you modified as that would appear to be the root cause of your problems.

Also, you may want to attach your source so someone can take a look at it and try to help determine your problem.

I have to agree wth Kingsfan41, if this is still not working than you have something wrong within your source code itself. I was running into the same problem myself trying to create a trainer for Conflict Desert Storm 2, unlimited First Aid Kits, just to see if it will work. It would only produce a *.obj file an give me errors or file not found on the rest of the stuff. So I had to look at an study the source code again. I can't remember what I did wrong but I was something simple that it would produce the obj code but not the final etm. So back track and examine your source code again.. Good luck.. Cheers :cool:

matchbox
12-17-2003, 04:08 PM
I got it to work (didn't edit nothing). It gave me my .etm file and the trainer worked, i felt succes in the air.But when i moved onto the next game and created the .asm file it start giving me problems again. (Its as if it only wants to work when ever it wants to).

Also i just wanted to know if i where to find the offset in a game for money, could you make a trainer to make you start with 9,999,999 and freeze it instead of starting the game with the normal amount and freezeing it. If so how?
Thanks:)