Archive for the ‘Software Engineering’ Category

Shell Shock Live Calculation Ruler!

Monday, July 18th, 2011

Yesterday I was looking around for hacks for a game called Shell Shock Live. I, sadly, did not find any :(

 

However… I did come across an idea to create an overlay “Ruler” for Shell Shock Live, and, taking that idea to heart, I started taking measurements of the game. For those of you who want those measurements for their OWN ruler systems, here they are:

Speed: always power/100*26. Exact calculation depending upon angle into both axis goes like this: Create point at (power/100*26, 0) and rotate by angle. EXACT formula is like this:

 

X velocity:  speed * Cos((PI/180) * angle)

Y velocity:  speed * Sin((PI/180) * angle)

speed being power/100*26

angle being in degrees.

Then, every tick, 0.7 is subtracted from the y velocity, inducing gravity. This IS 0.7, 0.75 causes over gravity. I fine tuned it and did very precise measurements! Same goes with 26 as the max speed rather than 25.

Finally, wind… Still working on it, BUT, the game adds about wind/15*0.14 each frame.

 

 

THen, you need only do a for loop, and each iteration of the for loop counts both as a frame, and a point to plot. Here is a video of the end result in a game:

 

[Insert Demo Here] (Must upload it)

 

Please note, however, that this was designed specifically for my machine. I have special settings changed that allow me to take widgets out of the dashboard. If I get enough comments requesting this (Like, maybe, ten?) I’ll see what I can do about making a PC/mac compatible version that runs on default systems. However, the controls are still pretty cantankerous!

 

Better Battery: Alpha here!

Sunday, July 3rd, 2011

Hi! :) Better Battery Alpha is here. Please note this IS an Alpha (Not even a Beta). That means it’s experimental.

 

Key features missing:

  • Does not install its self for life. You need to run the program when your computer starts up.
  • Does not have preferences.
  • Does not have an application icon.

Those are just some of the features which I will add in later releases.

Until then, here is Better Battery Alpha:

Download

Testing 123

Tuesday, June 28th, 2011

The permalinks to my posts aren’t working :(

 

Hi, I am editing this post rather than posting anew. I posted this because… Permalinks were broken, making commenting, and individual post viewing impossible.

 

I suspected started ages ago, and in ever noticed it, on one of my bouts of WP core messing. I tried to fix it this morning completely breaking my WP installation.

I had long been using multiblog on 2.9.2 (VERY outdated), and, the combination of unstable technology and old version number has really held me back. I am finally in a space where I understand enough about WP to begin managing it myself. (Dad did the managing in the past) With all the above stated… It is time to drop multi-blog and finally upgrade.

Due to the nature of the break, I have to COMPLETELY delete my blog’s internal systems and reinstall them, and hope to god that my backups work. That is what I did here, minus the deleting part. I installed wordpress on this domain and restored my posts from a backup. It’s worked great! That means I can move on to do the real deal.

GREEN:
Completed

YELLOW:
On hold or in progress

RED:
Incomplete

completed (And update this post as I complete more)

  • First off, test the concept in a separate domain
  • Next, go back to the old domain, and organize the MESS that I have on the main directory into two groups: Old WP files, and, miscellaneous stuff.
  • Next, create a new database for the new system. (Will keep old one around just in case)
  • After that… I will need to reinstall wordpress on the old domain. NORMAL wordpress this time
  • Finally, I will need to carefully, CAREFULLY, install my backups. I’ve decided to copy over form this site, so, comments will be restored.
  • Move all the plugin and theme files form the old WP files to the new installation.
  • Last, but not least, restore the categories, which, sadly will not be taken into the backup. I suspect them as a possible source, and they need to be redone.

Further down the road:

After I have accomplished this, I will go back to work on BetterBattery for a while. I really need it ,and just today I came across the issue which it was meant to fix.

Once I get BetterBattery finished and published, it will be time to take a look at space.geiodo.com, which will still be running multiblog. I will do the same project, though, THAT installation is a lot cleaner, so no organizations, 404 redirects, etc. In fact, I don’t even want any of the old content. (Though, a lot of it is concept material which I want to keep for game conceptualization purposes, so I will likely be doing a backup anyhow)

 

Anyways, that’s the plan. Off to work!

 

 

Is it just me…

Tuesday, June 28th, 2011

Ooorr, do the apple developer docs just plain out suck?

Last night, I was running into MAJOR issues figuring out how in blazes to get the battery level! After a while of googling, I managed to find the following IOKit docs:

http://developer.apple.com/library/mac/#documentation/Darwin/Reference/IOKit/IOPowerSources_h/index.html

That’s great, but, apple dev being apple dev… It doesn’t tell you what to import. Just a lousy little “IOPowerSources.h”

Turning to StackOverflow, I managed to get some help, and I’m here to share that with the rest of the world!

http://stackoverflow.com/questions/6502949/iokit-iopowersources-troubles

To get to the import(s) of whatever it is you are trying to use, first, you have to add the framework. I, being an idiot, thought the framework was… All ready there..

To do that, well, that will take some googling. Apple messes around with Xcode ALOT, and every version has a different way of doing it.

For me, double clicking my target, going to the general tab, and editing the list towards the bottom called “Linked Libraries” did it, but, then again, I am still using Xcode 3.2

Once you do that, you have to open the framework, and manually search for the H file (In this case, IOPowerSources.h) and then look at its location.

To convert its location to an importable form, do the following:

First off, find the path from “Headers”

In this case, it was “/ps/IOPowerSources.h”

Then, append the name of the library to the front, and surround with the proper import syntax, end result being:

#import <IOKit/ps/IOPowerSources.h>

BetterBattery: Auto Sleeping confirmed

Tuesday, June 28th, 2011

I just did the research, and I came across some very nice code which demonstrates telling the OS to go to sleep. It’s fast, and uses no prompts, so, emergency sleeping at 5% battery is definitely going to be a feature of BetterBattery! Woohoo!