Garry's Mod

Garry's Mod

Cloudbox - The new Toybox!
412 Comments
Darth  [author] 20 Jul @ 8:53pm 
Gmod is getting an update in 2 days which will massively improve the web browser panel technology by replacing the ancient Awesomium (18) with CEF 86 on Windows. We've been waiting for this for a long time as it will allow us to upgrade the Cloudbox web panel with things that we couldn't efficiently do before.

First update will be structural and you probably won't see any changes except that it feels smoother.

After that I'm going to be working on a "View Lua Code" page so you can see the original Gmod 12 lua for every item without having to dig through the downloaded cache files.

And I'll be working on the ability for admins to whitelist/blacklist items on servers by simply right-clicking an item and toggling a checkbox.

There'll probably also be some compatibility layer updates during this time. We need to improve how we know which items need fixing so I'm hoping to also add a "report bug" feature.
Darth  [author] 20 Jul @ 8:52pm 
@brunoski - That's an idea that I wouldn't be surprised if Pancakes decided to do one day, using the Cloudbox infrastructure but a separate library of modern mods with open submissions. There are no specific plans for anything like that at the moment though.
brunoski 20 Jul @ 7:27pm 
i would like something like toybox but with modern hotload-able mods, good addon tho
Darth  [author] 18 Jul @ 8:35pm 
@mac - Cloudbox's Options will let you clear it in-game, but if you want to clear it manually or browse the files they're located in garrysmod\data\cloudbox\downloads - it's safe to delete anything in there as it'll just redownload when you spawn it if it's no longer in your cache.
mac (2008) 18 Jul @ 12:27pm 
where are cached downloads located in the gmod files?
Darth  [author] 15 Jul @ 8:14pm 
@icewallowpis - Nothing should impact your game after a restart, especially if you've cleared your cache. Do you remember what the item was called, so we can investigate the code?
It could also be unrelated to a Toybox item. Try disabling all workshop addons and see if that fixes it, then re-enable them in groups to figure out which one causes it.
icewallowpis 15 Jul @ 9:49am 
i installed a mod presumably like a vehicle mod or something in the cloudbox and it was like a black rocket and it gave you a toolgun tool but for some reason it made my player smaller and broken/slow i dunno how to revert it cuz i even deleted my downloads cache in options
Darth  [author] 11 Jul @ 11:48pm 
@craxxybraxxy - entities and weapons use "toybox_[id]", eg "toybox_1234" via scripted_ents.Register and weapons.Register - you can find the ID by checking the ID in your data/cloudbox folder once downloaded, or you can search it in advance here https://cl0udb0x.com/ and have a look at the data-itemid via Inspect Element. eg "Sonic Speed-up Box" is data-itemid="1904", so it'll be registered as "toybox_1904" in game.
craxxybraxxy 11 Jul @ 11:29pm 
how do i get toybox entity/weapon ids? i want to restrict spawning certain things ex. admin guns and crow spawners
Darth  [author] 10 Jul @ 11:35pm 
@SillySpaceCat - Cloudbox won't contain content that didn't come from Toybox. But you can download old versions of gm_construct uploaded by garry himself https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=104200926 - includes the pre-13 versions from Gmod 10-12, and includes the pre-Steam versions.
SillySpaceCat 10 Jul @ 7:27pm 
Also, can you please package fixed versions of the default Garry's Mod 12 maps and gamemodes for Garry's Mod 13 in Cloudbox?
SillySpaceCat 10 Jul @ 7:25pm 
Thanks for finally updating. i'll forever use this.
КАНЬЕ ВЕСТ 8 Jul @ 7:53am 
yeeees
MrGeRoI 5 Jul @ 2:56am 
Holy shit we are back to the 2010
Dune Jumper 27 Jun @ 11:49pm 
This is like time traveling and saving the library of alexandria
AwesomeLilBuddy 27 Jun @ 4:33pm 
as a baby that never had the toybox, this is cool, googoo, gaga.
Drake2014 25 Jun @ 8:51pm 
its so cool! i sall this on a vid
✠CFalcon075✠ 24 Jun @ 9:29pm 
@Darth I knew it was Base64, just wanted to explain to ebes that the "gibberish" can actually be solved.
Darth  [author] 24 Jun @ 9:27pm 
@ebes @CFalcon - I didn't work on the download aspect so I forgot the lua script itself was cached in the json as Pancakes said. oops!

It's not actually gibberish, the "data" string is base64 encoded for network transfer. Here's a site that'll do base64 decoding https://www.base64decode.org/
For example if you paste in "VGhpcyBpcyBhIHRlc3QgbWVzc2FnZSE=" and click "decode" you'll see it comes out with "This is a test message!"

Gmod itself also has a function for it if you're looking to do something in Lua itself. https://wiki.facepunch.com/gmod/util.Base64Decode - for example:
print( util.Base64Decode( "VGhpcyBpcyBhIHRlc3QgbWVzc2FnZSE=" ) )
will print "This is a test message!" to the console.

We process the Gmod12 lua against our compatibility layer live at runtime, so the result you get won't be exactly the same as what Cloudbox is running but if you're looking to extract scripts then you'd probably be wanting the original unmodified Gmod12 code anyway.
✠CFalcon075✠ 24 Jun @ 12:23pm 
@ebes A while back, I had created myself a Cloudbox file downloader that decodes the gibberish into actual readable code. If you want it, we can chat.
ebes 24 Jun @ 11:20am 
Seemingly there might be ALOT OF coding / formatting having to be put into this just to make it functional, as the "data" string seems to just have gibberish in it.
ebes 24 Jun @ 11:10am 
formatting it, in a way surprisingly gives out absolutely no vital information.
I might dwell deeper into this.
henry.g.luellen 24 Jun @ 10:22am 
I LOVE how there is an offline mode:steamhappy:
Pancakes  [author] 24 Jun @ 9:38am 
@ebes Scripts are stored separately from the GMA, they're in the JSON file for a download instead.
ebes 23 Jun @ 9:00am 
Regarding the awaiting, I hope the update comes by smoothly and quickly.
ebes 23 Jun @ 8:44am 
I'm no developer or coder, therefore I have no use of the gmod 12 era lua, apologies!
ebes 23 Jun @ 8:43am 
well I've merrily FUCKED myself, the lua file is apparently unable to be unpacked using gmad due to some error in the code, continuing evermore I'll probably just mess around and find out
Darth  [author] 23 Jun @ 7:31am 
@ebes - if the item has assets like models/materals/sounds they're downloaded into "garrysmod\data\cloudbox\downloads" inside a .gma, you can use gmad.exe to extract them.

The lua itself is not included as it is live-patched at runtime. You can get the unpatched Gmod 12 era lua by viewing it here https://toybox.flatgrass.net/view/1/code - just replace the '1' with the item ID.
This isn't viewable yet on https://cl0udb0x.com/ (the ingame website, also viewable in browser) but I'm hoping to add a view for it soon. Waiting on an upcoming Gmod update so we can improve the in-game website.
ebes 23 Jun @ 6:52am 
Sorry if this is asking for alot, but is there a possible way to salvage one of the "addons" from this addon? (Sorry if this sounds weird, I'll be explaining further more.)
I understand that you guys understand that CloudBox houses alot of addons, formerly which are selected into groups as entities, weapons and maps.
I was wondering whether it is possible to extract any addon "Like the just mentioned entities or weapons" from CloudBox itself.
brunoski 18 Jun @ 3:18pm 
i love that downloading mod screen
✠CFalcon075✠ 1 Jun @ 9:29pm 
@Darth Perfect!! Thank you!
Darth  [author] 1 Jun @ 9:25pm 
We've created a new web page with information about Cloudbox for Gmod 13 and Toybox for Gmod 12. If you're interested please visit https://flatgrass.net/toybox.html
You can also browse Cloudbox's content out-of-game via https://cl0udb0x.com/ which is the same interface you see in-game.

We've been working on other projects and improved Toybox support for Gmod 12, but I'm hoping we can do some more compatibility layer patches and feature improvements for Cloudbox soon. One thing I'm hoping to be able to address is a better way to submit bug reports so we know what people want fixed.
The LAMBDA player 23 May @ 4:47pm 
if yall are getting error spam then just get lua patcher,it fixes almost every single thing including some of these toybox scripts
Perkins2342 22 May @ 2:18pm 
the goat
FogIsComming 7 May @ 10:24pm 
cool job guys :steamthumbsup: :steamthis:
henry.g.luellen 6 May @ 4:30pm 
WHY CANT I place props :(
✠CFalcon075✠ 5 May @ 6:49pm 
@AubergineEnthusiast ?
AubergineEnthusiast 5 May @ 6:06pm 
glue library flashbacks'
No1129 5 May @ 12:53pm 
blaze i think there just working on a other gmod thing
BlazeTheCatMan 14 Apr @ 4:41pm 
i am kind of getting tied of how slow the development process of this is going i wish pancakes and darth would just speed it up! i feel like this is getting abandoned and turning out like another of those toybox revival attempts again. i hope they finish the compatibility layers already.
Grass toucher real not fake 4 Apr @ 11:11am 
the game works now, i had some addons, and they worked fine but after installing cloudbox one of them broke (i didn't need it anyway). now the cloudbox doesn't work, ig bc some addons broke it
bkgarner00 28 Mar @ 12:05am 
will give it a try just booted up garrys mod for the first time since like 2011 and did not know toybox was gone
HappyCapybara 25 Mar @ 12:38pm 
great addon, but when i load a save with the cloudbox addons the addons dont show up
mid player 19 Mar @ 8:56am 
this looks really cool! :steamhappy:
Darth  [author] 19 Mar @ 4:26am 
@I smok weed - If you're stuck on the loading screen, try the 'reconnect' button. If that doesn't fix it, can you check if there are any Cloudbox messages in console?
Grass toucher real not fake 19 Mar @ 4:21am 
it works but im stuck on loading screen
Grass toucher real not fake 19 Mar @ 4:07am 
it doesn't work, like, i searched and just couldn't find it anywhere, NPC, entities, guns, another things i just can't, is it broken or something? or it's just me
kvadrober 15 Mar @ 9:10am 
you can create props and save:box::box:
kvadrober 15 Mar @ 9:08am 
props not works:box:
Darth  [author] 4 Mar @ 9:56pm 
@choops - garry didn't include the lua code or metadata in that torrent unfortunately. I believe Pancakes does use that bundle for materials/models/etc when it's possible to match them with recovered lua files. thanks for sharing though!