I always thought it would be fun to have custom Clan logos instead of the generic team images to pick from in multiplayer. These don’t do anything, it’s just for cool factor. They are located within \shelldb\netimg named icon01.pcx through icon10 so I guess we only get to have ten clans!
Outwars Hacking: Multiplayer Mission List
Okay folks, I am going through digging up and re-remembering some old knowledge about hacking Outwars.
First and foremost outwars.mml aka the multiplayer mission list. Lets open it up in a hex editor:
Very simple. Name of the .mis file located in /netmisn followed by some whitespace. I have added a few more:
The astute amongst you may notice hey ass isn’t a real mission, the game agrees and since there is no ass.mis it throws an error and immediately quits:
Lesson here being, don’t screw up the .mml file!
As soon as you add more than 15 entries to this file, the game actually renders a scroll bar but there seems to be some hard coded limit that prevents it from properly handling more missions. No matter, nobody is every going to play anything but anub1m anyway 😛
HP Laptop Audio Hack Part 2
The TS2012 came in the other day and I couldn’t help but play with it before I headed off to bed.
Actually I ended up staying up entirely too late so I could test the amp in conjunction with the USB sound device. The breakout board makes working with the amp integrated circuit a completely brainless affair; just wire up your audio source and power it with a decent 5 volt current source. I actually wired it straight up to the USB power on my desktop with no issue.
So right there I’m just showing the amp plugged into my ZTE Open C to test it alone. It’s really surprising to see that dinky little thing power a speaker like that even if there is distortion at the highest gain setting (+24dB).  The pauses between actual sound output were where I changed the gain using the pair of DIP switches.
So the next video is why I went to bed late that night and why I am going to bed late again tonight: it’s so damn exciting! Here I demo the USB sound adapter being used as primary sound device wired directly to the amp which I am actually powering off my desktop’s USB 5V. I was a little shocked that there was enough current available; if you look in the video you can see my back-of-the-envelope-math for power and I was expecting 700mA draw. Either that number represents peak current modern desktops have sweet USB 5V power!
HP Laptop Audio Hack Part 1
So I’ve had my friend’s laptop for some time and now that I’m through with school I can finally make good on my promise to attempt to finally solve his long standing audio problems. On his HP dv2500 laptop, the sound only works intermittently. We’ve tried all manner of driver fixes to no avail. Finally, one day I half joking suggested we just bypass the entire on-board audio. My idea at first was actually to make use of the on-board power amplifier and just ignore the audio codec IC. Ultimately I thought it wiser to just take everything on-board out of the equation and come up with a solution where I wire up the built-in speakers to a little audio amplifier board which is fed by a USB sound card.
The USB sound card I opted for is a small guy from Sabrent. They have since updated it, but that’s par for the course — these kind of products are always being revised.
When I got the adapter I promptly removed the case to see just how much size I would be attempting to stuff into the cavity of a laptop. Basically what I am looking to do is remove the USB A connector and solder it directly to one of the ports on the motherboard. We could have elected to get a USB hub so he doesn’t lose a USB port but my customer said he didn’t really care about the lost port, more about having functional audio.
One issue I have certainly faced before is extending USB cables. You can read up a on USB cabling and signaling at Wikipedia though what you won’t really come away with from that article is the fact that USB is not really tolerant of hacky wiring jobs — it’s a sophisticated differential signaling scheme. Some care and dare I say engineering might be involved in this project.
Despite being a tight fit, the WIFI area looks like the best location to stick the USB Sound Adapter, its roughly 100mm/4inch’s away from the nearest USB port and basically as close as I can get. Well, if we ditched the optical drive and stuck it in there that would be even closer but I doubt he’d want that! The added benefit of putting it here is the opposite side only has one USB port; hijacking that port would be inconvenient since only one side of the laptop would then have an available USB port.
One of the interesting issues I’m going to have is what to do about the buttons. I wonder if taking them off the board and replacing them with leads to buttons attached to the laptop chassis somewhere will introduce noise?
Here is what the laptop looks like, half dismantled:
I was thinking to put my ‘added components’ in either the bluetooth area (empty except for the CMOS battery), RAM area, or Wifi area. Here is the underside:
If I do put the USB sound adapter in here, I’m going to have to get creative with the capacitors, LEDs, and 1/8th inch stereo jacks. There is not much room here.
For now, I am waiting on the Adafruit TS2012 audio amp to come in. I ordered two in the event that I nuke one in this project. I doubt I will though, so I’m planning on making a my own little cell-phone amp/speaker device out of the spare in the future.