space build 2 error

hey guys i have space build 2 on my server (using 2 cas 3 is shit and 2 complicated) but i get this error


 
ERROR: GAMEMODE:'PlayerSpawn' Failed: sandbox/gamemode/init.lua:40: stack overflow


and the players spawn with no weps no toolgun no phygun can anyone help

Enzo

open init.lua in garrysmod/gamemode/spacebuild/gamemode, what is on line 40?

The spacebuild gamemode isn’t the problem, sandbox’s init is breaking which means everything else is. For some reasons it blocks you on this :


function GM:PlayerSpawn( pl )

	self.BaseClass.PlayerSpawn( self, pl ) // This is line 40
	
	// Set the player's speed
	GAMEMODE:SetPlayerSpeed( pl, 250, 500 )
	
end

is there a fix? :slight_smile:

You’ll have to copy paste the function from the base gamemode and mix it with the one in the sandbox gamemode and paste that into the SB gamemode. This is something Garry broke for a year or so already, so appart from that ‘temp’ fix there is nothing you can do about it, Except bugging Garry about it to fix it. Which he probably won’t.

could anyone do this for me i suck at lua i will love you for ever if you help :wink: