You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to define additional options to be used in lua scripts so that game admins can manipulate them using the familiar /set command.
Describe the solution you'd like
Add a new server.setting.create command in lua, and possibly also server.setting.set.
Describe alternatives you've considered
Move all settings over to default.lua and add a new optional settings.lua file, so that settings can be defined and set more flexibly than just using the /set command and [settings] section of game.ruleset.
Is your feature request related to a problem? Please describe.
Currently, server options are hard-coded in C++.
freeciv21/server/settings.cpp
Lines 1337 to 1338 in 25ce4fe
I'd like to be able to define additional options to be used in lua scripts so that game admins can manipulate them using the familiar
/set
command.Describe the solution you'd like
Add a new
server.setting.create
command in lua, and possibly alsoserver.setting.set
.Describe alternatives you've considered
Move all settings over to
default.lua
and add a new optionalsettings.lua
file, so that settings can be defined and set more flexibly than just using the/set
command and[settings]
section ofgame.ruleset
.Additional context
Relating to this discussion on discord
The text was updated successfully, but these errors were encountered: