• What are you working on? v16
    5,004 replies, posted
[QUOTE=geel9;28247677]So for my Robotics team, I have been commissioned to, during the off-season, write a two-part program. Part 1: It records data on the robot as we drive it around. Part 2: It simulates the robot onscreen as you move the joysticks. It uses the data it collected. I am not looking forward to it.[/QUOTE] Ouch. All I had to do was write a simple line-tracker for autonomous for them to worship me.
[QUOTE=ZenX2;28248034]Ouch. All I had to do was write a simple line-tracker for autonomous for them to worship me.[/QUOTE] They do the opposite of worship me. "Hey Josh write autonomous." "...I've been trying to fix your wiring on the pneumatics. It's the last day. We don't have time to do autonomous because you guys pushed everything on me right when I was about to start on it." "...write autonomous." [b]sigh[/b] It is sort of my fault since I left a lot of stuff for near the end, but it does [b]not[/b] help the I had to waste two weeks learning the shitty excuse of a language called LabVIEW because the team lead DEMANDED we use it. Also I'm the only programmer.
[QUOTE=geel9;28248075]They do the opposite of worship me. "Hey Josh write autonomous." "...I've been trying to fix your wiring on the pneumatics. It's the last day. We don't have time to do autonomous because you guys pushed everything on me right when I was about to start on it." "...write autonomous." [b]sigh[/b] It is sort of my fault since I left a lot of stuff for near the end, but it does [b]not[/b] help the I had to waste two weeks learning the shitty excuse of a language called LabVIEW because the team lead DEMANDED we use it. Also I'm the only programmer.[/QUOTE] we're not competing this year, but last year we didn't get very far... we never met, and simple things like getting it to turn weren't working, because the gears were loose as shit and would make it move forward when one motor was shut off because the gears would slip a little. We're going to start again next year (my senior year), but be more organized, meet more often, have a plan and design before building, etc. And maybe some people who can build things properly
Successful generation! Thanks, spear! This algorithm is better looking, simpler and way faster than my old one. A pic: [img]http://f.anyhub.net/1VLK[/img]
I've just implemented JSON, I can't wait to take it out to dinner and date rape it like no tomorrow, so much hotter than that fat fuck XML.
Finished a program that scrapes the JavaDoc files off my professor's website, parses the HTML, and generates a skeleton class with the methods, constructors, and member variables listed in the Doc. I say this is fair since he links us to the JavaDoc files to give us our API anyway. Too bad this is pretty much an entry-level class, I should have tested out of it. [cpp]public class Song { /* Fields */ private int length; private String name; /* Constructors */ public Song(String name, int length) { } /* Methods */ public boolean equals(Object other) { } public int getLength() { } public void setLength(int length) { } public void setName(String name) { } public String getName() { } public String toString() { } }[/cpp] Quick example of what is generated.
[QUOTE=Wyzard;28230448]Most likely it's running on [url=http://en.wikipedia.org/wiki/Virtual_private_server]virtual private servers[/url]. Basically a hosting company installs some big computers in a datacenter somewhere, creates a bunch of virtual machines on them, and rents out the virtual machines for a monthly fee. Customers can log into the virtual machine over the network (using a web-based control panel and/or something like SSH) to install and run whatever software they want.[/QUOTE] Two dedicated servers
Tried the gameprogrammer fractal thingy, am I doing it right? [img]http://i.imgur.com/b5Iqm.png[/img] [editline]24th February 2011[/editline] doesn't seem right [editline]24th February 2011[/editline] what the fuck did i just make [img]http://i.imgur.com/G38JO.png[/img]
[QUOTE=iNova;28252776]Tried the gameprogrammer fractal thingy, am I doing it right? [img_thumb]http://i.imgur.com/b5Iqm.png[/img_thumb] [editline]24th February 2011[/editline] doesn't seem right[/QUOTE] That looks right to me (as in it looks fractal-ish). Depends exactly what you're going for though.
Edited it a bit, looks better now :buddy: (I'll stop posting about it) [img]http://i.imgur.com/usrh4.png[/img]
more of my 2AM "I just fixed it and really need some sleep" moments... Visual Studio's built in XSD -> C# class tool, xsd.exe, works pretty well and automates something that would take a while to write manually. The only problem I had with it was when dealing with what it thought was a multidimensional array. If anyone uses xsd.exe and gets that conversion from element[] to element error, most websites will tell you to simply change the typeof from (element) to (element[]), which leaves you with a multidimensional array where only the first dimension has been instantiated. The real solution is to use a List... [csharp]public partial class AutoGeneratedClass { private List<SubElement> elementField; // ... [System.Xml.Serialization.XmlArrayItemAttribute("Element", typeof(SubElement), /* ... */)] public List<SubElement> Element { // ...[/csharp] spent probably 45 minutes researching, finding nothing, then trying something random and hoping it works (and it did work) For anyone keeping up with the occasional post I make on our progress, we got an artist - her work looks great, and we got two guys working on music. I'm pushing for all features to be implemented by March 9th, so that we give ourselves a week buffer of "we couldn't finish it in time" before a 2-weeks out plan I have. Basically, 2 weeks out and feature implementation stops. Bugfixes allowed, can't be major unless they really mess up the game, and those should just be patched over for now. Everything else with //TODO slapped next to them. We should have at least 10-15 different levels before the 2 week mark, and by the one week mark all of our levels should be done. The last week before release is going to be very light modifications to art / levels if needed. Tons of playtesting, look through all our text, make sure we don't have any typos. Also get some sort of automated money transfer from the proceeds to the charity we're working with ([url=http://www.youthfortechnology.org/]Youth for Technology Foundation[/url]) then release it to the market. (yeah, we're giving 100% of the profit, which is why we want an auto-transfer) Also, in that last week I'm going to clip together a lot of video clips that I took of our team working, add in a few clips with some generic interview questions... I'll probably post that here as well, just for the hell of it. [editline]idk[/editline] oh, and here's a picture of the current level editor.. still rough around the edges but it should be possible to make a level right now if I were to fill out the droppable entities treeview on the right... [img]http://i.imgur.com/UC9kD.png[/img]
[img]http://puu.sh/12wq[/img] [img]http://puu.sh/12wt[/img] [img]http://puu.sh/12wv[/img] Finally managed to draw triangles. Means I can draw polygons!!! Weeeee
[img]http://i.imgur.com/Swl2Z.png[/img] :buddy:
Very pretty indeed Nova.
[img]http://i.imgur.com/mD2eC.png[/img] Voila! No dead ends! :buddy:
[QUOTE=spear;28255697][img_thumb]http://i.imgur.com/mD2eC.png[/img_thumb] Voila! No dead ends! :buddy:[/QUOTE] When are you going to write a renderer? Looking at these gives me a headache. Actually it looks much better in the quote :v:
[QUOTE=spear;28255697][img_thumb]http://i.imgur.com/mD2eC.png[/img_thumb] Voila! No dead ends! :buddy:[/QUOTE] You should get rid of the "." and replace them with " " Is it just me, or does anybody else find randomly generated maps boring to play / explore? Not that your work is boring or anything, in fact I'm quite impressed, but I think that maps made by humans are often a lot more fun to explore and play with.
[QUOTE=Loli;28255963]You should get rid of the "." and replace them with " " Is it just me, or does anybody else find randomly generated maps boring to play / explore? Not that your work is boring or anything, in fact I'm quite impressed, but I think that maps made by humans are often a lot more fun to explore and play with.[/QUOTE] If I know they're randomly generated I enjoy them less because I know everything that happens has been randomly generated. It's less satisfying because there is no pre-determined challenge for me to complete. Also you're kinda less inclined to really explore because it's likely there's going to be nothing interesting you haven't seen before.
[QUOTE=Loli;28255963]You should get rid of the "." and replace them with " "[/QUOTE] The "."'s are fine. If he "culls" all of the walls that are behind other walls (i.e. wouldn't be visible) it'd look a lot nicer.
[QUOTE=Catdaemon;28256002]If I know they're randomly generated I enjoy them less because I know everything that happens has been randomly generated. It's less satisfying because there is no pre-determined challenge for me to complete. Also you're kinda less inclined to really explore because it's likely there's going to be nothing interesting you haven't seen before.[/QUOTE] Randomly generated maps have both advantages and disadvantages. You've pointed out the obvious disadvantages; the advantages are that they're fascinating, you don't have to create every map by hand, and they (depending on the type of game) can be more re-playable than man-made maps. I'm not advocating one or the other, but I've been really interested in PCG for the past few weeks, so that's what I've been working on. I decided to record a video of a map being generated, for those who are interested: [media]http://www.youtube.com/watch?v=LYB4Prc8vHs[/media]
[QUOTE=limitofinf;28243723]Sure, but what do you mean by share? The source code?[/QUOTE] No I mean the progam :) please
Is there a simple algorithm for creating Boolean functions from truth tables? I mean, given [code]a1 a0 result 1 1 1 1 0 0 0 1 0 0 0 1[/code] It'd return !(a1 xor a0) or the equivalent in some notation (Polish, infix, doesn't matter)
[QUOTE=ThePuska;28256831]Is there a simple algorithm for creating Boolean functions from truth tables? I mean, given [code]a1 a0 result 1 1 1 1 0 0 0 1 0 0 0 1[/code] It'd return !(a1 xor a0) or the equivalent in some notation (Polish, infix, doesn't matter)[/QUOTE] I guess you'll just have to iterate through all combinations(?) of a1 and a0. To get the result you could implement something like a calculator except with those boolean operations as operators instead of normal arithmetic operators.
No, the other way around. I have the truth value table, I want one combination of operators and arguments that can create it. [editline]24th February 2011[/editline] I suppose that since it's an optimization problem I could use a genetic algorithm but I'm looking for a more straightforward approach, if there's any.
[QUOTE=ThePuska;28257125]No, the other way around. I have the truth value table, I want one combination of operators and arguments that can create it. [editline]24th February 2011[/editline] I suppose that since it's an optimization problem I could use a genetic algorithm but I'm looking for a more straightforward approach, if there's any.[/QUOTE] [url=http://www.allaboutcircuits.com/vol_4/chpt_7/9.html]Sum-Of-Products / Product-Of-Sums[/url] You're going to have to simplify the resulting expression though.
[media]http://i.imgur.com/3Xmhg.png[/media] [media]http://i.imgur.com/IvK61.png[/media] Random worlds. Or parts of them anyway. Still needs work but it's a lot better than it was earlier. And I'm aware that it still says "Scary Cave: Floor 1". :v:
I just made a quick utility thing for minecraft, it stores your server IPs for you: [url]http://www.minecraftforum.net/viewtopic.php?f=1020&t=193951[/url]
[QUOTE=BlkDucky;28260524][img_thumb]http://i.imgur.com/3Xmhg.png[/img_thumb] [img_thumb]http://i.imgur.com/IvK61.png[/img_thumb] Random worlds. Or parts of them anyway. Still needs work but it's a lot better than it was earlier. And I'm aware that it still says "Scary Cave: Floor 1". :v:[/QUOTE] I don't know how you do it, but for some reason that looks quite sexy.
[QUOTE=BlkDucky;28260524][media]http://i.imgur.com/3Xmhg.png[/media] [media]http://i.imgur.com/IvK61.png[/media] Random worlds. Or parts of them anyway. Still needs work but it's a lot better than it was earlier. And I'm aware that it still says "Scary Cave: Floor 1". :v:[/QUOTE] I am quickly falling in love with this game, and I haven't even played it yet.
[QUOTE=BlkDucky;28260524][media]http://i.imgur.com/3Xmhg.png[/media] [media]http://i.imgur.com/IvK61.png[/media] Random worlds. Or parts of them anyway. Still needs work but it's a lot better than it was earlier. And I'm aware that it still says "Scary Cave: Floor 1". :v:[/QUOTE] What are you making this in?
Sorry, you need to Log In to post a reply to this thread.