Author Topic: New Gamemode system  (Read 937 times)

For the gamemode.txt

the part that cites the add-ons to turn on when the server is launched, is there a way to tell it to activate all of one category? Like, say,
Code: [Select]
ADDON Brick_** meaning all

Unfortunately, no. The current game mode system is way too static to be useful.

maybe if it executed an addon called brick_all that goes through your addons and does exactly that

Does the exec command support * wildcard?

Does the exec command support * wildcard?

No. Here's an example of one that would, though:

Code: [Select]
function execf( %mask )
{
for ( %file = findFirstFile( %mask ) ; %file !$= "" ; %file = findNextFile( %mask ) )
{
exec( %file );
}
}

execf( "config/test.cs" );
execf( "config/more/g_*.cs");

So basically, make an addon and in it have a loophole that allows the execution of all addons in that category with Port's code?