Code not working after fridays update

I have the evolve mod and divran had release some plugins for it, working fine before the update

Here is the sh_maplist.lua (goes in the plugins)
[lua]/------------------------------------------------------------------------------------------------------------------------- Get maps and gamemodes for use in the maps tab
-------------------------------------------------------------------------------------------------------------------------
/

local PLUGIN = {}
PLUGIN.Title = “Get Maps”
PLUGIN.Description = “Gets all maps on the server and sends them to the client for use in other plugins.”
PLUGIN.Author = “Divran”
PLUGIN.ChatCommand = nil
PLUGIN.Usage = nil
PLUGIN.Maps = {}
PLUGIN.Maps_Inverted = {}
PLUGIN.Gamemodes = {}
PLUGIN.Gamemodes_Inverted = {}

if !datastream then require"datastream" end

if (SERVER) then
function PLUGIN:GetMaps()
self.Maps = {}
self.Gamemodes = {}

	local files = file.Find( "../maps/*.bsp" )
	for k, filename in pairs( files ) do
		self.Maps[k] = filename:gsub( "%.bsp$", "" )
		self.Maps_Inverted[self.Maps[k]] = k
	end
	
	local folders = file.FindDir( "../gamemodes/*" )
	for k, foldername in pairs( folders ) do
		self.Gamemodes[k] = foldername
		self.Gamemodes_Inverted[foldername] = k
	end
end
PLUGIN:GetMaps()


function PLUGIN:PlayerInitialSpawn( ply )		
	timer.Simple( 1, function()
		if (ply and ply:IsValid()) then
			datastream.StreamToClients( ply, "ev_sendmaps", { self.Maps, self.Gamemodes } )
		end
	end)
end

else
function PLUGIN.RecieveMaps( handler, id, encoded, decoded )
PLUGIN.Maps = decoded[1]
PLUGIN.Gamemodes = decoded[2]
end
datastream.Hook(“ev_sendmaps”, PLUGIN.RecieveMaps)
end

function evolve:MapPlugin_GetMaps()
return PLUGIN.Maps, PLUGIN.Maps_Inverted
end

function evolve:MapPlugin_GetGamemodes()
return PLUGIN.Gamemodes, PLUGIN.Gamemodes_Inverted
end

evolve:RegisterPlugin( PLUGIN )[/lua]
and here is what goes in the menu tabs folder
[lua]/------------------------------------------------------------------------------------------------------------------------- Maps tab
-------------------------------------------------------------------------------------------------------------------------
/

local TAB = {}
TAB.Title = “Maps”
TAB.Description = “Change Map.”
TAB.Author = “Divran”
TAB.Width = 520
TAB.Icon = “gui/silkicons/world”

function TAB:Update() end

function TAB:ChangeLevel( what )
local map = self.MapList:GetLine(self.MapList:GetSelectedLine()):GetValue(1)
local gamemode = self.GamemodeList:GetLine(self.GamemodeList:GetSelectedLine()):GetValue(1)
if (map and map != “” and gamemode and gamemode != “”) then
if (what == “both”) then
RunConsoleCommand( “ev” , “map” , map, gamemode )
elseif (what == “map”) then
RunConsoleCommand( “ev” , “map” , map, GAMEMODE.Name)
elseif (what == “gamemode”) then
RunConsoleCommand( “ev” , “map” , game.GetMap(), gamemode )
end
end
end

function TAB:Initialize( pnl )

local w,h = self.Width, pnl:GetParent():GetTall()


self.MapList = vgui.Create( "DListView", pnl )
self.MapList:SetPos( 0, 2 )
self.MapList:SetSize( w / 2 - 2, h - 58 )
self.MapList:SetMultiSelect( false )
self.MapList:AddColumn("Maps")
local maps, _ = evolve:MapPlugin_GetMaps()
for _, filename in pairs(maps) do
	self.MapList:AddLine( filename )
end
self.MapList:SelectFirstItem()

self.GamemodeList = vgui.Create("DListView", pnl)
self.GamemodeList:SetPos( w / 2 + 2, 2 )
self.GamemodeList:SetSize( w / 2 - 4, h - 58 )
self.GamemodeList:SetMultiSelect( false )
self.GamemodeList:AddColumn("Gamemodes")
local gamemodes, _ = evolve:MapPlugin_GetGamemodes()
for _, foldername in pairs(gamemodes) do
	self.GamemodeList:AddLine( foldername )
end
self.GamemodeList:SelectFirstItem()

self.BothButton = vgui.Create("DButton", pnl )
self.BothButton:SetWide( w / 3 - 2 )
self.BothButton:SetTall( 20 )
self.BothButton:SetPos( w * (1/3) , h - 52 )
self.BothButton:SetText( "Change Map And Gamemode" )
function self.BothButton:DoClick()
	TAB:ChangeLevel( "both" )
end

self.MapButton = vgui.Create("DButton", pnl )
self.MapButton:SetWide( w / 3 - 2 )
self.MapButton:SetTall( 20 )
self.MapButton:SetPos( 0 , h - 52 )
self.MapButton:SetText( "Change Map" )
function self.MapButton:DoClick()
	TAB:ChangeLevel( "map" )
end

self.GamemodeButton = vgui.Create("DButton", pnl )
self.GamemodeButton:SetWide( w / 3 - 2 )
self.GamemodeButton:SetTall( 20 )
self.GamemodeButton:SetPos( w * (2/3) , h - 52 )
self.GamemodeButton:SetText( "Change Gamemode" )
function self.GamemodeButton:DoClick()
	TAB:ChangeLevel( "gamemode" )
end


self.Block = vgui.Create( "DFrame", pnl )
self.Block:SetDraggable( false )
self.Block:SetTitle( "" )
self.Block:ShowCloseButton( false )
self.Block:SetPos( 0, 0 )
self.Block:SetSize( w, h )
self.Block.Paint = function()
	surface.SetDrawColor( 46, 46, 46, 255 )
	surface.DrawRect( 0, 0, self.Block:GetWide(), self.Block:GetTall() )
	
	draw.SimpleText( "You need the Maps List Plugin ('sh_mapslist.lua') for this tab to work.", "ScoreboardText", self.Block:GetWide() / 2, self.Block:GetTall() / 2 - 20, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER )
end

if ( table.Count(maps) ) then self.Block:SetPos( self.Block:GetWide(), 0 ) end

end

evolve:RegisterTab( TAB )[/lua]

[editline]20th October 2011[/editline]

It only shows the game modes not maps :frowning:

Line 25 on the first one.

Change from


local files = file.Find( "../maps/*.bsp" )

To


local files = file.Find( "maps/*.bsp", true )

Not sure if file.FindDir is the same, but if it still doesn’t work, change line 31 on the first script.

Original


local folders = file.FindDir( "../gamemodes/*" )

Modified


 local folders = file.FindDir( "gamemodes/*", true )

thank you