Join Now or Login Below:

Wulfie's Den

A Special Thanks

June 17th, 2008

I would like to take this opportunity to express my thanks to the Cedega Beta Team. Without their help we would not have been able to meet our schedule for the 6.1 Beta or achieving the final 6.1 this summer and releasing 7.0 in the fall would be unthinkable. The Beta Team has put in tireless hours testing and retesting every aspect of Cedega from the User Interface to installers to gameplay. More than just testing they have been instrumental in helping to track down and eliminate a number of bugs that would have left both Source games and World of Warcraft unplayable.

The Beta Team continues to help make Cedega the best it can be providing feedback in the forums, finding best settings and workarounds and making sure that everyone both customers and the Cedega development have the information they need to have the best gaming experience possible.

If you run across a Beta Team member in the forums or on IRC be sure to let them know what a good job they’re doing and how much their efforts are appreciated.

April 24th, 2008

I invite everyone to join me every Thursday from 3 to 6 pm EST until May 29th in #cedega on an irc.freenode.net server to discuss Cedega and Linux gaming. I will be available to answer questions but even more importantly take your comments and feedback. This is your chance to have your voice heard by the Cedega Product Manager.

To join the channel launch your favorite IRC client (such as XChat) and join a Freenode Server (irc.freenode.net) and join #cedega (/join #cedega)

Tips ‘n’ Ticks #4 - Alt-tab Work Arounds

April 16th, 2008

Depending on the game you play, your choice of distribution and window manager you may find that the behavior of using alt-tab to switch out of games may vary. However, alt-tab is just far too useful a feature for people to live without. How are you supposed to check the hockey scores or see whats new on Digg if you can’t alt-tab away from your game for a while.

In this edition of The Den I discuss some of work arounds that various TransGamer’s use and introduce one I started playing with in the last few weeks.

The Virtual Desktop Method

One of the simplest methods is to run Cedega games in their own virtual desktop then use a simple key combo (ctrl-alt-arrow key for me) to switch away to other desktops. If this works for you its probably the easiest way to go but there are some problems as well.

Pros

    Very easy, setup by default in most distributions and window managers.

Cons

    May not work for all users even if it has been setup.
    May not resize the desktop so if the game is run in 800×600 you will remain trapped in that resolution.
    Some games may crash.
    Some games may keep keyboard and mouse trapped.

The Separate X-Session Method

Many users choose to run Cedega in a completely separate x-session allowing them to switch between their applications and Cedega using ctrl-alt-f7 or ctrl-alt-f8 (in most cases). This solution is workable but can be problematic depending on the games you want to play. Many games (such as Steam games) are prone to crashing when switch between x-sessions. It can even bring down your whole box (locking up your video drivers) and require you to reboot. This approach can adversely affect performance of many games because of the two sessions and depending on your graphics hardware and drivers the second x-session may not be able to perform hardware 3d rendering at all.

Some users have posted various scripts that allow games to start in a separate x-session. I haven’t tested these scripts myself and used to use one of my own that didn’t work very well. In general I recommend writing a script that starts a minimal x-session with no window manager and then create an icon that does the following:


$ launch2ndxsession && export DISPLAY=:1 && cedega $GAME_FOLDER $GAME_ICON

If you are only interested in one game then just make the script do everything and let the icon launch that script.

Pros

    Isolates Cedega from your regular desktop.
    Don’t need to worry about resolution issues (each x-session can have independent resolutions).

Cons

    Chance of system hangs and game crashes.
    Can be very slow switching between x-sessions.
    Can cause performance drops in games.

The Reverse Virtual Desktop Method

Some time ago I read an article in Linux Journal discussing the benefits of wmctrl and from the looks of things I thought I would be able to use it to make an excellent alt-tab work around. Directly from the project description; “the wmctrl program is a command line tool to interact with an EWMH/NetWM-compatible X Window Manager.” From the description I hoped would be able to use wmctrl to affect the Cedega game window allowing us to minimize, maximize and other augmentations. However, on testing wmctrl I found it didn’t really meet my expectations. It would still work but it was not the silver bullet I was looking for. It seems wmctrl will maximize a window but will not minimize one. As well, there seem to be a number of bugs when using it with a full screen application. I tried a huge number of combinations of various settings and finally came up with a workable. You can use wmctrl to move an application to a different virtual desktop while staying on the current one. In a fullscreen Cedega window I couldn’t get the above virtual desktop switching to work but this did the trick. However, I wasn’t done yet. With the help of the trusty Cedega Beta Team we were able to modify xcvm, a program I found while surfing around, to allow us to detect and resize the virtual desktop resolution. Working up a script (once again thanks Beta Team) we came up with Switch.

Switch uses wmctrl and xcvm to create an additional virtual desktop, move the Cedega game window to that desktop while keeping you on the current desktop and sets your resolution to the system default. Run switch a second time restores the resolution to the games settings and Cedega to the current virtual desktop, then removes the desktop we added earlier. Its not perfect but so far in testing by myself and some of the beta team it works well for a number of games.

Pros

    Resizes resolution
    Frees mouse and keyboard
    Works for most games tested so far
    Works on all distributions tested

Cons

    Requires some work to set it up
    Only works for games running in fullscreen.
    Viewport may not reset to 0,0. Users will need to move the mouse around when returning to the game.
    May cause crashes in some games.
    If Cedega is killed or crashes after switching away from the game users will have an additional virtual desktop than usual. This can be fixed by using $ wmctrl -n NUMBER_OF_DESKTOPS
    Not fully tested
    Switch has not had extensive testing and may cause issues. If so I recommend you stop using it.

I am going to continue to try and improve the functionality of Switch and will post updates in The Den as they come along. If you have any comments on Switch or ideas for improving it I would love to hear them. Drop an email to theden@cedega.com. If anyone wants to take a hand at modifying wmctrl or any other tool so we can minimize and maximize fullscreen windows I would love to hear your results and would be happy to include your contributions in Switch.

To get Switch working on your system you will need to do the following:


Install wmctrl for your Linux distribution.
Download switch.tgz
$ tar xvzf switch.tgz
$ cd switch
$ make
$ sudo cp switch /usr/local/bin
$ sudo cp xcvm /usr/local/bin
$ sudo chmod a+x /usr/local/bin/switch
$ sudo chmod a+x /usr/local/bin/xcvm

Once setup simply map any key combination you like to /usr/local/bin/switch


The Switch script depends on the above paths, if you change the paths around please make sure you update the script accordingly.

Tips ‘n’ Ticks #3 - Getting Those Stubborn Games Working

March 11th, 2008

While Cedega supports a number of titles right out of the box some games, especially newer ones, take some tinkering and tweaking to work. Today I am going to go through some of the tips and tricks it can take to get an unsupported or new game working in Cedega.

The very first step is to see if someone else has done it before. The best way to do this is to hit the Unofficial Cedega Wiki and see if someone has already got it working. If the game is there but listed as not working don’t get discouraged it’s still worth a try. The original poster may not have have tried the game in a recent version of Cedega or may not have tried a full run of workarounds and tricks to get it going. A little persistence can have a big payoff. If you do get your game running or just learn anything the rest of the community should know about be a good member of the community and post it for everyone.

If the Unofficial Wiki doesn’t help I recommend that you hit up the Cedega IRC channel on irc.freenode.net - #cedega. There are Beta Team members, staff and Cedega enthusiasts here. Ask around, people can help.

Also check the Forums to see if anyone else has had any luck getting this gameworking. Don’t forget to try out your google-fu to see if someone has posted a solution in their own blog.

If the above sources haven’t gotten you playing then its time to knuckle down and start tinkering. I highly recommend that you launch Cedega from a terminal program such as x-term, Konsole or Gnome-Terminal. To do so run:

    $ cedega

This is helpful because all output gets redirected to the terminal and you can get a better view of what’s happening. Are you crashing without an error window (Unhandled Exception), are you hitting a hang, are you exiting for some other reason? The output here can tell you that and more.

Installation

Right now installation for a number of games doesn’t work well in Cedega. We are currently overhauling our support for MSI installers, which should get a large number of games installing properly in the next release. But you don’t want to wait for that, you want to get your games going right now. If the installer is not working in Cedega here are some tips that can get things going right now:

  1. Try different winver settings to see if that helps.
  2. Play with the mozcontrol and scheduler settings.
  3. If you are having problems switching CD’s go to Tools -> CD/DVD Eject Monitoring and set this to Yes or No. Remember to put this back to Default when you’re done.
  4. Try installing in Wine or Windows and then copying the game files over. If you do this I recommend that you do a scan of the registry before and after the install, then save the changes and put them into your Cedega registry. We use an application called Active Registry Monitor (ARM) to do this on Windows and then import them into Cedega using any of the freely available registry tools out there.

Start Up

After you get the game installed, the next step where issues about is in starting the game up. The first thing I would do is determine if it’s a copy protection issue. Most games come with some form of copy protection. A number of copy protection schemes are supported by Cedega, but not all of them pass. The easiest way to see if its a copy protection issue is to try a no-cd patch; if the game works with a no-cd patch then your start up issue is copy protection. Unless you are in an area where a no-cd patch is illegal than I would just keep using the no-cd.

NOTE: I am not suggesting you should use pirated software or games. Only use a no-cd patch on a game you have purchased and if it is legal in your area to use one.

If copy protection isn’t the issue, the next step I would take is to capture a debug trace. To get the trace in Cedega go to File -> Debug. In the debug box use only +module (you can type it in if its not in the dropdown). Be sure you select to redirect the output to a file. Click Play and give it some time. Now go and check the file. Don’t worry, this looks much scarier than it really is. All you want to do is check the file for the word Failed. If you see some Failed lines then you may be missing some dlls the game is looking for. Depending on the dll there are a few solutions. If its a DirectX 9 dll then I suggest you grab the latest DirectX installer from the net and install it into the same Game Folder as the game0. Most new games will require DirectX 9 to be installed. Once again, make sure you read the license of anything you install and make sure you are using it legally. If its not a DirectX dll then search the web for the dll and put it in:

    $HOME/.cedega/$GAME_FOLDER/c_drive/windows/system32

Repeat the above procedure until the game either starts or you get no more Failed messages.

If missing DLLs aren’t your problem then its time to start playing with Cedega options. Cedega has a myriad of options that can make a game fail to start. The big trick here is to try different combinations of options. The options that are most worthwhile are:

General
These options will help startup, speed and some font display issues

    • Managed (Keyboard/Input problems)
    • Mozilla Control
    • Scheduler (and all sub-options)
    • Free Type and XRender

Audio Some games require access to the audio card to start up. This is also good for general sound issues with Cedega.

    • Try setting up dmix as explained previously in The Den to see if that helps

Graphics
Playing with any graphics option can cause various behavior changes in Cedega. If you are having any problems getting a game running or with graphics issues play with this in all sorts of different combinations. You might be surprised by what works and doesn’t. Some specific things of note:

    • AGP Vertex Data - Try setting various values from 0 on up. This can cause very strange behavior and possibly even lock ups so watch out.
    • Pixel Shaders - Try both on and off and different values
    • Vertex Shaders - Same as Pixel Shaders
    • NV_VAR - Only affects NVIDIA cards. Try it on and off
    • ARB_VBO (and sub options) - If using an NVIDIA card this will only have an effect if you turn off NV_VAR. Play with different combinations of this.
    • GLSL - Needs to be on to use Shader Model 2.0

Okay so you’ve done all the tinkering and the game is still not working, What Now?

Join the Beta Team. On the beta team you will get access to the latest in Cedega development as well as have direct interaction with the Cedega development and production teams. If its an easy fix you might be able to get it slipped in. To join the Beta Team drop an email to betaleader@transgaming.com with the following information:

    • Your Name
    • Your Cedega Account Name
    • The information for the Cedega System/Hardware Information Page (Cedega->Edit->System/Hardware Information)

Some games are going to require actual development within Cedega to get working, no amount of tinkering will get them going. If you have the chops you can take a crack at it yourself, I highly recommend joining #cedega to get started on that.

If you’re not a developer or just don’t have the time, then your best bet is to bring the game up for a vote in the TransGaming Technologies Polling Section. Create a new poll, be as descriptive as possible and let us know exactly what is broken. If enough people are interested, or the fix is easy, our developers will start working on it and make it an officially supported title. Don’t get discouraged if your game doesn’t do well the first time out. You can always bring it up for a new vote.

Also keep trying your game with new versions of Cedega. We are putting fixes in all the time and anyone of them may get your favorite game working.

Remember if you do get it working let people know about your success and how they can get the game working themselves. Post in the forums, the Unofficial Wiki, hit the Cedega groups at Facebook and MySpace and email TransGaming. The more people that are playing the game means it will get better support by TransGaming.

Beta Team Update

March 4th, 2008

A quick update on the Beta Team for everyone.

We have had a great response to our beta team posting and the newest members are already happily testing with the latest beta packages. I am also proud to say that we have implemented a brand new set of reporting tools for the team. In fact, the tools are working out so well that we are going to be able to expand our team even more than we first thought. If you are interested in joining the Beta Team its not too late.

Signing up couldn’t be easier, just drop a quick email to betaleader@cedega.com with:

    • Your Name
    • Cedega username
    • Your Machine Details (Edit -> System/Hardware Information within Cedega)

Soon you could be testing the latest in Cedega technology!