Author Topic: WeiDU fails when trying to modify hidden files  (Read 1658 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
WeiDU fails when trying to modify hidden files
« on: July 31, 2016, 01:26:56 PM »
This code fails when engine.lua has "Hidden" attribute enabled (tested using clean Windows 7):

1. Set engine.lua as "Hidden" file in Windows
2. Try to install A1 component

Code: [Select]
BACKUP ~A1/backup~
AUTHOR ~A1~
BEGIN ~A1~
COPY ~engine.lua~ ~engine.lua~
   REPLACE_TEXTUALLY ~engine_name[ %TAB%]*=[ %TAB%]*".*"~ ~engine_name = "Baldur's Gate - Enhanced Edition Trilogy"~

Error:
Code: [Select]
[V:\Gry\BGIIEE\data\00783\setup-A1.exe] WeiDU version 23901
This is a non-stable version. Unless you're sure about what you're doing, consider downgrading.
Using .\lang\en_us\dialog.tlk
Install Component [A1]?
[I]nstall, or [N]ot Install or [Q]uit? i

Installing [A1]
Copying 1 file ...
ERROR: COPY ~engine.lua~ ~engine.lua~ FAILED: cannot open target
Stopping installation because of error.

ERROR Installing [A1], rolling back to previous state
Will uninstall   1 files for [SETUP-A1.TP2] component 0.
Uninstalled      1 files for [SETUP-A1.TP2] component 0.
ERROR: Sys_error("engine.lua: Permission denied")
PLEASE email the file SETUP-A1.DEBUG to A1

Install Component [A1]?
[I]nstall, or [N]ot Install or [Q]uit?
3. After this error popups, weidu 'unhide' file (attribute "Hidden"  is somehow removed and the second try of installation will pass without problems.

I don't know what is the reason but the fact it exist is definitely not a good thing.
« Last Edit: July 31, 2016, 01:39:01 PM by AL|EN »
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: WeiDU fails when trying to modify hidden files
« Reply #1 on: August 04, 2016, 02:43:57 PM »
You've already posted about this and I've already said no.

To add more detail: this apparently happens because Windows only allows you to write to hidden files under particular circumstances. As far as I can tell, OCaml does not support the required Windows-isms to make this work smoothly.

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Re: WeiDU fails when trying to modify hidden files
« Reply #2 on: August 08, 2016, 10:30:17 AM »
If the weidu unhide file, could be possible to change error message just to get know what is the real problem?
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: WeiDU fails when trying to modify hidden files
« Reply #3 on: August 16, 2016, 11:31:13 AM »
I don't think I can give you anything better than the "something went wrong" message WeiDU delivers now. I'm not sure why the file is unhidden. For all I know, it's something Windows does after telling WeiDU it can't open the file like that, in which case I can't do much about it.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

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:
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)?: