edit: oh, it's almost working again... but still, I don't manage to attach anything, since the full editor redirects me to the index
On linux, all files extracted with
weidu --biff-get from biffs are already lower case.
Here are the two binaries plus one script which creates a
bg1 folder inside the
bgt folder, with lower case symlinks to (I hope) every needed
BG1 file and folder (chitin.key; baldur.ini; the two .tlks; Data, Override, Movies, Sounds and Music).
That's still an idea which I can edit depending on what you need and on the .tp2 code.
After that, you can use
bgt/
bg1/ instead of the original
bg1 path, and have no case-sensitivity problems.
It also copies the linux binaries to /tmp folder and makes them executable (to prevent problems if
bg2 is installed on a FAT or NTFS partition); you can launch every binary with AT_NOW ~/tmp/
bgt-
weidu/mosunpack ...~ and so on.
It could be put inside a code very roughly like this...
ACTION_IF NOT FILE_EXISTS ~bgt/autopath.txt~ BEGIN
PRINT ~insert your full path~
END
AT_EXIT ~rm -rf bgt/bg1~
AT_NOW ~sh bgt/unix/linkbg1.sh~
ACTION_IF NOT FILE_EXISTS ~bgt/bg1/chitin.key~ BEGIN
FAIL ~invalid path~
END
COPY + ~linux.ini~ ~bgt/bg1/linux.ini~
REPLACE_TEXTUALLY ~%MNL%~ ~%LNL%~
REPLACE_TEXTUALLY ~%WNL%~ ~%LNL%~
REPLACE_TEXTUALLY ~%LNL%.*$~ ~~//delete all lines but the first
offset = BUFFER_LENGTH
INSERT_BYTES offset 8
WRITE_ASCII offset ~bgt/bg1/~
SPRINT path ~bgt/bg1/~
PS: edit: there are apparently problems on this forum, since every time I try to reply I get redirected to the forum index. Please, if you see thousands of posts of mine, delete them, since my reply appeared to have disappeared, and I tried to post it again some times
Edited by Turambar, 30 October 2011 - 02:03 PM.