[QUOTE=LuaStoned;34340886]Heh, I still have to create the official LuaCraft thread over at the MC subforum.
You can get the server already (check [url]http://wiki.luacraft.com[/url]) but the client needs a little more work (Gui related things).
I will inform you guys when it's out![/QUOTE]
Is it open source?
[img]http://www.horsedrowner.com/images/screenshots/NANO/Tits/201201221940371430-500x584.png[/img]
famfamfam's Silk icons make everything sexy.
[QUOTE=horsedrowner;34343230][img]http://www.horsedrowner.com/images/screenshots/NANO/Tits/201201221940371430-500x584.png[/img]
famfamfam's Silk icons make everything sexy.[/QUOTE]
Even the bottom part of your post.
Took a while, but native functions can all accept any number of arguments now. Some of them are variadic too:
[img]http://i.imgur.com/6EVMr.png[/img]
Print takes any number of arguments. I've also added a PRNG function:
[img]http://i.imgur.com/7RsM1.png[/img]
You can pass in as many numbers as you want - so prng(x, y, z) will give a 3D noise volume, and so on. There's also a rand() function - it returns a random float from 0 to 1 if you call it with no arguments, or if you call it with one argument it'll return an integer from (0 -> value] .
Not quite sure what to add next :v:
[img]http://puu.sh/efiC[/img]
Better user box?
Fixed an issue with procedure calls - everything's global, so when parameters are passed into a procedure, their values persisted globally, which led to some interesting side effects. As a quick fix, the original values of the named parameters are stored upon entry, and restored upon return; effectively, they're scoped to the function, and you can dick about with them as much as you like without side effects. I'd like to implement proper lexical scoping at some point, but this works for now.
Anyway, this now works:
[img]http://i.imgur.com/qix8z.png[/img]
Fractal terrain, all done in graphscript :) Should work in 3D as well.
Anyway, I've got an exam tomorrow, so I'm off to do a couple of papers before bed. Night guys :)
[editline]22nd January 2012[/editline]
Here's the code for that:
[code]let lerp(a, b, t) = a * (1 - t) + b * t
let frac(x) = x - floor(x)
let smoothnoise(x, z) = lerp(
lerp(prng(floor(x), floor(z)), prng(floor(x + 1), floor(z)), frac(x)),
lerp(prng(floor(x), floor(z + 1)), prng(floor(x + 1), floor(z + 1)), frac(x)),
frac(z)
)
def fbm(x, z, freq, amp, octaves)
if octaves > 0 then
return smoothnoise(x, z) + amp * fbm(x*freq, z*freq, freq, amp, octaves - 1)
else
return 0
end
end
y = fbm(x, z, 2, 0.5, 3)[/code]
Oh god, Ages ago I did a auto FP white lister and totally forgot about it...
Logged back into the account...
[img]http://i.imgur.com/1h0Q9.png[/img]
made a bigger version of Dlaor's double helix thing. I don't know how to make Fraps record Winforms so fuck you guys, have a still screenshot.
[IMG]http://puu.sh/efxx[/IMG]
Download [URL="http://puu.sh/eftw"]heeeere[/URL]
EDIT: It looks bad when not animated. :(
Didn't someone make a Visual Studio line counter a while back? If so, does anyone have it?
Fp android reply test.
[editline]22nd January 2012[/editline]
IT LIIIIIVES
[thumb]http://i.imgur.com/7Cm45.png[/thumb]
Am I cool yet???
[QUOTE=WalkDinosaur;34344996]Fp android reply test.
[editline]22nd January 2012[/editline]
IT LIIIIIVES[/QUOTE]
I want.
And now I am posting from it.
This is pretty cool. A lot of work to be done, but it works!
[QUOTE=Naarkie;34344867]made a bigger version of Dlaor's double helix thing. I don't know how to make Fraps record Winforms so fuck you guys, have a still screenshot.
[IMG]http://puu.sh/efxx[/IMG]
Download [URL="http://puu.sh/eftw"]heeeere[/URL]
EDIT: It looks bad when not animated. :([/QUOTE]
[media]http://www.youtube.com/watch?v=kxDrrd0Uuio[/media]
Camtasia FTW
[QUOTE=KillerJaguar;34344977]Didn't someone make a Visual Studio line counter a while back? If so, does anyone have it?[/QUOTE]
Use find in files, regular expression. If you want to include blank lines just do something like ^.+$ (Global of course) If you don't want to include blank lines you'll have to look it up, but it's not a very complicated expression.
VS outputs the number of matched patterns, so this number will refer to the number of lines.
[QUOTE=Naarkie;34344867]made a bigger version of Dlaor's double helix thing. I don't know how to make Fraps record Winforms so fuck you guys, have a still screenshot.
[/QUOTE]
Can this be a new fad? :v:
[img]http://i.imgur.com/E4XUC.gif[/img]
Just needs some funky music...
^.*[^ \t].*$ should find not-empty lines.
[QUOTE=Tamschi;34346194]^.*[^ \t].*$ should find not-empty lines.[/QUOTE]
Well it's a tad more complicated than that since generally if you don't count empty lines you also don't count lines with comments etc on it, which is why I didn't include an expression for that.
[QUOTE=Dotmister;34346294]Well it's a tad more complicated than that since generally if you don't count empty lines you also don't count lines with comments etc on it, which is why I didn't include an expression for that.[/QUOTE]
So that's why calculate code metrics finds so few lines...
I don't know wich versions have it though.
Edit: Seems like it's part of FxCop...
snip
[QUOTE=WalkDinosaur;34336057][img]http://puu.sh/ebtt[/img]
Hello, quotes![/QUOTE]
How is this getting it's data?
Also, obligatory mobile app progress screenshot:
[img]http://cl.ly/DYMX/2012-01-22%20at%2010:37.png[/img]
dem rasters.
nice
[QUOTE=amcfaggot;34347069]dem rasters.[/QUOTE]
Yeah, I don't want to write my own SMSView...
Maybe later once more functionality is there.
[img]http://puu.sh/egxo[/img]
Better?
[QUOTE=Hexxeh;34347093]Yeah, I don't want to write my own SMSView...
Maybe later once more functionality is there.[/QUOTE]
Nice work thus far, anyway!
[QUOTE=Hexxeh;34347040]How is this getting it's data?
[/QUOTE]
XML parser.
[editline]23rd January 2012[/editline]
Time for a vote.
[b]AGREE:[/b]
[img]http://puu.sh/eh08[/img]
[b]DISAGREE:[/b]
[img]http://puu.sh/eh0M[/img]
[b]FUNNY:[/b]
[img]http://puu.sh/eh1r[/img]
all 3 look bad, you're really bad at design I'm afraid to say. :<
[img]http://www.facepunch.com/fp/ratings/tick.png[/img]x40
do it like that
[QUOTE=TehWhale;34348480][img]http://www.facepunch.com/fp/ratings/tick.png[/img]x40
do it like that[/QUOTE]
Already was going to :v:
[img]http://puu.sh/eh3Y[/img]
Sorry, you need to Log In to post a reply to this thread.