diff --git a/Templates/BaseGame/game/data/ExampleModule/ExampleModule.tscript b/Templates/BaseGame/game/data/ExampleModule/ExampleModule.tscript index aec18097a..033b2155a 100644 --- a/Templates/BaseGame/game/data/ExampleModule/ExampleModule.tscript +++ b/Templates/BaseGame/game/data/ExampleModule/ExampleModule.tscript @@ -9,7 +9,7 @@ function ExampleModule::onDestroy(%this) //This is called when the server is initially set up by the game application function ExampleModule::initServer(%this) { - %this.queueExec("./scripts/server/ExampleGameMode"); + %this.queueExec("./scripts/shared/ExampleGameMode"); } //This is called when the server is created for an actual game/map to be played @@ -25,7 +25,7 @@ function ExampleModule::onDestroyGameServer(%this) //This is called when the client is initially set up by the game application function ExampleModule::initClient(%this) { - %this.queueExec("./scripts/client/inputCommands"); + %this.queueExec("./scripts/client/inputCommands"); //client scripts exec("./scripts/client/defaultkeybinds"); @@ -34,7 +34,7 @@ function ExampleModule::initClient(%this) if(isScriptFile(%prefPath @ "/keybinds")) exec(%prefPath @ "/keybinds"); - %this.queueExec("./scripts/server/ExampleGameMode"); + %this.queueExec("./scripts/shared/ExampleGameMode"); } //This is called when a client connects to a server diff --git a/Templates/BaseGame/game/data/ExampleModule/scripts/server/ExampleGameMode.tscript b/Templates/BaseGame/game/data/ExampleModule/scripts/shared/ExampleGameMode.tscript similarity index 100% rename from Templates/BaseGame/game/data/ExampleModule/scripts/server/ExampleGameMode.tscript rename to Templates/BaseGame/game/data/ExampleModule/scripts/shared/ExampleGameMode.tscript diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/templateFiles/module.tscript.template b/Templates/BaseGame/game/tools/assetBrowser/scripts/templateFiles/module.tscript.template index b9f566d84..fc83a1b86 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/templateFiles/module.tscript.template +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/templateFiles/module.tscript.template @@ -16,6 +16,7 @@ function @@::initServer(%this) //This is called when the server is created for an actual game/map to be played function @@::onCreateGameServer(%this) { + //--DATABLOCK EXEC BEGIN-- //These are common managed data files. For any datablock-based stuff that gets generated by the editors //(that doesn't have a specific associated file, like data for a player class) will go into these. //So we'll register them now if they exist. @@ -24,8 +25,6 @@ function @@::onCreateGameServer(%this) %this.registerDatablock("./scripts/managedData/managedForestBrushData"); %this.registerDatablock("./scripts/managedData/managedParticleEmitterData"); %this.registerDatablock("./scripts/managedData/managedParticleData"); - - //--DATABLOCK EXEC BEGIN-- //--DATABLOCK EXEC END-- }