|
||||
| ||||
|
|||||||
| FHM Mods This is the place to check for mods for both FHM12 and previous versions. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Bat Boy
Join Date: May 2023
Posts: 16
|
FHM11 Automation
I created a program I call simbot that will help simulate play in FHM11. I spent a long time trying to make it perfect and universal so it would work for any league/team combination. It's not there yet but works very well for top level league. Most suitable to a standard game playing in the NHL. I also wanted to tailor it to big game servers with like 20 people but it's actually better suited to small servers played with friends.
https://youtu.be/7OHhwiHNZxQ This is a sped up example where it cycles through importing a save file, saves and exits, launches, sims the current day games, takes screenshots of results, sims to next day, takes screenshots of lines, uploads and then exports csv. I created a discord bot that takes commands such as /simday or /showlines that controls the bot and the pictures it takes it posts to the appropriate server channel. It works with an SQL server to deliver stats with custom commands like /goalie_report I've been playing a game with 3 people in total and we have gone 7 years and all I have to manually do is draft and trades. Throughout the day we just sim through discord as we go. I was pretty happy with it so thank you if you read all that. Last edited by Vlaandeerfeld; 03-08-2026 at 04:00 AM. |
|
|
|
|
|
#2 |
|
Major Leagues
Join Date: Jul 2010
Posts: 472
|
This looks incredible! I'm not sure I would use it, but I appreciate the work you must have put into this.
|
|
|
|
|
|
#3 |
|
All Star Starter
Join Date: Jan 2021
Posts: 1,752
|
Awesome, I love to see projects like this. I think I actually followed you on Github when I was searching for FHM related repo's, I recognised the username.
I'd be interested to know a little bit more about the tech behind it and how's it working if you were ever inclined to share, just from a personal curiosity standpoint. Either way, thanks for taking the time to make and share it! |
|
|
|
|
|
#4 |
|
Bat Boy
Join Date: May 2023
Posts: 16
|
It's more tedious than complicated. I noticed that the FHM layout is very static so a lot of the program started as just a point to location and let python click through.
self.LeagueStatsGoalieLeadersButton = (250, 222) self.LeagueStatsMoreButton = (410, 222) self.LeagueStatsTeamsButton = (720, 222) self.LeagueScheduleButton = (525, 110) self.LeagueSchedulePreviousDayButton = (1280, 260) self.LeagueScheduleNextDayButton = (1550, 260) self.LeagueTransactionsButton = (525, 130) self.LeagueTransactionsWaiverButton = (540, 225) self.LeagueTransactionsWaiverAttributeButton = (1770, 260) self.LeagueTransactionsWaiverAttributeContractButt on = (1770, 325) Then I needed some variableness so I used computer vision libraries that uses AI to match images. I would just screenshot in game images like please wait when simming. When it can't find please wait it knows it's done simming and then can continue clicking. A relatively fancy feature was finding variable images. For example before every sim it looks for injured players in the line up. The game uses qt5 and python has a library pygt5. I looked through the skin file and found the font used and background colour. I get the players for the team from the csvs and generate an image that cv then looks for in game. I also changed the skin to be easier for the program. I took away things like changing colour when hovering and alternating colour in a list so that the program can find the image easier. I've been too busy to program proper so I've been using AI to program a lot. A big improvement I made was a website. I was inspired by some of the websites I saw here. An improvement I made though was to tie the website into the automation. So you can make trades and lineup changes through the site and then it will apply it in game. |
|
|
|
|
|
#5 |
|
All Star Starter
Join Date: Jan 2021
Posts: 1,752
|
That's really interesting, not to mention impressive. Thanks a lot for sharing!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|