GithubHelp home page GithubHelp logo

Comments (9)

CM2Walki avatar CM2Walki commented on September 7, 2024

Post the output of docker logs csgo-ds please

from csgo.

michihupf avatar michihupf commented on September 7, 2024

https://pastebin.com/GLrMe2pv

If everything had went as planned there should've been another output from my plugin:
--> blah plugin loaded

from csgo.

CM2Walki avatar CM2Walki commented on September 7, 2024

Yeah, looks like the image didn't download metamod or sourcemod. Did the bind mount location have any files in it before the first launch of your container?

Metamod and sourcemod only gets downloaded if the entry.sh can't find a server.cfg. I should probably split that up.
https://github.com/CM2Walki/CSGO/blob/master/etc/entry.sh#L10

from csgo.

michihupf avatar michihupf commented on September 7, 2024

This is weird I had rebuilt the image without having changed the contents of the server folder. I imply that I thought it would already have been downloaded previously.

So I have to just delete the server.cfg?

from csgo.

michihupf avatar michihupf commented on September 7, 2024

Did the bind mount location have any files in it before the first launch of your container?

Yes, it had the entire server structure already in it. As I mentioned I only rebuilt the image (tbh I don't know anymore why I did).

from csgo.

CM2Walki avatar CM2Walki commented on September 7, 2024

So I have to just delete the server.cfg?

You can, however back it up before you do it of course. Then restart the container, that should cause metamod and sourcemod to get downloaded. After that you can replace the server.cfg with your previous one.

EDIT: It could be that you ran a non-sourcemod csgo server before this. That's a use-case I didn't think about, I'll change the entry.sh to take that into account.

from csgo.

michihupf avatar michihupf commented on September 7, 2024

Oh god now I get permission errors. I think that one is on me though as I chown'ed the server folder to modify files. Could this cause the other issues as well?

EDIT: It could be that you ran a non-sourcemod csgo server before this. That's a use-case I didn't think about, I'll change the entry.sh to take that into account.

I am pretty sure I ran the sourcemod image. I was looking for a docker image to do my plugin development.

from csgo.

michihupf avatar michihupf commented on September 7, 2024

Quick update: After deleting the server.cfg I now get the message from my plugin on load. This means metamod and sourcemod are working now. Thank you.

I think I have a clue on why it wouldn't work before. As I chown'ed the server directory recursively the .vdf files also got owned by me (I did chmod a=rwx -R server/ also). Now that I also saw that if a server update gets downloaded the files are owned by 100999 again.
Content of server/csgo/addons/
drwxrwxrwx - michi 3 Mär 15:41  metamod
drwxrwxrwx - michi 3 Mär 15:41  sourcemod
.rw------- 50 100999 27 Mai 2014  metamod.vdf
.rw------- 58 100999 20 Dez 2017  metamod_x64.vdf

Is there a better way to manage file permissions to be able to edit (and also execute e.g. spcomp) files?

from csgo.

CM2Walki avatar CM2Walki commented on September 7, 2024

Related to CM2Walki/TF2#16

from csgo.

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.