Hi guys,i'm italian player of Civ.5 and I tried to install two mods but when I start a new game (or load a save) the game freeze and I must restart my Mac..
I modified my MainMenu.lua,and is it :
I put the mod in MODS floder of Civ.5,i enabled the mod in the mods panel but the game freeze when i load a savegame or a start new game...solutions?
PS : Sorry for my bad english ^^
I modified my MainMenu.lua,and is it :
Spoiler :
-------------------------------------------------
-- Main Menu
-------------------------------------------------
-------------------------------------------------
-- Script Body
-------------------------------------------------
local bHideUITest = true;
local bHideGridExamples = true;
local bHideLoadGame = true;
local bHidePreGame = true;
local fTime = 0;
local i1, i2 = string.find( UI.GetVersionInfo(), " " );
versionNumber = string.sub(UI.GetVersionInfo(), 1, i2-1);
Controls.VersionNumber:SetText(versionNumber);
function ShowHideHandler( bIsHide, bIsInit )
if( not bIsHide ) then
Controls.Civ5Logo:SetTexture( "CivilzationV_Logo.dds" );
-- This is a catch all to ensure that mods are not activated at this point in the UI.
-- Also, since certain maps and settings will only be available in either the modding or multiplayer
-- screen, we want to ensure that "safe" settings are loaded that can be used for either SP, MP or Mods.
-- Activating the DLC (there doesn't have to be any) will make sure no mods are active and all the user's
-- purchased content is available
Modding.ActivateDLC();
PreGame.LoadPreGameSettings();
else
Controls.Civ5Logo:UnloadTexture();
end
-- MAC_PORT - rickb
--Controls.ModsButton:SetHide( true );
end
ContextPtr:SetShowHideHandler( ShowHideHandler );
-------------------------------------------------
-- Event Handler: ConnectedToNetworkHost
-------------------------------------------------
-------------------------------------------------
-- StartGame Button Handler
-------------------------------------------------
function SinglePlayerClick()
UIManager:QueuePopup( Controls.SinglePlayerScreen, PopupPriority.SinglePlayerScreen );
end
Controls.SinglePlayerButton:RegisterCallback( Mouse.eLClick, SinglePlayerClick );
-------------------------------------------------
-- Multiplayer Button Handler
-------------------------------------------------
function MultiplayerClick()
UIManager:QueuePopup( Controls.MultiplayerSelectScreen, PopupPriority.MultiplayerSelectScreen );
end
Controls.MultiplayerButton:RegisterCallback( Mouse.eLClick, MultiplayerClick );
-------------------------------------------------
-- Mods button handler
-------------------------------------------------
function ModsButtonClick()
UIManager:QueuePopup( Controls.ModsEULAScreen, PopupPriority.ModsEULAScreen );
end
Controls.ModsButton:RegisterCallback( Mouse.eLClick, ModsButtonClick );
-------------------------------------------------
-- UITest Button Handler
-------------------------------------------------
--[[
function UITestRClick()
bHideUITest = not bHideUITest;
Controls.UITestScreen:SetHide( bHideUITest );
end
Controls.OptionsButton:RegisterCallback( Mouse.eRClick, UITestRClick );
--]]
-------------------------------------------------
-- Options Button Handler
-------------------------------------------------
function OptionsClick()
UIManager:QueuePopup( Controls.OptionsMenu_FrontEnd, PopupPriority.OptionsMenu );
end
Controls.OptionsButton:RegisterCallback( Mouse.eLClick, OptionsClick );
-------------------------------------------------
-- Hall Of Fame Button Handler
-------------------------------------------------
function OtherClick()
UIManager:QueuePopup( Controls.Other, PopupPriority.OtherMenu );
end
Controls.OtherButton:RegisterCallback( Mouse.eLClick, OtherClick );
-------------------------------------------------
-- Exit Button Handler
-------------------------------------------------
function OnExitGame()
Events.UserRequestClose();
end
Controls.ExitButton:RegisterCallback( Mouse.eLClick, OnExitGame );
----------------------------------------------------------------
----------------------------------------------------------------
Steam.SetOverlayNotificationPosition( "bottom_left" );
-------------------------------------------------
-- Event Handler: MultiplayerGameLaunched
-------------------------------------------------
function OnGameLaunched()
UIManager
equeuePopup( ContextPtr );
end
Events.MultiplayerGameLaunched.Add( OnGameLaunched );
-- Main Menu
-------------------------------------------------
-------------------------------------------------
-- Script Body
-------------------------------------------------
local bHideUITest = true;
local bHideGridExamples = true;
local bHideLoadGame = true;
local bHidePreGame = true;
local fTime = 0;
local i1, i2 = string.find( UI.GetVersionInfo(), " " );
versionNumber = string.sub(UI.GetVersionInfo(), 1, i2-1);
Controls.VersionNumber:SetText(versionNumber);
function ShowHideHandler( bIsHide, bIsInit )
if( not bIsHide ) then
Controls.Civ5Logo:SetTexture( "CivilzationV_Logo.dds" );
-- This is a catch all to ensure that mods are not activated at this point in the UI.
-- Also, since certain maps and settings will only be available in either the modding or multiplayer
-- screen, we want to ensure that "safe" settings are loaded that can be used for either SP, MP or Mods.
-- Activating the DLC (there doesn't have to be any) will make sure no mods are active and all the user's
-- purchased content is available
Modding.ActivateDLC();
PreGame.LoadPreGameSettings();
else
Controls.Civ5Logo:UnloadTexture();
end
-- MAC_PORT - rickb
--Controls.ModsButton:SetHide( true );
end
ContextPtr:SetShowHideHandler( ShowHideHandler );
-------------------------------------------------
-- Event Handler: ConnectedToNetworkHost
-------------------------------------------------
-------------------------------------------------
-- StartGame Button Handler
-------------------------------------------------
function SinglePlayerClick()
UIManager:QueuePopup( Controls.SinglePlayerScreen, PopupPriority.SinglePlayerScreen );
end
Controls.SinglePlayerButton:RegisterCallback( Mouse.eLClick, SinglePlayerClick );
-------------------------------------------------
-- Multiplayer Button Handler
-------------------------------------------------
function MultiplayerClick()
UIManager:QueuePopup( Controls.MultiplayerSelectScreen, PopupPriority.MultiplayerSelectScreen );
end
Controls.MultiplayerButton:RegisterCallback( Mouse.eLClick, MultiplayerClick );
-------------------------------------------------
-- Mods button handler
-------------------------------------------------
function ModsButtonClick()
UIManager:QueuePopup( Controls.ModsEULAScreen, PopupPriority.ModsEULAScreen );
end
Controls.ModsButton:RegisterCallback( Mouse.eLClick, ModsButtonClick );
-------------------------------------------------
-- UITest Button Handler
-------------------------------------------------
--[[
function UITestRClick()
bHideUITest = not bHideUITest;
Controls.UITestScreen:SetHide( bHideUITest );
end
Controls.OptionsButton:RegisterCallback( Mouse.eRClick, UITestRClick );
--]]
-------------------------------------------------
-- Options Button Handler
-------------------------------------------------
function OptionsClick()
UIManager:QueuePopup( Controls.OptionsMenu_FrontEnd, PopupPriority.OptionsMenu );
end
Controls.OptionsButton:RegisterCallback( Mouse.eLClick, OptionsClick );
-------------------------------------------------
-- Hall Of Fame Button Handler
-------------------------------------------------
function OtherClick()
UIManager:QueuePopup( Controls.Other, PopupPriority.OtherMenu );
end
Controls.OtherButton:RegisterCallback( Mouse.eLClick, OtherClick );
-------------------------------------------------
-- Exit Button Handler
-------------------------------------------------
function OnExitGame()
Events.UserRequestClose();
end
Controls.ExitButton:RegisterCallback( Mouse.eLClick, OnExitGame );
----------------------------------------------------------------
----------------------------------------------------------------
Steam.SetOverlayNotificationPosition( "bottom_left" );
-------------------------------------------------
-- Event Handler: MultiplayerGameLaunched
-------------------------------------------------
function OnGameLaunched()
UIManager

end
Events.MultiplayerGameLaunched.Add( OnGameLaunched );
I put the mod in MODS floder of Civ.5,i enabled the mod in the mods panel but the game freeze when i load a savegame or a start new game...solutions?
PS : Sorry for my bad english ^^