More like
Day 3, and everybody has killed eachother after a huge argument
no, git is better
[QUOTE=layla;22394587]no, git is better[/QUOTE]
I read this and was like "oh shit". Luckily when I read up I realised the humour.
[QUOTE=layla;22394310]Put everyone from WAYWO thread into one house like some kind of reality show and see what would happen.
Day 52, Chad says something stupid again.[/QUOTE]
And only one computer.
[QUOTE=Jallen;22394836][IMG]http://dl.dropbox.com/u/5062494/junk/lolVersionControl.png[/IMG][/QUOTE]
it's true though
[QUOTE=thelinx;22389319]I'm just curious, when programs are polling files, are they listening to some modified-file pipe or do they just while true check files?[/QUOTE]
I believe most are checking the last date modified.
.NET does have the "FileSystemWatcher" class though. (Which uses the ReadDirectoryChangesW API)
But with last data modified if you delete a space and add it back again it still says it was modified? Couldn't you compare the file to the previous version to find if anything has changed.
[QUOTE=iPope;22396328]But with last data modified if you delete a space and add it back again it still says it was modified? Couldn't you compare the file to the previous version to find if anything has changed.[/QUOTE]
I would still check if it was modified first and then maybe check the hash to confirm. Cause constantly hashing a file (especially a large one) isn't the best idea.
Made an interpreter, it's turing complete.
[code]setr 10 // Set memory area to 10
setv 30 // Set value of area to 30
setr 1
setv 10
setr 0
Add10To0: // Make a label for looping back to.
add 1 // Add the area 1 to current area. Like +=
cmp 5 10 // Compare with area 10, 5 is !=
cjmp 5 Add10To0 // If comparison is != then jump to label.
out // Output.
[/code]which then is parsed to:
[code]0 10
1 30
0 1
1 10
0 0
3 1
4 5 10
6 5 6
2
[/code]the output:
[IMG]http://img38.imageshack.us/img38/8905/interpreter.png[/IMG]
It loops until are 0 is 30 and then prints.
[editline]02:38PM[/editline]
Also big thanks to #luahelp. They helped me out a lot. Don't use C++ often and was using some pretty bad practices and wasn't doing it right.
[QUOTE=high;22396430]I would still check if it was modified first and then maybe check the hash to confirm. Cause constantly hashing a file (especially a large one) isn't the best idea.[/QUOTE]
A perfect solution! In fact I'm going to create a python script that tries this method and see if it works well.
[QUOTE=high;22396430]I would still check if it was modified first and then maybe check the hash to confirm. Cause constantly hashing a file (especially a large one) isn't the best idea.[/QUOTE]
Yeah, that would make sense.
[QUOTE=BAZ;22026547]Just out of interest how are you freezing them?
When I tried physics with love they would end up accumulating the force applied to them so I when I unfroze them it would fly off.[/QUOTE]
This is hella late because I've had some computer problems, but:
Freezing: body:setMass(0, 0) and body:setLinearVelocity(0, 0)
Unfreezing: body:setMassFromShapes()
If mass is 0 then the body will not move, and will ignore any forces applied to it. Velocity needs to be set to 0 so thaat the body does not continue moving in its original direction when unfrozen.
To be honest, I'm pretty much winding this in now for a while - what with my recent computer problems I've sort of lost interest in löve, having not been able to use it for a couple of weeks now, and I've now got a new project underway for my DS.
I spent the last 1.5 days making a little framework that allows me to write basic applications that run as native (well, as native as Java gets) applications on a PC as well as on Android. I write the app/game just once and it automatically works on both platforms without [i]any[/i] extra work.
[IMG]http://i50.tinypic.com/1zlf1v6.png[/IMG]
[QUOTE=Robber;22399102]I spent the last 1.5 days making a little framework that allows me to write basic applications that run as native (well, as native as Java gets) applications on a PC as well as on Android. I write the app/game just once and it automatically works on both platforms without [i]any[/i] extra work.
[IMG_thumb]http://i50.tinypic.com/1zlf1v6.png[/IMG_thumb][/QUOTE]
That's actually really useful. You should release it somewhere.
[QUOTE=CarlBooth;22400078]That's actually really useful. You should release it somewhere.[/QUOTE]
I'll think about it, but first I want to make something with it to find most of the critical bugs.
In case you didn't notice, the LÖVE website is now back up, along with the forums and the wiki.
[url]http://love2d.org/[/url]
[QUOTE=Robber;22399102]I spent the last 1.5 days making a little framework that allows me to write basic applications that run as native (well, as native as Java gets) applications on a PC as well as on Android. I write the app/game just once and it automatically works on both platforms without [i]any[/i] extra work.
[IMG_THUMB]http://i50.tinypic.com/1zlf1v6.png[/IMG_THUMB][/QUOTE]
Awesome, please do release it.
I am planning on doing something like this for iPhone, since a lot of people are doing it.
-snip-
[QUOTE=Robber;22400123]I'll think about it, but first I want to make something with it to find most of the critical bugs.[/QUOTE]
Why not put it on Github or another site for the CVS of your choice? We can help you fix bugs.
[QUOTE=i300;22400690]Awesome, please do release it.
I am planning on doing something like this for iPhone, since a lot of people are doing it.[/QUOTE]
Would be even more awesome to have something that instantly works on PC, Android and iPhone.
[QUOTE=arienh4;22401361]
Would be even more awesome to have something that instantly works on PC, Android and iPhone.[/QUOTE]
Ok, I can't hold back anymore.
[url=http://www.appcelerator.com/][img]http://imgkk.com/i/24gr.png[/img][/url]
[QUOTE]250 "smoke" particles that follow your mouse[/QUOTE]
slow but sexy
[QUOTE=likesoursugar;22401589]slow but sexy[/QUOTE]
Doesn't drop below 20 FPS once in Google Chrome. And this is on a bad computer too.
[QUOTE=thelinx;22401527]Ok, I can't hold back anymore.
[url=http://www.appcelerator.com/][img]http://imgkk.com/i/24gr.png[/img][/url][/QUOTE]
It's the 'web technologies' part of that I don't like. Why would I use web technologies to creative native apps if I could use native technologies to do so.
[QUOTE=arienh4;22401361]
Would be even more awesome to have something that instantly works on PC, Android and iPhone.[/QUOTE]
Android? iPhone?
Those two don't get along very well, but it could work...
(Android is Java, iPhone is Objective-C)
[QUOTE=r0b0tsquid;22397626]This is hella late because I've had some computer problems, but:
Freezing: body:setMass(0, 0) and body:setLinearVelocity(0, 0)
Unfreezing: body:setMassFromShapes()
If mass is 0 then the body will not move, and will ignore any forces applied to it. Velocity needs to be set to 0 so thaat the body does not continue moving in its original direction when unfrozen.[/QUOTE]
Sweet, I completely forgot about LinearVelocity. (I store the mass data before and reapply it for custom masses rather than use setMassFromShapes)
Is there a reliable way to convert a big endian type to a small endian?
A decent way i've found is:
[cpp]
void ByteSwap(void* b, int n)
{
int i = 0;
int j = n - 1;
while (i < j)
{
std::swap(((unsigned char*)b)[i], ((unsigned char*)b)[j]);
i++, j--;
}
}
[/cpp]
thought it would be worth seeing if anyone knows a better way
[QUOTE=layla;22402363]Is there a reliable way to convert a big endian type to a small endian?
A decent way i've found is:
[cpp]
void ByteSwap(void* b, int n)
{
int i = 0;
int j = n - 1;
while (i < j)
{
std::swap(((unsigned char*)b)[i], ((unsigned char*)b)[j]);
i++, j--;
}
}
[/cpp]
thought it would be worth seeing if anyone knows a better way[/QUOTE]
[url]http://stackoverflow.com/questions/105252/how-do-i-convert-between-big-endian-and-little-endian-values-in-c[/url]
[QUOTE=thelinx;22400607]In case you didn't notice, the LÖVE website is now back up, along with the forums and the wiki.
[url]http://love2d.org/[/url][/QUOTE]
I've been waiting for that news all week! Yes!
Did you install anti-alien railguns? If not I know a guy that can get them real cheap!
[QUOTE=flav;22402755][url]http://stackoverflow.com/questions/105252/how-do-i-convert-between-big-endian-and-little-endian-values-in-c[/url][/QUOTE]
Some of them solutions are pretty dodgey and untested.
Sorry, you need to Log In to post a reply to this thread.