Is anyone actively porting this fantastic game for gmod 13?
Bump 4 sledbuild 2012
I looked through garry's documentation about shit that will break from gm12>gm13 and the only thing I could find in sledbuilds code was this (and i'm not a coder by any means)
[code]
[root@electron sledbuild]# grep -r timer.Simple *
entities/entities/lng_teleport/init.lua: timer.Simple(1, self.TeleportRacer, self, entity, self.AlreadyTeleported )
entities/entities/lng_teleport/init.lua: timer.Simple(1, self.TeleportRacer, self, entity, self.AlreadyTeleported )
entities/entities/lng_teleport/init.lua: timer.Simple(1, self.TeleportRacer, self, entity, self.AlreadyTeleported )
entities/entities/lng_teleport/init.lua: timer.Simple(1, self.TeleportRacer, self, entity, self.AlreadyTeleported )
entities/entities/lng_teleport/init.lua: timer.Simple(5, self.TeleportEmptySled, self, entity ) -- Teleport back the lost sled after X seconds (has to be less than executeprop !)
entities/entities/lng_teleport/init.lua: timer.Simple(20, self.executeprop, self, entity) -- Kill props and players
gamemode/init.lua: timer.Simple( 10, RoundClean ) -- (was 15)
gamemode/sv_statssaving.lua: //timer.Simple(1, PST_DelayedKeySend, ply )
[/code]
[I]Timer calls no longer take var args to pass to callback
timer.Simple( 10, MyFunc, ”hello”, 10, 10 )
timer.Simple( 10, function() MyFunc( “hello”, 10, 10) end )
or
local func = function()
MyFunc( “hello”, 10, 10)
end
timer.Simple( 10, func )
[/I]
Now I shall sit at my computer for the next 2-3 weeks pondering over what this all means.
-snip-
If anyone wants it:
Gamemode: [url=http://www.garrysmod.org/downloads/?a=view&id=132762]Here.[/url]
Ugly font fix: [url=http://pastebin.com/rKYtEGnS]Here.[/url] (Place in lua/autorun/, and by "ugly", I mean the code itself, it won't fix your ugly fonts :v:)
Thanks man. Hopefully someone can make a server with this gamemode.
[QUOTE=CarmineGear;37974856]Thanks man. Hopefully someone can make a server with this gamemode.[/QUOTE]
[url=http://www.gametracker.com/server_info/142.54.177.100:27019/][img]http://cache.www.gametracker.com/server_info/142.54.177.100:27019/b_560_95_1.png[/img][/url]
Bugs:
-The scoreboard doesn't work (so I'm using evolve's scoreboard
-There are missing textures down the sides of the map
-The timer doesn't work (for timing your run or your top speed etc)
-Most things don't work
Things that work?
-Building a sled, placing it on the line and waiting for the round to start.
If anyone can help with these bugs let me know.
[QUOTE=potato_eating;37975812]
Bugs:
-The scoreboard doesn't work (so I'm using evolve's scoreboard
-There are missing textures down the sides of the map
-The timer doesn't work (for timing your run or your top speed etc)
-Most things don't work
If anyone can help with these bugs let me know.[/QUOTE]
and those are with the one I posted?
I never played sledbuild before, so I didn't really know what to check. Then again, the scoreboard might have been a good place to start, hah. I can take a look at it, though the map bug I doubt is related to the code.
Edit: Scoreboard works for me, but my previous fix was silly :v: [url=http://www.garrysmod.org/downloads/?a=view&id=132762]Here you go.[/url]
[QUOTE=.\\Shadow};37980052]and those are with the one I posted?
I never played sledbuild before, so I didn't really know what to check. Then again, the scoreboard might have been a good place to start, hah. I can take a look at it, though the map bug I doubt is related to the code.
Edit: Scoreboard works for me, but my previous fix was silly :v: [url=http://www.garrysmod.org/downloads/?a=view&id=132762]Here you go.[/url][/QUOTE]
Hey, first of all thanks for taking the time to try and fix a classic gamemode, I for one really really appreciate it. The error I'm getting is this:
"[gamemodes/sledbuild/gamemode/cl_mbuttons.lua:72] attempt to perform arithmetic on local 'Width' (a nil value)(Hook: HUDDrawScoreBoard)
1. lua/includes/modules/hook.lua:111 (unknown)"
However I am running on linux, I'm hoping that has nothing to do with it.
Hah, oops. I forgot that garry removed some fonts that exist in GM12 by default, and awhile ago I re-created some that I used. A bit after that, garry made the function that creates fonts take a table instead of what it previously was, and to avoid having to switch over to that format, I just made the old function.
With that being said, just place this pile of shit inside garrysmodbeta/lua/autorun/ and name it whatever you want: -snip, post above has it-
[QUOTE=.\\Shadow};37981096]Hah, oops. I forgot that garry removed some fonts that exist in GM12 by default, and awhile ago I re-created some that I used. A bit after that, garry made the function that creates fonts take a table instead of what it previously was, and to avoid having to switch over to that format, I just made the old function.
With that being said, just place this pile of shit inside garrysmodbeta/lua/autorun/ and name it whatever you want: [url]http://pastebin.com/1kdcqghK[/url][/QUOTE]
Can you message me your steam ID? I can gift you a copy of either deus ex or worms reloaded as a token of my appreciation, and I may also have some small paid coding jobs in the future for you (if you're interested)
Sorry, you need to Log In to post a reply to this thread.