Author Topic: Gamemode system forcing me to use an addon?  (Read 4047 times)

Um, basically, I'm playing around with the gamemodes and how they work so in the gamemode.txt file I made Brick_Pole to be required.

But later on I decided to remove it from the required add-ons (because I discovered that Brick_PoleAdapters is incompatible with it) but now the game is not letting me run the gamemode and is giving me this error message whenever I try.


Have you tried restarting blockland?


Did you try making it not required? :/

It's not.

Code: [Select]
//add-ons to load
ADDON Brick_Arch
ADDON Brick_Large_Cubes
ADDON Brick_PoleAdapters
ADDON Brick_HorizPoles
ADDON Brick_ExtraRamps
ADDON Brick_Fence
ADDON Brick_V15
ADDON Brick_Window
ADDON Brick_WireFence

ADDON JVS_Content
ADDON JVS_DoorsPack0
ADDON JVS_DoorsPack1
ADDON JVS_DoorsPack2
ADDON JVS_SwitchesPack1
ADDON JVS_SwitchesPack2
ADDON JVS_PlungerSwitch

ADDON Sound_Beeps
ADDON Sound_Blockland
ADDON Sound_Phone
ADDON Sound_Synth4

ADDON Tool_Fill_Can
ADDON Tool_Duplorcator

ADDON Vehicle_Jeep

ADDON Emote_Alarm
ADDON Emote_Confusion
ADDON Emote_Hate
ADDON Emote_Love

ADDON Light_Animated
ADDON Light_Basic

ADDON Particle_Basic
ADDON Particle_FX_Cans
ADDON Particle_Grass
ADDON Particle_Player
ADDON Particle_Tools

ADDON Print_1x2f_Default
ADDON Print_2x2f_Default
ADDON Print_2x2r_Default
ADDON Print_Letters_Default
ADDON Print_2x2r_Monitor3
ADDON Print_1x2f_BLPRemote

ADDON Player_No_Jet

ADDON Weapon_Push_Broom

ADDON Server_Save

ADDON Gamemode_CitySim


//environment
$EnvGuiServer::SimpleMode 0
$EnvGuiServer::SkyFile Add-Ons/Sky_Skylands/Skylands.dml
$EnvGuiServer::WaterFile NONE
$EnvGuiServer::GroundFile Add-Ons/Ground_Plate/plate.ground

$EnvGuiServer::SunFlareTopTexture base/lighting/flare2.png
$EnvGuiServer::SunFlareBottomTexture base/lighting/corona2.png
$EnvGuiServer::DayOffset
$EnvGuiServer::DayLength 300
$EnvGuiServer::DayCycleEnabled 0
$EnvGuiServer::DayCycle Add-Ons/DayCycle_Default/default.daycycle
$EnvGuiServer::Sunational socialistmuth 308.308
$EnvGuiServer::SunElevation 34.1026
$EnvGuiServer::DirectLightColor 0.600000 0.600000 0.600000 1.000000
$EnvGuiServer::AmbientLightColor 0.500000 0.500000 0.500000 1.000000
$EnvGuiServer::ShadowColor 0.300000 0.300000 0.400000 1.000000
$EnvGuiServer::SunFlareColor 0.200000 0.200000 0.200000 1.000000
$EnvGuiServer::SunFlareSize 1
$EnvGuiServer::VisibleDistance 600
$EnvGuiServer::FogDistance 500
$EnvGuiServer::FogHeight
$EnvGuiServer::FogColor 0.900000 0.900000 1.000000 1.000000
$EnvGuiServer::WaterColor 255 255 255 128
$EnvGuiServer::WaterHeight 5
$EnvGuiServer::UnderWaterColor 0 0 128 128
$EnvGuiServer::SkyColor 1.0 1.0 1.0 1.0
$EnvGuiServer::WaterScrollX 0
$EnvGuiServer::WaterScrollY 0
$EnvGuiServer::GroundColor 0 128 64 255
$EnvGuiServer::GroundScrollX 0
$EnvGuiServer::GroundScrollY 0
$EnvGuiServer::VignetteMultiply 0
$EnvGuiServer::VignetteColor 0.000000 0.000000 0.000000 0.392157


//minigame rules
$MiniGame::Enabled 1
$MiniGame::GameColor 0
$MiniGame::InviteOnly 0
$MiniGame::IncludeAllPlayersBricks 1
$MiniGame::PlayersUseOwnBricks 0

$MiniGame::Points_BreakBrick 0
$MiniGame::Points_PlantBrick 0
$MiniGame::Points_KillPlayer 0
$MiniGame::Points_KillSelf 0
$MiniGame::Points_Die 0
   
$MiniGame::RespawnTime 3
$MiniGame::VehicleRespawnTime 60
$MiniGame::BrickRespawnTime 60

$MiniGame::UseSpawnBricks 1
$MiniGame::FallingDamage 1
$MiniGame::WeaponDamage 1
$MiniGame::SelfDamage 1
$MiniGame::VehicleDamage 1
$MiniGame::BrickDamage 0
$MiniGame::EnableWand 1
$MiniGame::EnableBuilding 1
$MiniGame::EnablePainting 1

$MiniGame::PlayerDataBlockName Standard Player

$MiniGame::StartEquipName0 Hammer
$MiniGame::StartEquipName1 Wrench
$MiniGame::StartEquipName2 Printer
$MiniGame::StartEquipName3 0
$MiniGame::StartEquipName4 0

$Server::WelcomeMessage \c2Welcome to CitySim, %1.

You're using an add-on that's calling forceRequiredAddOn which now closes the server and tells you to add it to gamemode.txt instead. Look in Brick_Pole/Server.cs I guess.

These two are probably your culprits:
Code: [Select]
ADDON Brick_PoleAdapters
ADDON Brick_HorizPoles

Thanks, you were right. It was Brick_PoleAdapters, because it has incorrectly done code to check if Brick_Pole is enabled or not.

Here's a patch that circumvents this check

http://lh.rs/rN0T2VYMeac8

Here's a patch that circumvents this check

http://lh.rs/rN0T2VYMeac8
I was able to do it, thanks anyway I guess

This happened to me and i had to hunt down lots of addons.

Guys
Stupid question
Can loadrequiredaddon and forcerequiredaddon be packaged?

Guys
Stupid question
Can loadrequiredaddon and forcerequiredaddon be packaged?
Probably. I don't see why not.

Probably. I don't see why not.
Then we can package them
So when they get triggered, $gamemodearg is set to "", then we set %r to the parent, set $gamemodearg back and return %r

Problem solved

Then we can package them
So when they get triggered, $gamemodearg is set to "", then we set %r to the parent, set $gamemodearg back and return %r

Problem solved
Stop trying to forget stuff up. There is no reason you shouldn't put a required add-on in the gamemode.txt file.