Giter Site home page Giter Site logo

Comments (6)

itsrachelfish avatar itsrachelfish commented on August 16, 2024

Would it be possible to change the order of the commands, so the map is the last thing changed?

from teeworlds.

PathosEthosLogos avatar PathosEthosLogos commented on August 16, 2024

You have to use semicolons to use multiple commands in one line.

Alternative is to make a config file and use "exec" command to execute that config file.

from teeworlds.

CommunistSpectator avatar CommunistSpectator commented on August 16, 2024

i think having to reload the map 2x is anissue, and running a pair of scripts to ensure both settings are changed is the clearest solution (unless someone updates server to change settings with only one map reload)

from teeworlds.

PathosEthosLogos avatar PathosEthosLogos commented on August 16, 2024

Like I said, you can use semicolon:

change_map dm1; sv_scorelimit 9001; sv_spectator_slots 2

This way, you can have three commands executed in one line. This is one vote, so using vote, it would be:

add_vote "DM1, 9001 score, 14 players" "change_map dm1; sv_scorelimit 9001; sv_spectator_slots 2"

from teeworlds.

CommunistSpectator avatar CommunistSpectator commented on August 16, 2024

it forces the map to reload, and truncates the end of the line. the fix in my fork is clean enough.

from teeworlds.

itsrachelfish avatar itsrachelfish commented on August 16, 2024

@PathosEthosLogos that's how it was defined in the votes already. The pull request submitted by @CommunistSpectator uses exec as you suggested, which fixed the issue.

from teeworlds.

Related Issues (2)

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.