I'm pretty sure they sanitize the string before.![]()
I'm pretty sure they sanitize the string before.![]()
demoman rush. and is this live updating?
EDIT: and teleporters
Having a middle name like that would still be awesome.
did some benchmarking on performance:
Type Pieces Ticks [second]
Uniform 20 0
Uniform 32 0
Uniform 64 0
Uniform 100 0
Uniform 128 0
Uniform 256 0
Uniform 512 1
Uniform 1024 3
Uniform 2048 6
Uniform 4096 11
Uniform 8192 22
Point 32 0
Point 64 0
Point 128 0
Point 256 1
Point 512 1
Point 1024 3
Point 2048 6
Point 4096 12
Point 8192 25
Line 32 0
Line 64 0
Line 128 1
Line 256 1
Line 512 1
Line 1024 3
Line 2048 5
Line 4096 12
Line 8192 23
Plane 32 0
Plane 64 0
Plane 128 0
Plane 256 1
Plane 512 2
Plane 1024 3
Plane 2048 5
Plane 4096 11
Plane 8192 23
Volume 32 0
Volume 64 0
Volume 128 0
Volume 256 1
Volume 512 2
Volume 1024 3
Volume 2048 6
Volume 4096 11
Volume 8192 23
Hardware: 3GHz single thread.
Since all of them share the same performance, I just plotted one chart:
It's O(n), n being the pieces you want to get at the end.
Basically,
@3GHz, you get n / 400 seconds to shatter.
and this is my shatter plugin, as a reminder:
http://www.facepunch.com/threads/107...ttering-Plugin
They're using App Engine anyway. They'd have to try pretty hard to make SQL injection possible there since it doesn't even use SQL.
I was trying to be funny and reference an xkcd comic...
Yeah lets try and fuck with indie game devs who were kind enough to offer out their games for any price and allow you to choose what goes to charity / to the devs etc. They really deserve it, right? Besides, they're too smart to forget about safeguarding against SQL injection.
In that case it might be because my Camera doesn't roll.
I wasn't planning to implement it either, I just added roll for completeness.
Even the guys who made MySQL did at some point.
Yup, Mysql.com was compromised... by SQL injections...
http://techie-buzz.com/tech-news/mys...injection.html
Thats kinda ironic..
ALL MY CLOCKS
It was obviously a joke. Don't take it so seriously. D:
Then use quaternions for completeness. There is no point in opening yourself to reuse, then having to change it if you do use it again.
Huh, when I do this it works fine
std::string h = file.ReadString();
int i = file.ReadInt();
std::cout << "VAL:" << h << ":" << i << std::endl;
But if I do
std::cout << "VAL:" << file.ReadString() << ":" << file.ReadInt() << std::endl;
I'm using a quick custom binary file io library (technically it's a wrapper of fstream that deals with the complications of my file format) so that's whats up with the weird names.
Yeah, what's your problem jall?![]()
I even added this fancy dialog box to my map editor
![]()
Are those... numbers in the bottom right?
1337?![]()
What a huge coincidence.
Yeah, it's actually written on the map :V:
Just began writing a map generator. I'm thinking about using a JSON parser for whatever needs be saved.
Seed is used to generate the map.Code:{'seed': 'T3hGamerDK', 'mapdata': {'xyz': '1024,1024,2048'}, 'entity': {'xyz': '3,400,-10', 'type': 'player_spawn'}}
The "xyz" of "mapdata" is the size of the maps. Most of this stuff is just random and arbitrary, to give an idea of how things are going to look.
Do you guys think this is a good idea?
I'm thinking about doing an editor for it too, because I won't be needing to load entire maps, I just generate all that shit on the fly :D
Physics and a pretty camera are complete :D
I need some help with passing params (C# params that is) to lua's ... . What i'm currently doing, is I have a method in C# that takes a params object[] args and passes args directly into lua via
But the problem with this is that all of the args are of type object, or System.Object and since lua is dynamicly typed there is no casting. My question is, if the function that has the params as the arguments is calledGetFunction("name").call(args);and I call it by doingCallLua(String name, params object[] args)and in lua I haveCallLua("LFunc", "Bahaha!!");it prints "System.Object [43952345(or some other number]" instead of "Bahahaha!!!". How do I get lua to convert (cast...?) it to a string?function LFunc(haha) print(haha) end
By the way, this code
produces this:Code:Hook.Register('OnLoad','Unique',function() print('Generating grid.') Offset = 8; MaxX = GetWidth()/16; MaxY = GetHeight()/16; for x=Offset,16*MaxX,16 do for y=Offset,16*MaxY,16 do if x==Offset or y==Offset or x==(16*MaxX)-Offset or y==(16*MaxY)-Offset then AddBody('rect',params({x,y,16,16})) end end end circ = AddBody('circle',params({GetWidth()/2,GetHeight()/2,50,function(b1,b2) print('Yay, collisions!') end})) circ.IsStatic = false circ.Restitution = 1.1 end)
![]()
Does anyone have any experience with libGDX or Slick library?
Really dont know whic to go for
Did a quick video to show some of the more movement oriented bits:
Sorry for the low quality :C
I love living in the future.
"Hm. I kinda like the music in that video."
5 minutes later. Bam. I had obtained several albums through perfectly legit sources.
That's great programming music.
The band is Uh Huh Her, and the song is Dreamer if you want to give it a better listen :)
I just spent an hour trying to figure out why my quaternions weren't working. Turns out I hadn't noticed that a + b ^ c is evaluated as (a + b) ^ c instead of a + (b ^ c).
Which is bad because I'd overloaded ^ to stand for the cross product.
Remember, kids: don't misuse your operators.
Aha! Just wrote a proof of concept for building a dynamic array of pointers to todo objects. This has been giving me trouble. I just have to tweak it so that it works with todo objects being read from a binary file and I'll have saving and loading finished for my todo program!
I implemented text entry controls to TopWise, things are getting texty up in here.
Uhh I plan on moving from upgrading from console applications in C++ and adding something to look at.
What do you think I should move on to? SDL? Or is there something else I need to learn first?
You could move straight to SDL or SFML if you feel like it. If things seems to complex, just come back later :)
SFML is probably the easiest graphics library you're gonna find, especially if you're familiar with Gmod Lua as they use a very similar style.
You probably just misstyped this but:
CallLua("LFunc", "Bahaha!!");
shouldn't that be:
CallLua("LFunc", {"Bahaha!!"});
because it's an array, right?
Another thing, if I remember this correctly (which I probably don't) you shouldn't need to have it like a param, object[] should be enough. I am not certain though.
Improved my sun a little
No, it automatically passes every argument after the named arguments into the array.
Hooray for four hours of straight coding until late at night to get me game engine done. It is so beautiful.
printspublic void TestFunction(params object[] args){ foreach(Object obj in args){ Console.out.writeline(obj.ToString()); } } TestFunction("a","b","c","d","e",10);
Just FYICode:a b c d e 10
Guys... Garry's been 1 Up-ed... http://www.humblebundle.com/
$2000.02