Pop2121 / quake2-gwt-port

Automatically exported from code.google.com/p/quake2-gwt-port
GNU General Public License v2.0
0 stars 0 forks source link

document adding q2-314-demo-x86.exe as cached resource #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
./install-resources part will try to download exe from a very slow ftp 
server and will never finish.
i waited >24 hours with no results but i've managed to download q2-314-demo-
x86.exe in <20 minutes with wget.

please document a way to tell ./install-resources where q2-314-demo-x86.exe 
is cached on local disk to avoid downloading.

Original issue reported on code.google.com by aljosa.m...@gmail.com on 7 Apr 2010 at 1:45

GoogleCodeExporter commented 8 years ago
Worked for me, try specifying a different mirror in the script?

BTW once it downloads and extracts the game data files from the EXE it won't do 
that 
step again; check the script and try to do those bits by hand, then run install-
resources for it to do further extraction from the PAK and conversion.

Original comment by megazzt on 7 Apr 2010 at 9:42

GoogleCodeExporter commented 8 years ago
what script?
install-resources runs "java -jar 
maven-build/installer/target/gquake-installer-1.0-
SNAPSHOT.jar"

Original comment by aljosa.m...@gmail.com on 7 Apr 2010 at 9:58

GoogleCodeExporter commented 8 years ago
From src/jake2/tools/Downloader.java:

    static final String[] MIRRORS = {
        "ftp://ftp.fu-berlin.de/pc/msdos/games/idgames/idstuff/quake2/q2-314-demo-x86.exe",
        "ftp://ftp.cs.tu-berlin.de/pub/msdos/mirrors/ftp.idsoftware.com/quake2/q2-314-demo-x86.exe",
        "ftp://ftp.demon.co.uk/pub/mirrors/idsoftware/quake2/q2-314-demo-x86.exe",
        "ftp://ftp.fragzone.se/pub/spel/quake2/q2-314-demo-x86.exe",
        "ftp://ftp.idsoftware.com/idstuff/quake2/q2-314-demo-x86.exe",
        "ftp://ftp.gamers.org/pub/games/idgames2/idstuff/quake2/q2-314-demo-x86.exe"
    };

It attempts to find a mirror reasonably close to home, but not very carefully. 
If you want to add another ftp 
server, just change this list and re-run the maven scripts. If there are 
serious problems with any of those 
servers, feel free to ping this issue and we'll remove/change it.

Original comment by joelgwebber on 8 Apr 2010 at 5:35

GoogleCodeExporter commented 8 years ago

i've changed MIRRORS and .exe was downloaded but i think that copyStream never 
exits/finishes
---
Trying mirror: 
ftp://ftp.fu-berlin.de/pc/msdos/games/idgames/idstuff/quake2/q2-314-
demo-x86.exe
Downloading.......................................
---

i know that file was successfully downloaded:
---
$ du /tmp/q2-temp3839365836826822653.tmp 
38148   /tmp/q2-temp3839365836826822653.tmp
---

"Download finished; uncompressing" is never printed.
any ideas why?

additional info:

$ uname -a
Linux aljosa-linux 2.6.31-21-generic-pae #59-Ubuntu SMP Wed Mar 24 08:47:55 UTC 
2010 
i686 GNU/Linux

$ java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Server VM (build 16.2-b04, mixed mode)

Original comment by aljosa.m...@gmail.com on 8 Apr 2010 at 6:40

GoogleCodeExporter commented 8 years ago
Sometimes it doesn't even connect to any mirror.

I solved the problem manually downloading installer and changing source code 
like this 

Downloader.java:

+import java.io.FileInputStream;

at imports and

+File file = new File("%PATH_TO_FILE%\\q2-314-demo-x86.exe");
+InputStream is = new FileInputStream(file);

instead of 

InputStream is = url.openStream();

and to the last user: i used 

C:\Program Files\Java\jdk1.6.0_24\bin>java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

i hope this helped someone

Original comment by iJe...@gmail.com on 7 Mar 2011 at 4:34