Author Topic: request: make file path names relative to base directory  (Read 1232 times)

Offline Steve Gase

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
    • WinterLightShow in Georgetown, TX
request: make file path names relative to base directory
« on: December 21, 2014, 08:33:05 AM »
I've gotten bitten by this a few times now... usually when I'm trying to rush a change into the sequence and get it out quick to the display.

My setup:
I have my files located on a desktop computer where it is easier to edit with audacity, 'save' a little faster.  The directory on \\DESKTOP is C:\xLights.

I have a notebook where I make changes often.  I share DESKTOP's directory and mount it as X:\  on \\NOTEBOOK.

Most sequences have no problem, but I have a couple sequences that use the Picture effect, or Glediator effect that save path to the file based on the PC I used at the time.  If I used the notebook, then the path has X:\...  if I used the desktop the path is C:\xLights\

The problem is when I 'save' the file to generate the xseq file... if I saved on the same machine I authored the sequence, it works.  But if I save from the wrong machine, then the effects are lost in the output file.

Unfortunately there is no error to tell me what happened.

Some suggestions:
... alert the user when the files are missing... maybe at load time would be best to avoid lots of repetitive messages
... when importing a sequence, alert the user -- or browse to find the new file
... look in the work directory for missing file
... force the path to be the current directory and remove the path name after browsing for the file
http://WinterLightShow.com  |  110K channels, 50K lights  |  Nutcracker, Falcon, DLA, HolidayCoro

Offline jnealand

  • Hero Member
  • *****
  • Posts: 1421
    • View Profile
Re: request: make file path names relative to base directory
« Reply #1 on: December 21, 2014, 12:32:54 PM »
I have had similar problems when using multiple machines.  My desktop in the basement, my wifes desktop in the kitchen, my main laptop usually in the living room and another computer in my workshop.  What has worked great for me this year I have Santa helping me and he goes every where with me, so no matter where I am Santa is.  Santa USB that is.  I have a sync program on all the computers and I sync Santa to my xlights directory before and after I work with xlights so I always have my most current data and program files (rgbeffects and network) where ever I am working / testing.  This little guy is a Patriot 16gb drive that I got at Frys last year for $10.

[attachment deleted by admin]
Jim Nealand
Kennesaw, GA