Posts Tagged ‘snippets’

Python FTP Uploader in right click menu

Filed under: Python

This tutorial will show you an example of how I’ve been using Python to make my life easier and make my computer do what I want. Here we’re going to add an option to the right click menu to upload a file to your FTP storage. Like so:

I’ve been using Python for a while now and have come to love it. The language is very intuitive, and most of the time I know exactly how to do things which I’ve never done before; because they’re done in the most intuitive way. It’s very good when it comes to doing little tasks quickly. For example I have scripts that watch the household internet usage, or fetch a live proxy server list for me, or crawl image boards to make slideshows. I think this upload function is the most handy thing I made thusfar, so I thought it’ll be nice to share. I think everyone who regularily puts pictures on their site to show to others knows how annoying it is to be whipping out the ftp client just for that.

This is probably going to be my first actual tutorial. Ever. Lets see how I go!

(more…)

Tags: ,

Permalink Comments (6) GearGOD Oct 7, 2007

1337 Interpreter

Filed under: Game Maker

The funniest programming language i’ve come across is l33t. Educate yourself here
http://en.wikipedia.org/wiki/L33t_programming_language

I wrote a quick interpreter for it in GM. Mind, the source code is horrible. It’s an example of how NOT to write a virtual machine. It will parse the contents of source.txt and print the output. No input supported right now. I tested it on most sample programs and found that they work. The ones that do not are fibonacci and countdown, for reasons unknown yet.

More sample programs you can try running can be found here:
http://electrod.ifreepages.com/l33tprogs.htm

int3rpr3t0r download

Tags: ,

Permalink Comments (2) GearGOD Oct 2, 2007

Fake environment mapping

Filed under: Game Maker

A little trick I did to show that some limitations of d3d can be cheated around. Here we have a reflective surface. This is achieved by resolving a model’s vertices into screenspace (once again game maker limits and provides no transform functions so I had to pretty much duplicate d3d output with scripts). It is however, very limited and only shows the idea. To make it work in a game with a camera, you’ll need to do a bit more in the way of transforms.

Oh yeah. The i3d format it uses is produced by my mesh exporter also available here.

Reflections

Tags: , ,

Permalink Comments (0) GearGOD Oct 2, 2007