Working on Fructose's HTTP library. Basically a wrapper for PHP's $_GET and friends. However, I've decided to work Ruby's (and therefore Fructose's) built-in 'tainted?' functionality present in every object right into this HTTP library. All user data is set as tainted by the HTTP lib, and must have the String#escape method called on it before it can be outputted.
Here's an example. This script looks safe right?
[code]
require :http
puts get[:str]
[/code]
Let's see what happens when we visit it:
[img]http://ahb.me/1GCi[/img]
[b]Uh oh![/b] Gonna have to escape that:
[code]
require :http
puts get[:str].escape
[/code]
Now we get this:
[img]http://ahb.me/1GCl[/img]
Yay! Although, one could manually call the untaint method, but if you're stupid enough to do that to user-supplied data, you deserve to get hacked:
[code]
require :http
s = get[:str]
s.untaint
puts s
[/code]
[img]http://ahb.me/1GCp[/img]
-snip-
[QUOTE=Xeon06;27806151]Took me a while to realize you're on top. That kinda defies the pre-established standard for decades now :v:[/QUOTE]
It's just because the game is so revolutionary.
(or it's because it was 1am when I wrote that code a month ago and it's so poorly written I'm scared to touch it).
Well I now have a HTC Desire HD, now to get my game onto it
[QUOTE=nekosune;27811662]Well I now have a HTC Desire HD, now to get my game onto it[/QUOTE]
I got an HTC Desire HD last week :smile:
Enable USB debugging, install HTC Sync on your PC to get the USB drivers, plug device into PC, and you're good to go :P
And it fails, not only does it now copy the wrong tiles, But it is so tiny is unusuable
[editline]2nd February 2011[/editline]
[IMG]http://i171.photobucket.com/albums/u281/nekosune1/device-4.png[/IMG]
Here's my RPG engine I've been working on for a while, rebuilt it a fair few times. But it has these features so far,
[URL=http://img28.imageshack.us/i/rpgeditor.jpg/][IMG]http://img28.imageshack.us/img28/3632/rpgeditor.th.jpg[/IMG][/URL]
Autojoining cliffs
Random Terrain Generation(pretty basic at the moment)
Parallax scrolling for layers
The tool box on the left side is loaded from a seperate dll, so potentially users could create their own tools in C# without having to compile the program again.
I plan on doing the same with what I call Map Modifiers, and converting the Autojoining cliff tool and random terrian generator over to the system. Each Graphical Layer("sup dog", "test", etc) will have its own generator instances, so you could eventually get to the point where each layer could be dynamically generated.
It's in C# combined with OpenTK and OpenGL. I spent a fair chunk of time getting the scrolling working with zooming, as the last couple of times before I rebuilt, zooming never really worked properly.
All the layers are in Jagged Arrays, but the Players and NPCs are all in a QuadTree so that I can get pixel based movement.
Not really sure what other features I want to add in, but if anyone has suggestions I could give implementing them a go.
That's all I've implemented so far in this version, but in the previous version I implemented features really quickly with no concern for future growth, which did make things a bit unmaintainable.
I did have some cool features though, such as
Dynamic NPCS
Speech System in Place
Spinning Menu like in Secret of Mana
The Player system implemented, but only with tile based movement(which kinda sucked)
If you guys want I'll post a demo you can screw around with, but note, it's probably riddled with bugs as much as I've tried to put in bounds checking and the like.
[QUOTE=xAustechx;27795698]Oh wait, never mind. Those were homing missiles, not grenades. Damn.[/QUOTE]
Homo-ing missiles.
[media]http://www.youtube.com/watch?v=yxdQerkJBAI[/media]
The app is so slow in this video because the emulator is incredibly slow. It runs fine on an actual device.
Anyone know how to fix that bug where the background draws over the list of songs?
You should make it service so it can play while you do other stuff.
[QUOTE=RyanDv3;27813553]You should make it service so it can play while you do other stuff.[/QUOTE]
I showed that in the video...
[editline]2nd February 2011[/editline]
Oh, you mean during browsing and stuff? Hmm. Maybe.
[QUOTE=CriticalImpact;27812108]Here's my RPG engine I've been working on for a while, rebuilt it a fair few times. But it has these features so far,
[URL=http://img28.imageshack.us/i/rpgeditor.jpg/][img_thumb]http://img28.imageshack.us/img28/3632/rpgeditor.th.jpg[/img_thumb][/URL]
Looks awesome! The tiles look familiar though, I want to say that they're from RPG Maker?
Autojoining cliffs
Random Terrain Generation(pretty basic at the moment)
Parallax scrolling for layers
The tool box on the left side is loaded from a seperate dll, so potentially users could create their own tools in C# without having to compile the program again.
I plan on doing the same with what I call Map Modifiers, and converting the Autojoining cliff tool and random terrian generator over to the system. Each Graphical Layer("sup dog", "test", etc) will have its own generator instances, so you could eventually get to the point where each layer could be dynamically generated.
It's in C# combined with OpenTK and OpenGL. I spent a fair chunk of time getting the scrolling working with zooming, as the last couple of times before I rebuilt, zooming never really worked properly.
All the layers are in Jagged Arrays, but the Players and NPCs are all in a QuadTree so that I can get pixel based movement.
Not really sure what other features I want to add in, but if anyone has suggestions I could give implementing them a go.
That's all I've implemented so far in this version, but in the previous version I implemented features really quickly with no concern for future growth, which did make things a bit unmaintainable.
I did have some cool features though, such as
Dynamic NPCS
Speech System in Place
Spinning Menu like in Secret of Mana
The Player system implemented, but only with tile based movement(which kinda sucked)
If you guys want I'll post a demo you can screw around with, but note, it's probably riddled with bugs as much as I've tried to put in bounds checking and the like.[/QUOTE]
Looks sweet!, The tiles look oh so familiar, but I can't seem to remember where they're from.
[QUOTE=geel9;27813571]I showed that in the video...[/quote]
Ah, nevermind then. Good job.
[QUOTE=LikeWoah;27813580]Looks sweet!, The tiles look oh so familiar, but I can't seem to remember where they're from.[/QUOTE]
RPG Maker XP
Added in ore (ie random patches of brownness) to my game, though doesnt do anything so far :v:
Dl link is same as it was before, which includes source (poor)
[QUOTE=Richy19;27813684]RPG Maker XP[/QUOTE]
Everyone loves the RPG Maker tileset :D
I ran them through a 2x scaler as well so they look a bit cleaner as well.
[img]http://gyazo.com/c5b8e6e0b655c8f4e151ea12897bffa5.png[/img]
How's that look?
[QUOTE=geel9;27813509][media]http://www.youtube.com/watch?v=yxdQerkJBAI[/media]
The app is so slow in this video because the emulator is incredibly slow. It runs fine on an actual device.
Anyone know how to fix that bug where the background draws over the list of songs?[/QUOTE]
Is it just the video or are the song names really hard to read at 1:13 ish
[editline]2nd February 2011[/editline]
Never mind, nice reading the thread
[editline]2nd February 2011[/editline]
[QUOTE=geel9;27813995][img_thumb]http://gyazo.com/c5b8e6e0b655c8f4e151ea12897bffa5.png[/img_thumb]
How's that look?[/QUOTE]
Much better
[QUOTE=geel9;27813995][img_thumb]http://gyazo.com/c5b8e6e0b655c8f4e151ea12897bffa5.png[/img_thumb]
How's that look?[/QUOTE]
Add either a white or black layer over it and make that layer slightly transparent (in Photoshop or GIMP or whatever). That way it'll be a more subtle background instead of a very attention-grabbing one.
[QUOTE=geel9;27813995][img_thumb]http://gyazo.com/c5b8e6e0b655c8f4e151ea12897bffa5.png[/img_thumb]
How's that look?[/QUOTE]
I'm sure Android has HIG.
You should probably read them.
[QUOTE=CarlBooth;27814599]I'm sure Android has HIG.
You should probably read them.[/QUOTE]
[url]http://developer.android.com/guide/practices/ui_guidelines/index.html[/url]
[QUOTE=geel9;27813509][media]http://www.youtube.com/watch?v=yxdQerkJBAI[/media]
The app is so slow in this video because the emulator is incredibly slow. It runs fine on an actual device.
Anyone know how to fix that bug where the background draws over the list of songs?[/QUOTE]
Way to add to a play-list or favourites?
[QUOTE=vexx21322;27814757]Way to add to a play-list or favourites?[/QUOTE]
I am almost done coding that, actually.
Can it also download the MP3s? That's definitely the feature I'd use most.
Is this program not ilegal in some way?
[QUOTE=Robber;27815372]Can it also download the MP3s? That's definitely the feature I'd use most.[/QUOTE]
I'll add that in a later update but right now I just want to finish the UI, bugfix it to fuck and release it.
[editline]2nd February 2011[/editline]
[QUOTE=Richy19;27815476]Is this program not ilegal in some way?[/QUOTE]
I emailed Tom, he's cool with it.
[editline]2nd February 2011[/editline]
Hey, anyone wanna donate some money so I can pay the fee to join the android market? I'm broke. :v: