In my time running Euro Friday Night Fragfest, I have had some difficulty in running setup scripts from a config file or from the command line as a + parameter. I believe what is going on is that configuration files and command line parameters are simply executed too soon - before the mod has a chance to load. Thus, everytime I load a mod that requires a setup script, I need to have somebody log in and execute an RCON command. This is...slightly inconvenient. More inconvenient if a server crashes, restarts, and requires the command be run again with no administrators around.
Now, there might be some method that I'm missing that can automatically run scripts on boot, and if so, please let me know.
Failing that, would it be too much trouble to have some method of bootstrapping the server automatically? Off the top of my head, the simplest way I think would probably be to replace MAP01 with a "Start Map" that maybe acts as sort of an introduction to the game, and the moment somebody joins the game, the setup script is fired. Another possibility is a global ACS script that detects when the playercount goes from 0 to 1, and the moment it does, fire the setup script.
Just a thought.
A request to mod makers that have setup scripts
A request to mod makers that have setup scripts
The only limit to my freedom is the inevitable closure of the
universe, as inevitable as your own last breath. And yet,
there remains time to create, to create, and escape.
Escape will make me God.
universe, as inevitable as your own last breath. And yet,
there remains time to create, to create, and escape.
Escape will make me God.
Re: A request to mod makers that have setup scripts
I've had trouble with this as well for as long as I've been doing this, and there's no easy answer it seems. I began to write a long post here, then gave up. I really hate this shit.
But I believe any solution does involve usage of global variables though, or maybe inventory items given to player?
I will say that my most recent project does have a START map for the same reasons.
It has, for server cfg:
For MAPINFO:
For LANGUAGE:
and an ACS script, CORE:
Then START.wad map script is:
And the map itself (START) is just a black dark room with 4 player spawns.
But I believe any solution does involve usage of global variables though, or maybe inventory items given to player?
I will say that my most recent project does have a START map for the same reasons.
It has, for server cfg:
Code: Select all
sv_maprotation true
clearmaplist
addmap START
Code: Select all
ClearEpisodes
// Episodes
Episode START
{
Name = "$EP_WRATH"
Key = "w"
NoSkillMenu
}
DefaultMap {
Music = "D_IDLE"
Sky1 = "SKY1", 0.0
}
Map START "$MAP_START" {
NoIntermission
LevelNum = 199
Music = ""
Sky1 = "SKY1", 0.0
}
Code: Select all
[enu default]
EP_WRATH = "Wrath of Hell";
MAP_START = "Start";
Code: Select all
global int 8:game_started; // Do not change this.
script "Game" OPEN {
// Start map.
Delay(10);
if (!game_started) {
game_started = true; Delay(1);
ConsoleCommand("map START");
}
// Waiting for players.
until (PlayerCount() > 0) { Delay(1); }
...
}
Code: Select all
#include "zcommon.acs"
global int 8:game_started; // Do not change this.
// Game
script "Game" OPEN {
// Do initialization stuff here.
game_started = true;
Delay(10);
ConsoleCommand("changemap HUB01");
}
-
- Retired Staff / Community Team Member
- Posts: 2558
- Joined: Sat Jun 02, 2012 2:44 am
Re: A request to mod makers that have setup scripts
All of my mods come with a command called "setup" for this very reason.
Re: A request to mod makers that have setup scripts
Read my original post again. Unless I'm missing something, I can't execute these setup scripts from a config file or at the command line. They're convenient, but they require an administrator to RCON them and run them by hand.Catastrophe wrote:All of my mods come with a command called "setup" for this very reason.
The only limit to my freedom is the inevitable closure of the
universe, as inevitable as your own last breath. And yet,
there remains time to create, to create, and escape.
Escape will make me God.
universe, as inevitable as your own last breath. And yet,
there remains time to create, to create, and escape.
Escape will make me God.
- ZZYZX
- Posts a lot
- Posts: 742
- Joined: Thu Jun 07, 2012 5:56 pm
- Location: Ukraine
- Clan: A3
- Clan Tag: [A3]
Re: A request to mod makers that have setup scripts
Setup scripts? Such thing exists?
I wonder what happens with these once ConsoleCommand is blocked.
I wonder what happens with these once ConsoleCommand is blocked.
quality DoomExplorer hackeringFilystyn wrote:Do you know what windows.h is? It's D, DWORD.
overcomplicated ZDoom grenade
random Doom things
GZDoomBuilder-Bugfix