box86 icon indicating copy to clipboard operation
box86 copied to clipboard

simcity 3000 (linux version)

Open jackygoule opened this issue 4 years ago • 38 comments

Hello i want to install sc3000 with box86 . when i run sh setup.sh This installation doesn't support unknown on Linux / armv7l so i test with: box86 sh setup.sh Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Error: reading elf header of /usr/bin/dash, try to launch natively instead Erreur de segmentation i compile box86 with pi-kiss Thanks for your job.

jackygoule avatar Oct 28 '21 12:10 jackygoule

You can try this to get the setup recognise the system (it's not box86 fault here...) create ~/uname (with nano or vim or your favorite text editor) with

#!/bin/bash

if [ "$1" == "-m" ];then
 echo i386
 exit 0
fi

/bin/uname "$@"

make the file runable with chmod +x ~/uname Then run the setup with

PATH=~:"$PATH" sh setup.sh

It should help to make the system spoof the installer into thinking it's a i386 system.

ptitSeb avatar Oct 28 '21 13:10 ptitSeb

Thanks the install work with sudo PATH=~:"$PATH" sh setup.sh But in the readme i see for run sc3000 sc3U but bash: sc3u : commande introuvable so sudo find -name sc3u and i find it so ./sc3u Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Warning, function my___pthread_mutex_destroy not found opendir: No such file or directory Path = /home/pi/jeux/sc3/bin/x86/glibc-2.1/cities/ opendir: No such file or directory Path = /home/pi/jeux/sc3/bin/x86/glibc-2.1/cities/scenarios/ opendir: No such file or directory Path = /home/pi/jeux/sc3/bin/x86/glibc-2.1/buildings/ Fatal signal: Segmentation Fault (SDL Parachute Deployed)

jackygoule avatar Oct 28 '21 13:10 jackygoule

I'll fix the Warning later, it may be the cause of the issue. Also, there should be a sc3u.dynamic in the same folder. Try to use this one.

ptitSeb avatar Oct 28 '21 14:10 ptitSeb

ls in this folder lib sc3bat sc3u

So i test with sc3bat and Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Warning, function my___pthread_mutex_destroy not found opendir: No such file or directory Path = /home/pi/jeux/sc3/bin/x86/glibc-2.1/cities/ opendir: No such file or directory Path = /home/pi/jeux/sc3/bin/x86/glibc-2.1/cities/scenarios/ opendir: No such file or directory Path = /home/pi/jeux/sc3/bin/x86/glibc-2.1/buildings/ Error: PltReolver: Symbol _dl_catch_error(ver 7: _dl_catch_error@GLIBC_2.0) not found, cannot apply R_386_JMP_SLOT 0x86d28cc (0x814825e) in ./sc3bat

jackygoule avatar Oct 28 '21 15:10 jackygoule

i found a directory where the game is install ? /usr/local/games/SC3U ls bacustom buildings hotkeys.txt icon.xpm README.fr sc3u.ini sys barender cities icon.bmp plugin res snapshot.ini uninstall

jackygoule avatar Oct 28 '21 15:10 jackygoule

So i do install again. And i have a error message 100% - /home/pi/jeux/sc3/sys/sys.pak Incapable de trouver le fichier 'bin/x86/sc3bat'

Installation termin�e. The setup program seems to have failed on x86/unknown

but i find sc3bat in bin/x86

jackygoule avatar Oct 28 '21 19:10 jackygoule

Hello i progress. i install again with python script find here https://github.com/tetration/Simcity_3000_Linux_Installer.git after mount iso the install run successful but the not run . i found sc3u.dynamic and ./sc3u.dynamic Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Error initializing native libsmpeg-0.4.so.0 (last dlerror is libsmpeg-0.4.so.0: cannot open shared object file: No such file or directory) Error: loading needed libs in elf ./sc3u.dynamic

or when i start whith ./sc3u.sh French installation detected! Running WITH lokicompat libs! Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55

but nothing run

and when i run ./sc3u Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Warning, function my___pthread_mutex_destroy not found open /dev/dsp: No such file or directory X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 150 (XVideo) Minor opcode of failed request: 19 () Serial number of failed request: 21 Current serial number in output stream: 22 [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. box86: ../../src/xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.

BUG! Exception triggered, cleaning up. SimCity 3000 Unlimited 2.0.955a Built with glibc-2.1 on x86 Please send the text of the failed assertion, along with the contents of autosave to: [email protected] Fatal signal: Segmentation Fault (SDL Parachute Deployed) free(): double free detected in tcache 2 Failed assertion in cleanup -- aborting

thanks for your job

jackygoule avatar Oct 29 '21 08:10 jackygoule

You are missing libsmpeg. Try to sudo apt install libsmpeg0 if you are on debian/ubuntu.

Also, I think this game use old OSS for sound output, I don't remember if it can worked around. I think it can, but I don't remeber (not important for now, but you may have no sound when it finaly launched)

ptitSeb avatar Oct 29 '21 08:10 ptitSeb

thanks for your answer i install successful libsmeg0 (on raspberypi os) when i run ./sc3u.dynamic Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Error: loading needed libs in elf ./sc3u.dynamic

jackygoule avatar Oct 29 '21 10:10 jackygoule

Use BOX86_LOG=1 ./sc3u.dynamic to have more details on the missing lib.

ptitSeb avatar Oct 29 '21 10:10 ptitSeb

ok i test and return is Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 50 Env var Looking for ./sc3u.dynamic Using native(wrapped) libsmpeg-0.4.so.0 Error loading needed lib libopenal-0.0.so Error loading one of needed lib Error: loading needed libs in elf ./sc3u.dynamic

jackygoule avatar Oct 29 '21 11:10 jackygoule

This openal-0.0.so is an old version of openal. You need to grab the x86 version (look in that lokicompat folder full of libs you grabbed earlier), and copy the file in the same folder as the binary. It should work after that (those old game are not easy to run on moder system, even on x86)

ptitSeb avatar Oct 29 '21 11:10 ptitSeb

thanks ,i test and the return Debug level is 1 Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/ Using default BOX86_PATH: ./:bin/ Counted 50 Env var Looking for ./sc3u.dynamic Using native(wrapped) libsmpeg-0.4.so.0 Using emulated libopenal-0.0.so Using native(wrapped) libSDL-1.1.so.0 Using native(wrapped) libm.so.6 Using native(wrapped) libdl.so.2 Using native(wrapped) librt.so.1 Using native(wrapped) libX11.so.6 Using native(wrapped) libXext.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Warning, function my___pthread_mutex_destroy not found Error: PltReolver: Symbol __builtin_new(ver 0: __builtin_new) not found, cannot apply R_386_JMP_SLOT 0x85b92f0 (0x8135726) in ./sc3u.dynamic

jackygoule avatar Oct 29 '21 11:10 jackygoule

Mmm, yeah, for some unknown reason, this one use c++ libs bt that libs doesn't get loaded. You need to copy libstdc++-libc6.2-2.so.3 if the executable folder (from the same lokicompat one) and launch with BOX86_LD_PRELOAD=libstdc++-libc6.2-2.so.3 ./sc3u.dynamic And the intro should play...

ptitSeb avatar Oct 29 '21 12:10 ptitSeb

thanks i test after copy BOX86_LD_PRELOAD=libstdc++-libc6.2-2.so.3 ./sc3u.dynamic

return

Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Warning, function my___pthread_mutex_destroy not found Error: PltReolver: Symbol __builtin_new(ver 0: __builtin_new) not found, cannot apply R_386_JMP_SLOT 0x85b92f0 (0x8135726) in ./sc3u.dynamic

jackygoule avatar Oct 29 '21 12:10 jackygoule

it's not exactly the same file on my lokicombat libstdc++-3-libc6.2-2-2.10.0.so

jackygoule avatar Oct 29 '21 12:10 jackygoule

The Warning is here because you didn't update box86 The Error is here because you didn't copy correctly the library in current binary folder.

ptitSeb avatar Oct 29 '21 12:10 ptitSeb

then use that name in the BOX86_LD_PRELOAD command

ptitSeb avatar Oct 29 '21 12:10 ptitSeb

thanks ,how to update box86? the binary folder is the same where i find sc3u.dynamic?

jackygoule avatar Oct 29 '21 12:10 jackygoule

ls on my folder

pi@raspberrypi:~/simcity3000 $ ls bacustom plugin sc3u barender README sc3u.dynamic buildings README-2.0a sc3u.dynamic.sh cities README.dynamic sc3u.ini hotkeys.txt README.liflg sc3u.sh icon.xpm res snapshot.ini lib sc3bat sys libopenal-0.0.so sc3bat.dynamic uninstall-simcity3000.sh libstdc++-3-libc6.2-2-2.10.0.so sc3bat.dynamic.sh Loki_Compat sc3bat.sh

jackygoule avatar Oct 29 '21 12:10 jackygoule

Update box86: as you installed it with piapps, I'll you see with piapps maintenair how to do it (it should be fairly automatic).

if you launch with BOX86_LD_PRELOAD=libstdc++-3-libc6.2-2-2.10.0.so ./sc3u.dynamic it doesn't works?

ptitSeb avatar Oct 29 '21 12:10 ptitSeb

yes it's run but no sound

jackygoule avatar Oct 29 '21 12:10 jackygoule

after 1min Box86 with Dynarec v0.2.3 fa4b5fe7 built on Oct 28 2021 14:24:55 Warning, function my___pthread_mutex_destroy not found open /dev/dsp: No such file or directory

BUG! (Segmentation Fault) Going down hard... SimCity 3000 Unlimited 2.0.955a Built with glibc-2.1 on x86 Stack dump: { 0x6287cf54 0x62877aec 0x628ba6c4 0x628baf94 0x628bb784 0xb6d19120 } Please send a full bug report, along with the contents of autosave to: [email protected] Erreur de segmentation

jackygoule avatar Oct 29 '21 12:10 jackygoule

i test to update box 86

jackygoule avatar Oct 29 '21 12:10 jackygoule

after one minute of gameplay it crashed?

ptitSeb avatar Oct 29 '21 12:10 ptitSeb

I do have a crash when exiting the game, but it's not very important, it's really when exiting.

ptitSeb avatar Oct 29 '21 12:10 ptitSeb

yes after choice of party ,when i zoom crash

jackygoule avatar Oct 29 '21 12:10 jackygoule

after update same crash when i zoom for build in game crash

jackygoule avatar Oct 29 '21 12:10 jackygoule

Well, I'll have to debug this crash. I'll try this weekend.

ptitSeb avatar Oct 29 '21 12:10 ptitSeb

thanks for your help . For the sound i install sudo apt-get install osspd run well on my laptop ubuntu .

jackygoule avatar Oct 29 '21 12:10 jackygoule