• What are you working on? V3
    2,001 replies, posted
[QUOTE=mechanarchy;17508242]a2h, looking good. How do you get the query-count at the bottom of the page? I've tried doing that before using an easy method but it seems the only way you can actually do it is just increment a counter after every query. How long have you been working on that for? It looks pretty good.[/QUOTE] Or just increment it in another function, like so. [code]function db_query($query) { static $db_queries; global $db_queries; $result = mysql_query($query); if (!$result) { return false; } else { ++$db_queries; return $result; } }[/code] As for how long I've worked on it, well I've been working on and off on it over the past few months.
Explain to me, how do the global function work again. (And maybe static)
Right here. [url]http://au2.php.net/manual/en/language.variables.scope.php[/url]
Linking: brews, companies, categories.
[img]http://img.loldepot.com/54a764f56275f0c48165.png[/img] Repository Manager for my upcoming Garry's Mod Package Manager. Or just a generic Package Manager.
[QUOTE=a2h;17508807]Or just increment it in another function, like so. [code]function db_query($query) { static $db_queries; global $db_queries; $result = mysql_query($query); if (!$result) { return false; } else { ++$db_queries; return $result; } }[/code] [/QUOTE] What a messy function, you do know $result will already be false if the query fails? [code]function db_query($query) { global $db_queries; $result = mysql_query($query); if ( $result ) ++$db_queries; // only increase db_queries if query was successful return $result; }[/code]
There may be a point where he wants to insert code between if(!$result) { }
[QUOTE=Vampired;17510152]There may be a point where he wants to insert code between if(!$result) { }[/QUOTE] What exactly would he insert? If he wanted a mysql_error there wouldn't he have done that already?
Delicious progress on my bugtracker's single issue viewer :dance: [img]http://i36.tinypic.com/2nu4pph.png[/img]
[QUOTE=a2h;17510210]Delicious progress on my bugtracker's single issue viewer :dance: [img]http://i36.tinypic.com/2nu4pph.png[/img][/QUOTE] Lookin' good! also [url]http://welovebrew.com/[/url]
[QUOTE='-[ Fizzadar ]-;17510236']Lookin' good! also [url]http://welovebrew.com/[/url][/QUOTE] Nice! A image and some text!
[QUOTE=qurl;17510628]Nice! A image and some text![/QUOTE] Whewp! Actual site-to-be: [url]http://welovebrew.kerplunc.com/[/url] (stream thing isn't done, click BrewBrowser to see test stuff).
Started working on what I hope will be a more viable alternative to CEGUI. What things are important to you guys in an in-game GUI library?
[QUOTE=garry;17510879]Started working on what I hope will be a more viable alternative to CEGUI. What things are important to you guys in an in-game GUI library?[/QUOTE] Needs to be clear, easy to learn and take up as little screen as possible but at the same time easy to locate. (Hope this is what you meant) Here is what happens when you try to optimize your rendering and you get it very wrong: [URL=http://filesmelt.com/][IMG]http://filesmelt.com/downloader/wierdbug.png[/IMG][/URL] [b]Edit:[/b] I fixed it :D(at one point all was black and when you moved the tiles showed up, like on rts's when you can't see the map. It was cool) Now I only render surrounding tiles and I only call render when the player moves. Images are now loaded from an array, yay!
[QUOTE=garry;17510879]Started working on what I hope will be a more viable alternative to CEGUI. What things are important to you guys in an in-game GUI library?[/QUOTE] A kick-ass API, separate logic and layout completely.
Switched to use a Tree view instead since the other control was getting glitchy. Squatted a load of bothersome bugs and added some new things. Gradient is also a bit shinier. [img]http://img.loldepot.com/6fff0a46b627fc9dbd76.png[/img] I'd better start working on the package manager.
[QUOTE=VoiDeD;17502305]SSL is useful for that... and if you're paranoid that the FBI is watching your chat. :tinfoil:[/QUOTE] It doesn't take the FBI to sniff your school's wireless traffic and get access to your password and everything you say on the chat. I could do it and it would be trivial.
[img]http://filesmelt.com/downloader/graphicrougelike1.png[/img] Lava! Took way longer than expected because I had to redo my triggers, however it works very well :D I think I'm going to do map changing triggers then start on GUI (god help me).
[QUOTE=garry;17510879]Started working on what I hope will be a more viable alternative to CEGUI. What things are important to you guys in an in-game GUI library?[/QUOTE] famfam icons, lots and lots of famfam icons
[QUOTE=a2h;17508135]I am working on a bugtracking script for PHP. [media]http://i38.tinypic.com/hst004.png[/media][/QUOTE] Seems like quite a lot of queries.
I found a C++ Programming Book lying open on my dad's desk one day. Should I be concerned?
[QUOTE=The Inzuki;17513735]I found a C++ Programming Book lying open on my dad's desk one day. Should I be concerned?[/QUOTE] No you should be happy, I wish my dad would take interest in such things.
[QUOTE=MADmarine;17513817]No you should be happy, I wish my dad would take interest in such things.[/QUOTE] Well, he also took me out to Barnes and Nobles to get a C++ Programming Book. I also noticed he uses Steam, since I saw a receipt that he printed out. He bought Warhammer 40k from Steam :v:
Working on a sort of website for my iPod. [img]http://i35.tinypic.com/wlw0w8.png[/img]
Looks a bit oversized IMO.
Got a link to my thing [url]http://kweb.xz.lt/ikweb/[/url]
[url]http://imageflock.com/img/1253989225.png[/url] Making an image board because I can't think of anything. Taking a picture because I'm afraid someone will spam it with images and I won't be able to successfully IP ban them :C
[QUOTE=ddrl46;17515132]Got a link to my thing [url]http://kweb.xz.lt/ikweb/[/url][/QUOTE] Don't use tables for layout and too big.
lol @ above :P damnit, @above i mean The Inzuki I'm making comments display on brews, ugly yet functional for now: [url]http://welovebrew.kerplunc.com/brew/Test_Brew[/url]
I can't think of any site ideas. Besides, I can only think of an image board, but who will use it? :c
Sorry, you need to Log In to post a reply to this thread.