Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Wisp
« on: March 18, 2017, 07:01:37 PM »

Done. Holdover from whenever.
Posted by: K4thos
« on: February 03, 2017, 06:06:58 PM »

USER_DIRECTORY variable doesn't support unix systems. EE mods that uses this variable are not compatible with linux.

As a workaround I've tried to manually fix the variable like this:
Code: [Select]
OUTER_PATCH_SAVE USER_DIRECTORY_FIX ~%USER_DIRECTORY%~ BEGIN
  PATCH_IF ~%WEIDU_OS%~ STR_EQ ~unix~ BEGIN
    REPLACE_TEXTUALLY "^\./" "~/.local/share/"
  END
END

and this:
Code: [Select]
AT_NOW ~echo $HOME >home.txt~ EXACT
COPY - ~home.txt~ ~.../home.txt~
  REPLACE_EVALUATE CASE_INSENSITIVE ~^\(.+\)$~ BEGIN
    SPRINT home_dir ~%MATCH1%~
  END ~~
OUTER_PATCH_SAVE USER_DIRECTORY_FIX ~%USER_DIRECTORY%~ BEGIN
  REPLACE_TEXTUALLY ~^\./~ ~%home_dir%/.local/share/~
END

But in both cases this FILE_EXISTS test code fails to find the file on linux:
Code: [Select]
ACTION_IF FILE_EXISTS ~%USER_DIRECTORY_FIX%/Baldur.lua~ BEGIN
  PRINT ~Baldur.lua exists in %USER_DIRECTORY_FIX% directory~
END ELSE BEGIN
  PRINT ~Baldur.lua doesn't exists in %USER_DIRECTORY_FIX% directory~
END

Any chance for updating USER_DIRECTORY to support linux?