Comments (6)
Would it be possible to change the order of the commands, so the map is the last thing changed?
from teeworlds.
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.
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.
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.
it forces the map to reload, and truncates the end of the line. the fix in my fork is clean enough.
from teeworlds.
@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
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 teeworlds.