BBO Discussion Forums: HOWTO: Tournament conditions of contest - BBO Discussion Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

HOWTO: Tournament conditions of contest Instructions for creation

#1 User is offline   uday 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,808
  • Joined: 2003-January-15
  • Gender:Male
  • Location:USA

Posted 2004-March-20, 22:58

This is how you can create and upload "Conditions of Contest" for your tournament

Create:

Open

http://online.bridge...ies/txt2lin.php

in a web browser.

Enter the conditions of contest as plain text. Not too wide (ie, not too many characters per line).

Click the "CONVERT FROM TEXT TO LIN" button.

This will populate the lower half of the screen with a simple LIN version of your text.
Replace DOCUMENT-TITLE with your title. Keep it short.

Now, get the text from the lower half into a file on your PC. To do this, select all the text (click inside the lower half, press Control-a (to select it all) and press Control-C (to copy to the clipboard).

Open a file on your pc in notepad. For instance, click Start/Run and type
notepad c:\my.lin
and press enter. Notepad will open up. Click inside this window and press Control-v (paste from clipboard). Save the file (menu item File/Save)

Test the file. Navigate to the file in windows explorer and double click, or
Start/Run and type
c:\my.lin

The file will open in an instance of BBO. If it looks bad, repeat the previous steps until it looks good.


Upload:

Create a tournament. Enter the tournament. click the green TABLE button , lower left.
Click UPLOAD CONDITIONS OF CONTEST in the list in the middle of the screen
Click Execute. You will be prompted to select a file.
Navigate to your file (c:\my.lin in our example) and select it.

The file will be uploaded.

Test by closing the Tournament Management screen (the one that popped up when you clicked the green TABLE button) and clicking on the TOURNAMENT RULES button.



That is all.

Some details:

- Max filesize is somewhat less than 30K

- You can make some text in the LIN file clickable by surrounding it with special characters

If you bracket a piece of text with special sequences, you'll find that the text will be clickable.

prefix= ^*H
suffix=^*N

for instance, the link

members.shaw.ca/ooga/alphacocs.htm

can be made clickable by using

^*Hmembers.shaw.ca/ooga/alphacocs.htm^*N

This post has been edited by uday: 2008-February-06, 21:37

0

#2 User is offline   uday 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,808
  • Joined: 2003-January-15
  • Gender:Male
  • Location:USA

Posted 2004-April-21, 07:25

Using Colors in LIN files


You can define and use up to 9 colors for various objects in the text area. You refer to these colors by a number between 1 and 9. The software uses the standard rgb (red green blue) model for defining colors.

· cr|xy| Color red

· Sets the red component of color x to y
· x is between 1 and 9, y is between 0 and 255


· cg|xy| Color green

· Sets the green component of color x to y
· x is between 1 and 9, y is between 0 and 255


· cb|xy| Color blue

· Sets the blue component of color x to y
· x is between 1 and 9, y is between 0 and 255
· For example, to set color 4 to purple: cr|4255|cg|40|cb|4255| -- purple consists of 100% red+100% blue. There is no green in purple.


· cp|x| Color pick

· Selects color x (between 1 and 9) as the color for text.
· cp|| resets the text color to the default (black).


· cs|x| Color square

· It is possible to create colored squares (rectangles or boxes actually, but cr and cb are already taken) in the text area and place text within these squares.
This command is used to select the background color of the square where x is a color number.
· cs|| Sets the background color of squares to the default (white).
· See the section on Text commands for working with squares.



· bg|x| Background color

· Sets the background color of the text area to color x.
· bg|| Sets the background color to the default (white).


· cd|x| Color default

· Sets the default text color to color x.
· cd|| restores the default text color to black.


IMPORTANT: The nt|| (new text) command restores the text color and square background colors to their defaults so they must be re-entered for each new page if different and not set as the default.
0

#3 User is offline   xx1943 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 492
  • Joined: 2004-March-11
  • Location:München; Germany

Posted 2004-May-13, 01:42

uday, on Apr 21 2004, 08:25 AM, said:

Using Colors in LIN files

Hi UDAY
thx for so much help to us.
I tried to generate a LIN File with rules for my tourney. I got problems using colors because I'm not familiar with the syntax auf the commands.
Could you help me with a link to a brief description of this commands and syntax?



. See the section on Text commands for working with squares.
Where do I find this section of Text commands?

Many thanks. Sincerly

xx1943 = Albrecht Hollstein
Play Bridge for fun and entertainment and to meet nice people.
BAD bidding may be succesful due to excellent play, but not vice versa.
Teaching in the BIL TUE 8:00am CET.

Lessons available. For INFO look here: Play bridge with Al
0

#4 User is offline   tenbrvc 

  • PipPip
  • Group: Members
  • Posts: 41
  • Joined: 2003-October-09

Posted 2004-September-05, 15:30

Great instructions and reference material, though I have to admit I haven't tried it yet.

May I ask here how you can create and upload a set of prepared hands for a tournament?

Thanks!
0

#5 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,760
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-September-05, 15:44

Have a look here:

http://bridgebase.lunarpages.com/~bridge2/...=ST&f=25&t=2233
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#6 User is offline   MorK 

  • PipPip
  • Group: Members
  • Posts: 28
  • Joined: 2005-January-15
  • Location:Germany - Lower Saxony

Posted 2005-January-21, 07:20

Hi all :)
I've got a question, because i have long rules, so you can't see all on one site, how can i make that it is shared on two or three sites?
Thank you!

Felix
0

#7 User is offline   inquiry 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 14,566
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Amelia Island, FL
  • Interests:Bridge, what else?

Posted 2005-January-21, 07:42

MorK, on Jan 21 2005, 09:20 AM, said:

Hi all :)
I've got a question, because i have long rules, so you can't see all on one site, how can i make that it is shared on two or three sites?
Thank you!

Felix

Welcome to the Bridgebase Online Forums.

I am not exactly sure what you meant by another site. For long instructions you can add extra pages. The new page command is

pg||

Be sure not to place anything between the last two vertical lines. There should be a vertical line before the "p" as well, but that is part of the previous command (what ever it was). This command will create a new page, and you have to use the new text command

nt||

To enter text on the new page. Of course this time, you include the new text you want between the two vertical lines.

If this doesn't answer your question, write back... someone will surely answer.

Ben
--Ben--

#8 User is offline   cherdano 

  • 5555
  • PipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 9,516
  • Joined: 2003-September-04
  • Gender:Male

Posted 2005-January-21, 08:48

Hi uday!

One small feature suggestion: Could the CoC button be disabled (for players coming into
the tournament room) when there are no CoC's set? That would immediately give an incentive to check them when they are actually set.

Arend
The easiest way to count losers is to line up the people who talk about loser count, and count them. -Kieran Dyke
0

#9 User is offline   Dwingo 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 355
  • Joined: 2003-May-30
  • Gender:Male
  • Location:India

Posted 2005-May-13, 21:53

When you use the BBO Text to Lin converter link to convert text to LIN file, the top most part of the LIN file has this code

bt||tu|1|mn|DOCUMENT-TITLE|nt|


Now when I upload this lin file to the Tournament Rules, the colour of the DOCUMENT-TITLE keeps changing depending on when you click there, I suppose. Eveytime, I open the page, I get a different colour.

How do I fix this to a constant colour that I like and also make sure that the Font size of the heading DOCUMENT-TITLE is big. Will also like to know, how to change the default white text colour in the Coloured Box.

Godwin
Bridge Players do it with Finesse
0

#10 User is offline   uday 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,808
  • Joined: 2003-January-15
  • Gender:Male
  • Location:USA

Posted 2005-May-13, 22:35

I believe this is a feature. There may be a way to achieve the same look/feel w/o using this title tag, but you may have to wait until Fred@ returns from the team trials.
0

#11 User is offline   Dwingo 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 355
  • Joined: 2003-May-30
  • Gender:Male
  • Location:India

Posted 2005-June-01, 10:17

Reviving this thread for Fred to see and reply

Godwin
Bridge Players do it with Finesse
0

#12 User is offline   McBruce 

  • NOS (usually)
  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 724
  • Joined: 2003-June-25
  • Gender:Male
  • Location:New Westminster BC Canada

Posted 2005-August-11, 18:22

Some things that I noticed from txt2lin when updating my CoC's:

--brackets () don't work. The right bracket gets transferred ok but the left one turns into a space. Use square brackets instead [].

--if you have a text editor that can display line numbers for you (like TextPad), use it! Each page is 16 lines long, so pages of info can be spaced to occupy lines 1-16, 17-32, etc.

It would be nice if users could use the keyboard [pageup] and [pagedown] to scroll through these files from within BBO. The instruction to hit the > key (which can be some ways away with maximal chat areas) is a bit confusing.
ACBL TD--got my start in 2002 directing games at BBO!
Please come back to the live game; I directed enough online during COVID for several lifetimes.
Bruce McIntyre, Yamaha WX5 Roland AE-10G AKAI EWI SOLO virtuoso-in-training
0

#13 User is offline   zrm_qx 

  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 2005-September-18

Posted 2005-September-18, 15:01

I can not even open the link:
http://bridgebase04....-bin/txt2lin.pl

why?
0

#14 User is offline   inquiry 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 14,566
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Amelia Island, FL
  • Interests:Bridge, what else?

Posted 2005-September-18, 16:09

zrm_qx, on Sep 18 2005, 05:01 PM, said:

I can not even open the link:
http://bridgebase04....-bin/txt2lin.pl

why?

Try again. Link is working.
--Ben--

#15 User is offline   coyot 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 487
  • Joined: 2005-July-09

Posted 2005-September-19, 05:04

Since it is using port 81 instead of the standard 80, problems might be in a firewall that is very conservative. From work, I get a "timeout" on the http request, while from a unix account outside, I can reach the page immediately. So make sure you're connecting from a machine that sits behind no firewall that would block traffic to port 81. (A standard paranoid setting might well be to block all traffic except the regularly used ports like 80 for http etc...)
0

#16 User is offline   zrm_qx 

  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 2005-September-18

Posted 2005-September-19, 10:36

coyot, on Sep 19 2005, 06:04 AM, said:

Since it is using port 81 instead of the standard 80, problems might be in a firewall that is very conservative. From work, I get a "timeout" on the http request, while from a unix account outside, I can reach the page immediately. So make sure you're connecting from a machine that sits behind no firewall that would block traffic to port 81. (A standard paranoid setting might well be to block all traffic except the regularly used ports like 80 for http etc...)

yes, you are right. I am behind a firewall. and the admin has blocked the port 81....
0

#17 User is offline   uday 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,808
  • Joined: 2003-January-15
  • Gender:Male
  • Location:USA

Posted 2005-September-19, 11:06

Try this

http://online.bridge...-bin/txt2lin.pl


I will redirect the older links to this one at some point..
0

#18 User is offline   zrm_qx 

  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 2005-September-18

  Posted 2005-September-20, 07:17

uday, on Sep 19 2005, 12:06 PM, said:

Try this

http://online.bridge...-bin/txt2lin.pl


I will redirect the older links to this one at some point..

It works!
thanks a lot for your work!
hope to make my first tournament some time later. ;) :) :D
0

#19 User is offline   willow23 

  • PipPipPip
  • Group: Full Members
  • Posts: 83
  • Joined: 2004-April-14
  • Location:St. Lucia (Caribbean)
  • Interests:Boardgames / Sports /Playstation2 / Computers / Meeting new/interesting people.

Posted 2006-July-04, 15:21

:P Thanks Chief; this is very useful info.

Regards
Willow23
0

#20 User is offline   SandyMacG 

  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 2005-June-22

Posted 2006-September-14, 18:38

Hi Uday,

Would you give us an example of setting the colors in a sample text line in the converter, or in a notepad file. It's not clear to me where to insert the color definitions, or after definition, where to insert the numbers.

Thank you,
0

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users