Forgotten Tales 9 beta version released!

stay tuned

Moderators: Leone, Game Administrators, Forum Manager

User avatar
LostKnight
Posts: 6467
Joined: Sat Sep 09, 2017 8:02 pm
Location: Rockhiem nord i Steinhus nær Kedington

Re: Forgotten Tales 9 beta version released!

Post by LostKnight »

compbatant wrote: Thu Apr 16, 2026 9:16 am When you enter just "start.sh" then command line is searching for executable in PATH variable. Current directory isn't there by default. Only directories like "/bin" '/usr/bin" etc.
In the ft9.zip file the start.bat and start.sh files have 1 line:

Code: Select all

java --sun-misc-unsafe-memory-access=allow --enable-native-access=ALL-UNNAMED -jar desktop.jar 920 640
as you can see from my previous post I did a /cd command in my terminal (Debian Linux) changing my directory to

Code: Select all

/media/10/FT-MMOG/ft9/
and tried running the start.sh - it was not found.

So I created my own .sh file with these lines that are based on the FT v8 bash files except for the final /ft9/:

Code: Select all

cd /media/10/FT-MMOG/ft9/

java -jar desktop.jar 634 518
And my OpenBox

Code: Select all

rc.xml
file has:

Code: Select all

    <keybind key="C-A-6">
      <action name="Execute">
        <command>/media/10/FT-MMOG/ft9/ft6.sh</command>
      </action>
    </keybind>
Now everything works just fine.
FT·260416·104102.jpg
FT·260416·104102.jpg (98.79 KiB) Viewed 65 times
I would if I could but I can't, so I won't. My forgetter is getting better.
I do not make typos, the keys move around on my keyboard to confuse me.
- The Tpyo Knig
As a matter of fact, yes, I am AFK!
User avatar
compbatant
Site Admin
Posts: 2064
Joined: Fri Jun 15, 2012 12:00 am
Location: Warsaw, Poland
Contact:

Re: Forgotten Tales 9 beta version released!

Post by compbatant »

LostKnight wrote: Thu Apr 16, 2026 3:54 pm
compbatant wrote: Thu Apr 16, 2026 9:16 am When you enter just "start.sh" then command line is searching for executable in PATH variable. Current directory isn't there by default. Only directories like "/bin" '/usr/bin" etc.
In the ft9.zip file the start.bat and start.sh files have 1 line:

Code: Select all

java --sun-misc-unsafe-memory-access=allow --enable-native-access=ALL-UNNAMED -jar desktop.jar 920 640
as you can see from my previous post I did a /cd command in my terminal (Debian Linux) changing my directory to

Code: Select all

/media/10/FT-MMOG/ft9/
and tried running the start.sh - it was not found.

So I created my own .sh file with these lines that are based on the FT v8 bash files except for the final /ft9/:

Code: Select all

cd /media/10/FT-MMOG/ft9/

java -jar desktop.jar 634 518
And my OpenBox

Code: Select all

rc.xml
file has:

Code: Select all

    <keybind key="C-A-6">
      <action name="Execute">
        <command>/media/10/FT-MMOG/ft9/ft6.sh</command>
      </action>
    </keybind>
Now everything works just fine.
FT·260416·104102.jpg
Please read again my previous message.
Changing directory is not enough. You must type
./start.sh
or
sh start.sh

When you enter just "start.sh" then system search for command in directories defined in PATH global variable. In general in PATH variable there is no current directory.
The $PATH is a specific system variable containing a list of directories separated by colons (:). When you type a command (like ls), the shell searches these directories in order to find the executable file.View your PATH: Run echo $PATH in the terminal.Common directories in $PATH: /bin, /usr/bin, and /usr/local/bin.

You don't have "start.sh" script put in /bin or /usr/bin etc directory so it is not found.
It doesn't matter where is you current directory set by "cd" command.
User avatar
LostKnight
Posts: 6467
Joined: Sat Sep 09, 2017 8:02 pm
Location: Rockhiem nord i Steinhus nær Kedington

Re: Forgotten Tales 9 beta version released!

Post by LostKnight »

compbatant wrote: Thu Apr 16, 2026 6:29 pm {snip}
Please read again my previous message.
Changing directory is not enough. You must type
./start.sh
or
sh start.sh
Agreed, those two commands basically say "ignore the $PATH start the script in the directrory you are in".
You can also use

Code: Select all

source start.sh
as well.

starting "start.sh" with

Code: Select all

/directory/subdir1/subdir2/start.sh
also works.

Therefore:

Code: Select all

/media/10/FT-MMOG/ft9/ft6.sh
will start the ft6.sh script from: the run command, or from an OpenBox menu, or in a terminal.

ft6.sh has two lines:

Code: Select all

cd /media/10/FT-MMOG/ft9/

java -jar desktop.jar 634 518
/media/10/FT-MMOG/ft9/ - is where ft9.zip was extracted to and because my bash script used the cd command to change to that directory I'm in the required directory to run the command:

Code: Select all

java -jar desktop.jar 634 518
I did not use:

Code: Select all

cd /media/10/FT-MMOG/ft9/
ft6.sh
I used:

Code: Select all

/media/10/FT-MMOG/ft9/ft6.sh
Anyway. It's working. Thank you.
I would if I could but I can't, so I won't. My forgetter is getting better.
I do not make typos, the keys move around on my keyboard to confuse me.
- The Tpyo Knig
As a matter of fact, yes, I am AFK!
User avatar
LostKnight
Posts: 6467
Joined: Sat Sep 09, 2017 8:02 pm
Location: Rockhiem nord i Steinhus nær Kedington

Re: Forgotten Tales 9 beta version released!

Post by LostKnight »

This seems like as good a place as any.
A tiny oops that could use a tweak in FT version 9

How about moving the "red (X)" down below the Health, Mana bars under the mini-map.
260416·132508.jpg
260416·132508.jpg (3.98 KiB) Viewed 22 times
I would if I could but I can't, so I won't. My forgetter is getting better.
I do not make typos, the keys move around on my keyboard to confuse me.
- The Tpyo Knig
As a matter of fact, yes, I am AFK!
User avatar
compbatant
Site Admin
Posts: 2064
Joined: Fri Jun 15, 2012 12:00 am
Location: Warsaw, Poland
Contact:

Re: Forgotten Tales 9 beta version released!

Post by compbatant »

LostKnight wrote: Thu Apr 16, 2026 8:29 pm This seems like as good a place as any.
A tiny oops that could use a tweak in FT version 9

How about moving the "red (X)" down below the Health, Mana bars under the mini-map.
260416·132508.jpg
Good catch. I added function for detecting rounded corners in phone and moving down minimap so it is fully visible but I forgot to move down zoom and erase buttons. I will fix it in next client update.
Post Reply