inolen / quakejs

1.47k stars 199 forks source link

Starting with content server results in errors #67

Open viraptor opened 4 years ago

viraptor commented 4 years ago

When specifying a content server, I get the following at startup:

----- FS_Startup -----
.../quakejs/build/ioq3ded.js:9490
                    return callback(new Error('Failed to find "' + installer.name + '" in manifest'));
                    ^

ReferenceError: callback is not defined
    at Object.DirtyInstallers (/Users/viraptor/Projects/quakejs/build/ioq3ded.js:9490:8)
    at Object.SyncInstallers (/Users/viraptor/Projects/quakejs/build/ioq3ded.js:9530:27)
    at /Users/viraptor/Projects/quakejs/build/ioq3ded.js:9583:12
    at Object.onload (/Users/viraptor/Projects/quakejs/build/ioq3ded.js:9442:15)
    at IncomingMessage.<anonymous> (/Users/viraptor/Projects/quakejs/build/ioq3ded.js:9629:14)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1094:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

And when fixed to throw that error instead, it's:

Error: Failed to find "linuxq3ademo-1.11-6.x86.gz.sh" in manifest
ghost commented 4 years ago

Skip it, if you supply an fs_basepath with pk3s already installed you don't need to check for installer files.

viraptor commented 4 years ago

This doesn't seem to work. Setting fs_basepath to ./base returns the same error. Setting it to ./base/baseq3 returns:

----- FS_Startup -----
No such file or directory
ghost commented 4 years ago

I think fs_basepath should be absolute, not relative, i.e. ./.

viraptor commented 4 years ago

Full path like

+set fs_basepath /Users/..../quakejs/base

still results in

----- FS_Startup -----
No such file or directory
XanderStrike commented 4 years ago

I resolved the same error by downloading linuxq3ademo-1.11-6.x86.gz.sh and linuxq3apoint-1.32b-3.x86.run from the public content server, and putting it into the assets directory that I use as a source for bin/repak.js. Then they'll be part of your manifest and you'll pass this check.

viraptor commented 4 years ago

Yes, should've reported - adding those files makes the server work just fine 👍 Processing with the standard values even fixes the broken/missing textures in pro-q3dm6.