You are not logged in.

#1 2008-05-27 17:07:55

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Sim City 3000 (Anyone speak German?)

Well, I've just gotten the linux version of Sim City 3000 in the mail today, and I can't get it to actually run.  I've followed the instructions in this very old thread (http://bbs.archlinux.org/viewtopic.php?id=7117), but I can't get it to run.  I've gotten the error below, which was not covered in the thread:

/opt/games/SC3U/sc3u: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

Last edited by Falcata (2008-05-29 21:09:31)

Offline

#2 2008-05-27 17:18:02

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

SimCity is probably buildt against an older version of libdl -- I'm not at my arch box now, so I can't check what the current version is.



First, check if there is a directory with libraries in the game directory -- closed source software for Linux often ships with the libs it's built against. Maybe there is an option in the launcher script (like there is with e.g NWN). If not, you can always fiddle with LD_LIBRARY_PATH.


If there is no library in the game directory (or in a subdir like lib/), you can _try_ symlinking /usr/lib/libdl.so.2 to /usr/lib/libdl.so

 
#cd /usr/lib
#ln -s libdl.so libdl.so.2

This might cause all sorts of problems, so try the first solution first smile


Drop a line if it works (or not)

Offline

#3 2008-05-27 17:29:46

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

Well, /opt/games/SC3U does have a lib directory, but there isn't a libdl.so or libdl.so.2 in it.  Also, I am against symlinking /usr/lib/libdl.so.2 to /usr/lib/libdl.so, due to the problems it might cause.  Also, I don't really see what it would do, since SimCity 3000 is looking for libdl.so.2.

However, my libdl.so.2 file is in the directory /lib, rather than /usr/lib.  I'll try symlinking that and see if it does anything.

EDIT: No effect.  How do I figure out where SimCity 3000 is expecting libdl.so.2 to be?

Last edited by Falcata (2008-05-27 17:31:21)

Offline

#4 2008-05-27 17:43:48

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

Ah, of course, it's in /lib. I'm at work, on win2k now tongue
But if you have a libdl.so.2, then the problem is something else. Perhaps the starter script for simcity _does_ play with LD_LIBRARY_PATH, and therefore the linker does not find your library in /lib? Just guessing.

Check if /opt/games/SC3U is a shell file. See if it does something funny with env variables like LD_LIBRARY_PATH.

Offline

#5 2008-05-27 17:52:22

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

/opt/games/SC3U/sc3u, actually.  And it's just a binary file.

Offline

#6 2008-05-27 18:01:34

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

Ok, that's just weird. Is there a starter shellscript?

Offline

#7 2008-05-27 18:10:03

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

No, not really.  Just a binary.

Offline

#8 2008-05-27 18:11:57

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

Well, I would try to go into the lib/ dir of simcity, and make a symlink to libdl there. But this is weirding me out smile

Offline

#9 2008-05-27 18:15:17

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

I tried that already, but it didn't work.

The game was written for use with the 2.2 and 2.4 kernels, but works on the 2.6.  Was libdl.so.2 in a different location for the 2.2 and 2.4 kernels?

Last edited by Falcata (2008-05-27 18:16:17)

Offline

#10 2008-05-27 18:30:15

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

Offline

#11 2008-05-27 18:38:36

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

Well shoot.   Where am I going to get those files?

Offline

#12 2008-05-27 18:57:18

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

This guy also writes about it, and offers the libs for d/l. You could try it out.
http://bashu.wordpress.com/2007/04/15/s … untu-edgy/

Offline

#13 2008-05-27 19:03:14

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 557

Re: Sim City 3000 (Anyone speak German?)

A word of warning: some versions of SC3K suffer from SafeDisk copy protection, which doesn't work under WINE. I'm not certain if that's what's causing this issue (it's a while since I tried my copy, and I can't remember how it failed), but just so you know...

Edit: Doh! Linux version. roll Forget I said anything. No, really, forget it. Please?

Last edited by dunc (2008-05-27 19:05:06)


0 Ok, 0:1

Offline

#14 2008-05-27 19:04:44

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

dunc, he is not using wine. He's using the linux version.

Offline

#15 2008-05-27 19:06:30

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 557

Re: Sim City 3000 (Anyone speak German?)

Heh! I noticed before you posted. Hence the edit (making you look stupid instead of me wink ).


0 Ok, 0:1

Offline

#16 2008-05-27 19:07:03

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

dunc wrote:

A word of warning: some versions of SC3K suffer from SafeDisk copy protection, which doesn't work under WINE. I'm not certain if that's what's causing this issue (it's a while since I tried my copy, and I can't remember how it failed), but just so you know...

Edit: Doh! Linux version. roll Forget I said anything. No, really, forget it. Please?

Too late now, lol.

The Windoze version of Sim City 3000 doesn't work under wine for me either.

Offline

#17 2008-05-27 19:16:32

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

I think I found the answer now smile
Grab the Loki-compat libs from http://www.linuxrising.org/files/lokicompat.tar.bz2
Also, read http://gentoo-wiki.com/HOWTO_Running_Old_Loki_Games

Offline

#18 2008-05-27 19:35:12

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

Well, the patch doesn't seem to work.  I try running it, and I get this message:

Performing update:
Computing MD5 sums for new uninstaller, this may take a while...
ERROR: No matching delta for /opt/games/SC3U//sc3u.dynamic
The program returned an error code (3)

EDIT: I think I shouldn't have put the trailing "/" on the end of the installation directory.  Is there any way to reset it?

Last edited by Falcata (2008-05-27 19:36:30)

Offline

#19 2008-05-27 20:01:33

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

I have _no_ idea, I don't have the game.
I'll hunt around for a demo or something.

Offline

#20 2008-05-27 20:14:25

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

Mh. Look in the ~/.loki/installed directory maybe? I don't know how this is if you installed it system wide...

Offline

#21 2008-05-27 20:18:57

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

Well, I removed the trailing slash, but I'm still getting the problem.  I'm going to take a look at /opt/games/SC3U/sc3u.dynamic to see if it has any useful information.

EDIT: Nothing useful.  Just a binary file.

Last edited by Falcata (2008-05-27 20:21:17)

Offline

#22 2008-05-27 20:40:49

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

Well, I did some googling for the whole "delta" thing, and I think I might have found a solution.  Unfortunately, I don't know how to read German.  Can anyone read German?  Google Language Tools isn't exactly helpful.

Last edited by Falcata (2008-05-27 20:44:23)

Offline

#23 2008-05-28 08:38:01

gnud
Member
Registered: 2005-11-27
Posts: 181

Re: Sim City 3000 (Anyone speak German?)

Back again smile
I don't know what you did before trying to patch. Anyway, i found a mirror of lokigames patches here ftp://mirrors.dotsrc.org/lokigames/patches/sc3u

Offline

#24 2008-05-29 21:09:11

Falcata
Member
From: Michiana
Registered: 2008-01-23
Posts: 501
Website

Re: Sim City 3000 (Anyone speak German?)

Whoops.  I suppose it would have helped to post the page I found the possible solution: http://forum.ubuntuusers.de/topic/77208/

Can anyone give me a translation of the solution, if it exists on that page?

Offline

#25 2008-05-30 07:54:30

gothmog.todi
Member
From: Austria
Registered: 2007-07-18
Posts: 120

Re: Sim City 3000 (Anyone speak German?)

Sure:

It seems the original poster had the same problem as you did.
The following is a translation of "Poppei"s Post, which has worked for the OP:

1) you install SimCity 3000
2) grap the patch (got it from http://mirrors.dotsrc.org/lokigames/patches/sc3u/)
3) if there is a trap-error while installing, run: "sudo /bin/bash sc3u-2.0a-x86.run"
4) now there will be a segmentation fault while starting sim city. I downloaded the following for compatibility: http://www.linuxrising.org/files/lokicompat.tar.bz2
and extracted it into /usr/local/games . Now create the following script in /usr/local/games/SC3U (I called it: sc3u-ok)

#!/bin/sh
COMPAT=/usr/local/games/loki_compat
LD_LIBRARY_PATH=$COMPAT LD_ASSUME_KERNEL=2.4.28 $COMPAT/ld-linux.so.2 /usr/local/games/SC3U/sc3u

don't forget to make it executeable (e.g. chmod 777)
5) start the game. :-) (using sc3u-ok)

Sources:
http://www.linuxforen.de/forums/showthr … 614&page=2
http://ubuntuforums.org/showthread.php?p=2740852

I don't take any responsibility for any errors/inaccuracies wink, but I hope it helps you

Offline

Board footer

Powered by FluxBB