• What are you working on? November 2011 Edition
    3,673 replies, posted
[table="width: 100%, align: center"] [tr] [td="width: 100%, align: center"][IMG]http://i.imgur.com/bK3RZ.png[/IMG][/td] [/tr] [/table] Here's a header logo for the new thread. Do you want a "Highlights" header as well? Anything else we need besides highlights (obviously)? [editline]1st December 2011[/editline] [QUOTE=DrLuke;33522464]Awards for special stuff[/QUOTE] You want me to just make some up or something? Most helpful, funniest post, etc.? [editline]1st December 2011[/editline] Alternative title header [table="width: 100%, align: center"] [tr] [td="width: 100%, align: center"][IMG]http://i.imgur.com/SvdqY.png[/IMG][/td] [/tr] [/table]
Or someone just go though [URL="http://www.facepunch.com/fp_images.php?t=1137375"]all the images[/URL] and pick out the cool ones.
Here you go, I have to split for college in about 6 minutes so yeah. [IMG]http://i.imgur.com/LBWXk.png[/IMG] [editline]1st December 2011[/editline] [IMG]http://i.imgur.com/JQyZQ.png[/IMG]
[QUOTE=BlkDucky;33522381]yes. we have no highlights. A new thread is silly without highlights since that's kinda the whole reason to make a new thread in the first place.[/QUOTE] Okay [code] waywo_dec = null [/code]
Here's to December! Happy holidays everyone. When I get back, more Facepunch API stuff.
[QUOTE=supersnail11;33516696]Found these in the graphics folder, what the fuck? [t]http://dl.dropbox.com/u/23280705/cakelink/team1.jpg[/t] [t]http://dl.dropbox.com/u/23280705/cakelink/team2.jpg[/t] [t]http://dl.dropbox.com/u/23280705/cakelink/team3.jpg[/t] [t]http://dl.dropbox.com/u/23280705/cakelink/team4.jpg[/t][/QUOTE] Late reply, but first answer: When you get revoked, quit the game then start it again and login with the revoked agent When the message pops up, there is a hidden button in the top-left of the screen. Click it and you get the developer messages with their mottos and these graphics are used Chris' motto is "The first of the children, the last of the bedroom programmers"
*snip wrong thread*
[QUOTE=Jimmylaw;33523369]Silly question, but now that animals don't spawn randomly as much. What is the best method to create a farm, I read somewhere that they follow you if you are carrying wheat but this doesn't seem to work for me![/QUOTE] I think you're in the wrong thread.
[QUOTE=Jimmylaw;33523369]Silly question, but now that animals don't spawn randomly as much. What is the best method to create a farm, I read somewhere that they follow you if you are carrying wheat but this doesn't seem to work for me![/QUOTE] What the fuck?
[QUOTE=Jimmylaw;33523369]Silly question, but now that animals don't spawn randomly as much. What is the best method to create a farm, I read somewhere that they follow you if you are carrying wheat but this doesn't seem to work for me![/QUOTE] Wrong thread bro.
Implemented Math functions in my Complex class. [lua]Complex = {} function Complex:new(real, imaginary) local obj = {} obj.r = real obj.i = imaginary setmetatable(obj, { __index = Complex, __add = (function(a, b) local z = a z.r = z.r + b.r z.i = z.i + b.i return z end), __sub = (function(a, b) local z = a z.r = z.r - b.r z.i = z.i - b.i return z end), __mul = (function(a, b) local z = Complex:new(0, 0) z.r = a.r*b.r - a.i*b.i z.i = a.r*b.i + a.i*b.r return z end), __eq = (function(a, b) if ((a.r == b.r) and (a.i == b.i)) then return true else return false end end) }) return obj end[/lua]
[IMG]http://i.imgur.com/nGLKh.png[/IMG] Funny exercise from out book :v: [editline]1st December 2011[/editline] Got so fucking happy when my implementation of items worked.
Released the first version of my s3eAdWhirl extension for fellow Marmalade developers: [url]http://www.madewithmarmalade.com/devnet/forum/6741[/url] Feels good provide something of value to people :)
Should really pay more attention to what thread's I have opened before I post, sorry for the confusion everyone!
I got textures working [img]http://dl.dropbox.com/u/4838268/texture.png[/img] I'm using OpenIL, which uses multi-threaded file input, which crashes everything, I have to use some hacky code until I get it to recompile If your wondering about the sad face, depression issues
[QUOTE=Tobba;33524313]If your wondering about the sad face, depression issues[/QUOTE] I feel you, man. [editline]2nd December 2011[/editline] Holy crap while I was passed out and wondering why my brain makes up fake noises for silent motions (seriously, I put a chair down on carpet and I heard "badum", am I crazy?), I missed out on some really golden posts and discussions.
[QUOTE=Jookia;33524370]I feel you, man. [editline]2nd December 2011[/editline] Holy crap while I was passed out and wondering why my brain makes up fake noises for silent motions (seriously, I put a chair down on carpet and I heard "badum", am I crazy?), I missed out on some really golden posts and discussions.[/QUOTE] Maybe you're some kind of weird synthesite (is this a word?) who hears perceived stops in motion. OR You stopped taking your pills for psychosis again.
About that if-elseif code earlier and garry's remark about abstract factories fixing it, wouldn't that just move the if structures elsewhere instead of actually getting rid of them? Although Source seems to use a lot of macro magic, some of which might be there exactly to deal with this issue.
[QUOTE=esalaka;33524787]About that if-elseif code earlier and garry's remark about abstract factories fixing it, wouldn't that just move the if structures elsewhere instead of actually getting rid of them? Although Source seems to use a lot of macro magic, some of which might be there exactly to deal with this issue.[/QUOTE] No, because the factory would lookup something in a dictionary, that's the point. Instead of using a bunch of if-else checks, use a dictionary and a factory for lookup and creation.
sometimes, using a factory just over-engineers the problem
[QUOTE=icantread49;33525035]sometimes, using a factory just over-engineers the problem[/QUOTE] I think it's appropriate to just use an if-else check for a small set of lookups, I suppose, but if you're doing something like a class creation abstraction, you should really be creating a dictionary and factory system. It's in your best interest then. Because then you can do so much more with the dictionary itself instead of writing redundant code. It's a lot cleaner in terms of data access and comparison, too.
[QUOTE=amcfaggot;33525000]No, because the factory would lookup something in a dictionary, that's the point. Instead of using a bunch of if-else checks, use a dictionary and a factory for lookup and creation.[/QUOTE] I was more thinking "you can't automatize the adding of these classes into your abstract factory". And now that you mentioned that I just thought of a way it could be done perfectly well. Just needs a global array or a global instance of a class you can get the array values from somehow and this idea would be a working solution. God dammit now I want to make something like this but it would never benefit anyone because I don't finish my projects and it would be useless by itself :v:
[QUOTE=esalaka;33525140]I was more thinking "you can't automatize the adding of these classes into your abstract factory".[/QUOTE] [url=http://hl2sb-src.googlecode.com/svn/trunk/src/game/shared/hl2mp/weapon_hl2mpbase_scriptedweapon.cpp]Scripted weapons.[/url] [cpp]// LINK_ENTITY_TO_CLASS( weapon_hl2mpbase_scriptedweapon, CHL2MPScriptedWeapon ); // PRECACHE_WEAPON_REGISTER( weapon_hl2mpbase_scriptedweapon ); // These functions replace the macros above for runtime registration of // scripted weapons. #ifdef CLIENT_DLL static C_BaseEntity *CCHL2MPScriptedWeaponFactory( void ) { return static_cast< C_BaseEntity * >( new CHL2MPScriptedWeapon ); }; #endif #ifndef CLIENT_DLL static CUtlDict< CEntityFactory<CHL2MPScriptedWeapon>*, unsigned short > m_WeaponFactoryDatabase; #endif void RegisterScriptedWeapon( const char *className ) { #ifdef CLIENT_DLL if ( GetClassMap().FindFactory( className ) ) { return; } GetClassMap().Add( className, "CHL2MPScriptedWeapon", sizeof( CHL2MPScriptedWeapon ), &CCHL2MPScriptedWeaponFactory, true ); #else if ( EntityFactoryDictionary()->FindFactory( className ) ) { return; } unsigned short lookup = m_WeaponFactoryDatabase.Find( className ); if ( lookup != m_WeaponFactoryDatabase.InvalidIndex() ) { return; } // Andrew; This fixes months worth of pain and anguish. CEntityFactory<CHL2MPScriptedWeapon> *pFactory = new CEntityFactory<CHL2MPScriptedWeapon>( className ); lookup = m_WeaponFactoryDatabase.Insert( className, pFactory ); Assert( lookup != m_WeaponFactoryDatabase.InvalidIndex() ); #endif // BUGBUG: When attempting to precache weapons registered during runtime, // they don't appear as valid registered entities. // static CPrecacheRegister precache_weapon_(&CPrecacheRegister::PrecacheFn_Other, className); } void ResetWeaponFactoryDatabase( void ) { #ifdef CLIENT_DLL #ifdef LUA_SDK GetClassMap().RemoveAllScripted(); #endif #else int c = m_WeaponFactoryDatabase.Count(); for ( int i = 0; i < c; ++i ) { delete m_WeaponFactoryDatabase[ i ]; } m_WeaponFactoryDatabase.RemoveAll(); #endif } [/cpp]
Didn't I just say that now that you mentioned that I could think of a way? Jeez, way to read my posts. [editline]1st December 2011[/editline] Also wasn't there a WAYWO post rating scraper somewhere that could be used to gen hilights
Just showing you an example
ffmpeg is kind of stupid. They go on about how it's open source and awesome, except you should probably put a link to their website on ever page of your product, and in your about screen, and boot up screen and redistribute the source on the same server as your product. But then they mention that if you're a commercial project you probably shouldn't use it anyway because you will get sued by patent trolls. Blargh. Fucking open source with clauses.
[QUOTE=garry;33525294]But then they mention that if you're a commercial project you probably shouldn't use it anyway because you will get sued by patent trolls. Blargh. Fucking open source with clauses.[/QUOTE] Well TBH patent trolling doesn't have much to do with it being open source. It's prob'ly a bit like LAME - nobody cares if you use it personally but holy fuck will they if you start making profit with anything using the MP3 format without a licence.
[QUOTE=garry;33525294]ffmpeg is kind of stupid. They go on about how it's open source and awesome, except you should probably put a link to their website on ever page of your product, and in your about screen, and boot up screen and redistribute the source on the same server as your product. But then they mention that if you're a commercial project you probably shouldn't use it anyway because you will get sued by patent trolls. Blargh. Fucking open source with clauses.[/QUOTE] A few pages back I went on a little rant about that kind of thing.
You now can pick up stuff from the FP terminal simulator. Now on to dropping stuff.
[QUOTE=garry;33525294]ffmpeg is kind of stupid. They go on about how it's open source and awesome, except you should probably put a link to their website on ever page of your product, and in your about screen, and boot up screen and redistribute the source on the same server as your product. But then they mention that if you're a commercial project you probably shouldn't use it anyway because you will get sued by patent trolls. Blargh. Fucking open source with clauses.[/QUOTE] What if you didn't include it in vanilla gmod, but distribute it as a free addon? That way you wouldn't be using it in a commercial way, but you could still use it.
Sorry, you need to Log In to post a reply to this thread.