Support » Plugin: Team Rosters » CSV with Bats and Throws

  • Resolved lero21


    Hi Mark,
    when importing baseball roster using CSV, it seems like “bats” and “throw” don’t want to fit in.
    And the end of the import, here is what I get …

    retval = 1 ID: 2499 K: _mstw_tr_weight V: 145

    retval = 1 ID: 2499 K: _mstw_tr_height V: 5’11”

    retval = 50226 ID: 2499 K: Bats V: L

    retval = 50227 ID: 2499 K: Throws V: R

    I can’t see what I’m doing wrong.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mark O'Donnell


    Hey Ron-
    Did you RTFM? That might help, but I don’t believe the sample CSV files have Bats and Throws. I’ll have a look after I get the Game Schedules fires put out. 🙂



    I actually have the same issue and I followed the CSV header design in your manual:

    CVS Column Header -> Database Field
    “First Name” or First” -> first_name
    “Last Name”, “Last” -> last_name
    “Position”, “Pos” -> position
    “Number”, “Nbr”, “#” -> number
    “Weight”, “Wt” -> weight
    “Height”, “Ht” -> height
    “Age” -> age
    “Year” -> year
    “Experience”, “Exp” -> experience
    “Home Town” -> home_town
    “Country” -> country
    “Last School” -> last_school
    “Bats”, “Bat” -> bats
    “Throws”, “Thw”, “Throw” -> throws

    It’s a minor issue, but just wanted to confirm that someone else came across it.

    Plugin Author Mark O'Donnell


    Hi Guys,
    The sample CSV files did not have bats and throws because it was not supported, BUT it was documented as korben5 points out. Oops.

    The development trunk on now contains a revised /includes/mstw-team-rosters-admin.php file which supports Bats, Throws, and Other. It also contains a new /csv-examples/test-baseball.csv file, which I used to test the changes. You can see the results on my MSTW Dev Site. (Scroll down to the 2012 World Champion San Francisco Giants table.) It works for me!!

    Please try out the patch when you have time and let me know how it works for you. I will then publish a new release.

    Thanks for your help in identifying this issue.


    I am going to update the documentation on as soon as this is posted.

    Hi Mark,

    That worked for me, uploaded b/t perfectly. Thanks for the update!


    Plugin Author Mark O'Donnell


    Cool. I will release a patch to
    Thanks for testing it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSV with Bats and Throws’ is closed to new replies.