BBO Discussion Forums: PBN to LIN file converter - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PBN to LIN file converter

#1 User is offline   Hoobloid 

  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 2004-March-20

Posted 2004-April-03, 16:15

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
0

#2 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-April-04, 04:12

Hoobloid, on Apr 3 2004, 10:15 PM, said:

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
0

#3 User is offline   Hoobloid 

  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 2004-March-20

Posted 2004-April-04, 04:51

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
0

#4 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-April-04, 07:55

Hoobloid, on Apr 4 2004, 10:51 AM, said:

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
0

#5 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-April-04, 21:43

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
0

#6 User is offline   patroclo 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 311
  • Joined: 2003-April-30

Posted 2004-April-05, 00:23

I feel the need of the opposite a lintopbn converter.
Are you able to make it.
Thanks Gigi
0

#7 User is offline   Cascade 

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

Posted 2004-April-05, 02:14

I have a lintopbn converter and more.

If you ask nicely I might give it.

Send me a private message with your email address.
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

#8 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 2004-April-05, 02:24

Cascade, on Apr 5 2004, 03:14 AM, said:

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

#9 User is offline   Hoobloid 

  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 2004-March-20

Posted 2004-April-06, 16:34

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
0

#10 User is offline   Cascade 

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

Posted 2004-April-06, 17:18

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

#11 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 2004-April-06, 17:32

Cascade, on Apr 6 2004, 06:18 PM, said:

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

#12 User is offline   Cascade 

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

Posted 2004-April-06, 19:25

We can always talk Ben.

What do you have in mind?
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

#13 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 2004-April-06, 20:34

I would love to have a DEALER type program that is as easy to use as your TRULY WONDERFUL LinConverter program.

Ben
--Ben--

#14 User is offline   Cascade 

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

Posted 2004-April-06, 23:02

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

#15 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 2004-April-07, 09:53

Cascade, on Apr 7 2004, 12:02 AM, said:

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

#16 User is offline   Hoobloid 

  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 2004-March-20

Posted 2004-April-09, 03:10

I had intended to make a program that exported files in pbn, lin and 'TD' lin formats.

Could you send me a copy of your program. No point in reinventing the wheel!

Stuart

(argonhoobler@hotmail.com)
0

#17 User is offline   Cascade 

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

Posted 2004-April-09, 15:13

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

Page 1 of 1
  • 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