Author Topic: Table template (PSD file)  (Read 23156 times)

Hally

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Eastside Poker League
Re: Table template (PSD file)
« Reply #15 on: December 08, 2009, 09:04:58 PM »
Cheers - great looking table you have built there too!
Must have taken you sometime to build
Eastside Poker League
www.users.tpg.com.au/hally316
EastsidePokerLeague@gmail.com

Q-Prof

  • Newbie
  • *
  • Posts: 13
  • Quality Gaming!
    • View Profile
Re: Table template (PSD file)
« Reply #16 on: December 10, 2009, 11:51:22 PM »
Thanks Hally,
Yeah, it took a while.  Got a lot done in about three weeks, then added/modified after.  Our poker club wants to play always at my place now.  The built-in auto shuffler works great and speeds up the game also.
________________
Q-Prof,
Q for Quality

XchkEm

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Table template (PSD file)
« Reply #17 on: March 03, 2010, 04:18:00 PM »
Im using the blue racetrack and the blue table because they are identical to the two tables I own. The blue race track seems to work fine with the names around the table, the blueracetrack has the names bunched up. Not sure what the issue might be. Any suggestions on fixing it?

Hally

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Eastside Poker League
Re: Table template (PSD file)
« Reply #18 on: March 08, 2010, 10:46:02 PM »
XchkEm - are you using the template xml file i provided?
To shift the positions of the names, you go into that xml file and tweak the x/y coordinates for each of the table positions until you are happy with them.

Eg to adjust seat 1, go into the xml file, scroll down to something like:

21  <location x="290" y="10" />

Change the value of x or y to move the relative position of the name.
x will adjust left/right while y will move up/down.
Eastside Poker League
www.users.tpg.com.au/hally316
EastsidePokerLeague@gmail.com

FlatFootWorks

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Table template (PSD file)
« Reply #19 on: April 11, 2011, 08:06:06 AM »
Sorry for bringing life to an old thread, but I have been using TD for years, but never used the seating chart screen.

I am trying to use this xml file Hally provided in the latest beta version.

I have saved the image in the images folder and the xml in the layout folder.  From the seating chart screen I right clicked and selected seating chart properties.  From there I click on edit table images and selected the xml file.

Everything seems to work except the table image is not being displayed.

Any thoughts of what I have done wrong?

Thanks

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Table template (PSD file)
« Reply #20 on: April 11, 2011, 10:09:40 AM »

I have saved the image in the images folder and the xml in the layout folder.  From the seating chart screen I right clicked and selected seating chart properties.  From there I click on edit table images and selected the xml file.

You should select the image (jpeg, gif, etc.) instead of the xml file. The xml file is info for how a web page should look (to my understanding), whereas it's looking for a picture file.
My cowboys shot down your rockets
---
If you send a request to me please send that you got me from here w/your TD name to confirm. Thanks!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Table template (PSD file)
« Reply #21 on: April 11, 2011, 12:38:47 PM »
Make sure you've saved the image file in the "images" folder of your Data Store.  This is in your "My Documents" folder usually, not in your "Program Files" folder.

FlatFootWorks

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Table template (PSD file)
« Reply #22 on: April 11, 2011, 01:08:00 PM »

The table image is saved here

C:\Users\MyComputer\Documents\The Tournament Director 2\Data\images\greenracetrack.gif

The xml is saved here:
C:\Users\MyComputer\Documents\The Tournament Director 2\Data\templates

The xml pointing to the image is this...

<table>
  <image>
    <path>images/greenracetrack.gif</path>
    <size width="550" height="250" />
  </image>


Any ideas of what's happening?

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Table template (PSD file)
« Reply #23 on: April 11, 2011, 01:15:34 PM »
I'm not a programmer, so this may not have any effect whatsoever, but did you add the </table> tag at the end? I noticed with what you copied over to here, it's missing
My cowboys shot down your rockets
---
If you send a request to me please send that you got me from here w/your TD name to confirm. Thanks!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Table template (PSD file)
« Reply #24 on: April 11, 2011, 04:37:44 PM »
Looks right to me.  What DO you see on the Seating Chart screen?

FlatFootWorks

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Table template (PSD file)
« Reply #25 on: April 11, 2011, 07:29:23 PM »
Here is a screen shot.  Hopefully, this will show what I am doing wrong.  Thanks for the help.


FlatFootWorks

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Table template (PSD file)
« Reply #26 on: April 11, 2011, 07:42:25 PM »
This same thing also happens when I select any of the default xml files.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Table template (PSD file)
« Reply #27 on: April 12, 2011, 10:29:51 AM »
Excellent, that helps a lot.  So, the interesting things are (a) you don't see an error (the Table Images dialog should report an error if the image file isn't found); and (b) the image is missing on the Table Images dialog as well as the Seating Chart page.

This tends to make me think that IE is unable to render the image.  Try this: pick a cell on the layout and edit it.  Change the HTML to:

<img src="images/greenracetrack.gif" border=1>

Does the image show up?  Is it an empty space or do you see the typical [X] that IE shows for a broken image?  You might want to add some sizing to that and a thicker border to be sure of what you are seeing:

<img src="images/greenracetrack.gif" border=5 height=200 width=200>

You also might want to specify the DataStore in the path:

<img src="<datastore>/images/greenracetrack.gif" border=5 height=200 width=200>

OK, I just tried this with a bad path to the image and the Tables Images dialog does NOT report an error.  So, I'm wondering now if the image file is indeed in the correct place.  And that I should update the dialog to display the error.

FlatFootWorks

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Table template (PSD file)
« Reply #28 on: April 12, 2011, 12:06:45 PM »
When I changed the html on the layout I got the [X].

When I used this <img src="<datastore>/images/greenracetrack.gif" border=5 height=200 width=200> the image shows up on the layout.


Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Table template (PSD file)
« Reply #29 on: April 13, 2011, 11:08:47 AM »
OK, so it looks like the image is good, and it is located in the correct folder.  It is interesting that specifying the <datastore> in the <img> tag shows the image, but the image doesn't show on the Seating Chart page, since the code to display the table essentially does the same thing: it changes "images/greenracetrack.gif" into a path into your data store.  So if your data store is in "C:\Users\MyComputer\Documents\The Tournament Director 2\Data", the table blueprint code should transform "images/greenracetrack.gif" into "C:\Users\MyComputer\Documents\The Tournament Director 2\Data\images\greenracetrack.gif".

Can you post your system info?  In the TD, press Ctrl+Alt+Shift+V to open the System Info dialog.  Press the "Copy to Clipboard" button and then paste it into a reply.