Author Topic: How can I enable other Addons while running a gamemode?  (Read 1006 times)

So usually when I'm running a Custom gamemode I can easily enable other Addons by using the exec command, but I'm trying to do this while running the Mafia Madness gamemode with no success. I've tried doing setmodpaths and transferring datablocks after exec'ing the file. So basically I want to enable Item_Sports while the Mafia Madness gamemode is running.

The only alternative I can really think of is adding ADDON Item_Sports to the gamemode.txt file of Mafia Madness.

$gamemodearg="";exec("path");$gamemodearg="add-ons/gamemode_mafia_madness/gamemode.txt";

If I remember right

$gamemodearg="";exec("path");$gamemodearg="add-ons/gamemode_mafia_madness/gamemode.txt";

If I remember right
Do I use that command after I exec the addon?

Okay I did the .txt method and added all the addons i wanted. Every addon got enabled and worked EXCEPT for item_sports. Anyone know why?

Can't you just enable them using a Custom game mode?

Can't you just enable them using a Custom game mode?
No, it needs to be on the MM gamemode. I've tried it already. All of the addons I added to the .txt enabled with no issue except for Item_Sports. Here's what I have if anyone can help:

Code: [Select]
//add-ons to load
ADDON Bot_Blockhead
ADDON Bot_Hole
ADDON Brick_1RandomPack
ADDON Brick_Arch
ADDON Brick_Halloween
ADDON Brick_Large_Cubes
ADDON Brick_Print_Icons
ADDON Brick_PrintPlates
ADDON Brick_Teledoor
ADDON Brick_Zones
ADDON Emote_Alarm
ADDON Emote_Confusion
ADDON Emote_Critical
ADDON Emote_Hate
ADDON Emote_Love
ADDON Event_setPlayerTransform
ADDON Event_Variables
ADDON Gamemode_Mafia_Madness
ADDON Item_BasketballPassing
ADDON Item_Shield
ADDON Item_Sports
ADDON Light_Ambient
ADDON Player_No_Jet
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_Letters_Extra
ADDON Print_Screens_Default
ADDON Projectile_Pong
ADDON Script_AdminShields
ADDON Script_ClearSpam
ADDON Script_Eval
ADDON Script_IPLog
ADDON Script_ToggleLights
ADDON Server_AdminChat
ADDON Server_AdminControlsManager
ADDON Server_LogWriter
ADDON Sound_BasketballSounds
ADDON System_ReturnToBlockland
ADDON Tool_Duplicator
ADDON Tool_Fill_Can
ADDON Weapon_ButterflyKnife
ADDON Weapon_Gun
ADDON Weapon_Melee_Extended
ADDON Weapon_Model1887
ADDON Weapon_Package_Tier1
ADDON Weapon_Package_Tier2
ADDON Weapon_SFRevolver
ADDON Weapon_Shotgun
ADDON Weapon_Sniper_Rifle
ADDON Weapon_Sword

NOEDIT: The sports items and fillcan are the only addons on that list that wont enable.

item_sports needs item_skis. since this is a gamemode it will not auto load it.

item_sports needs item_skis. since this is a gamemode it will not auto load it.
It needs item skis enabled to work?

It needs item skis enabled to work?
Correct.
Item_Sports relies on Item_Skis for some of it's features.