Sunday, April 3, 2011

Protox Simple

A simple graphics mod for Assault Cube 1.1 a free and opensource FPS game. This mod changes most graphics, icons and effects in Assault Cube 1.1.

You can download the mod at DeviantArt and Also posted a thread on the official AssaultCube forum.
Protox Simple Preview for AssaultCube
In Game Screenshot:
Protox Simple In-Game Screenshot for AssaultCube

Tuesday, March 29, 2011

Protox High Quality Reskin

Releasing my high quality reskins, this mod modifies all the default player skins for Assault Cube 1.1 with high quality reskins. The resolution of these skins is 2 times (from 320x200, to 640x400) the originals. These skins are released under public domain with no license or restrictions.

Download from DeviantArt
Download from

Source Files (For Modifying/Generating New Skins):
Download from DeviantArt

AssaultCube Protox Reskin Preview
AssaultCube Protox Reskin In-Game

Tuesday, March 22, 2011

Protox Mod Update

I've updated Protox Mod (version 2.0.5) for the free and opensource FPS game Assault Cube. This mod modifies most visible icons and effects in Assault Cube 1.1.

You can download the mod at DeviantArt and I've also posted a thread about this mod on the official AssaultCube forum.

March 22, 2011 - Version 2.0.5:
  • Modified protox_mod.bat to allow arguments when launched from cmd [Reported by Gibstick]
  • New base.png (spark effect on bullet impact)
  • New bullethole.png (bullet indent in walls)
  • New explosion.png (more detailed grenade explosion, generated with Filter Forge using Explosion Filter)
  • New muzzleflash.jpg (bigger and more detailed)
  • New smoke.png (spark and smoke effect for sniper shot)
  • Modified voteicons.png (added checkmark and x indications for votes, tweaked hand icon)
  • Modified protox_mod_preview.jpg and renamed from preview.jpg
  • Renamed readme.txt to protox_mod_readme.txt
  • Removed screenshot.jpg to reduce filesize
Protox Mod Preview for AssaultCube
In Game Screenshot:
Protox Mod Screenshot for AssaultCube

Tuesday, February 15, 2011

Blogger Theme Change

I've modified the blogger theme, for the 2 or 3 people who occasionally frequent this blog maybe you will notice. I originally wanted to select one of the newer themes available for blogger, but this completely messed up the text and image layout I had going. The HTML mark up of posts appears to be depended on the blog width. So I manually modified the original theme and changed a bunch of things, but primary colors and fonts. Maybe one day I will attempt to fix each post, the blogger compose mode is to blame and the way it adds images.

I also added a Links section, and will eventually add websites/resources that are related or that I frequent. I highly recommend checking out K.Mandla’s blog if you haven't already. K.Mandla is a minimalist when it comes to software and operating systems. I've been visiting the blog for a while and he updates it frequently with very informative articles about his experiences running light software and system configurations on older hardware. I agree with his philosophies about software becoming way too bloated to accomplish the same tasks, but I am not as dedicated or experienced in managing such minimal system configurations.

Sunday, February 13, 2011

Theme Mockups

I made a couple of desktop/theme mockups a little while ago figured I should put them here as backup.
Another Mockup
Bar Mockup

Configure Grub2 Background Image, Resolution and Colors

Here is a method that worked for me to configure Grub2 under Debian 6.0 Squeeze.

First as root or sudo edit /etc/grub.d/05_debian_theme

Add the following somewhere near the top of the file:
# Set custom color theme.
echo "${1}set menu_color_normal=light-cyan/black"
echo "${1}set menu_color_highlight=white/light-blue"
echo "${1}set color_normal=white/black"
echo "${1}set color_highlight=white/light-blue"

menu_color_ changes the colors within the grub selection menu, while color_ changes outside the barrier. If you set black as the second color in any of the entries, for example: menu_color_normal=light-cyan/black grub will make it transparent. You can check here to see a list of available colors.

At the very bottom of 05_debian_theme add the following:
set_background_image "/path/to/your/boot/image.png" ||

Remember to select an image that is the same size as you will define in your grub boot screen resolution in the next step, save the file after you are done.

Now as root or sudo edit /etc/default/grub
You might want to modify GRUB_DEFAULT=0, this is the default boot selection, if you want another entry to boot first change it here. GRUB_TIMEOUT=5 is the default timeout before boot of the selected entry in seconds.

GRUB_GFXMODE=1024x768 sets the resolution of grub2 (I think if you add an x after resolution and a mode [e.g. 1024x768x24] you can define the color depth mode, I could be wrong), make sure the background image you set previously is the same size. Also you might want to edit GRUB_GFXPAYLOAD_LINUX=keep and also make sure it is set as =keep. This option will retain your selected resolution during the boot process.

Finally for all your changes to work, as root or sudo you must do update-grub. This will generate a /boot/grub/grub.cfg using your settings.

I honestly hate grub2, it works well for booting operating systems, but it is really disorganized, you can do things a number of ways and it doesn't always work. There is no consistency or easy way to modify everything through a single file, like in the original grub. This method worked for me but took me a while to figure out. If you set your colors under set_default_theme() in /etc/grub.d/05_debian_theme or in /etc/default/grub like a lot of people tell you to, you will discover in (At least under Debian 6.0) your /boot/grub/grub.cfg they get ignored when you have selected a background and revert to a default grey color scheme. This is why I create a custom set_custom_theme() function.

Here is my /etc/grub.d/05_debian_theme and /etc/default/grub, for reference purposes.

AssaultCube, Quake2 and AQ2 Mods/Paks

Here is a re-release of pak files and mods I made for AssaultCube, Quake2 and Action Quake2 mod. These custom modifications change the overall appearance of the in-game hud graphics and other images for each game.

(for AssaultCube) Protox Mod: download here
Protox Mod for AssaultCube Preview
Protox Mod for AssaultCube in Game Preview
(for Quake2) PrimoTurbo's Quake2 Pak: download here
PrimoTurbo's Quake2 Pak Preview
(for Action Quake2) PrimoTurbo's Pro Pak: download here
PrimoTurbo's Pro Pak for Quake2

Generate Xorg.conf, Remove Screen Blackout and Force Resolutions

New versions of most GNU/Linux distributions do not include an xorg.conf file which defines all your hardware and especially your video driver and screen resolutions/refresh rate. I find that I still need an xorg.conf file to disable screen blacking out after a set period of time and to force resolutions and screen refresh rate. I hate that gdm by default starts at max resolution, if you define resolutions it will force gdm to use the highest one you define instead. Most people don't care about this because they are running on LCD monitors, but I still prefer a CRT on my main computer.

Generate a proper Xorg.conf in Debian 6.0 Squeeze (probablly works for most GNU/Linux distributions)
Log out and switch to console mode(Ctrl+Alt+F1) as root or sudo do:
/etc/init.d/gdm3 stop
Xorg -configure #generate a new xorg.conf file
X -config /root/ #test that it works
mv /root/ /etc/X11/xorg.conf #move xorg.conf
nano /etc/X11/xorg.conf #edit with nano or editor of your choice
once your done editing do CTRL+O to save and CTRL+X to quit nano. You can now restart.
Or try /etc/init.d/gdm3 start and then startx

To remove/modify screen blank/black out:
Edit your xorg.conf as root/sudo
Between Section "ServerLayout" & EndSection add:
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Also make sure you have Option "DPMS" between Section "Monitor" & End Section.

To define custom resolutions/refresh rate:
In xorg.conf:
Edit between Section "Screen" SubSection "Display" and EndSubSection EndSection

Mine looks like this:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
I am not sure why but I find that Depth 24 limits my refresh rate to 85Hz, which is what I prefer. If I try Depth 32 it makes my max resolution 1600x1200 even when I define 1280x1024 as max. I can't explain it but for some reason this odd behavior occurs, so 24 is what I use and I remove all other depths to prevent lower refresh rates. Here is my full xorg.conf as reference/guideline. I hope this can help someone.

Changing GDM3 Theme and Wallpaper

Here is a quick hack for GDM3 to change the GTK controls and wallpaper/background image. This won't change the overall design/layout.

edit /etc/gdm3/greeter.gconf-defaults with a text editor as root or sudo.

Uncomment and edit the following lines by removing the # character.
/desktop/gnome/background/picture_filename /path/wallpaper.png
/desktop/gnome/interface/gtk_theme Aurora
Set the path to your background image on the picture_filename line. Set the GTK theme you want to use at the gtk_theme line. Make sure it is something valid that you have installed like Clearlooks or in my case Aurora. Also it's best to keep the background image the same size as your gdm3 resolution.

Then as root/sudo run dpkg-reconfigure gdm3

Fix Slow Warcraft3 Performance in Wine

Warcraft III
Warcrat3 is one of my favorite games, I especially like to play custom maps like Legion TD, Battleships, Island Defense, Burbenog TD, Gem TD, Zoator TD, Jurassic Park Survival, Green Circle TD, Dota and tons of others. It's amazing that a small custom map file can completely change the game into something else. People have become incredibly creative in making custom games for Warcraft and there is still a huge player base despite the age of the game (RoC released in 2002 and TFT Expansion in 2003). Without some tweaks Warcraft3 runs very sluggish, poorly, slow and laggy under wine. The good news is there is an easy solution.

First install wine, then run through the normal install of Warcraft3 RoC & TFT using wine. After you are done you will need to patch the game, at the moment the latest patch is version 1.24e which you can download here (for either Reign of Chaos or Frozen Throne). It also appears that the newer patches automatically include a nocd which allow you to play the game without having the game cd in the drive, run the patch through wine and let it install.

Fix game crash/freeze at start:
I have found that if you don't remove/rename the included movies, especially the intro movies the game will not properly start as wine is unable to play them. If you go into /home/yourusername/.wine/drive_c/Program Files/Warcraft III/Movies, you can delete them to make the game start/work.

Getting rid of slow performance:
Open a terminal and run wine regedit. Go into HKEY_CURRENT_USER/Software/Blizzard Entertainment/Warcraft III/, right click and create a new DWORD Value with the name Gfx OpenGL, double click it and set the Value data: to 1 as a Base of Hexadecimal. Type: should show REG_DWORD and Data: should be 0x00000001 (1) in regedit. If you go into HKEY_CURRENT_USER/Software/Blizzard Entertainment/Warcraft III/Video you can also set your game refresh rate by modifying the refreshrate DWORD key, also change the cinematicrefresh DWORD key to the same value. The Base for both should be in Decimal. Also if you want you might want to add -opengl to your Warcraft3 launch shortcut, something like env WINEPREFIX="/home/yourusername/.wine" wine "C:\Program Files\Warcraft III\Frozen Throne.exe" -opengl, but I have found that this is not nessesary once you create a Gfx OpenGL DWORD.

Setting proper resolution:
Start winecfg, under Applications tab add application and add Frozen Throne.exe and Warcraft III.exe (if you play the default RoC game). Now make sure the exe is selected and switch to Graphics tab. At this point I select Allow DirectX apps to stop mouse leaving their window & Emulate a virtual desktop. You want your virtual desktop to be the same size as your default resolution, mine is set at 1280x1024. You also want your Warcraft3 game to be the same resolution or otherwise this will create empty space. If you do this correctly you will be able to alt-tab very quickly without switching resolutions. Useful for checking youtube while you wait for a custom game to fill.

Let me know if this worked for anyone else, also you can reduce in-game quality through the game's options, I keep my settings on medium to high and it runs great with this tweak. Furthermore make sure you have an adequate driver installed for your video card.

February Debian Squeeze

Here is my current desktop, running Debian 6.0 Squeeze.
Debian 6.0 Squeeze Screenshot
GTK: Aurora
Metacity: Clear-Elementary
Icons: Faenza
Not sure of the source/name of wallpaper.

Debian Space Wallpapers

EDIT: I've changed the 2560x1600 resolutions to point to my deviantART page, appears that blogger resizes very large images.

I recently made some space based wallpapers for Debian.

Debian Planet
Debian Planet 2560x1600
Debian Planet 1600x1200
Debian Vortex
Debian Vortex 2560x1600
Debian Vortex 1600x1200
I've also posted them on the Debian User Forums, here and here.

I might make more Debian space related wallpapers and re-release everything with a bunch of different sizes, but for now just use an image program like GIMP to resize/recut the wallpapers for your screensize or center/scale them. The new official Space Fun theme for Debian 6.0 Squeeze is not to my taste, looks very childish to be honest. To each their own I guess, but I do wish they chose something different like Debian Ciel.

Fixing Firefox/Iceweasel icons

I haven't updated in over a year, but I recently installed Debian 6.0 Squeeze and began messing with Linux again on my main computer. I figured I'll make this post because I just overcame a huge nuisance in Firefox/Iceweasel (I'll call it Firefox from this point on even if I am using Iceweasel since it's technically a re-branded version of Firefox due to logo trademarks that Debian does not follow).

The problem has to do with some of the default Tango icons that appear in Firefox no matter what you do to replace them. A while ago Firefox began integrating GTK theme icons into its interface, however as I have learned many of the icons Firefox uses are coming from a classic.jar file elsewhere on the system. Even if the icon themes have the proper icons.

For example if you use the excellent Faenza theme like I do, you'll soon discover that it includes  tab-new.png under actions (which is symbolically linked by tab_new.png stock_new-tab.png) but if you use the tab icon from the customize menu (because you like it there, and hate your tab button moving places with new tabs being open) you'll realize that it is not replaced. There a number of icons that are like this, including bookmark icons, go button, search icon, popup icon etc. This is stupid and brakes the fluidity of your theme, which is horrible if you seek consistency.

Here is how the broken wrong icons look. Notice the default Tango icons used instead of the theme icons? The new tab icon, the go button and the search icon.
Firefox Broken Wrong Icons Tango
The Fix!
You will need to go into /usr/share/firefox/chrome (replace firefox with iceweasel if using Debian, keep in mind your firefox directory might be different so search around) and find classic.jar, you then need to unzip this file somewhere, and go into /skin/classic/browser. There you will find various png files that contain these icons. I have edited Toolbar.png, Go-arrow.png, Search-glass.png and replaced the icons from Faenza, a lot of the icons used are 16x16 pixels but not all. This is the only way to change these icons as far as I can tell to reflect your theme icons. Unless someone has made a specific firefox theme for your icon set, but even that doesn't work all the time.

After your finished editing these images, you will need to create a zip file(make sure you use .zip, unless you can create .jar) and rename it to classic.jar (jar is mostly a java zip file container). Make sure to preserve the original file structure and names in the modified jar file. Backup the original classic.jar in /usr/share/firefox/chrome and place with your own version, ALSO keep a version of your custom classic.jar elsewhere, in case a system update replaces it, so you don't have to redo everything from scratch.

Here are the fixed icons.
Firefox Icons Fixed
Yes it's a pain to do it, but until this is fixed and you want your custom icons you will have to do it manually. Enjoy.