• What Are You Working On Jan 2013
    1,974 replies, posted
It technically [I]is[/I] yellow, it's just that it's simpler if I call it green (plus, it looks greenish on my monitor).
Can load and extract addons now! [url]https://github.com/garrynewman/gmad/blob/master/src/extract_gmad.cpp[/url]
I finally managed to push my changes to GitHub :dance: If you ever have trouble pushing with Hg-Git, here's a workaround: If you want to save disk space, first kill the git cache with [code]hg gclear[/code] Add the following to your repository config:[code][git] intree=1[/code]This makes Hg-Git create a bare .git repo in the main repository, so you probably should ignore .git/ . (Check your bookmarks, in case you don't want to push all changes. I hate stripping changesets from Git.) Then run [code]hg gexport[/code] This creates the bare Git repo up to the bookmarked changesets. After that you can use git to push to the remote repository.
[QUOTE=Tamschi;39339815]Use Tuple.Create, that way you don't have to specify the type parameters. Is there a reason you're not using Dictionary<Material, List<Mesh>>? What I'm working on: I fixed most of the XML comment issues in OpenTK, put I can't push it to GitHub because either hg or hg-git is action weirdly. This is incredibly frustrating. The line ending in the repository are messed up, a third of the files uses CRLF, the rest only LF, so I can't use the eol extension to normalize them and have to fix each file before committing.[/QUOTE] I haven't implemented Equals or GetHashCode yet on Material. And I didn't know about Tuple.Create, thanks! [editline]24th January 2013[/editline] [QUOTE=Mozartkugeln;39340222]Make a class for it rather than nesting a bunch of collections in one another.[/QUOTE] Yeah, I'm going to do that eventually. Originally the Model class was supposed to be the abstraction for a Mesh + Material, then when I got to importing art from our artist, I realized that the IQM file can have multiple meshes and multiple materials, so I hacked this in to get it working. When I get a chance I'll write a MeshCollection class that accepts a Material and a Mesh and does the sorting. I'll probably also do some post-processing of the IQM file to merge all the Meshes with the same Material to a single Mesh, which would simplify things a bit and lower the number of draw calls per model.
[QUOTE=robmaister12;39341936]I haven't implemented Equals or GetHashCode yet on Material. And I didn't know about Tuple.Create, thanks![/QUOTE] You could create an index of them and use the index number for the Dictionary thing (which I'm assuming is a hash-map). This does limit the amount of materials to 2^32 or 2^64, depending on the hash size, but that shouldn't be a problem in any sane program.
[QUOTE=Shadaez;39334701]Having that with more LEDs, and diffused, behind your monitor would be rad. also plz turn your camera[/QUOTE] I'm looking at a way to diffuse the light but not sure yet. Perhaps a lamp shade of some sort. I'm going to recode the whole thing when I get better at C#. I want to eventually get rid of my Arduino and put it on one board using an ATMega and a USB to Serial chip connected to the ATMega. I also wanna add moods and shit and then I'll be happy. :V
[QUOTE=ECrownofFire;39342014]You could create an index of them and use the index number for the Dictionary thing (which I'm assuming is a hash-map). This does limit the amount of materials to 2^32 or 2^64, depending on the hash size, but that shouldn't be a problem in any sane program.[/QUOTE] It would be simpler to just implement GetHashCode and use Material as the key, but I think I'm just going to go for a full fix instead of slightly cleaning up a hack.
Playing WebQuake on E1M1. [img_thumb]http://i.imgur.com/hIivyVB.jpg[/img_thumb]
[QUOTE=SiPlus;39342674]Playing WebQuake on E1M1. [img_thumb]http://i.imgur.com/hIivyVB.jpg[/img_thumb][/QUOTE] Is there anywhere we can try out your game for ourselves?
[QUOTE=Mozartkugeln;39342690]Is there anywhere we can try out your game for ourselves?[/QUOTE] Not yet, it's on a too early stage. Only 30-40% is done. --- EDIT --- WOW, a Mozilla guy says that he's going to show WebQuake on HTML5 conference onGameStart in September!
--snip--
[QUOTE=Mega1mpact;39343843]Awesome! But it still means that we're going to ignore your advice.[/QUOTE] That's not relevant you're just bandwagon hating. He didn't even do anything to provoke you, stop your shit.
[img]http://i.imgur.com/5xdFaI8.png[/img] Aww... Looks like I need a new name. Any ideas?
Assholes to Assholes?
[QUOTE=DatZach;39344095][img]http://i.imgur.com/5xdFaI8.png[/img] Aww... Looks like I need a new name. Any ideas?[/QUOTE] He doesn't really says you can't use the name you're currently using though, he's just saying he doesn't wants you using the name 'Cards against Humanity', which is NOT your name. I suggest you ask him to clarify it's really not clear if they're okay with it or not.
Just built an RFC6238 TOTP implementation in C, without using and standard library stuff like sprintf. Includes a home-cooked ARMv7-optimised HMAC-SHA1 implementation. [code] $ ./otp 505835 (valid for another 11 seconds) [/code] Optimising this down to as few instructions/cycles as possible, since I'm going to be using it somewhere where that'll matter a lot. Points if you can guess where (assuming you weren't in FPP and know already).
[QUOTE=mobrockers2;39344167]He doesn't really says you can't use the name you're currently using though, he's just saying he doesn't wants you using the name 'Cards against Humanity', which is NOT your name. I suggest you ask him to clarify it's really not clear if they're okay with it or not.[/QUOTE] It's extremely close Google-wise, which I think can be used as rough measure for how confusable something is. It's also most likely not in accordance with trademark law.
[QUOTE=Tamschi;39344306]It's extremely close Google-wise, which I think can be used as rough measure for how confusable something is. It's also most likely not in accordance with trademark law.[/QUOTE] They could claim it's dilution, possibly, but I'm not sure how the Creative Commons thing effects that. EDIT: Actually, it looks like non-commercial works are excluded from dilution under US law: [QUOTE]The following shall not be actionable as dilution by blurring or dilution by tarnishment under this subsection: (A) Any fair use, including a nominative or descriptive fair use, or facilitation of such fair use, of a famous mark by another person other than as a designation of source for the person's own goods or services, including use in connection with-- (i) advertising or promotion that permits consumers to compare goods or services; or (ii) identifying and parodying, criticizing, or commenting upon the famous mark owner or the goods or services of the famous mark owner. (B) All forms of news reporting and news commentary. (C) Any noncommercial use of a mark.[/QUOTE]
[img]http://frameaway.org/ftp/ShareX/CWindowssystem32cmd.exe_2013-01-24_20-56-22.png[/img] Can now query any amount of servers, using the battlelog api itself. I have most of the information about the server, but i'm only printing a few to the console for testing. A full list of things i know about a server: [img]http://frameaway.org/ftp/ShareX/2013-01-24_21-00-49.png[/img] [img]http://frameaway.org/ftp/ShareX/2013-01-24_21-03-25.png[/img]
[QUOTE=Neo Kabuto;39344354]They could claim it's dilution, possibly, but I'm not sure how the Creative Commons thing effects that. EDIT: Actually, it looks like non-commercial works are excluded from dilution under US law:[/QUOTE] Interesting, I didn't know that. Unrelated: I found [URL="http://theinstructionlimit.com/"]this blog[/URL] by the programmer of Fez. It's full of downloadable games, notes about programming them in C# and code snippets and complete classes for input shaping, easing and things like that.
[QUOTE=garry;39340888]Can load and extract addons now! [url]https://github.com/garrynewman/gmad/blob/master/src/extract_gmad.cpp[/url][/QUOTE] Why are you using a std::list for the file list in AddonReader? If you used a std::vector [url=https://github.com/garrynewman/gmad/blob/master/include/AddonReader.h#l109]this function[/url] wouldn't need to exist at all as you would just access the index of the file (which would always be fileid - 1). std::list is a doubly linked list and is why you need to iterate through all of the entries to find one.
[QUOTE=Mega1mpact;39340263]That feeling when you swear those columns existed 5 minutes ago: [t]http://i.imgur.com/01P0Jrk.png?1[/t] (I'm working with a database that has 808 tables and a total of 66883 columns ;_;) [code]select (select count(*) from sysobjects where type = 'U') tables, (select count(*) from syscolumns) columns [/code] result: tables columns 880 66883[/QUOTE] What would you seriously ever need 67000 columns for? I'm seriously curious.
I'm guessing he messed up a little bit, so he got 808 tables, while he should've gotten 66883 tables, and 808 coloumns? (still don't know what he needs 808 coloumns for, though)
snip. didn't read
Trying to build my MMO game on android now since I don't want to pay $99 just to test on my iPhone. Working with C++ on android is a [I]huge[/I] pain in the ass, but im slowly making progress.
[QUOTE=Gulen;39344741]I'm guessing he messed up a little bit, so he got 808 tables, while he should've gotten 66883 tables, and 808 coloumns? (still don't know what he needs 808 coloumns for, though)[/QUOTE] That would mean you would have 66075 tables that have no columns in them..
It's probably a clients' database which he has to work with; looks like the database holds quantities and prices of various hardware and/or components.
I don't know if this goes in webdev or not but I made a small page in Perl that uses a vulnerability on a MMORPG's official page to log in as the ID specified, then gather and display data. [url]http://utils.rtag.me/gc/charlist.pl?id=balzac123[/url]
[QUOTE=KmartSqrl;39344880]That would mean you would have 66075 tables that have no columns in them..[/QUOTE] Oh, I was wrong then. I read it as he had 66883 tables, all of which had 808 coloumns. But after I posted it I realized I had interpreted it wrong.
[QUOTE=DatZach;39344095]Aww... Looks like I need a new name. Any ideas?[/QUOTE] Cars Against Hue Manatee
Sorry, you need to Log In to post a reply to this thread.