• What are you working on? v15
    5,001 replies, posted
i have an op for v16 ready.
I don't know anything about maze generation but I think it turned out all right. Compiled and worked on the first try, using an algorithm I came up with while making coffee. Skimming through Wikipedia it appears to resemble something called "Randomized Prim's algorithm", though with the somewhat significant difference that I don't use a list of walls, but a list of cells with at least 1 uncharted neighbor. Took a few seconds to generate this 2001x2001 maze: [URL=http://img683.imageshack.us/img683/7855/mazeg.png][IMG]http://img683.imageshack.us/img683/7855/mazeg.th.png[/IMG][/URL] I should probably make some kind of a video of it generating some smaller maze because I'm not quite sure myself how it comes up with those clearly visible branches that originate from the starting point of the maze. It's kind of cool.
[QUOTE=ThePuska;28200255]I don't know anything about maze generation but I think it turned out all right. Compiled and worked on the first try, using an algorithm I came up with while making coffee. Skimming through Wikipedia it appears to resemble something called "Randomized Prim's algorithm", though with the somewhat significant difference that I don't use a list of walls, but a list of cells with at least 1 uncharted neighbor. Took a few seconds to generate this 2001x2001 maze: [URL=http://img683.imageshack.us/img683/7855/mazeg.png][img_thumb]http://img683.imageshack.us/img683/7855/mazeg.th.png[/img_thumb][/URL] I should probably make some kind of a video of it generating some smaller maze because I'm not quite sure myself how it comes up with those clearly visible branches that originate from the starting point of the maze. It's kind of cool.[/QUOTE] A man could spend years lost in such a place.
From the makers of Cube... Maze.
[QUOTE=ThePuska;28200255]I don't know anything about maze generation but I think it turned out all right. Compiled and worked on the first try, using an algorithm I came up with while making coffee. Skimming through Wikipedia it appears to resemble something called "Randomized Prim's algorithm", though with the somewhat significant difference that I don't use a list of walls, but a list of cells with at least 1 uncharted neighbor. Took a few seconds to generate this 2001x2001 maze: [URL=http://img683.imageshack.us/img683/7855/mazeg.png][img_thumb]http://img683.imageshack.us/img683/7855/mazeg.th.png[/img_thumb][/URL] I should probably make some kind of a video of it generating some smaller maze because I'm not quite sure myself how it comes up with those clearly visible branches that originate from the starting point of the maze. It's kind of cool.[/QUOTE] I'ma solve this maze right now. Just gotta get my printer and some sheets of paper to get this big boy on my table.
[QUOTE=Chris220;28200161]I haven't got any interesting content to post, unfortunately... However! BlkDucky, I felt the need to say well done to you. Your roguelike is looking awesome, I can't wait to see what it becomes. I'd also love to have an opportunity to play it at some point :buddy:[/QUOTE] I don't really know what to say. Thanks. :3: I'm going to keep posting updates and I'll be sure to make a thread on it if (when) it reaches a fully playable state. Again, thanks. You didn't need to go out of your way to say that. :buddy:
I just discovered how useful PropertyGrid's SelectedObjects field is. I was thinking about how I could follow up the inheritance web and find a common class that I could create a temporary instance of, and once those values were changed, I'd set all the selected objects to that temporary class (or something like that) then I noticed that there was the option to have an array of selected objects. It managed to do all of that, and then some, for me.
In C# how can I halt the console program half way through? I have a series of checks when my program runs and if one is false it triggers an error function that prints a message. The problem is the program continues after the message, I need to display the error and halt the program until exited. Just tried Console.ReadLine, it works but after I hit enter it continues through the code and then exits.
Okay so that little game I was working on a few pages back is coming nicely, here is a quick video that does it no justice. [media] [url]http://www.youtube.com/watch?v=1pr4hl5JTmY&fmt=18[/url][/media] [editline]22nd February 2011[/editline] That quality, Makes my eyes bleed. And I'm page peasant :saddowns:
[QUOTE=Shane;28200833]In C# how can I halt the console program half way through? I have a series of checks when my program runs and if one is false it triggers an error function that prints a message. The problem is the program continues after the message, I need to display the error and halt the program until exited.[/QUOTE] System.Threading.Thread.Sleep(<milliseconds to sleep here>); or were you saying Exit? That would be Environment.Exit(<error code>);
Great, the linker can't find my class constructor...
I'd very much like us to go back to the hexadecimal thread numbers.
[QUOTE=Hypershadsy;28200937]System.Threading.Thread.Sleep(<milliseconds to sleep here>); or were you saying Exit? That would be Environment.Exit(<error code>);[/QUOTE] Sorry for wrong thread first of all. System.Threading.Thread.Sleep(<milliseconds to sleep here>); seems to work fine, is there a way to make it pause forever? Say I would run the server and leave and it would eventually unpause and explode if something had failed.
[QUOTE=Xeon06;28201024]I'd very much like us to go back to the hexadecimal thread numbers.[/QUOTE] 0x10? Kinda looks like V 10, though. Maybe I'm just being picky. :v: [editline]22nd February 2011[/editline] [QUOTE=Shane;28201042]Sorry for wrong thread first of all. System.Threading.Thread.Sleep(<milliseconds to sleep here>); seems to work fine, is there a way to make it pause forever? Say I would run the server and leave and it would eventually unpause and explode if something had failed.[/QUOTE] I don't know what the C# equivalent of std::cin.get() is, but use that. :v:
Sorry about my post last page, I'm tired :v: oh god please don't extend my ban oh god oh god no
Only makes sense when we hit a mile stone like version 26.
[QUOTE=Garb;28200905]Okay so that little game I was working on a few pages back is coming nicely, here is a quick video that does it no justice. [media] [url]http://www.youtube.com/watch?v=1pr4hl5JTmY&fmt=18[/url][/media] [editline]22nd February 2011[/editline] That quality, Makes my eyes bleed. And I'm page peasant :saddowns:[/QUOTE] There you go, you're not page peasant any more. Check out this guy's (Garb's) video. ;D
Who can make a smaller ini parser? [cpp] std::map<std::string, std::string> m_Data; std::string Line(256, ' '); std::ifstream File("test.ini"); size_t Found = 0; while(!File.eof()) { File >> Line; Found = Line.find_first_of("="); m_Data[Line.substr(0, Found)] = Line.substr(Found+1); } [/cpp]
You just edited it and made it longer.
waywo v1<<4
[QUOTE=EllisActive;28201104]Sorry about my post last page, I'm tired :v: oh god please don't extend my ban oh god oh god no[/QUOTE] Pff. Deloc seems to be doing fine, despite his ban. Bans don't really mean much unless they're permanent, or so it seems.
[QUOTE=EllisActive;28201237]You just edited it and made it longer.[/QUOTE] I made it [url=http://www.facepunch.com/posthistory.php?do=compare&p=28201140]smaller[/url].
[QUOTE=BlkDucky;28201275]Pff. Deloc seems to be doing fine, despite his ban. Bans don't really mean much unless they're permanent, or so it seems.[/QUOTE] They do if you have no life, A few months ago, when I was worse than I was now.. I got banned for a week, I got out of bed, cried, went to sleep.
[QUOTE=DevBug;28201322]I made it [url=http://www.facepunch.com/posthistory.php?do=compare&p=28201140]smaller[/url].[/QUOTE] only mods can see this
Depends how you are counting it devbug, line count or char count. [editline]22nd February 2011[/editline] Oh and I was banned at somewhere around 2:40, I was supposed to be unbanned before I was even banned :tinfoil:
[QUOTE=EllisActive;28201366]Depends how you are counting it devbug, line count or char count. [editline]22nd February 2011[/editline] Oh and I was banned at somewhere around 2:40, I was supposed to be unbanned before I was even banned :tinfoil:[/QUOTE] Lines is pointless since you can just put it all on a single line. Character count could work, I guess. Filesize is pretty good, too, though.
[QUOTE=BlkDucky;28201464]Lines is pointless since you can just put it all on a single line. Character count could work, I guess. Filesize is pretty good, too, though.[/QUOTE] What if you compressed it though [editline]22nd February 2011[/editline] And about the question earlier, about what 2D programming library to use, an answer would be nice. :smile:
249 vs 258
[QUOTE=DevBug;28201140]Who can make a smaller ini parser?[/QUOTE] Small, but incorrect. I would never use that.
If the previous maze was too simple for you guys, here's a 10001x10001 monster [url=http://img718.imageshack.us/img718/2347/maze00.png][img]http://img718.imageshack.us/img718/2347/maze00.th.png[/img][/url][url=http://img203.imageshack.us/img203/3229/maze10.png][img]http://img203.imageshack.us/img203/3229/maze10.th.png[/img][/url][url=http://img337.imageshack.us/img337/645/maze20.png][img]http://img337.imageshack.us/img337/645/maze20.th.png[/img][/url] [url=http://img11.imageshack.us/img11/3918/maze01.png][img]http://img11.imageshack.us/img11/3918/maze01.th.png[/img][/url][url=http://img413.imageshack.us/img413/9389/maze11.png][img]http://img413.imageshack.us/img413/9389/maze11.th.png[/img][/url][url=http://img823.imageshack.us/img823/3033/maze21.png][img]http://img823.imageshack.us/img823/3033/maze21.th.png[/img][/url] [url=http://img195.imageshack.us/img195/8223/maze02.png][img]http://img195.imageshack.us/img195/8223/maze02.th.png[/img][/url][url=http://img248.imageshack.us/img248/3927/maze12.png][img]http://img248.imageshack.us/img248/3927/maze12.th.png[/img][/url][url=http://img819.imageshack.us/img819/1494/maze22.png][img]http://img819.imageshack.us/img819/1494/maze22.th.png[/img][/url]
Sorry, you need to Log In to post a reply to this thread.