Custom Addon Framework 2

As I mentioned before I've been working on updates for everything, part of these updates include an updated version of CAF.

I've chosen for a new way to build up the framework, to make it easier for me to expand it, without actually have to modify the core of it every time.

Part of this includes that the actual CAF variable used in the code, contains almost no code anymore, but has a system to "dynamicly" load info from the CAF environment, which in terms makes it possible for me to add more functionality, without actually having to add it to the core hardcoded.

Here is the code incase anyone is interested:
Code:
local allowed = {"VERSION", "debug", "hook", "addons", "net", "log", "store", "other", "lang", "class", "gui", "stools", "_ENV"} -- This will change later on local meta = {} function meta.__index(self, key) if _G.table.HasValue(allowed, key) then if key == "_ENV" then return ENV -- The CAF environment end return ENV[key] -- The CAF environment end return nil end function meta.__newindex(self, key, value) return false end function meta.__concat(self, str1, str2) if str1 == self then return str1:__tostring()..str2 else return str1..str2:__tostring() end end function meta.__tostring(self) return "CAF "..VERSION end local obj = {} _G.setmetatable( obj, meta ) _G.CAF = obj;

continue reading »

Aug22

The fun you can have with random people

Part1:
http://www.youtube.com/watch?v=0e3PGMpVwIY


Part2:
http://www.youtube.com/watch?v=Afhk5VDCpb0


Part3:
http://www.youtube.com/watch?v=TFps0RHZx-w

continue reading »

Aug18

Plans for future updates

Plans for future updates to the site:
  • Add a wiki
  • Add project pages (Website itself, Spacebuild, Life Support, CAF, ...)
  • Implement json api
  • Add a bugtracker
  • Wait for some possible suggestions...

Plans for Garry'smod projects:

I know some of you guys think Spacebuild, Life Support, ... isn't being worked on anymore. Well those people are wrong. Everything is still being worked on, it's just going a lot slower then it used to go. Part of this is because I'm usualy busy with university, another part is because I'm rewriting all of it and I'm trying to make it work like it should for everyone this time. This means that in general it will take longer to develop, but it should be easier to maintain then the current version, which still has bugs/needs optimitisations in certain areas.

If anyone has any suggestions for any of the projects, please post something on the forums. I can't read minds you know :p

continue reading »

Aug17