Egoboo runs ridiculously fast on Ubuntu

Help regarding development/scripting, troubleshooting or just general gameplay -- anything that hasn't already been answered in the Wiki or pinned FAQs.

Moderator: Developers

carpii
Acid Blob (New member)
Acid Blob (New member)
Posts: 2
Joined: Tue Dec 30, 2008 3:31 pm

Egoboo runs ridiculously fast on Ubuntu

Post by carpii »

Hi,

Im intrigued by this game, having just found it in the Ubuntu repositories.
Sadly, the repos only have version 2.22 and this runs ridiculously fast.

Its unplayable since I cant even control the lil guy properly, and holding down NUMPAD 7 spins the camera at around 1000 revs per second.

Are there any config tweaks I can make to slow it down?

Also I know I can customise the controls, but I dont even understand the defaults. There seems to be TGB/YHN and then A and S which sometimes do the same as one or two of the TGB/YHN

Moving the mouse moves the guy by a tiny amount (a few pixels). Not useful enough to control him, and controlling him via keys seems cumbersome

Am I missing something? I played nethack for over 15 years and this looks like a fun game if I could only get it running as I think it ought to :(

Any advice from anyone using the ubuntu repos please?
User avatar
Shade
Potion Mimic (Senior Member)
Potion Mimic (Senior Member)
Posts: 7349
Joined: Thu Jul 24, 2008 12:25 pm
Location: Gensokyo

Post by Shade »

2.2.2? You should switch to the newest version, that one is way outdated. =o
The newest versions have, aside from tons of new contents and features, a configurable FPS-limit that keeps the game from becoming uncontrollably fast.

The basic keyboard controls are:

T: Left Hand Use
Y: Right Hand Use
G: Left Hand Pickup/Drop
H: Right Hand Pickup/Drop
B: Left Hand Inventory (Take out something or put your current item into it)
N: Right Hand Inventory (Take out something or put your current item into it)
0 (Numpad): Jump
The 2,4,6 and 8 keys on the numpad control your character, 7 and 9 control the camera. However, if those bother you too much, you can also reconfigure them as you like. (Send me a PM if you need help at doing so)

The A and S keys are part of the mouse control, but I'd recommend you to stick with the keyboard or a gamepad, the mouse control sucks badly.

Other than that, welcome to the Egoboo community. :)
Cimeries
Lumberjack (Developer)
Lumberjack (Developer)
Posts: 7720
Joined: Wed Jul 23, 2008 6:56 am

Post by Cimeries »

Hello and welcome, have a cookie. :cookie:

2.22 is actually very old. You should try one of the more recent stable releases, which you can get at our site.
I'm not familiar with Ubuntu myself, so I don't know if this will help, but you should always try the latest stable version. We have some members who are familiar with Ubuntu, I'm sure they can help you.

Mouse movement is quite outdated (as it was written over 8 years ago, by Egoboo's original creator), we're still looking for someone who can rewrite it.

I agree that the standard key configuration is uncomfortable, so I'm using a custom one.
You can easily set your own key configuration in controls.txt.
Oh, and you might want to check if any of the listed controllers share keys, as this could be the cause of your problem.

Here's mine if you want to try it:

Code: Select all

Keyboard
========
Jump			: KEY_PAD_0
Left Hand Use		: KEY_PAD_7
Left Hand Get/Drop	: KEY_PAD_4
Left Hand Inventory	: KEY_PAD_1
Right Hand Use		: KEY_PAD_9
Right Hand Get/Drop	: KEY_PAD_6
Right Hand Inventory	: KEY_PAD_3
Send Message		: KEY_M
Rotate Camera Left	: KEY_Q
Rotate Camera Right	: KEY_E
Zoom Camera In		: KEY_PAD_PLUS
Zoom Camera Out		: KEY_PAD_MINUS
Up			: KEY_W
Down			: KEY_S
Left			: KEY_A
Right			: KEY_D
You use the WASD keys for walking, Q and E for camera rotation, and each hand is monitored with the left and right numpad columns respectively; The top numbers (7 and 9) "use" the item, the middle (4 and 6) put them in you backpack, and the lower (1 and 3) drop the item.
Jump using 0.

Edit: Whoah, Clonks, where did you come from? :P
:wink:
User avatar
Shade
Potion Mimic (Senior Member)
Potion Mimic (Senior Member)
Posts: 7349
Joined: Thu Jul 24, 2008 12:25 pm
Location: Gensokyo

Post by Shade »

Chainsaw wrote:Edit: Whoah, Clonks, where did you come from? :P
I ate a stalker corpse, allowing me to pop up all of a sudden and vanish just as quickly. :P

EDIT: This is an edit.
Last edited by Shade on Tue Dec 30, 2008 4:30 pm, edited 1 time in total.
Cimeries
Lumberjack (Developer)
Lumberjack (Developer)
Posts: 7720
Joined: Wed Jul 23, 2008 6:56 am

Post by Cimeries »

Clonkinator wrote:I ate a stalker corpse, allowing me to pop up all of a sudden and vanish just as quickly again as I came. :P
That doesn't sound right. Especially that last part.
:wink:
SimoneB
Acid Blob (New member)
Acid Blob (New member)
Posts: 19
Joined: Sun Dec 21, 2008 12:38 pm

Post by SimoneB »

Hi,

I can confirm I have the same problem on Ubuntu with the 2.2.2 version.
I suggest you to try the newest 2.6.8 version, it's quite straightforward to compile and install it.
BUT, if you get a black screen as the game starts (as I did), it's because of a bug in version 2.6.8 for linux/mac users with newer PCs. You can find my fix here -> http://egoboo.sourceforge.net/forum/vie ... 9195#19195
Remember that if the game starts in fullscreen mode and you get the black screen bug you can quit with ctrl-q!

And, of course, have an exclamation mark :!:
User avatar
penguinflyer2222
Queen Penguin (Senior Member)
Queen Penguin (Senior Member)
Posts: 6614
Joined: Wed Jul 23, 2008 1:51 am

Post by penguinflyer2222 »

Hello, welcome and have a lightbulb. :idea:
Yes, that is very outdated..
And people already said everything, the controls, and such.
......
User avatar
PurpleSquerkle
Massive Gelfeet (Developer)
Massive Gelfeet (Developer)
Posts: 3176
Joined: Wed Jul 23, 2008 4:54 am
Location: Oakland, CA
Contact:

Post by PurpleSquerkle »

Welcome, carpii, and have a cookie! :cookie:
And I don't think I ever game a cookie to SimoneB, either, so here's yours: :cookie:


Anyhow, everyone already told you this, but I will anyway just because I feel like it: 2.22 is very, very old. Get the newest version, because it's hundreds of times better.
User avatar
penguinflyer2222
Queen Penguin (Senior Member)
Queen Penguin (Senior Member)
Posts: 6614
Joined: Wed Jul 23, 2008 1:51 am

Post by penguinflyer2222 »

:agree:
Purple said it!
......
carpii
Acid Blob (New member)
Acid Blob (New member)
Posts: 2
Joined: Tue Dec 30, 2008 3:31 pm

Post by carpii »

Thanks guys :)

I had already started downloading the source for the latest version, but heres a question..

Looking at the size of the latest tar, Im guessing it contains both the data and source.
Previous releases seem to split data and source into two seperate tars, and the compilation instructions also assume its in two tars.

My problem is that since theres a bit of a directory structure in the tar I have, can anyone explain how to install the data. I managed to compile the game fine, just I dont know which files to copy where

I dont eat cookies, but thanks for the lightbulbs :)
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Post by penguinflyer5234 »

Basically you copy every folder except for the source folder.

Even you can run egoboo from that folder. All you have to do is copy game/egoboo to the egoboo-2.6.8-crossplatform folder. So everytime you wish to run Egoboo, you can cd to that directory and type ./egoboo!
...
User avatar
PurpleSquerkle
Massive Gelfeet (Developer)
Massive Gelfeet (Developer)
Posts: 3176
Joined: Wed Jul 23, 2008 4:54 am
Location: Oakland, CA
Contact:

Post by PurpleSquerkle »

carpii wrote: I dont eat cookies, but thanks for the lightbulbs :)
You eat light bulbs?! :o
User avatar
ShellShocker
Rust Eater (Senior Member)
Rust Eater (Senior Member)
Posts: 3625
Joined: Thu Jul 24, 2008 6:37 am
Location: Australia

Post by ShellShocker »

Why of course, they just slightly injure your teeth.
Image
This signature picture has been cropped to fit the size limit.
SimoneB
Acid Blob (New member)
Acid Blob (New member)
Posts: 19
Joined: Sun Dec 21, 2008 12:38 pm

Post by SimoneB »

There's no need to copy the data into the sources directory.
iirc, the installation on Ubuntu boils down to:
- untar everything
- sudo apt-get install libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl1.2-dev libsdl-ttf2.0-dev build-essential
- cd yourgamefolder/source/game
- make -f Makefile.unix
- make install(not really sure... maybe make -f Makefile.unix install?) OR cp egoboo ../..
- type "egoboo" if you took the "make install" path, or run it from the directory you extracted it to!
User avatar
Crux
Acid Blob (New member)
Acid Blob (New member)
Posts: 25
Joined: Sat Feb 28, 2009 10:38 pm
Location: Michigan
Contact:

Post by Crux »

Im having the same issue trying to get the latest ver going. Im pretty new to ubuntu, and I dont understand all the terminal stuff you guys are talking about.
Post Reply