-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repak.js produces nothing #32
Comments
|
Hey thanks for asking. I'm getting this error when I try to run repak.js: How did you solve this issue? |
|
Okay I fixed that by replacing execSync with |
|
@briancullinan |
|
There isn't a lot of magic to this repacking stuff. But there are some critical bugs. The quakejs-files repo is imported for repack and there is an underlying buffer that reads the files. I've had trouble with the buffer, and some files names. If there is an error it crashes with very little error handling. I've rewritten this script and there were still missing files in the graph. Some games include a .dat file, the fonts are hard coded to TGA so those don't convert. I've tried to resolve some of these errors with engine code too. Some mods check the pk3 checksum to make sure people installed the mod correctly. That won't work of its been repacked. Edawn and excessive+ and a few others I have found check the pk3 files. I was able to load the mods by hacking the assembly code in vm.c. if you would like me to run the conversion on any mods or files I will give it a shot and maybe after doing that a few times, we can find a better solution to relying on these faulty repack scripts. |
|
Also tried to get Here's the full log: The packing is done within a Dockerfile: FROM alpine/git:latest AS clone
RUN git clone --branch master https://github.com/inolen/quakejs.git /quakejs
FROM node:12-bullseye AS pack
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
RUN apt-get update \
&& apt-get install unzip
COPY --from=clone /quakejs /quakejs
COPY ./include/assets /assets
WORKDIR /quakejs
RUN npm install
RUN sed -i "s/var execSync = require('execSync').exec;/var execSync = require('child_process').execSync;/g" bin/repak.js \
&& sed -i "s/os.tmpDir();/os.tmpdir();/g" node_modules/temp/lib/temp.js
RUN mkdir -p /repacked \
&& node bin/repak.js --src /assets --dest /repacked
FROM node:20-bullseye-slim AS run
COPY --from=clone /quakejs /quakejs
COPY --from=pack /repacked /quakejs/assets
WORKDIR /quakejs
EXPOSE 8080
CMD ["node", "bin/content.js"]I'm giving up here, but maybe this helps somebody facing the same issue. |
After a fair bit of fiddling, I've managed to get repak.js to run. Unfortunately when running it on quakejs/base/baseq3/ it produces no files, despite outputting
info: writing ~/assets/baseq3/pak100.pk3Is it somehow broken? I'm trying to run the full game instead of the demo, and simply replacing pak0.pk3 with the full version results in it getting overwritten on server startup. Presumably this is because it doesn't match the content server?
I have tried running it with the demo pak0.pk3 and the full pak0.pk3 to no avail.
I'm calling it with
node bin/repak.js --src ~/quakejs/base/baseq3/ --dest ~/assetsThanks for any help
The text was updated successfully, but these errors were encountered: