Author Topic: Problem, installing shared files....  (Read 1267 times)

Offline deratiseur

  • Planewalker
  • *****
  • Posts: 14
Problem, installing shared files....
« on: December 02, 2008, 02:40:08 PM »
Hello :-)

I'm working on a module with 7 optionnal components.
I have imported some creatures from iwd with bams, sound, ... and it works.

My matter is this :
One of my component use one of the creatures. If the user install this component, the creatures files are copied. Ok
There in another componant which use the creature. And so, if the user install this component TOO, the creature is copied again, and so the files are "backuped"

that's a pity, isn't it ?

I'have look about the weidu options, but i don't find something like "COPY_IF_DOESN'T_EXIST". Is anyone have an idea ?


Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Problem, installing shared files....
« Reply #1 on: December 02, 2008, 02:43:14 PM »
Unless you have a specific reason not to, you can simply copy twice the file - it's not like having an extra backup copy will change anything.

If you have specific reasons not to copy the file twice (or are just OCD) simply

ACTION_IF NOT FILE_EXISTS_IN_GAME ~myfile.cre~ THEN BEGIN
  COPY ~mymod/myfile.cre~ override
END
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 deratiseur

  • Planewalker
  • *****
  • Posts: 14
Re: Problem, installing shared files....
« Reply #2 on: December 02, 2008, 03:00:31 PM »
Ok, thanks, i havent' find this code.

The reason is simple : I have 4 new creatures.

the 4 and user by component 4
3 of them and used by component 6
the 1st of them is used by compoennt 3

So without your idea and this fonction, that copy two more times the sames files, and make 8mo redundant... (the files for new anims and big ^^)


wow.... my english isn't so good, i expect worries for an english release, lol ^^



Edit : ok, it's work. Thanks a lot :)
« Last Edit: December 02, 2008, 03:07:27 PM by deratiseur »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Problem, installing shared files....
« Reply #3 on: December 02, 2008, 03:39:39 PM »
So without your idea and this fonction, that copy two more times the sames files, and make 8mo redundant... (the files for new anims and big ^^)
Unless we're talking gigabytes, this shouldn't be an issue with any decently recent computer.

Quote
wow.... my english isn't so good, i expect worries for an english release, lol ^^
Get a proofreader, or find somebody else to translate the mod for you  ;)
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).

 

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