logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [SOLVED]Unreal 227i - can't start, missing Core.so (but the file IS in System) (Read 2993 times)
Trydi
Junior Member
**
Offline


Oldunreal member

Posts: 71
Location: Poland
Joined: Apr 20th, 2009
Gender: Male
[SOLVED]Unreal 227i - can't start, missing Core.so (but the file IS in System)
Jan 31st, 2014 at 1:27pm
Print Post  
Hi,

Long time no see Smiley My english becomes rusty, so forgive me if something is hard to read or understand  Lips Sealed

I've just installed Unreal and 227i with native Linux files. But there is small problem, game not starting, because:

Code
Select All
Unreal/System/UnrealLinux.bin: error while loading shared libraries: Core.so: cannot open shared object file: No such file or directory
 



But:

Code
Select All
 ls | grep Core
Core.dll
Core.int
--> Core.so <--
Core.u
 



So, missing Core.so is not really missing, but it's not visible, so game can't start. Unreal runs perfectly under Wine, but it's only workaround not a solution.

Thanks for help - maybe I forgot something?
« Last Edit: Feb 5th, 2014 at 5:48pm by Trydi »  

Unofficial Linux Installer for Unreal (227f): http://www.oldunreal.com/cgi-bin/yabb2/YaBB.pl?num=1241027403/0.&&&&Happy Linux User Smiley
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7935
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Unreal 227i - can't start, missing Core.so (but the file IS in System)
Reply #1 - Jan 31st, 2014 at 4:58pm
Print Post  
really hard to say this way, sure you have 32bit libs installed? Also did you check the timestamps if all files have been updated correctly?
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Trydi
Junior Member
**
Offline


Oldunreal member

Posts: 71
Location: Poland
Joined: Apr 20th, 2009
Gender: Male
Re: Unreal 227i - can't start, missing Core.so (but the file IS in System)
Reply #2 - Feb 2nd, 2014 at 4:28pm
Print Post  
Well - my system is Fedora x64 and when I typed

Code
Select All
linux32 ./UnrealLinux.bin 



Game started and zero problems with missing Core.so. Now game starts even without typing linux32 (anybody using it today?). But there is a chance, that previous reboot solved my problem - i just don't know  Wink

I don't know what caused my problem, but after system reboot or started with linux32 - game running just fine  Roll Eyes

I should check this before creating new thread - sorry Roll Eyes
  

Unofficial Linux Installer for Unreal (227f): http://www.oldunreal.com/cgi-bin/yabb2/YaBB.pl?num=1241027403/0.&&&&Happy Linux User Smiley
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7935
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Unreal 227i - can't start, missing Core.so (but the file IS in System)
Reply #3 - Feb 3rd, 2014 at 7:36pm
Print Post  
good good Smiley
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
tne
New Member
*
Offline


Oldunreal member

Posts: 1
Joined: Apr 3rd, 2014
Re: [SOLVED]Unreal 227i - can't start, missing Core.so (but the file IS in System)
Reply #4 - Apr 3rd, 2014 at 11:40pm
Print Post  
For your information, the reason was almost certainly that you didn't set the current working directory correctly: the game really expects it to be the System directory.

You can set LD_LIBRARY_PATH to $GAMEDIR/System and run the executable from anywhere, but then the process would crash for other reasons (starting with missing INI files) -- again because the game searches for all its files relative to the current working directory, and does not change it to that of the executable (which would be System) automatically. It probably should, but it doesn't.

TL;DR, bash shell:
Code
Select All
(cd $GAMEDIR/System && ./UnrealLinux.bin) 


Instead of:
Code
Select All
$GAMEDIR/System/UnrealLinux.bin 



TL;DR, freedesktop-compatible environment (GNOME, KDE, ...) .desktop file:
Code
Select All
[Desktop Entry]
Name=Unreal
Path=path/to/System
Exec=path/to/UnrealLinux.bin
Type=Application 


Instead of:
Code
Select All
[Desktop Entry]
Name=Unreal
Exec=path/to/System/UnrealLinux.bin
Type=Application 



It might give you a headache, so let me point this out already: It looks like the game copies argv[0] (the executable path) to a 32 bytes buffer somewhere, and most likely truncates it to 31 bytes for a cstring delimiter. When it uses it later, if the path is truncated (its length is more that 31 characters, if encoded in ASCII), it segfaults.

I have absolutely no expectation that this be fixed ever, but it's pretty confusing and difficult to track down.

Anyway, I recommend placing a link or symlink with a short name (say unreal) somewhere on your PATH, then you'll be good to go. Even better is a tiny wrapper script that changes the working directory before executing the game:

Code
Select All
#!/usr/bin/env bash
cd path/to/System && exec ./UnrealLinux.bin 



So then it becomes:

bash shell:
Code
Select All
unreal 



.desktop file:
Code
Select All
[Desktop Entry]
Name=Unreal
Exec=unreal
Type=Application 



'Hope it helps the next guy.

By the way, I too use Fedora x86_64, and I confirm that you don't need to use setarch/linux32.
« Last Edit: Apr 5th, 2014 at 11:28am by tne »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo