Jump to content

HOWTO: Tournament conditions of contest


Recommended Posts

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

 

Create:

 

Open

 

http://online.bridgebase.com/customer_utilities/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

Edited by uday
Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 3 weeks later...
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

Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...
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

Link to comment
Share on other sites

  • 3 months later...

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

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

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.

Link to comment
Share on other sites

  • 1 month later...
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...)
Link to comment
Share on other sites

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....

Link to comment
Share on other sites

  • 9 months later...
  • 2 months later...

I know very little about the lin format, but..

 

The following lin fragment can be copied/pasted into a notepad file called (say, x.lin) on your pc. You can test it by dbl-clicking on x.lin.

 

the first 3 lines set the red,green and blue components of "color 1".

In this example, red=255 (the max), green and blue are zero. So these 3 lines define a red color, color 1.

 

You set the working color to red with

 

cp|1| (color pick 1)

 

nt is "new text" (and it resets the colors).

and

at is (i think) "add text"

 

Not completely sure of the difference. I think pg|| waits for user to click NEXT (or press the -> key). then you add a nt|| to make a new page...etc.

 

 

I'm near the limits of my knowledge, but I have access to the docs so drop us a line at support@bridgebase.com if you need more

 

cr|1255|
cg|10|
cb|10|
bt||tu|1|
mn|My title|
nt|





|
at|This is line 1 in the default color|
cp|1|
at|
Now text will remain red until we reset colors

There is another page after this one

|
pg||nt|




|
cp||
at|This is a line  on page 2 in the default color|

Link to comment
Share on other sites

  • 4 years later...
  • 7 months later...
  • 8 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...