Quick question about ZGet

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
-_pentium5.1_-
Lurker
Posts: 110
Joined: Sat Sep 04, 2004 7:55 pm
Location: USA

Quick question about ZGet

Post by -_pentium5.1_- »

Are there any files I should delete before running ZGet for the second time?
This signature intentionally contains no text other than this sentence.
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

I would recommend deleting the *.obj files by entering the following command while in the src directory.

make -f makefile.ms PLATFORM=win32 clean
-_pentium5.1_-
Lurker
Posts: 110
Joined: Sat Sep 04, 2004 7:55 pm
Location: USA

Post by -_pentium5.1_- »

Thanks! (If anyone else has other suggestions, please feel free to post them)
This signature intentionally contains no text other than this sentence.
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

I just delete the src folder each time.
-_pentium5.1_-
Lurker
Posts: 110
Joined: Sat Sep 04, 2004 7:55 pm
Location: USA

Post by -_pentium5.1_- »

@xamenus: Oops, I kind of thanked you prematurely - that didn't work (because there's no make.exe in the src folder?)
@Clements: I will try that ASAP.
Thanks to both of you.
This signature intentionally contains no text other than this sentence.
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

To do the make stuff, you have to set a path to the folder you placed MinGW in (as part of the initial Zget download)..

A batch file is pretty much a text file, except with the extension .bat. You can double click on the file (or enter it via the command prompt) to execute the commands...

The batch file would need the following:
set path=C:\MINGW\BIN
This assumes you installed MINGW in C:\MINGW.

Then you can add the following line xamenus mention.. the batch file would obviously have to be in the src directory to execute.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

Heh, forgot to mention that you need to set your PATH. Doing that via a batch file as Deathlike2 mentioned is a good idea.

Maybe future versions of ZGet will be able to delete the object files?
Last edited by xamenus on Sun Jul 02, 2006 10:29 pm, edited 1 time in total.
franpa
Gecko snack
Posts: 2374
Joined: Sun Aug 21, 2005 11:06 am
Location: Australia, QLD
Contact:

Post by franpa »

thanks for the info people i just have 1 issue...

cd zsnes
cd src
fresh_install.bat
cd..
cd..
zget.exe

that will not run zget at the end... it runs fresh install.bat which is...

set path=C:\MINGW\BIN
make -f makefile.ms PLATFORM=win32 clean

and then it quits instead of running zget.... why?

---------
be aware that all paths are setup correctly...
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64
spoon0042
Rookie
Posts: 46
Joined: Mon Jun 12, 2006 9:52 pm

Post by spoon0042 »

By default running one batch file from another stops the first one; change it to "call fresh_install.bat"
franpa
Gecko snack
Posts: 2374
Joined: Sun Aug 21, 2005 11:06 am
Location: Australia, QLD
Contact:

Post by franpa »

thanks.

Also, is it possible to get zget to compile the dos version?
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

franpa wrote:Also, is it possible to get zget to compile the dos version?
No.
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Post by odditude »

FYI, you can condense it to a single batch fille with:

Code: Select all

set path=C:\MINGW\BIN
make -f makefile.ms PLATFORM=win32 clean
zget.exe 
A second option for permanently adding the MinGW to the system PATH is via the System control panel. Go to the "Advanced" tab and click the "Environment Variables" button. In the "System Variables" box, higlight "Path" and click the "Edit" button. Add the desired path to the end of what's already there, making sure that it's separated from the previous last entry with a semicolon (;). For example, if it was previously

Code: Select all

%SystemRoot%\system32;%SystemRoot%
it should now be

Code: Select all

%SystemRoot%\system32;%SystemRoot%;c:\mingw\bin
If you do it this way, then you'll be able to further simplify the batch file to just

Code: Select all

make -f makefile.ms PLATFORM=win32 clean
zget.exe 
AND you get the benefit that any other compilation work you do that requires MinGW won't need the manual PATH hand-holding each time.
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

I have a single batch file in the zget directory called zget.bat:

Code: Select all

set path=C:\MINGW\BIN
cd zsnes\src
make -f makefile.ms PLATFORM=win32 clean
cd..
cd..
zget.exe
Works for me. Would be great if zget did these steps for you automatically.
franpa
Gecko snack
Posts: 2374
Joined: Sun Aug 21, 2005 11:06 am
Location: Australia, QLD
Contact:

Post by franpa »

i just changed it to...

Code: Select all

cd zsnes
cd src
call fresh_install.bat
cd..
cd..
zget.exe
and it works accordingly... im aware of ways to simplify the bat file but i se no need in them cause the batch file is already made and im aware i could just make it like clements.
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64
Post Reply