Jump to content

PBN to LIN file converter


Recommended Posts

Hey there,

 

Just to let you know I written a little pbn to lin file conversion program.  It's very primitive but it seems to work.

 

It available at...

 

http://hoobloid.tripod.com

 

Let me know if you find anything wrong etc or if you have any suggestions.  I'm thinking about some kind of hand generating program next.

 

Stuart

Hi.

 

The BBO software that we use to run lin files (NetBridgeVu.exe) reads .pbn files and convert them to .lin.

 

See :

http://bridgebase.lunarpages.com/~bridge2/...632&hl=lin+file

 

and many more threads about lin format.

 

Does your program make more complete conversion ?

 

Could you publish your source on your Web site ?

 

Erkson

Link to comment
Share on other sites

As far as I understand it the lin files made by BridgeVu will not work without some kind of editing.

 

My program simply takes the hands, vulnurability and dealer fields and pieces the together in a 'lin' format. It also puts a board number in. It requires (as it stands) the '*' which appears at the end of the play of the hand to 'trigger' each hands conversion. I have seen pbn files which have been edited and the play removed. These would not work with my program. (I'm not sure what they would be used for either).

 

Stuart

Link to comment
Share on other sites

As far as I understand it the lin files made by BridgeVu will not work without some kind of editing. 

 

This pbn file doesn't work in NetBridgeVu.exe :

 

% PBN 1.0

% EXPORT

%

[Event "K.R. Sundaram Iyer Memorial Bridge Tourney 2002"]

[site "Mylapore Club, Chennai"]

[Date "2002.12.22"]

[session "1"]

[stage "Finals"]

[HomeTeam "Santas Team"]

[VisitTeam "Vishnu Team"]

[board "1"]

[Room "Closed"]

[West "Krishnan S."]

[North "Sridhar P."]

[East "Santhanam"]

[south "Narayanan"]

[Dealer "N"]

[Vulnerable "None"]

[Deal "N:6.KQ83.AQ865.K42 KT53..JT743.Q985 2.T9742.K2.AJ763

AQJ9874.AJ65.9.T"]

[Declarer "West"]

[Contract "4S"]

[Result "11"]

[Auction "N"]

[Editor "T.C. Pant"]

*

 

but this one (and most of them) works with NetBridgeVu.exe :

[Event "Bermuda Bowl"]

[site "Semi-Final"]

[Date ""]

[HomeTeam "Norway"]

[VisitTeam "Italy"]

[board "1"]

[West "Versace"]

[North "Helness"]

[East "Lauria"]

[south "Helgemo"]

[Dealer "N"]

[Vulnerable "None"]

[Room "Open"]

[Deal "S:KQJ7.QJ43.87.K75 A863.965.5.A8432 T42.AK87.KQT9.J6 95.T2.AJ6432.QT9"]

[scoring "IMP"]

[Declarer "S"]

[Contract "4H"]

[Result "9"]

[score "NS -50"]

[Auction "N"]

[Play "W"]

*

 

I would be interesting to understand why.

 

Erkson

Link to comment
Share on other sites

The cause is here :

[Deal "N:6.KQ83.AQ865.K42 KT53..JT743.Q985 2.T9742.K2.AJ763

AQJ9874.AJ65.9.T"]

 

NetBridgeVu.exe can't read a .pbn deal if there is a LineFeed/CarriageReturn in the Deal tag. It wants it like this :

[Deal "N:6.KQ83.AQ865.K42 KT53..JT743.Q985 2.T9742.K2.AJ763 AQJ9874.AJ65.9.T"]

 

Some other software works with a CR/LF in the deal tag.

 

This pbn file should not have CR/LF in its deal tag because it says it is in Export format, and the fancies that are tolerated in Import format are not tolerated in Export format.

 

Anyway, regarding pbn to lin conversion, NetBridgeVu.exe would be better if more flexible.

 

Erkson

Link to comment
Share on other sites

I have a lintopbn converter and more.

 

If you ask nicely I might give it.

 

Send me a private message with your email address.

Well, a lintopbn converter would make purchase of Gib worth while, so one could take the lin files played here, and replay the, agaiin in GIB... Matt had one listed at his oregon page, but I could never find it.

 

Ben

 

(now I guess someone will tell me newer versions of GIB read lin files... )

Link to comment
Share on other sites

Next steps [ that may take a long time :( ] ....

 

1. Dealing and saving hands

2. Allow the user to set up hands

3. 'handle' pbn and lin file conversions - both ways

4. ...all heading towards (some kind of) a pbn database program

5. did I say that it might take a long time?

6. Look at the pretty interface B)

 

Suggestions?

 

Stu

Link to comment
Share on other sites

I have most of this except the database feature.

 

I regularly deal hands to match specific criteria for my lessons and for my private practice sessions. This program exports the files in three formats pbn, and two lin formats (one a bare bones format for uploading to a tournament).

 

Wayne

Link to comment
Share on other sites

I have most of this except the database feature.

 

I regularly deal hands to match specific criteria for my lessons and for my private practice sessions. This program exports the files in three formats pbn, and two lin formats (one a bare bones format for uploading to a tournament).

 

Wayne

I can testify that Wayne's programs are great. I use one for presenting hands in the BBO Format... you can rotate hands, show only one or any two. By rotating you can always keep the "player" as south.

 

This stuff is awesome. Thanks Wayne.. now about the one that deals cards to certain requirements (like a dealer program)... can we talk???

 

Ben

Link to comment
Share on other sites

I don't think a dealer program will ever be as easy to use as there are more variables.

 

What features are important to you?

 

Currently I have the features that I want hard coded into the program. If I want something specific I write some code. What sort of flexibility do you need?

Link to comment
Share on other sites

I don't think a dealer program will ever be as easy to use as there are more variables.

 

What features are important to you?

 

Currently I have the features that I want hard coded into the program. If I want something specific I write some code. What sort of flexibility do you need?

Fred's criteria in the Partnership Bidding would be a good place to start. I would like to be able to dial in distributions and general HCP ranges for a partnership, and let the computer fill in the remainder. So things like an opening hand, 6-10 hcp, etc.

 

Nothing too fancy, probably from your description you have enough already. I would like to be able to deal, for instance, three suited hands strong or intermediate, maybe with a random short suit (instead so specifying which is short). But the truth is, I tried dealer and couldn't get it to work (probalby way too powerful for my pathetic needs). Ease of use, that is the key for me... :lol:

 

Ben

Link to comment
Share on other sites

I will be putting my program on the web for free download soon hopefully in the next day or so.

 

Sorry I have had several enquiries for the program but have been very busy for the last few days.

 

I will make an announcement of the url in profiles when that is done.

Link to comment
Share on other sites

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