Coder Social home page Coder Social logo

CPMA support about quakejs-docker HOT 7 CLOSED

treyyoder avatar treyyoder commented on June 26, 2024
CPMA support

from quakejs-docker.

Comments (7)

ratnose avatar ratnose commented on June 26, 2024

The server config is in the container... no idea other than that. :D

from quakejs-docker.

treyyoder avatar treyyoder commented on June 26, 2024

@ratnose is correct, the server config is in the container. But you can edit it:

exec into the container:
docker exec -it quakejs bash and then navigate to:

/quakejs/base/baseq3
/quakejs/base/cpma

From there you can vi server.cfg to edit it.

You could also copy a config file from your host machine to your container:
docker cp server.cfg quakejs:/quakejs/base/baseq3/server.cfg

With both of these methods restart the container afterwards:
docker restart quakejs

from quakejs-docker.

luismbo avatar luismbo commented on June 26, 2024

Isn't entrypoint.sh hardcoded to baseq3?:

node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg

(It's interesting that the server side runs a Javascript version of the server rather than the plain C++ version. Is there a performance penalty there we could avoid? 🤔)

Have you considered moving the configuration and content to a volume. IIUC, it's bad practice to modify containers. This might allow one to add the standard Q3 maps such as pak0.pak, or other custom maps, maybe?

from quakejs-docker.

treyyoder avatar treyyoder commented on June 26, 2024

Yeah, you'd have to update entrypoint.sh changing it to cpma instead of baseq3 in the container as well.

Right, you shouldn't be changing a container, but this project isn't official, so do so at your own risk. I was just offering a work around until what you are asking for is implemented.

It's running in JavaScript because that is what quakeJS is.

I did think about putting the config/maps on a volume, I'll try to prototype that out and see if it adds complexity. I want to keep this as simple as possible for people to be able to pull and run with little to no configuration required.

from quakejs-docker.

luismbo avatar luismbo commented on June 26, 2024

@treyyoder the key Javascript part is certainly the client since that lets us run Quake on a browser. There's no benefit in running the server via Javascript, is there?

from quakejs-docker.

treyyoder avatar treyyoder commented on June 26, 2024

@luismbo Read this section on the main quakejs repo from which this is derived, and the part about quakejs using websockets and how native builds and web builds currently can't interact with eachother.
https://github.com/inolen/quakejs#running-a-dedicated-server

from quakejs-docker.

luismbo avatar luismbo commented on June 26, 2024

Oh, interesting. Thanks for the pointer @treyyoder.

from quakejs-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.