Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » AHC on Linux (Launch Stars m file.)
icon1.gif  AHC on Linux Wed, 29 March 2017 05:49 Go to next message
theene is currently offline theene

 
Crewman 1st Class

Messages: 27
Registered: January 2014
Location: UK
Is there anyone out there that can get this fully working?

I can get it working except when I launch stars it doesn't open my turn. It just says:

Can't open file .


Then dumps me at the starts menu screen.

See log:

[(10:10:30) warning] Running /home/user/Stars/stars.exe /home/user/Stars/beg.m4 -p  
[(10:10:30) warning]      from /home/user/Stars


I tried following the FAQ suggestion to put the path to stars as a bash script to launch stars using wine but I get the exact same issue.

I noticed that if I run this from the shell I get the same problem. The issue is that it only works if I don't use the full path.

i.e.
/home/user/Stars/stars.exe beg.m4

not
/home/user/Stars/stars.exe /home/user/Stars/beg.m4


I've tried leaving it blank which I fully expected to work, but I get this instead.

[(10:46:35) warning] Running /home/user/Stars/stars.exe /beg.m4 -p  
[(10:46:35) warning]      from /home/user/Stars
[(10:46:35) warning] java.io.IOException: Cannot run program "/home/user/Stars/stars.exe" (in directory ""): error=2, No such file or directory


In which case Stars doesn't run at all...

Edit: I suspect that /beg.m4 tries to launch the game from '/'. I tried creating a hard-link in / to test but it still doesn't launch. I think this is a bug/compatability issue. Just wanted to check.


[Updated on: Wed, 29 March 2017 05:54]

Report message to a moderator

Re: AHC on Linux Wed, 29 March 2017 10:47 Go to previous messageGo to next message
iztok is currently offline iztok

 
Commander

Messages: 1202
Registered: April 2003
Location: Slovenia, Europe
Hi!
I'm not an expert on Linux, but from what you posted, Stars! can't resolve the linux path to the .m file. Silly idea: replace / with \ and see what will happen.
Another idea: since it works, have (copy of) Stars!.exe on the .m file folder.

BR, Iztok

Report message to a moderator

Re: AHC on Linux Wed, 29 March 2017 10:49 Go to previous messageGo to next message
theene is currently offline theene

 
Crewman 1st Class

Messages: 27
Registered: January 2014
Location: UK
I tried that already. It says it can't find /home/user/Stars/\

Report message to a moderator

Re: AHC on Linux Thu, 30 March 2017 17:36 Go to previous messageGo to next message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
My script calls:
starsjrc4.exe ${GAME}.m$1 2>/dev/null &

Executable copied into game directory obviously.

Report message to a moderator

Re: AHC on Linux Thu, 30 March 2017 18:34 Go to previous messageGo to next message
theene is currently offline theene

 
Crewman 1st Class

Messages: 27
Registered: January 2014
Location: UK
Okay... the way I got around it was by manually setting the stars path to a script and putting the script contents as:

wine stars.exe beg.m4 2>/dev/null &

I don't understand you having variables in your script, unless there's more to it that I don't understand.

This way I will only be able to use AHC for one game at a time though...

Also, I'm running the wrong version! Ahhh! edit: maybe not. Your version doesn't have sound effects?


[Updated on: Thu, 30 March 2017 18:38]

Report message to a moderator

Re: AHC on Linux Sat, 01 April 2017 16:41 Go to previous message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
No sound effects...

The variables are obvious - I have a config file which sets shell variables - allowing me to have various game setups running.

Report message to a moderator

Previous Topic: Stars! Browser Edition
Next Topic: Ring 2 discussion
Goto Forum:
  


Current Time: Fri Mar 29 08:33:44 EDT 2024