Author Topic: OOTP Mobile Companion for Android  (Read 242 times)

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
OOTP Mobile Companion for Android
« on: April 26, 2018, 08:58:11 AM »
Cross-posting from the OOTP boards...

I'm proud to announce that something I have been working on for a while is now officially available.  It's essentially a mobile-friendly interface for OOTP leagues, based largely on the layouts in MLB's app.

It uses the CSV (and, optionally, the HTML) generated by the game, and you get output that looks like this:



What you need is to have the CSV and HTML hosted somewhere on the internet.  In our case here:

Hopefully that makes sense.  For solo leagues, all you need is to upload the CSV & HTML to whatever hosting you have available - free hosting should work fine, assuming there's enough space for all the files.  Once you provide that information, the app will download the CSV files and import them into an internal database in the app.

The app is compatible with Android 4.4 and up, and works with the CSV output from OOTP16 and newer.


Offline CMH

  • OTBA Owners
  • Hero Member
  • ****
  • Posts: 1140
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #1 on: April 26, 2018, 10:08:20 PM »
This looks amazing! I'm downloading right now. Will try it out and comment tomorrow.
Fort Collins Owls
General Manager since 2048

OTBA Champions - 2057
Heinsohn League Champions - 2057
Wildcard - 2054, 2055, 2056, 2057, 2067, 2070, 2071, 2078

Offline CMH

  • OTBA Owners
  • Hero Member
  • ****
  • Posts: 1140
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #2 on: April 27, 2018, 09:07:53 AM »
Questions.

When I click on Leagues and select a league, I just see a giant baseball superimposed on a field. Nothing loads. Any thoughts?

Do I have to Refresh the universe after every sim? So I'm essentially downloading the csv and html every sim, correct?

Can you add a key? For example, I know that an * next to the team name in their history means they made the playoffs. And ** means championship. But it would be nice if that was clear instead of an assumption.
Fort Collins Owls
General Manager since 2048

OTBA Champions - 2057
Heinsohn League Champions - 2057
Wildcard - 2054, 2055, 2056, 2057, 2067, 2070, 2071, 2078

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #3 on: April 27, 2018, 11:29:29 AM »
1) Is is the big "OMC" baseball or just a two-color ball?  The former means that there aren't any defined universes in the app, the latter means that the app was unable to grab the proper image from the HTML (which could be due to an incorrect HTML path, a timeout error or you're just not online).  That same reason would also explain why the news articles didn't load.  When you open the navigation drawer, are the menu options aside from "Manage Universes" available?  If so, you should still get stuff, although the box scores will be somewhat inaccurate.

2) Yes, you have to manually refresh the universe - there's a "Refresh Current Universe" option at the bottom of the navigation drawer.  Adding optional automated updates is on my to-do list, however.  You're not actually downloading the HTML.  Images, news articles and box scores/game logs are grabbed on-demand.

3) I can do that!

Offline CMH

  • OTBA Owners
  • Hero Member
  • ****
  • Posts: 1140
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #4 on: April 27, 2018, 01:44:34 PM »
It's the two-colored baseball.

I only see it when I try to load Leagues from the left menu tab. The other menu options like Players, Batting Leaders, Standings all load perfectly.
Fort Collins Owls
General Manager since 2048

OTBA Champions - 2057
Heinsohn League Champions - 2057
Wildcard - 2054, 2055, 2056, 2057, 2067, 2070, 2071, 2078

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #5 on: April 27, 2018, 02:31:11 PM »
Logos & player pictures are loading?

Offline CMH

  • OTBA Owners
  • Hero Member
  • ****
  • Posts: 1140
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #6 on: April 27, 2018, 02:58:59 PM »
Logos & player pictures are loading?

They are not.
Fort Collins Owls
General Manager since 2048

OTBA Champions - 2057
Heinsohn League Champions - 2057
Wildcard - 2054, 2055, 2056, 2057, 2067, 2070, 2071, 2078

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #7 on: April 27, 2018, 03:04:21 PM »
That sounds like the HTML isn't being found, then.  If you go back into "Manage Universes", click the pencil to edit the universe and double-check that the HTML path is exactly as above.   Note that it is case-sensitive, so that uppercase OTBA matters.

Offline CMH

  • OTBA Owners
  • Hero Member
  • ****
  • Posts: 1140
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #8 on: April 28, 2018, 01:39:37 PM »
That sounds like the HTML isn't being found, then.  If you go back into "Manage Universes", click the pencil to edit the universe and double-check that the HTML path is exactly as above.   Note that it is case-sensitive, so that uppercase OTBA matters.

Somehow the HTML address was not in the settings. So I entered it again. But now the app crashes when I click on a league in OTBA.
Fort Collins Owls
General Manager since 2048

OTBA Champions - 2057
Heinsohn League Champions - 2057
Wildcard - 2054, 2055, 2056, 2057, 2067, 2070, 2071, 2078

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #9 on: April 29, 2018, 08:59:33 PM »
This trying to, say, switch from OTBA to AAA?  Or choosing OTBA from the "manage universes" list?

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #10 on: April 29, 2018, 09:15:51 PM »
Oh, and also, does the crash continue if you disable getting league news in the settings?

Offline CMH

  • OTBA Owners
  • Hero Member
  • ****
  • Posts: 1140
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #11 on: April 30, 2018, 08:23:05 PM »
Sigh, I can't check. The app keeps opening while loading the OTBA league (yes, like trying to switch from OTBA to AAA or AA) and because it opens in that page, it automatically crashes. It won't let me change the settings.
Fort Collins Owls
General Manager since 2048

OTBA Champions - 2057
Heinsohn League Champions - 2057
Wildcard - 2054, 2055, 2056, 2057, 2067, 2070, 2071, 2078

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #12 on: May 01, 2018, 08:40:20 AM »
I'm unable to replicate this, unfortunately.  Ordinarily I'd suggest just force-refreshing the universe because the app is reporting null pointer exceptions when it's trying to populate the news and I'd bet it's because the database didn't quite populate properly, but if it's crashing before you even get that far you can't.

I think I know how to fix / work around that situation, so I'll get an update out to address that.

Offline eriqjaffe

  • Der Kommissar
  • OTBA Commissioner
  • Hero Member
  • *****
  • Posts: 8967
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #13 on: May 01, 2018, 08:59:59 AM »
BTW, I appreciate the bug reports and your patience.

Offline jaxmagicman

  • Ward, you were a little hard on the Beaver.
  • OTBA Leaders
  • Hero Member
  • *****
  • Posts: 8156
  • Gender: Male
Re: OOTP Mobile Companion for Android
« Reply #14 on: May 16, 2018, 09:34:14 AM »
This is amazing.
Let me guess, some of your best friends are black? ::)

No, but I do have a buddy who tans easily.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal