Lua scripts stored and executed on the server side will configure the server. The syntax for the scripts is yet undetermined. A lua script may look like this:
Code: Select all
local Train1 = AddTrain("Choo Choo", 1943, "choo choo.png");
[name, year of availability, graphics]
DualHead(Train1, false);
[Train1 isn't dual-headed, the default should be the same]
local Train2 = AddTrain("Zoof Zoof", 2005, "zoof zoof.png");
SetCargoTypes(Train2, "PASSENGERS & MAIL");
[supported cargo types per vehicle, in this case passengers and mail]
SetCapacity(Train2, "PASSENGERS", 50);
[cargo type capacity per vehicle]
SetCapacity(Train2, "MAIL", 10);
Question: server configuration is explained but how are single player games configured?
Only reply if you have a sensible solution please. Don't propose different configuration methods for servers either.