Author Topic: Export Layout - included images files  (Read 11833 times)

amcq10

  • Newbie
  • *
  • Posts: 14
    • View Profile
Export Layout - included images files
« on: June 28, 2007, 06:06:34 PM »
Corey -

While trying to export my Layout Template, I get the message seen in the image attachment.

Your notes state that as long as the images are within the Tournament Director folder (or sub-folders) that they should be fine.
However, in this case, it states that it will not include the images, even though there are inside the TD subfolders.

Not sure why it's not seeing the location of these files properly.
Am I not doing something right?, or can I provide any further details to help resolve this?


amcq10

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Export Layout - included images files
« Reply #1 on: June 28, 2007, 06:11:22 PM »
Also, If I hit "OK" to bypass those image files... I can't get past the saving of the Layout Template.

no matter what filename I give it... it always gives me an error about "selecing a path relative to the Tournament Director folder". as seen in the attached image.


Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Export Layout - included images files
« Reply #2 on: June 28, 2007, 09:29:46 PM »
Press V while holding CTRL, ALT, and SHIFT and the TD will give you a system information dump.  Copy that info and paste it in a reply.

PPPanimal

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Export Layout - included images files
« Reply #3 on: June 29, 2007, 12:26:12 AM »
same problem here too corey.
the files it lists as having a invalid path are all in the same path as the system dumps shows as TD's home.
also, when i try to use <TDFolder> as the path to the images in the cell i lose the picture and get a box instead.
when i try to use <tdfolder> in a CONFIG FILES path, i get invalid path error.

Browser: Microsoft Internet Explorer
Browser Code Name: Mozilla
Browser Language: en-us
Browser Minor Version: ;SP2;
Browser Version: 4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
Cookies Enabled: true
CPU Class: x86
Date: 1:20:43 am 6/29/2007
DB File: D:\Games\The Tournament Director 2\db/td.db
DB Folder: D:\Games\The Tournament Director 2\db
Home: d:\Games\The Tournament Director 2
JScript Build: 8831
JScript Version: 5.6
Media Player Version: 10.0.0.4036
Online: true
Platform: Win32
System Language: en-us
TD Version: 2.3.3
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
User Language: en-us


amcq10

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Export Layout - included images files
« Reply #4 on: June 29, 2007, 12:57:28 AM »
And here's the info from my computer..

Browser: Microsoft Internet Explorer
Browser Code Name: Mozilla
Browser Language: en-us
Browser Minor Version: ;SP2;
Browser Version: 4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
Cookies Enabled: true
CPU Class: x86
Date: 10:56:00 pm 6/28/2007
DB File: D:\Program Files\The Tournament Director 2\db/td.db
DB Folder: D:\Program Files\The Tournament Director 2\db
Home: d:\Program Files\The Tournament Director 2
JScript Build: 8831
JScript Version: 5.6
Media Player Version: 11.0.5705.5043
Online: true
Platform: Win32
System Language: en-us
TD Version: 2.3.3
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
User Language: en-us





Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Export Layout - included images files
« Reply #5 on: June 29, 2007, 09:46:01 AM »
That's what I thought.  The function that determines if a path is relative or absolute is case-sensitive, and it shouldn't be.  The fact that the "Home" path starts with a lower-case 'd' is throwing it off.  This will be fixed in the next release (today, hopefully).

PPPanimal

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Export Layout - included images files
« Reply #6 on: June 30, 2007, 02:17:29 AM »
Hi Corey.

The export feature seams to work fine now.

However, when i insert an image into a cell it makes the path relative but the image does not show.  Just the box.
I tried using a different folder than the images folder as another message suggests, but still, i only get a box.

<img src="graphics\crabby.bmp" border="0">

Also, i can't seam to get relative paths to work for chips, sounds or even the ConfigFile path names.

should <tdfolder> work?  or %tdfolder%
whats the proper syntax for using relative paths with these files?

I am tring to send a layout to the head of the Pirana Poker Tour.
I am sure his path and most of the Tournament Directors paths are going to be different from mine.
I need a easy way to send this around to all the different Directors and have it easy for them to install it
without having to teach them all how to change the path names to all the images, sounds etc.

I was supposed to send this to him already but was hoping to hold out till this feature was working.
Is this any other way to make this easy for them to install without getting them all to reinstall TD to the
same folder?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Export Layout - included images files
« Reply #7 on: July 01, 2007, 10:10:46 AM »
Relative paths are the preferred way to reference images, and should work just fine.  So, your example of:

<img src="graphics\crabby.bmp" border="0">

.. looks fine to me, I don't know why it wouldn't work, especially if you used the "Insert Image" button to insert the <img> tag, because that would imply the program was able to see that the file was relative, and inserted the <img> tag using a relative path.

As a matter of fact, the only "relative" paths that wouldn't work are paths to images in the "images" folder.  If you inserted an image that was in that folder (using the "Insert Images" button), it would use a full path, like "C:\Prorgam Files\The Tournament Director 2\images\pic.jpg".  Otherwise, you would see broken images as you describe.  However, with version 2.3.3, that has also been fixed.  But this "fix" wasn't a code fix, it was done by moving where the TD stores its internally packaged image files, so there wouldn't be a conflict with where a user might reference their images from.  So I suspect you are seeing some other type of issue.

When you reference an image "relatively", that just means you should start the path to the image starting at the TD folder, instead of starting it at C:\.  So for a file "C:\Program Files\The Tournament Director 2\graphics\crabby.bmp", the relative path would be "graphics\crabby.bmp".  %tdfolder% isn't a set variable, so it wouldn't work, and <TDFolder> is used when displaying some paths (just to shorten the length within the user interface).

If you like, you can export your layout and send it to me, and I'll see if I get the same broken images as you are seeing...

PPPanimal

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Export Layout - included images files
« Reply #8 on: July 01, 2007, 10:47:34 AM »
Hmmm, ok.  Well i used the insert image button and it does show a relative path but just a box appears.  odd.

Here is the layout.  Check out the Logo2 cell.  It has a full path to the image once, then a relative path to it again.
Only one Logo appears.



Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Export Layout - included images files
« Reply #9 on: July 01, 2007, 03:23:35 PM »
When I viewed your layout, the "Logo1" cell showed a broken image.  That's because the path to the image is a full (or absolute) path, not a relative path:

Code: [Select]
<img src="D:\Games\The Tournament Director 2\images\Pirana_banner.bmp" border="0">
My TD is no installed in "D:\Games", so this breaks.  I changed it to:

Code: [Select]
<img src="images\Pirana_banner.bmp" border="0">
... and it works.  In the Logo2 cell, the HTML is:

Code: [Select]
<img src="d:\Games\The Tournament Director 2\graphics\crabby.bmp" border="0">

<img src="graphics\crabby.bmp" border="0">

... and what *I* see is a broken image on the left, and a visible image on the right.  So, the image using a full path is broken (is it should be, since my TD isn't on my D: drive) and the image using a relative path is visible.

Are you seeing something different?

PPPanimal

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Export Layout - included images files
« Reply #10 on: July 01, 2007, 05:47:00 PM »
Ya, i see the broken image on the right, from the relative path.
The full path image is the only one i see.
Odd when i used the insert image button to create the relative path image.

i wondered it maybe TD was confused on where TD is really installed since i had
installed it on C:, then a diff folder on C: and finally on the D: drive.
i have since uninstalled the other copies of it and only have the D: copy installed.
The last install was made on D:  A few times infact, overwriting the older versions
with the newer betas.

And as you saw, the control V data output did show TD as seeing itself on Drive D:
I can't figure out how it can make a relative path suggesting that it knows its in the TD
folder etc yet can't load that file when the layout it loaded.  Odd.

PPPanimal

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Export Layout - included images files
« Reply #11 on: July 03, 2007, 10:58:44 AM »
Well i again uninstalled all versions/copies of TD and then rebooted my computer.
Then reinstalled a fresh copy of the newest version of TD and still, i can't
link images using the insert image button.  This time TD is on the C drive
and in the program files folder.  I thought maybe being on D may have been the
problem.  It makes a relative path but only shows a box.  I tested it on both my
layout and on a default layout the was included with TD.  Dam i wish i knew what
was going on here.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Export Layout - included images files
« Reply #12 on: July 03, 2007, 11:50:03 AM »
Wish I knew what was going on, too.

The TD determines where it is "located" at run time.  That means it doesn't store its "installed location" anywhere - it derives each time you run the software.  The installer *does* remember where it was last installed - that's why when you install a new version when you already have an existing version installed it will attempt to install it to the same location as the existing version.

It could have something to do with running on a different drive (different than C:), but I don't see why.  I'll try that later.


PPPanimal

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Export Layout - included images files
« Reply #13 on: July 03, 2007, 12:13:40 PM »
Well i tested this again on another computer that also had TD installed on it before.
Tried an older version of TD then upgraded to the new version and still just a box shows.
I am going to test this on a third computer that has never had TD on it before and see
what happens.  I will report results soon.

PPPanimal

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Export Layout - included images files
« Reply #14 on: July 03, 2007, 12:30:44 PM »
Just finished installing a fresh newest copy of TD on a system that never had TD on it before and its still not working.
Its making relative paths but only showing a box.  This is using a default tournament that comes with TD and linking to
a default image from TD.  Tried one from the images folder and one from a new folder i copied the images into.
Still just boxes.  The new folder i created was located inside the TD folder.  Does it need to be inside the images folder
or something?  Is it just me doing something wrong or is there really a bug here?  Odd.

I am not a stupid person but this is really making me feel dumb.  lol.  How can this work for you and not for me on 3
differrent computers.