Author Topic: Editing gamemode minigames  (Read 1312 times)

Despite what I've written in my server.cs/gamemode.txt, my minigame doesn't use spawn bricks, nor is painting enabled. What did I do wrong?
Code: [Select]
ADDON GameMode_Blockoware

ADDON Bot_Blockhead
ADDON Bot_Hole
ADDON Bot_Horse
ADDON Bot_Shark
ADDON Bot_Zombie

ADDON Brick_Arch
ADDON Brick_Checkpoint
ADDON Brick_Christmas_Tree
ADDON Brick_Doors
ADDON Brick_Halloween
ADDON Brick_Large_Cubes
ADDON Brick_ModTer_BasicPack
ADDON Brick_ModTer_InvertedPack
ADDON Brick_Poster_8x
ADDON Brick_Teledoor
ADDON Brick_Treasure_Chest
ADDON Brick_V15

ADDON Emote_Alarm
ADDON Emote_Confusion
ADDON Emote_Hate
ADDON Emote_Love

ADDON Event_Camera_Control

ADDON Item_Key
ADDON Item_Skis
ADDON Item_Sports

ADDON Light_Animated
ADDON Light_Basic

ADDON Particle_Basic
ADDON Particle_FX_Cans
ADDON Particle_Grass
ADDON Particle_Player
ADDON Particle_Tools

ADDON Player_Fuel_Jet
ADDON Player_Jump_Jet
ADDON Player_Leap_Jet
ADDON Player_No_Jet
ADDON Player_Quake

ADDON Print_1x2f_BLPRemote
ADDON Print_1x2f_Default
ADDON Print_2x2f_Default
ADDON Print_2x2r_Default
ADDON Print_2x2r_Monitor3

ADDON Print_Letters_Default
ADDON Print_ModTer_Default

ADDON Projectile_GravityRocket
ADDON Projectile_Pinball
ADDON Projectile_Pong
ADDON Projectile_Radio_Wave

//ADDON Script_Player_Persistence
//ADDON Server_VehicleGore
ADDON Script_Hax

ADDON Sound_Beeps
ADDON Sound_Phone
ADDON Sound_Synth4

ADDON Support_Doors
//ADDON Support_LegacyDoors
ADDON Support_Player_Persistence

ADDON Vehicle_Ball
ADDON Vehicle_Flying_Wheeled_Jeep
ADDON Vehicle_Horse
ADDON Vehicle_Jeep
ADDON Vehicle_Magic_Carpet
ADDON Vehicle_Pirate_Cannon
ADDON Vehicle_Rowboat
ADDON Vehicle_Tank

ADDON Weapon_Bow
ADDON Weapon_Gun
ADDON Weapon_Guns_Akimbo
ADDON Weapon_Horse_Ray
ADDON Weapon_Push_Broom
ADDON Weapon_Rocket_Launcher
ADDON Weapon_Spear
ADDON Weapon_Sword

MUSIC After_School_Special
MUSIC Ambient_Deep
MUSIC Bass_1
MUSIC Bass_2
MUSIC Bass_3
MUSIC Creepy
MUSIC Distort
MUSIC Drums
MUSIC Factory
MUSIC Icy
MUSIC Jungle
MUSIC Peaceful
MUSIC Paprika_-_Byakko_no
MUSIC Piano_Bass
MUSIC Rock
MUSIC Stress_
MUSIC Vartan_-_Death

$EnvGuiServer::SimpleMode 0
$EnvGuiServer::SkyFile Add-Ons/Sky_Blue2/Blue2.dml
$EnvGuiServer::WaterFile NONE
$EnvGuiServer::GroundFile Add-Ons/Ground_Plate/plate.ground
$EnvGuiServer::GroundColor 0 76 0 255

$Server::Quota::Schedules 999;
$Server::QuotaLAN::Schedules 999;
$Server::WelcomeMessage \c2Welcome to Blockland, %1.
$Server::MaxBricksPerSecond 1000
$Server::MaxPhysVehicles_Total 20
$Server::MaxPlayerVehicles_Total 200
$Server::Quota::Environment 5000
$Server::Quota::Item 100
$Server::Quota::Misc 9999
$Server::Quota::Projectile 200
$Server::Quota::Schedules 1000
$Server::Quota::Vehicle 100

$MiniGame::Enabled 1

Code: [Select]
package Blockoware{
//by Dr.Kirby, AKA ultimamax, ID 20525
function Blockoware()
{
for(%i = 0; %i < clientgroup.getCount(); %i++)
{
clientGroup.getObject(%i).instantRespawn();
}
}

function startBlockoware()
{
//serverDirectSaveFileLoad("Add-Ons/Map_BushiPandan_Raceway/Starting_Gate.bls", 3, "", 0, 1);
Blockoware();
}

};
activatePackage("Blockoware");
$DefaultMiniGame::RespawnTime = 300;
$DefaultMiniGame::UseSpawnBricks = 1;
$DefaultMiniGame:EnablePainting = 1;



startBlockoware();
edit: the spawn bricks are public


http://forum.blockland.us/index.php?topic=203327.0

Read both first posts.
i have. if you read the server.cs, you'll see that i attempted to define the usespawnbricks in the server.cs. Yes, I did exec the script. No it didn't work. And I confirmed that the name of the minigame I was in is called "DefaultMinigame" using console.
« Last Edit: August 10, 2013, 05:21:51 PM by ultimamax »

What about the minigame variables in the Gamemode.txt?

Also, it wouldn't be
Code: [Select]
$DefaultMiniGame::RespawnTime = 300;
$DefaultMiniGame::UseSpawnBricks = 1;
$DefaultMiniGame:EnablePainting = 1;
It would be
Code: [Select]
$DefaultMiniGame.RespawnTime = 300;
$DefaultMiniGame.UseSpawnBricks = 1;
$DefaultMiniGame.EnablePainting = 1;
Because $DefaultMiniGame is the minigame object.

What about the minigame variables in the Gamemode.txt?
wasn't aware of the full capabilities of gamemode.txt

Also, it wouldn't be
Code: [Select]
$DefaultMiniGame::RespawnTime = 300;
$DefaultMiniGame::UseSpawnBricks = 1;
$DefaultMiniGame:EnablePainting = 1;
It would be
Code: [Select]
$DefaultMiniGame.RespawnTime = 300;
$DefaultMiniGame.UseSpawnBricks = 1;
$DefaultMiniGame.EnablePainting = 1;
Because $DefaultMiniGame is the minigame object.
it worked! thank you