Comments (5)
Hey thanks for asking. I'm getting this error when I try to run repak.js:
node bin/repak.js --src base/baseq3/ --dest assets
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module './build/Release/shell'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/home/onny/quakejs/node_modules/execSync/index.js:30:11)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
How did you solve this issue?
from quakejs.
Okay I fixed that by replacing execSync with require('child_process').execSync
in repack.js
. But now same issue as above. The assets folder is empty :(
from quakejs.
@briancullinan
from quakejs.
@Elijahg @onny you probably need to run node bin/repak.js --src base --dest assets
instead
from quakejs.
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.
from quakejs.
Related Issues (20)
- CTF server will not work HOT 1
- any way to make stats or are there any events that I can listen to? HOT 1
- any way to add touch controls to make it mobile-friendly? HOT 1
- Adding new serverside mod to enhance game servers HOT 1
- Disable /timeout HOT 1
- server VPN HOT 1
- how to install CPMA HOT 4
- Ioquake 1.36 server connect
- only rail HOT 1
- Naming player
- can i run this in a web browser
- vm/qagame.qvm problem
- how to switch to pro mode HOT 4
- compressed and checksum
- ioq3ded.js:9490 HOT 1
- Is this project dead? HOT 3
- nevermind/whatever
- PK3 host 84.201.144.109:9000 used by the Quake CTF server is dead HOT 2
- Unable to play on Chromebooks HOT 2
- ERR_TOO_MANY_REDIRECTS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quakejs.