Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, May 13, 2012

How can I play Minecraft in fullscreen mode in Linux?

Question

How can I play Minecraft in fullscreen in Linux? On my system, I only get a windowed mode with a quarter of the screen size and the rest is black.

I am using ArchLinux and the awesome awesome window manager.

Asked by xeroc

Answer

Press F11.

Be aware that currently (= version 1.2_02) I am experiencing an issue with controlling the GUI with the mouse when coming back from full screen. You might want to maximize the game window instead, for the time being.

Answered by badp

Friday, May 11, 2012

How to play mincraft in fullscreen mode?

Question

Is there anybody who can play Minecraft in fullscreen and can tell me how to do this in Linux. On my system I only get a windowed mode with a quarter of the screen size and the rest is black.

I am using ArchLinux and the awesome awesome window manager.

Asked by xeroc

Answer

Press F11.

Be aware that currently (= version 1.2_02) I am experiencing an issue with controlling the GUI with the mouse when coming back from full screen. You might want to maximize the game window instead, for the time being.

Answered by badp

Friday, April 27, 2012

How can I play Red Alert 2 on Linux?

Question

What should I get (and where from) to play RA2 on Linux?

Asked by user5781

Answer

Get Wine. Wine allows you to run .exe files and consequently lets you run Window applications on Linux. While it's not guaranteed to work for RA2, it's very unlikely that you'd be able to get it to run on Linux using any thing if you can't get it to work with Wine.

On the AppDB page, it is reported to have silver/gold status, which means, it will most probably run fairly well, if not flawlessly. Check out the comments in each.

Answered by Mana

Sunday, April 22, 2012

How do I save a game in Cube 2: Sauerbraten?

Question

I am playing the game Cube2: Sauerbraten on my Linux machine and I don't find a way to save this game. I have gone through all the options for a shortcut that allows me to save it, but that effort was in vain.

I tried several standard save shortcuts like F2, F7 and F9. Then I tried all the F1:10. None worked.

F11 and F12 are toggle console and take screenshot respectively.

I checked the game website http://sauerbraten.org/ and searched for any possible shortcuts in the docs and the wiki, but none of them suggest a shortcut for saving a game.

Did I miss something obvious? Can you help me find this?

Asked by Kishor Nanda

Answer

The short answer is that you can't save. They didn't implement a save and unless you're going to get on-board for modding this project, it won't likely have something like that. The single player in this game seems to take each map individually as a whole and does not maintain a state across maps aside from some of the scoring mechanics.

In the game docs, it clearly states that this game does not have saves and that the developers will not add them. Sorry. Here's the relevant quote, bolding is my own:

Classic SP works differently from most FPS games that employ a savegame based system. The developers believe that the problem with savegames is that they take away any tension in gameplay; since you play without fear because you can make frequent saves, and when you do have to reload, its just an annoyance (or frustration, if you forgot to save for a while because it was going so well). Because of this, savegames will not be added to the game.

Instead of savegames, Cube 2: Sauerbraten employs a novel system based on respawnpoints (not to be confused with checkpoints, which are just an annoying version of savegames). The major annoyance in other games comes from having to repeat the same thing, here, you can die, and still never have to repeat the same gameplay again, yet you still have strong motivation not to die. This brings back the tension in gameplay, without the frustration.

The way it works that when you die, the world stays AS IS. Dead monsters stay dead, and alive ones just continue at their current location. You respawn, as if it were DM, at your last respawnpoint. Respawnpoints are entities placed by the level designers in various spots throughout the level, and the game remembers the last one you touched. You can touch these more than once.

When you respawn, the evil monsters will have stolen your armour, and most of your ammo (currently they take 2/3rds, unless you have 5 or less, in which case they don't take anything). On the plus side, you will have all your health back (and you have kept any healthboost powerups!), and your starting supply of pistol ammo (see, the monsters are evil, but fair). Even though you are punished for dying, you are never stuck, since even if a group of monsters is very hard to overcome, they will be easier every time you try, since the dead ones stay dead (and the hurt ones stay hurt!). You may have to work with your pistol more, but that is part of the tradeoff.

An additional motivation to not die, is that deaths are the most important component in reaching a good score on a level...

Answered by skovacs1

Friday, April 13, 2012

Is there a MARS working on GNU/Linux?

Question

I am looking for a MARS (a software to run CoreWar warriors) working on GNU/Linux, but the only one I could find (nMars) crashes when I open or create a warrior file.

Answer

Yes. There is a variaton of pMars available for Linux. If you use Arch Linux, it is available in the AUR. For other distros, you could attempt to download the tarball and compile and install it manually.

Answered by Macha

Sunday, February 12, 2012

Black screen under Linux (Fedora 16)

Question

Launch:

java -jar minecraft.jar

Exception after login:

Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/fabianhjr/.minecraft/bin/natives/liblwjgl.so: /home/fabianhjr/.minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at org.lwjgl.Sys$1.run(Sys.java:69)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.<clinit>(Sys.java:98)
at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
at net.minecraft.client.Minecraft.a(SourceFile:180)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Thread.java:722)

So far I have tried the following:

export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame

http://paste2.org/p/1849276

I am using openJDK 1.7.0, 64 under Fedora 16.

Asked by fabianhjr

Answer

OpenJDK is not supported by Minecraft. Install Sun's JDK.

Answered by Maerlyn

Monday, February 6, 2012

Is it possible to play games that run off of Steam, on a Linux or Unix-based OS (other than Mac OSX)?

Question

I was wondering if it is possible to install and play Steam games like Skyrim off a Linux or Unix-base Operating System (OS), such as FreeBSD or OpenSUSE?

Update: Apart from installing through Wine, which is an emulator and would hence defeat the purpose, because it would cancel out any performance increase you might get over running through Windows. In short (as far as I am aware), running through Wine would give even less performance than running through Windows.

Asked by gameaddict

Answer

Not usually. The byte code which is the game will not normally run on other platforms (which is why a Mac program won't run on Linux or Windows, and vice versa).

If you have a fast enough computer, you can run some Windows programs via Wine, which emulates Windows (makes it like you're running the program on a Windows computer).

A lot of games are compatible with Wine, including Final Fantasy, Starcraft, BioShock, Team Fortress, Fallout, Left 4 Dead and lots more. Here is a list of applications that can run under Wine.

Answered by Nate Koppenhaver

Tuesday, January 31, 2012

Do I need a premium account to play Minecraft offline?

Question

I'm trying to run the offline version of Minecraft (which I'm told doesn't need a premium account?) but the "play offline" button is greyed out, with the text underneath it reading "not downloaded".

Do you need a premium account to play offline?

Note: I've also tried using the assets.minecraft.net/1.8/minecraft.jar but I encounter this (fatal) error: java: symbol lookup error: /usr/lib/jni/libjinput.so: undefined symbol: EVIOCGUSAGE

I'm also a bit worried that what I'm doing might not be allowed - is the minecraft.jar file from assets.minecraft.net legal?

Answer

Yes, you do need a premium account to play Minecraft offline.

The first time it is run the client requires you to log in with a premium account to download the necessary files from minecraft.net.

See the FAQ for Minecraft.

Monday, December 12, 2011

Can I play LOTRO on Nvidia ION based netbook running 64bit linux?

Question

I have a ASUS Eee PC 1215N netbook, from the Seashell series. It has a Nvidia ION graphic processor. I'm running 64bit Ubuntu Linux (11.10 Oneiric Ocelot) on it.

I've tried to install LOTRO on it following the HOWTO on

But the game fails to run with one of:

  • Game Error [105], "Could not initialize Direct3D. Please ensure that DirectX 9.0c [Dec 2005] or higher is installed."
  • Game Error [129], "Hardware texture compression support was not detected. This video card feature is required to run the game."

The PyLotro wine output contains eiter

err:wgl:has_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory err:wgl:has_opengl OpenGL support is disabled.

err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.

err:d3d:InitAdapters Failed to get a gl context for default adapter

Direct3D9 is not available without OpenGL.

Or a repeating errors ending in

ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored.

ERROR: ld.so: object 'librrfaker.so' from LD_PRELOAD cannot be preloaded: ignored.

Xlib: extension "NV-GLX" missing on display ":2". Xlib: extension "NV-GLX" missing on display ":2".

err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly

Answer

Running software using the ION processor will require extra software. Windows 7 Nvidia supplies Optimus. On linux you'll there's a project called Bumblebee.

To recap the several sources on the web for 64bit Oneiric:

Install LOTRO roughly following the howto

sudo apt-get install wine winetricks
export WINEPREFIX=$HOME/.wine-lotro
winetricks vcrun2008
winetricks d3dx9
cd /wherever/you've/downloaded/the/game
wine LOTROSetup.exe

This will have craeted a wine environtment (sometime revered to as 'bottle') in .wine-lotro in your home directory and installed the game there, including some native windows dll's that the game needs.

To launch the game from wine you'll need the special launcher called PyLotro. Normally on Ubuntu you do

sudo add-apt-repository ppa:ajackson-bcs/ppa
sudo apt-get update
sudo apt-get install pylotro

But there's no Oneiric version in the ppa yet. So just get the source version (not the 'Stand-alone Version' exe one).

To have it use the Nvidia processor, you install Bumblebee

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee

And since wine is 32-bit, and 64-bit Oneiric uses multiarch, you install the 32-bit version of some libraries like this

sudo apt-get install virtualgl-libs:i386

without it you'll see thos LD_PRELOAD errors.

To have the pylotro launcher use optirun to run wine, I made a tiny wrapper script like this

mkdir $HOME/bin
cat << EOF > $HOME/bin/optiwine
#! /bin/sh
optirun wine \$@
EOF
chmod +x $HOME/bin/optiwine

In pylotro /Tools/Options, tick the Advanced Options and set /home/{username}/bin/optiwine as the Wine Program. And ofcourse set the right WINEPREFIX et al.

Saturday, September 10, 2011

Top-down shooter with 2D gameplay and 3D graphics, Linux demo was available

Question

I remember playing this game sometime between 2003 and 2006.

It was a top-down shmup (shoot-em-up) game with full 3D graphics.

I think it had some camera settings, so the camera could position itself in an angle, instead of straight top-down (not very sure about this camera setting; but it certainly had a straight top-down view).

The level where the game was played had some kind of "platform". It was not just a ship floating freely on space, it was "hovering" on a limited platform (that was slightly bigger than the screen, as far as I remember).

The level included in the demo had an awesome yellow robotic spider that would open its body to shoot a powerful laser. Sometimes the spider would also jump up and land at the platform again (and if your ship was below it, too bad for you).

Due to the limited platform thing where the game was played, the player ship could switch sides, so it could either be shooting to the right or to the left.

I slightly remember having two types of ships, or two types of weapons, but I'm really not sure about this. It might be wrong.

I remember it had a Linux demo, and that was the version I played.

I remember it came with one of the first versions of "Kurumin Games" live-CD, which also came with Quake 3 Demo. (yeah, I've already looked at the list of games from Kurumin Games 1.3, but it doesn't seem to be any of those games - it probably was from an earlier release of Kurumin Games)

I played it on a Pentium III 800MHz with 256MB of RAM and nVidia RivaTNT2 video card, and it had great graphics for that time.

This Astro Tripper screenshot is very similar to how the game I am looking for was played. But Astro Tripper is not the game.

Answer

It was Space Tripper?

Sunday, August 28, 2011

Does Xbox 360 USB controller work out-of-the-box on Windows/Linux/Mac?

Question

I'm planning buying a wired USB Xbox 360 controller, but I would like to know a bit more about it before actually buying.

Most (all?) USB controllers identify themselves as USB HID (Human Interface Device), which allows them to be auto-configured and work right away, without installing any drivers. It also has the advantage that USB HID devices will (or should) work on any operating system.

But how about the Xbox 360 controller?

  • Does it identify itself as USB HID?
  • Does it work on Windows without the need of special drivers? (or did Microsoft "cheat" a little by shipping the driver together with Windows?)
  • Does it work out-of-the-box on Linux and Mac OS X?

EDIT: Okay, I've bought the controller. Some additional info:

  • The controller uses a vendor-specific (0xff) device-class, which means it requires drivers in order to work.
  • It works out-of-the-box on Windows 7 and Linux. It requires drivers on Mac OS X and Windows XP. See the answer below for more information.

Answer

In Windows it works out of the box, but if you install this software the Xbox 360 will display a battery indicator on the screen.

In Ubuntu, the Xbox 360 controller works flawlessly with xpad. (I've tried this successfully with a wireless controller)

In Mac, I've found a driver here, but I haven't tried it because I don't own a Mac myself.

Saturday, August 20, 2011

Playing Quake 1/2 on Linux?

Question

What should I get, and from where, to be able to play first and second Quake, on Linux, in single-player mode?

Answer

You can play Quake 1 using the DOSBox emulator (it's compatible). That's probably the closest you will come to the original experience, compared to the source ports.

DOSBox emulation usually works really well, particularly for the more popular titles, which get a lot of testing. And any even remotely modern PC should have the performance to emulate it easily. You'll probably even be able to do multiplayer (DOSBox has IPX/SPX emulation).

Tuesday, August 16, 2011

Where is the "terrain.png" file located in Linux?

Question

I have tried to search for it in my home directory and my .minecraft directory without any success. find / -name terrain.png also outputs nothing.

Answer

~/.minecraft/bin/minecraft.jar - it's inside the jar archive. If you use a texturepack, then it's in its zip file in ~/.minecraft/texturepacks instead. For more info take a look here.

Monday, August 15, 2011

Where is the "terrian.png" File Located in Linux

Question

I have tried to search for it in my home directory and my .minecraft directory with out any success. find / -name terrian.png also outputs nothing. Does anyone know where Minecraft stores the terrain.png on Linux?

Answer

~/.minecraft/bin/minecraft.jar - it's inside the jar archive. If you use a texturepack, then it's in its zip file in ~/.minecraft/texturepacks instead. For more info take a look here.

Saturday, August 13, 2011

Java uses all CPU while playing Minecraft

Question

I recently purchased Minecraft, but after I have been playing for about 5-10 minutes, the Java process uses all CPU power, leading to a sudden shutdown.

This is weird, because some months ago it ran without any problems.

Is there any way to fix this?

My OS is Ubuntu 11.04.

Answer

I am using Ubuntu too here are a couple of questions and suggestions ...

1) Are you using the open JDK? If you install sun's JDK and run the command sudo update-alternatives --config java and select Sun's JDK.

2) What speed is your processor and how many cores and how much RAM do you have? You might to specficy some command parameters when you run minecraft. Try giving minecraft more RAM by using the -Xmx and -Xms to give Minecraft more RAM at startup. You can read more about that here. For example the command I use is java -Xmx5000m -Xms5000m -jar minecraft.jar `

3) Try turning down your video settings. Turn down the render distance and switch the graphics settings to Fast.

Wednesday, August 10, 2011

Identify puzzle game involving removal of adjacent balls/blocks of same color

Question

When I was learning Turbo Pascal in school I "invented" a puzzle game described below. Later (late '90s) I found that this game had apparently been invented before, as a very similar version was included in a linux distribution. (I do not remember which one, and currently do not have any linux installed.)

The game started with balls or square blocks arranged in a rectangular grid (5-30 balls on each side) with randomly assigned colors (3-5 different colors in total). When clicking any ball, it was removed along with all neighbors (i.e. the ball above, below, left and right) of the same color, all neighbor's neighbors of the same color, etc. In other words, the region of connected balls of the same color that involved the selected ball was removed. Remaining balls above removed balls then fell down, staying in the column they were in. When a column became empty, it was removed, i.e. the colums left and right of it were pulled together.

The player got points for each move according to a function increasing faster than the number of balls removed, probably proportional to the square of the number of balls removed (i.e. a move removing 5 balls at once was worth much more than two moves removing 2 and 3 balls, resp.). There was only one player, no opponent or time limit, clearing the playing field with the fewest number of moves / the highest score was the only goal.

Answer

This makes me think of Jawbreaker

Jawbreaker

But I can't find the Linux version of it. Maybe it has a different name.

Other versions includes:

Tuesday, August 9, 2011

Are there any PC games that utilize the Wii Remote's 3D functionality?

Question

Are there any PC games (windows or linux) that support the wiimote? Specifically, games that don't just map the mouse, but use data from the gyroscope (like Wii Sports games: tennis, golf). I want to find games that could use most of the wiimote 3d functionality.

There are plenty of guides on how to connect a Wii Remote to PC, but not what games we could play.

Answer

I don't know of any games specifically made for PC, but the Dolphin emulator can play some Wii games (and can use the Wiimote as a control if your computer has Bluetooth support).

Tuesday, August 2, 2011

How do I change player name in minecraft multiplayer in offline mode in Linux?

Question

I have a small Minecraft server (beta 1.5), and every time I log in via offline mode from a client, my name is "Player". How can I change that?

I know of a way to do it in Windows but it doesn't help.

The major problem is when others connect to my server they take "Player" as a name and it kicks me off.

The server's property is set to:

online-mode=false

I can't change this to true.

I'm running the latest version of Ubuntu, and running the client from the terminal using the following command (EDIT: running with sudo, not a good idea, i know...need to get that fixed):

sudo ./minecraft-1.5.jar

EDIT:I found the code that I was talking about but it never worked for me:

java -cp ~/.minecraft/bin/minecraft.jar:~/.minecraft/bin/lwjgl.jar:~/.minecraft/bin/lwjgl_util.jar:~/.minecraft/bin/jinput.jar: -Djava.library.path=~/.minecraft/bin/natives -Xmx1024M -Xms512M net.minecraft.client.Minecraft '"'$USER'"'

AND FOR WINDOWS:

java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\*" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft '"'%1'"'

Latest Update: IT WORKS! I didnt realize that the first part (starting with -cp), was the folder that I ran my game from was the wrong directory, remember that I start the game with sudo, that was the reason I failed, is hould have been:

/root/.minecraft/bin/*

Also I have to run this with 'sudo' or it wont work...the errors pile up, which as it turns out, and I didnt realize, is bacause it couldnt find any main class files, which I figured out rereading the man for 'java'

As a side win, this code now allows me to press: "Quit" button which was missing because of the way I started the game in terminal.

Answer

I don't have access to Minecraft on Linux at the moment, but that command line looks suspicious. Give this a try:

java -Xms512m -Xmx1024m -cp "$HOME/.minecraft/bin/*" -Djava.library.path="$HOME/.minecraft/bin/natives net.minecraft.client.Minecraft" "$USER"

If it still isn't working for you, knowing what does happen (error messages, lets you in but has wrong name, …) would be helpful for further troubleshooting. :-)

Wednesday, July 13, 2011

How to change player name in minecraft multiplayer in offline mode in Linux?

Question

I have a small Minecraft server (beta 1.5), and every time I log in via offline mode from a client, my name is "Player". How can I change that?

I know of a way to do it in Windows but it doesn't help.

The major problem is when others connect to my server they take "Player" as a name and it kicks me off.

The server's property is set to:

online-mode=false

I can't change this to true.

I'm running the latest version of Ubuntu, and running the client from the terminal using the following command (EDIT: running with sudo, not a good idea, i know...need to get that fixed):

sudo ./minecraft-1.5.jar

EDIT:I found the code that I was talking about but it never worked for me:

java -cp ~/.minecraft/bin/minecraft.jar:~/.minecraft/bin/lwjgl.jar:~/.minecraft/bin/lwjgl_util.jar:~/.minecraft/bin/jinput.jar: -Djava.library.path=~/.minecraft/bin/natives -Xmx1024M -Xms512M net.minecraft.client.Minecraft '"'$USER'"'

AND FOR WINDOWS:

java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\*" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft '"'%1'"'

Latest Update: IT WORKS! I didnt realize that the first part (starting with -cp), was the folder that I ran my game from was the wrong directory, remember that I start the game with sudo, that was the reason I failed, is hould have been:

/root/.minecraft/bin/*

Also I have to run this with 'sudo' or it wont work...the errors pile up, which as it turns out, and I didnt realize, is bacause it couldnt find any main class files, which I figured out rereading the man for 'java'

As a side win, this code now allows me to press: "Quit" button which was missing because of the way I started the game in terminal.

Answer

I don't have access to Minecraft on Linux at the moment, but that command line looks suspicious. Give this a try:

java -Xms512m -Xmx1024m -cp "$HOME/.minecraft/bin/*" -Djava.library.path="$HOME/.minecraft/bin/natives net.minecraft.client.Minecraft" "$USER"

If it still isn't working for you, knowing what does happen (error messages, lets you in but has wrong name, …) would be helpful for further troubleshooting. :-)

Monday, July 11, 2011

Does anyone know any good online resources for gaming on Linux Machines?

Question

Ubuntu to be precise.

And I am looking for lists of games with a short review or some newsgroup or something where I can find out about the latest releases.

Answer

Useful resources are:

In addition, the following "not too old" links list about 10-15 RPG games. They are not really reviews but contains a mini description with the list of features

Then in Ubuntu gaming forum, you can found another big list of useful gaming resource.