tome4 does not respect FHS

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
hasufell
Wayist
Posts: 16
Joined: Thu Aug 29, 2013 2:00 pm

tome4 does not respect FHS

#1 Post by hasufell »

It seems you cannot install the binary and the data files separately as one would do while following FHS which is standard in 95% of all unix distros more or less.
It will cause failure to start the game, because there seems to be no way of telling it during compile time where those data files will be. Correct me if I am wrong.

see http://www.pathname.com/fhs/pub/fhs-2.3.html

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: tome4 does not respect FHS

#2 Post by darkgod »

It can be made to actually.

When the exe is compiled, create a file named "boot.lua" containing two lines:

Code: Select all

fs.mount("/THE/PATH/game"..fs.getPathSeparator().."thirdparty", "/", true)
fs.mount("/THE/PATH/game", "/", true)
Obviously replace THE/PATH with the actual install path.
Then create a zip containing only this file in a folder named "bootstrap", append the zip to the exe and voila !
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

hasufell
Wayist
Posts: 16
Joined: Thu Aug 29, 2013 2:00 pm

Re: tome4 does not respect FHS

#3 Post by hasufell »

that doesn't sound very well and is problematic with stripping binaries

a much easier hack is to sed the PHYSFS_mount lines in main.c

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: tome4 does not respect FHS

#4 Post by darkgod »

Hum you could do that too yes
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply