[QUOTE=Z_guy;33134850]Haha, I had to check if that was true
*snip*[/QUOTE]
"Cowboy"?
I try to make this do something, it does the exact opposite.
[video=youtube;BNCZZmtzMdk]http://www.youtube.com/watch?v=BNCZZmtzMdk[/video]
So, working on an FTP library in C# for use later.
I'm trying to download a 10.3 kB file but it took a little long, so I aborted the process and looked at the code...
It's a subtle yet pretty huge bug. See if you can find it. :v:
[csharp]public void DownloadToFile(string serverpath, string filename)
{
FtpWebRequest request = WebRequest.Create(new Uri(_baseUri, serverpath)) as FtpWebRequest;
request.Credentials = _creds;
request.Method = WebRequestMethods.Ftp.DownloadFile;
request.UseBinary = true;
FtpWebResponse response = request.GetResponse() as FtpWebResponse;
Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine(response.StatusDescription); Console.ResetColor();
using (BinaryReader br = new BinaryReader(response.GetResponseStream()))
{
using (FileStream fs = new FileStream(filename, FileMode.Create, FileAccess.Write, FileShare.None))
{
byte[] buffer = new byte[BUFFER_SIZE];
int bytesRead = br.Read(buffer, 0, buffer.Length);
while (bytesRead > 0)
{
fs.Write(buffer, 0, bytesRead);
}
}
}
response.Close();
}
[/csharp]
[QUOTE=horsedrowner;33136022]So, working on an FTP library in C# for use later.
I'm trying to download a 10.3 kB file but it took a little long, so I aborted the process and looked at the code...
It's a subtle yet pretty huge bug. See if you can find it. :v:
[csharp]public void DownloadToFile(string serverpath, string filename)
{
FtpWebRequest request = WebRequest.Create(new Uri(_baseUri, serverpath)) as FtpWebRequest;
request.Credentials = _creds;
request.Method = WebRequestMethods.Ftp.DownloadFile;
request.UseBinary = true;
FtpWebResponse response = request.GetResponse() as FtpWebResponse;
Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine(response.StatusDescription); Console.ResetColor();
using (BinaryReader br = new BinaryReader(response.GetResponseStream()))
{
using (FileStream fs = new FileStream(filename, FileMode.Create, FileAccess.Write, FileShare.None))
{
byte[] buffer = new byte[BUFFER_SIZE];
int bytesRead = br.Read(buffer, 0, buffer.Length);
while (bytesRead > 0)
{
fs.Write(buffer, 0, bytesRead);
}
}
}
response.Close();
}
[/csharp][/QUOTE]
while (bytesRead > 0)
[QUOTE=Yogurt;33136044]while (bytesRead > 0)[/QUOTE]
[img]http://dl.dropbox.com/u/764206/Facepunch/ftpdownloadbug.PNG[/img]
Yeah, I forgot to read the next bytes so the buffer never changes. :v:
[QUOTE=farmatyr;33135691]I try to make this do something, it does the exact opposite.
[video=youtube;BNCZZmtzMdk]http://www.youtube.com/watch?v=BNCZZmtzMdk[/video][/QUOTE]
Does this keep playing the music after the video stops for anyone else?
[QUOTE=Rohans;33136140]Does this keep playing the music after the video stops for anyone else?[/QUOTE]
Haha, yep it does. Thats odd.
I'm having a bad day, can't even upload a video properly.
[QUOTE=Matte;33132155]Looks good, but (other than the arc thing) I think it would be more natural if the color changes only at sunset and sunrise. So you would have a "day" in between when the color would stay the same.
What you got there is probably 2/3rds of the day is sunset/rise, while in real life, the surise/set will normally just be a couple of hours (max) out of maybe 10-12 hours of light.[/QUOTE]
Better?
[img]http://filesmelt.com/dl/PlatformerDayandNight.gif[/img]
make it move in a parabola instead of just diagonally up, sideways, and diagonally down.
[QUOTE=robmaister12;33136621]make it move in a parabola instead of just diagonally up, sideways, and diagonally down.[/QUOTE]
[QUOTE=farmatyr;33132634]I don't know about you but I think it fits with the blocky theme.[/QUOTE]
I can try but I can almost guarantee you it wont end well.
it doesn't hurt to try. If you don't like it you can just revert to the old method. Another idea is to make the incline and decline have smaller slopes, have the sun and the moon go directly to the center (without the flat part in the middle)
[QUOTE=farmatyr;33136192]I'm having a bad day, can't even upload a video properly.[/QUOTE]
Best video on youtube due to that bug. What editor did you use?
[QUOTE=likesoursugar;33135106]Because you're calling delete / free() twice.
For all unloads?
[code]
if(data != NULL)
{
delete [] data; // if an array
data = NULL;
}
[/code][/QUOTE]
Its a driver issue.
to do with SFML and intel drivers
[img]http://puu.sh/8a38[/img]
Ignore the terrible grass.
What about the terrible dirt?
[QUOTE=amcfaggot;33137662]What about the terrible dirt?[/QUOTE]
We know.
[QUOTE=Yogurt;33137615][img]http://puu.sh/8a38[/img]
Ignore the terrible grass.[/QUOTE]
[img]http://puu.sh/8a66[/img]
Ignore the terrible dirt.
[QUOTE=MadPro119;33136347]Better?
[img]http://filesmelt.com/dl/PlatformerDayandNight.gif[/img][/QUOTE]
sun = Vector(sin(timeofday), cos(timeofday))
sun *= somescalarvalue
Or something like that.
Obviously time of day would be incremented from 0-360 or some such.
[QUOTE=benji2015;33137828][img]http://puu.sh/8a66[/img]
Ignore the terrible dirt.[/QUOTE]
That dirt and stone look exactly like in terraria.
[editline]5th November 2011[/editline]
[QUOTE=Jawalt;33137845]sun = Vector(sin(timeofday), cos(timeofday))
sun *= somescalarvalue
Or something like that.[/QUOTE]
Thank you, I will try it in a bit. Hopefully it works.
This is about the best I could get it on my own...
[img]http://filesmelt.com/dl/PlatformerBetterSun.gif[/img]
Your art is actually pretty great, Benji.
[editline]a[/editline]
Maybe because it's almost exactly Terraria's art :v:
[img]http://dl.dropbox.com/u/764206/Superscrot/FtpClassDiagram.png[/img]
That's one thing out of my way. I've always hated FTP but this works, and isn't overly complicated. :dance:
Now I just need to decide on how my screenshot program is going to work. I was thinking about monitoring (Alt+)Printscreen and using the clipboard image.
I'm not sure if I'm going to let the Windows 7 snipping tool do the rest of the work and just somehow get that image, or make my own region cropping functionality.
fff automerge
[QUOTE=MadPro119;33137857]That dirt and stone look exactly like in terraria.
[editline]5th November 2011[/editline]
Thank you, I will try it in a bit. Hopefully it works.
This is about the best I could get it on my own...
[img]http://filesmelt.com/dl/PlatformerBetterSun.gif[/img][/QUOTE]
Actually just increment the sun's x by whatever amount and then make it's y = sin(x) and then scale it so the wave ends at each side of the screen. When it goes off screen it's night, and in the morning reset the position of the sun.
[QUOTE=Azur;33137886]Your art is actually pretty great, Benji.
[editline]a[/editline]
Maybe because it's almost exactly Terraria's art :v:[/QUOTE]
Thanks, and a side by side:
[img]http://puu.sh/8a88/[/img]
I poked at the idea of writing an open version of the GTA3/Vice City/San Andreas engine that still uses the original files to run, that would be a modder's dream basically. It can't be that hard if you think about it:
[t]http://cloud.steampowered.com/ugc/613841548876777721/EF0960C94FD9E6BF03A85E9D67866620C8EA6537/[/t]
That's San Andreas, maxed out.
Nothing better than messing with code, and having a problem with string concatenation when encrypting some text, and then accidentally click-dragging some code, miraculously fixing it
[QUOTE=Overv;33138155]I poked at the idea of writing an open version of the GTA3/Vice City/San Andreas engine that still uses the original files to run, that would be a modder's dream basically. It can't be that hard if you think about it:
[t]http://cloud.steampowered.com/ugc/613841548876777721/EF0960C94FD9E6BF03A85E9D67866620C8EA6537/[/t]
That's San Andreas, maxed out.[/QUOTE]
implying rendering engine = game
[QUOTE=benji2015;33137828][t]http://puu.sh/8a66[/t]
Ignore the terrible [del]dirt.[/del][/QUOTE]
ftfy
[h2]Stop.[/h2]
[i]Take a second.[/i]
[sub][sub]Ding![/sub][/sub]
Matter fact, you should take four, b. and think before you mess with little pixel p.
[img]http://i.somethingawful.com/forumsystem/emoticons/emot-snoop.gif[/img]
Take a quick lesson in tile art. Google that shit, nigga.
[img]http://i1209.photobucket.com/albums/cc392/Agrisito/test56.png[/img]
Observe.
[img]http://myweb.csuchico.edu/~lkester/pixels/platformStyle.gif[/img]
Learn something from multiple artists.
[img]http://img88.imageshack.us/img88/2848/wiptiles.png[/img]
Learn what's not good.
[img]http://hasgraphics.com/thumbs/basic_ground_tileset.png[/img]
Learn what is.
[img]http://img401.imageshack.us/img401/9834/sidescrollertk9.png[/img]
Learn what's better.
[IMG]http://img94.imageshack.us/img94/1445/invmd2.png[/IMG]
Do I want a color scheme, and is it necessary or appropriate for my area/time of day?
[img]http://img401.imageshack.us/img401/7674/map11au3.png[/img]
Will my tiles look okay when I... well [i]tile[/i] them?
[img]http://www.mandible.net/wp-content/uploads/2011/01/smb3.jpg[/img]
How can I create tone, and a sense of conformity, while still not feeling flat?
If needed, I can record a small art lesson for everyone. The images above are not of the best quality work for reference in my opinion, but it's a start, and better than nothing. Just trying to be helpful here. If you still want to create clones for foundation's sake, be my guest and do so. I personally think it's fun, too. If done properly, it can be beneficial. But when you cross the border of having to code stuff to work with your cloned artwork (Terraria with it's gaps and pixel border nudges), then you're crossing a line for yourself that makes it difficult to reimage your game as time goes on.
[QUOTE=Naarkie;33135158]"Cowboy"?[/QUOTE]
Haha, I knew that would come up.
I have three Western Digital drives named "Stallion", "Cowboy" and "Wild".
It's just how I roll :dance:
Sorry, you need to Log In to post a reply to this thread.