Home | Webstore
Latest News: OOTP 27 Buy Now - FHM 12 Available - OOTP Go! Available

Out of the Park Baseball 27 Buy Now!

  

Go Back   OOTP Developments Forums > Franchise Hockey Manager 9 > FHM9 - General Discussion

FHM9 - General Discussion Talk about the latest & greatest FHM, officially licensed by the NHL!

Reply
 
Thread Tools
Old 11-28-2022, 11:07 PM   #1
reverist
Major Leagues
 
Join Date: May 2020
Location: Murfreesboro, TN
Posts: 312
CSV to HTML?

Does anyone know of anything that would make my CSV info usable? I have no clue what I am looking at, and I had heard rumors that a CSV to HTML tool was in the works by someone.
reverist is offline   Reply With Quote
Old 11-29-2022, 07:31 AM   #2
drummerJ99
Major Leagues
 
drummerJ99's Avatar
 
Join Date: Oct 2017
Location: I hate hackers!
Posts: 381
Quote:
Originally Posted by reverist View Post
Does anyone know of anything that would make my CSV info usable? I have no clue what I am looking at, and I had heard rumors that a CSV to HTML tool was in the works by someone.
I contacted landru22 he's the one that made the FHM7 html Boxscore Creator . He emailed me one that worked with FHM8. I don't see it posted anywhere here on the forums. Not sure if it works for FHM9. I mainly use it for box score. Wish the game would just export to html like OOTP or give us a official CSV to HTML converter.
drummerJ99 is offline   Reply With Quote
Old 11-29-2022, 09:48 AM   #3
reverist
Major Leagues
 
Join Date: May 2020
Location: Murfreesboro, TN
Posts: 312
Quote:
Originally Posted by drummerJ99 View Post
I contacted landru22 he's the one that made the FHM7 html Boxscore Creator . He emailed me one that worked with FHM8. I don't see it posted anywhere here on the forums. Not sure if it works for FHM9. I mainly use it for box score. Wish the game would just export to html like OOTP or give us a official CSV to HTML converter.
Thanks for this! I will check it out.

EDIT: Could not get it to work on FHM7 or 9.

Last edited by reverist; 11-29-2022 at 02:20 PM.
reverist is offline   Reply With Quote
Old 11-29-2022, 07:47 PM   #4
sgrondin98
Minors (Double A)
 
Join Date: Mar 2013
Posts: 134
Yes i have this tool and it works with FHM 7 buts its very limited. And if you changed the structure of your league you will miss a lot of stats....And i ask Landru for an update or something like this but he dont want to work on this tool anymore.

I hope to see in the future that kind of tool but with more information like

Attributs - Salary - contract - Stats - Records - Standings - More information on the boxscore and lot more

CSV to html or directly an export to html is a must.

CSV are for people who know how to work with those files and need to know how work a database.

html is more simple.

Anyway i hope every year to see this tool add to the game.....
sgrondin98 is offline   Reply With Quote
Old 11-30-2022, 06:43 AM   #5
tomkmb
All Star Starter
 
tomkmb's Avatar
 
Join Date: Jan 2021
Posts: 1,740
Even if you do have some experience with CSV files the ones dumped from the game are not that straight forward, firstly it's the entire universes info all in one disorganised go.

Also, the 'player_master' csv was a bit of a nightmare to work with for the following reasons:
The output CSV appears to contain characters escaped in the format
Code:
AmpersandHash123semicolon as {
This obviously clashes with the separator used in the CSV file
Code:
;
.
As a result, the CSV file is effectively invalid unless you first unescape these characters before trying to parse it as a CSV file.
These characters either need to be unesecaped first, or offending fields need to be encapsulated in speech marks "".

It's encoded as 'cp437' too which I've not worked with before which caused some issues too but yeah, it was not simple. Other games like Front Office Football have a very simple and readable dump of CSVs which make working with those a pleasure, I wish FHM could adopt some of that.

I know Jeff mentioned to someone else that the CSV would need sufficient rewriting for it to include something like an interface allowing you to choose the leagues you want to be dumped so I'm not holding my breath for it to happen any time soon but it's a real shame, I wanted to mess with these CSVs and it was more frustrating than anything else even to do the most basic things.

Last edited by tomkmb; 11-30-2022 at 06:47 AM.
tomkmb is offline   Reply With Quote
Old 11-30-2022, 10:16 AM   #6
drummerJ99
Major Leagues
 
drummerJ99's Avatar
 
Join Date: Oct 2017
Location: I hate hackers!
Posts: 381
Quote:
Originally Posted by reverist View Post
Thanks for this! I will check it out.

EDIT: Could not get it to work on FHM7 or 9.

I couldn't get the FHM7 one to work with FHM8. But I private messaged him and he emailed me one for FHM8 that supposedly also works with 9. I don't see that one actually listed anywhere here on the forums.


Quote:
Originally Posted by sgrondin98 View Post
Attributs - Salary - contract - Stats - Records - Standings - More information on the boxscore and lot more

Is all that exported in the CSV now?


Quote:
Originally Posted by tomkmb View Post
Even if you do have some experience with CSV files the ones dumped from the game are not that straight forward, firstly it's the entire universes info all in one disorganised go.

Also, the 'player_master' csv was a bit of a nightmare to work with for the following reasons:
The output CSV appears to contain characters escaped in the format
Code:
AmpersandHash123semicolon as {
This obviously clashes with the separator used in the CSV file
Code:
;
.
As a result, the CSV file is effectively invalid unless you first unescape these characters before trying to parse it as a CSV file.
These characters either need to be unesecaped first, or offending fields need to be encapsulated in speech marks "".

It's encoded as 'cp437' too which I've not worked with before which caused some issues too but yeah, it was not simple. Other games like Front Office Football have a very simple and readable dump of CSVs which make working with those a pleasure, I wish FHM could adopt some of that.

I know Jeff mentioned to someone else that the CSV would need sufficient rewriting for it to include something like an interface allowing you to choose the leagues you want to be dumped so I'm not holding my breath for it to happen any time soon but it's a real shame, I wanted to mess with these CSVs and it was more frustrating than anything else even to do the most basic things.
Jeff has also mentioned he has no interest in HTML as the OOTP guys said "it was a nightmare", so I doubt we will ever get more then CSV. And as you said, it'd need sufficient rewrite to select what gets dumped.I'd be highly surprised if we ever get anything more then we have now.
drummerJ99 is offline   Reply With Quote
Old 12-03-2022, 09:26 AM   #7
halldorr
Minors (Double A)
 
Join Date: Aug 2002
Location: Nova Scotia, Canada
Posts: 179
Quote:
Originally Posted by tomkmb View Post
Also, the 'player_master' csv was a bit of a nightmare to work with
This is what I was finding as well. I wrote something where I could upload a zip of the CSVs, it would unzip the CSVs, then insert it into temporary tables.

I still had to code up all the HTML reports stuff but ran into this very issue you mention with the ampersands causing issues.
halldorr is offline   Reply With Quote
Old 12-03-2022, 10:38 AM   #8
tomkmb
All Star Starter
 
tomkmb's Avatar
 
Join Date: Jan 2021
Posts: 1,740
Quote:
Originally Posted by halldorr View Post
This is what I was finding as well. I wrote something where I could upload a zip of the CSVs, it would unzip the CSVs, then insert it into temporary tables.

I still had to code up all the HTML reports stuff but ran into this very issue you mention with the ampersands causing issues.
Yeah, this is an issue which I cant help but feel must just be an oversight in how that dump feature works. Unless there is a reason for those HTML escape characters to just be included on the end of some lines and I'm just ignorant of that (which is entirely possible). Even if they made an amendment to change the encoding to something like 'latin-1' and got rid of the unescaped HTML that would be a huge improvement for the player_master.csv when it comes to trying to do anything with Pandas/Python with it.
tomkmb is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:33 AM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments