gmod_src: Revamped Package System

Revision 602
Revamped Package System
File extraction is now done in background thread
If toybox entity has downloadable content, it won’t spawn without it.
Deletes cached download if script fails to run, or fails to download toybox content
Fixed bug where toybox content wouldn’t download until the second GMod run
Downloaded files are named in the console - IN PURPLE!!! Changed Files:
[ul]
[li]trunk/src_garrysmod/garrysmod/IGarrysMod.h [/li][li]trunk/src_garrysmod/garrysmod/garrysmod.cpp [/li][li]trunk/src_garrysmod/garrysmod/garrysmod.h [/li][li]trunk/src_garrysmod/garrysmod/http-connection.cpp [/li][li]trunk/src_garrysmod/garrysmod/http-connection.h [/li][li]trunk/src_garrysmod/garrysmod/toybox/Package.cpp [/li][li]trunk/src_garrysmod/garrysmod/toybox/Package.h [/li][li]trunk/src_garrysmod/garrysmod/toybox/PackageList.cpp [/li][li]trunk/src_garrysmod/garrysmod/toybox/SpawnPackage.cpp [/li][li]trunk/src_garrysmod/garrysmod/toybox/SpawnPackage.h [/li][li]trunk/src_garrysmod/garrysmod/toybox/ToyBox.cpp [/li][li]trunk/src_garrysmod/garrysmod/toybox/toybox.vpc[/li][/ul]
Added Files:
[ul]
[li]trunk/src_garrysmod/garrysmod/toybox/ContentPackage.cpp [/li][li]trunk/src_garrysmod/garrysmod/toybox/ContentPackage.h [/li][li]trunk/src_garrysmod/garrysmod/toybox/LivePackage.cpp [/li][li]trunk/src_garrysmod/garrysmod/toybox/LivePackage.h[/li][/ul]

Committed By Garry Newman

Purple?! :open_mouth:

Could we get a way to print in various colours to console, surely it won’t be that hard?

What for?

To make debugging pretty? :saddowns:

I liek pretteh.

[img_thumb]http://blackopsservers.com/imageupload/?di=1012845673688[/img_thumb]

Just realized I’m using easter themed colors… :v:

But yeah, a binding to ConColorMsg would be awesome…

At the moment I’m using chat.AddText but that’s quite a messy way to do it :\

Shh, don’t say that. Garry might remove it next update. :ohdear:

Yep, because unproductive and childish statements like that really help your case?

garry removed the debug library because I jokingly mentioned you could alter the new DHTML object using the debug library. Blackops isn’t making a childish statement, it’s true.

oh it was FlapJack who caused it… :cop:

My point still stands. How do statements like that about something COMPLETELY different help your case? It doesn’t.

There are more productive ways of saying things, and this isn’t one of them. I personally agree that the debug functions should be kept in. If something breaks, it should be a Lua coders responsibility to fix things. You don’t create things for Garry’s Mod if you can’t handle breakage.

thatsthejoke.jpg :haw:

Why would you need the debug library to alter the HTML Controls object?

That’s the joke. You can, but nobody ever would.

haHa! , what?