Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "FarSky"

From PCGamingWiki, the wiki about fixing PC games
(Proved the existence of multiline code blocks, making the previous editor's seething anger mostly superfluous.)
m (→‎Skip Launcher: <pre> exists, people. -- also referenced section + restructured it slightly)
Line 28: Line 28:
  
 
==Essential improvements==
 
==Essential improvements==
===Skip Launcher===
+
===Skip Launcher ===
{{Fixbox|description=Linux Method|fix=
+
{{Fixbox|description=For Linux:|ref=<ref>{{Refcheck|user=Mouse|date=2021-06-05}}</ref>|fix=
# Go to the install directory.
+
# Go to {{p|game}}.
 
# Open <code>FarSky.sh</code> with a text editor.
 
# Open <code>FarSky.sh</code> with a text editor.
# Delete the file contents.
+
# Replace all of its contents with the following, then save the file:
# Paste the following in its place:
+
<pre>
<code>#!/bin/bash<br># XMODIFIERS is cleared here to prevent SCIM messing up keyboard input<br>XMODIFIERS= java \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-noverify \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Djava.library.path="./native/linux/" \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Dsun.java2d.d3d=false \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-cp "./farsky.jar" \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-classpath "./lib/*:./farsky.jar" \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;game.Main \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-param \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-path:"$HOME/.FarSky/" \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-logPath:"$HOME/.FarSky/log/" \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"$@"<br>exit 0</code>
+
#!/bin/bash
# Save the file and run the game.
+
# XMODIFIERS is cleared here to prevent SCIM messing up keyboard input
 
+
XMODIFIERS= java \
You will now bypass the launcher from now on.}}
+
-noverify \
 +
-Djava.library.path="./native/linux/" \
 +
-Dsun.java2d.d3d=false \
 +
-cp "./farsky.jar" \
 +
-classpath "./lib/*:./farsky.jar" \
 +
game.Main \
 +
-param \
 +
-path:"$HOME/.FarSky/" \
 +
-logPath:"$HOME/.FarSky/log/" \
 +
"$@"
 +
exit 0
 +
</pre>
 +
}}
  
 
==Game data==
 
==Game data==

Revision as of 15:26, 5 June 2021

FarSky
FarSky cover
Developers
Farsky Interactive
Engines
LWJGL
Release dates
Windows April 25, 2014
macOS (OS X) April 25, 2014
Linux April 25, 2014

General information

Steam Community Discussions

Availability

Source DRM Notes Keys OS
Official website
DRM-free
Purchase via Humble Widget.
Icon overlay.png
Windows
macOS (OS X)
Linux
Humble Store
DRM-free
Icon overlay.png
Windows
macOS (OS X)
Linux
Steam
Icon overlay.png
Windows
macOS (OS X)
Linux

Essential improvements

Skip Launcher

For Linux:[1]
  1. Go to <path-to-game>.
  2. Open FarSky.sh with a text editor.
  3. Replace all of its contents with the following, then save the file:
#!/bin/bash
# XMODIFIERS is cleared here to prevent SCIM messing up keyboard input
XMODIFIERS= java \
	-noverify \
	-Djava.library.path="./native/linux/" \
	-Dsun.java2d.d3d=false \
	-cp "./farsky.jar" \
	-classpath "./lib/*:./farsky.jar" \
	game.Main \
	-param \
	-path:"$HOME/.FarSky/" \
	-logPath:"$HOME/.FarSky/log/" \
	"$@"
exit 0

Game data

Configuration file(s) location

System Location
Windows %APPDATA%\FarSky\
macOS (OS X) ~/Library/.FarSky/
Linux ~/.FarSky/
This game does not follow the XDG Base Directory Specification on Linux.
Configuration file is encrypted.

Save game data location

System Location
Windows %APPDATA%\FarSky\save\
macOS (OS X) ~/Library/.FarSky/save/
Linux ~/.FarSky/save/

Save game cloud syncing

System Native Notes
Steam Cloud

Video settings

Graphics settings.
Graphics settings.

Template:Video settings

Input settings

Controls.
Controls.

Template:Input settings

Audio settings

Audio settings.
Audio settings.

Template:Audio settings

Localizations

Language UI Audio Sub Notes
English

Issues fixed

Not Launching In Linux
FarSky claims to require a Java Runtime Environment(JRE) of 1.6. However, installing 1.8 has shown to be just as effective.
FarSky has also shown itself to not work with some newer JRE versions. So you may find yourself installing several different older versions before you can find one that works.
The following may differ depending on your Linux distribution and what version of JRE you want to try. So these commands are more of a guideline than a future-proof solution.
  1. Open a terminal and type: sudo apt-get install openjdk-8-jre
  2. Run FarSky from Steam
  3. Click "Options"
  4. Set the value for "Change Java Path" to: /usr/lib/jvm/java-8-openjdk-amd64/bin/java
  5. Click OK, then Play.

If it immediately exits without running the game, then either you will need to try a different version of Java or the path you gave it was invalid.

If you need help finding a valid path, then open a terminal and type: find / -iname *java*jdk* 2>/dev/null That will help guide you to finding a valid path.

If the game runs, then it was a success. To make the change permanent, follow the instructions above for Skipping The Launcher, but change the third line from XMODIFIERS= java \ to XMODIFIERS=/usr/lib/jvm/java-8-openjdk-amd64/bin/java \ or whatever value you gave it for "Change Java Path".

Other information

API

Executable 32-bit 64-bit Notes
Windows
macOS (OS X)
Linux

System requirements

Windows
Minimum
Operating system (OS) XP, Vista, 7, 8
Processor (CPU) Intel Core 2 Duo
AMD Athlon X2
System memory (RAM) 2 GB
Hard disk drive (HDD) 200 MB
Video card (GPU) OpenGL 2.0 compatible
Other Requires Java
macOS (OS X)
Minimum
Operating system (OS) 10.7.5
Processor (CPU) 2.2 GHz Intel Core 2 Duo
System memory (RAM)
Hard disk drive (HDD) 200 MB
Video card (GPU) OpenGL 2.0 compatible
Linux
Minimum
Operating system (OS) Ubuntu 10.4
Processor (CPU) 2.2 GHz Intel Core 2 Duo
System memory (RAM)
Hard disk drive (HDD) 200 MB
Video card (GPU) OpenGL 2.0 compatible
Other Requires Java

References

  1. Verified by User:Mouse on 2021-06-05