Multiple chunks on a single map :D
[img]http://dl.dropbox.com/u/286964/netcraft/netcraftmultichunk.png[/img]
Currently working on NBT Parser to load and save the stuff. (All my chunks get created with a bedrock floor hence the bedrock mess you see)
Thing I am dreading is terrain generation.
I anticipated a problem with packet sending from multiple threads, if multiple threads "send" a packet at the same time the stream will append both at the same time, so what I did was add a queue and then packet sends get added to that, then processed one after another. It probably works.
[b]Edit[/b]
Hey look, Loaded chunks...
[img]http://dl.dropbox.com/u/286964/netcraft/netcraftmultichunknbt.png[/img]
[img]http://ahb.me/1mlv[/img]
Unmodified EhBASIC.
Anyone remembers my city generator from 2 threads ago? Well I improved it a lot since then, mainly fixing bugs and tweaking stuff. Only yesterday did I start on buildings. First, dividing the blocks into "types". Those will define how populated the blocks will be. Yellow means it will be sparsely populated, green regularly populated, and blue irregularly. Division map:
[media]http://dl.dropbox.com/u/3310651/Zombie/divisions.png[/media]
Early work on the regular lot division:
[media]http://dl.dropbox.com/u/3310651/Zombie/buildings.png[/media]
Cool, what do you plan on doing with it?
I just tried putting my text-to-brainfuck translator through itself; it expanded a 1 kb file to 11 kb :downs:
Found a use for Luigi...
ChromeOS, meet Android:
[img]http://i55.tinypic.com/eqpkk9.jpg[/img]
[QUOTE=iRzilla;27183430]Why was this rated dumb, do any of you even know who John Lua is?
[url]http://www.garry.tv/?p=386[/url][/QUOTE]
You should talk to Dr. Old, he'll cure you of your old, dumb jokes.
@Hexxeh: Are you going to provide nightly builds for this? I also demand at least 3 forks.
Encoding lua in brainfuck makes me feel godly and bloated at the same time.
I have full control over the form of my scripts, but they get ten times larger and slower.
[editline]3rd January 2011[/editline]
[code]++++++++++[>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>+++++++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++++>++++>+++++++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++>++++>++++>++++>++++++>++++>++++>++++>++++>++++>++++++>++++>++++<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<-]>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>++.>+++.>+++.>+++.>+++.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>+++++.>+++.>++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>++++++.>++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>++++++.>++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>++++++.>++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>+++.>+++.>+++.>++++++.>++.>+++.>++++++.[/code]
That's the result of encoding "print("Hello, World! :D")" into brainfuck, then encoding the result into brainfuck :v:
[b]... then encoding the result into brainfuck.[/B]
Hm, I wonder why that is...
Who here wants a class designer that exports to c++ and c#?
Should I bother making my translator more efficient? Currently, it just designates one cell for each character, but I could probably find something for characters with the same multiple of ten.
[QUOTE=Hexxeh;27185557]Found a use for Luigi...
ChromeOS, meet Android:
[img_thumb]http://i55.tinypic.com/eqpkk9.jpg[/img_thumb][/QUOTE]
Did Google contact you personally to give you one of these or did you register for the Pilot program?
[QUOTE=Xploder;27186483]Did Google contact you personally to give you one of these or did you register for the Pilot program?[/QUOTE]
IIRC Hexxeh isn't American so he probably can't be in the pilot program.
[QUOTE=Vbits;27186198]Who here wants a class designer that exports to c++ and c#?[/QUOTE]
That's not how classes work. You don't just design them, you have to write them special.
I wish they would sell the Cr-48, it looks damn sexy and is the type of laptop I'm looking for.
[QUOTE=ZenX2;27184811]Cool, what do you plan on doing with it?[/QUOTE]
The most ambitious game ever, of course.
My coding environment is messy. I have a text editor, 2 terminals and a file manager. Serves me right, eh?
Don't you just hate it when you write up a long post explaining the incredibly odd problem you're having, only to notice what you did wrong seconds before, or worse, seconds after you post it?
[QUOTE=iRzilla;27188583]Dual/Triple screen?[/QUOTE]
Single 1280x1024 monitor. I get by pretty well, actually.
Hooray for stacking windows?
Implemented GLSL shaders into my platformer. Don't know where this is taking me.
[media]http://www.youtube.com/watch?v=e3z5vCU-h2g[/media]
Leave it like that, and I'll play it.
What's the libcurl.NET equivalent of wget to file %file% at %url%?
This setting options thing has me really confused...
Edit: Or more specifically, where do I pass "file" to; can it be a FileStream?
easy.SetOpt(CURLoption.CURLOPT_WRITEDATA, file);
[QUOTE=Xeon06;27184603]Anyone remembers my city generator from 2 threads ago? Well I improved it a lot since then, mainly fixing bugs and tweaking stuff. Only yesterday did I start on buildings. First, dividing the blocks into "types". Those will define how populated the blocks will be. Yellow means it will be sparsely populated, green regularly populated, and blue irregularly. Division map:
[media]http://dl.dropbox.com/u/3310651/Zombie/divisions.png[/media]
Early work on the regular lot division:
[media]http://dl.dropbox.com/u/3310651/Zombie/buildings.png[/media][/QUOTE]
Looks cool. It will be interesting to see how you make it deal with terrain and natural landmarks.
I think your cities should have more a "center", since cities start out small and grow outward over time.
[QUOTE=Hexxeh;27185557]Found a use for Luigi...
ChromeOS, meet Android:
[img_thumb]http://i55.tinypic.com/eqpkk9.jpg[/img_thumb][/QUOTE]
[url=http://www.android-x86.org/]Android-x86[/url]? Last I tried it on my netbook it was slow as hell, has it improved?
so I spent about 30 minutes trying to find out why an object was spinning constantly in a 0-360 degree clamped rotation, because it should have eventually reached the proper angle. Turns out I was taking the arctan of y/x, which has issues going past pi and -pi. Then I google around a bit and discovered atan2 within 2 minutes of googling. Fuck yeah.
This is leading up to a player entity that's controlled by a "joypad" which will make the camera follow the player until it gets near the end of the world, at which time it'll stop the camera and the player can explore that last little bit.
I have 22 days and 1 hour left to make some sort of playable demo. I was hoping all the members of my group could stop by my house today. 2/5 ditched, another had to go to a wedding. So it's just me and my friend, it's usually just us 2 bouncing code back and forth though, so it's not unusual or anything. I just hope the two of us can get enough done (maybe cut a corner or two towards the end, but from how I'm seeing it, we have most of the complicated code done, now we just need to hook everything together cohesively.
You know, so that our game doesn't end up looking like the gif I posted a few pages back...
[QUOTE=robmaister12;27189883]it's usually just us 2 bouncing code back and forth though, ...[/QUOTE]
You mean you're not using any version control?
[QUOTE=DevBug;27183534]Still getting it... warning: implicit declaration of function ‘fdopen’[/QUOTE]
You need to [B]compile[/B] with -D_POSIX_SOURCE, not link with it.
[QUOTE=Vampired;27180570]I think that's supposed to be
[code]float x = Center.X + (xDist * ratio);[/code]
in Jallan's code[/QUOTE]
Woops yeah.
[code]public void Resize(float ratio)
{
for(int i = 0; i < Points.Count; i++)
{
float yDist = Points[i].Y - Center.Y;
float xDist = Points[i].X - Center.X;
Points[i].X = Center.X + (xDist * ratio);
Points[i].Y = Center.Y + (yDist * ratio);
}
}[/code]
fixed.
I don't see why it wouldn't work but I haven't tried it.
[QUOTE=Hexxeh;27185557]Found a use for Luigi...
ChromeOS, meet Android:
[img_thumb]http://i55.tinypic.com/eqpkk9.jpg[/img_thumb][/QUOTE]
You just installed Android x86, didn't you? :v:
Sorry, you need to Log In to post a reply to this thread.