Author Topic: Creature offset checker borks (again)  (Read 4518 times)

Offline Lollorian

  • Planewalker
  • *****
  • Posts: 96
Creature offset checker borks (again)
« on: September 10, 2010, 07:31:42 AM »
Hey there! :D

A BWP install shows this error when trying to run the creature offset checker:
Code: [Select]
[WeiDU.exe] WeiDU version 22000
[WeiDU.exe] Using scripting style "BG2"
WARNING: unable to open [temp/0/UNINSTALL.0]: Sys_error("temp/0/UNINSTALL.0: Permission denied")
      Will be unable to UNINSTALL later.
ERROR: Sys_error("temp/0/ARGS.0: Permission denied")
PLEASE email the file nul to me
Automatically Skipping [creature offset checker] because of error.

The debug log attached in this post.

Oh and reason for posting here is ... umm ... no clue ;D but the offset checker has no forum/thread and it's not even a mod and the error seems all WeiDU-y

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Creature offset checker borks (again)
« Reply #1 on: September 10, 2010, 07:51:05 AM »
Looks like the temp/ or temp/0/ directories became read-only. It's certainly most likely not something caused by a change in WeiDU - 220 didn't change anything related to file access relative to 219 (in fact, it only fixed a regexp regression that showed up in 219), and neither did 219 change anything file-related. Even so, 219 has been out for more than a month, so I'd guess it's somewhat safe to assume that the bug is unrelated to WeiDU.

By the way, you shouldn't use temp/ for backups - the game writes and reads to that folder when it saves games, and spurious backup files might ruin the process.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Lollorian

  • Planewalker
  • *****
  • Posts: 96
Re: Creature offset checker borks (again)
« Reply #2 on: September 10, 2010, 10:22:27 AM »
Thanks for the quick reply! :)

Looking at the BWPFixpack.bat, it runs the cre_check.tp2 through this bit:
Code: [Select]
:cre_check
IF EXIST "%WEIDU%" (
    call :show_message "%MESSAGES%\cre_check.txt"
    "%WEIDU%" --noautoupdate --force-install 0 --nogame --log nul "%UTILS%\cre_check.tp2" --args "%UTILS%" | %TEE_CMD%
)
where the variables are:
Code: [Select]
SET MAIN_DIR=BiG World Fixpack
SET UTILS=%MAIN_DIR%\_utils
SET MESSAGES=%MAIN_DIR%\_messages
SET TEE_CMD="%UTILS%\tee" -a "BiG World Debug.txt"
SET WEIDU=WeiDU.exe
... not sure exactly how the temp folder gets in here :-X

Offline Lollorian

  • Planewalker
  • *****
  • Posts: 96
Re: Creature offset checker borks (again)
« Reply #3 on: September 10, 2010, 10:24:45 AM »
... also, could it be possible that the error came up not because the temp/ folder became read-only, but because there's no temp/0/ folder?? Vanilla BGII-SoA installs don't usually have a 0 folder inside the temp ... or do they?? :P

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Creature offset checker borks (again)
« Reply #4 on: September 10, 2010, 10:40:30 AM »
... not sure exactly how the temp folder gets in here :-X
cre_check.tp2 begins with
Code: [Select]
BACKUP tempIt uses COPY + to avoid creating backup files, so save files shouldn't be corrupted by using that folder for backup purposes.

... also, could it be possible that the error came up not because the temp/ folder became read-only, but because there's no temp/0/ folder??
UNINSTALL ~a/b/c/d/~ will create, in order, a/, a/b/, a/b/c/ and a/b/c/d/, so that is not possible.

OTOH, if temp or temp/0 is a regular file, WeiDU might barf out with a similar message. In fact, a well known bug on OSX is that temp is a regular file, so that might be the cause of the problem.
« Last Edit: September 10, 2010, 10:42:44 AM by the bigg »
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Lollorian

  • Planewalker
  • *****
  • Posts: 96
Re: Creature offset checker borks (again)
« Reply #5 on: September 10, 2010, 10:59:17 AM »
cre_check.tp2 begins with
Code: [Select]
BACKUP temp
That's almost ... an epiphany :D Awesome! So changing that to something cre_check-specific would prolly do, no?? Why not just use the BWPFixpack folder itself? ;D

Err, can the backups be done in folders with spaces in their names?? Like
Code: [Select]
BACKUP "BiG World Fixpack\_utils"?? (this is where the .tp2 is)

OTOH, if temp or temp/0 is a regular file, WeiDU might barf out with a similar message. In fact, a well known bug on OSX is that temp is a regular file, so that might be the cause of the problem.
If Arkenor does use OSX ... wow! :bow:

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Creature offset checker borks (again)
« Reply #6 on: September 10, 2010, 11:16:09 AM »
Err, can the backups be done in folders with spaces in their names?? Like
Code: [Select]
BACKUP "BiG World Fixpack\_utils"?? (this is where the .tp2 is)
People who put spaces in file names should be raped in the ass by a donkey and shot into the sun by his ejaculation. Other than that, WeiDU should deal with space in file names correctly.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Lollorian

  • Planewalker
  • *****
  • Posts: 96
Re: Creature offset checker borks (again)
« Reply #7 on: September 10, 2010, 11:46:01 AM »
O_o

Well that was ... ok I can't stop imagining that <must ... stop ... SMILING!!!> :D

Kinda harsh though ...

Offline Echon

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1944
  • Gender: Male
    • The Fields of the Dead
Re: Creature offset checker borks (again)
« Reply #8 on: September 10, 2010, 12:56:00 PM »
He will post something like that whenever people do not meet whatever arbitrary standards he goes by. You will get used to it.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Creature offset checker borks (again)
« Reply #9 on: September 10, 2010, 12:58:45 PM »
whatever arbitrary standards he goes by.
You don't use the command line very often, or you'd feel like I do about spaces.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Echon

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1944
  • Gender: Male
    • The Fields of the Dead
Re: Creature offset checker borks (again)
« Reply #10 on: September 10, 2010, 01:03:55 PM »
Not very often, no. But the DOS prompt in recent versions of Windows is cool with spaces so even if I did, it would make no difference.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Creature offset checker borks (again)
« Reply #11 on: September 10, 2010, 06:57:00 PM »
Cygwin is less forgiving than cmd.exe about spaces (especially once you start playing around with redirections and whatnot). Also, cmd.exe being forgiving about spaces is a security hole (I can't seem to find the article where I read that; basically, if it exists, C:\Programs.exe is run instead of C:\Program Files\Whatever\File.exe).
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Arkenor

  • Planewalker
  • *****
  • Posts: 9
Re: Creature offset checker borks (again)
« Reply #12 on: September 10, 2010, 08:33:13 PM »
OTOH, if temp or temp/0 is a regular file, WeiDU might barf out with a similar message. In fact, a well known bug on OSX is that temp is a regular file, so that might be the cause of the problem.

If Arkenor does use OSX ... wow! :bow:

Nope. I use Windows 7, and my temp/0 folder is alive and well.

Edit: though as it turns out, it's contents had mysteriously become read-only, which explains why the installer choked. Now I just need to figure out how they became read-only in the first place.
« Last Edit: September 11, 2010, 01:51:05 AM by Arkenor »

 

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