Premiership Coach

Remove this Banner Ad

I do remember you Daniel & great to see that you're interested. Thats exactly the skillset thats needed, although keep in mind this was written a long time ago, before entity framework and linq were prominent. I went through a phase where i was going to refactor the whole thing and bring in into c# & use entity framework but the level of effort vs the time i had to work on it meant i didnt get far.

My only stipulation for open source licensing would be that its not used commercially. Outside that, have at it - although it was my hope that it would lead to a community created PC2017 (or 18 more likely). I'm hoping it gets some traction and if so I'll work on it some myself. Specifically I'd like to rewrite the match simulations.

It makes sense for the community to drive the feature set & I dont plan to have any input there although I'll happily help out implementing some of them where its needed. (Free agency etc). One suggestion i do have from a performance standpoint (a lesson learned really) is that Windows doesnt deal well with many small files, so merging the XML into larger files (i.e a club an all associated players in a single file) will be more performant.

The only reason I ask re: open source is that I've actually been working on my own AFL game for a few years now on and off and if I work on this I don't want the waters muddying too much. I don't particularly want to make a profit off of my game or anything, but my vision was for a opt-in subscription with some non-gameplay benefits to support development or maintenance, and so if I worked on this and then a year or two down the track I release my AFL game which people can contribute money towards, then that might look a bit weird.

The main reasons for wanting to develop my own AFL game have been:
- I want to control the design of the game (i.e., it's my hobby)
- Multiplayer & Persistent

So if you're happy for me to work on contributions towards PC2018 even if I eventually were to release my own AFL game which people could contribute money towards, then I'm happy to as well, but I just don't want things being messy if it ever came to that.
 
The only reason I ask re: open source is that I've actually been working on my own AFL game for a few years now on and off and if I work on this I don't want the waters muddying too much. I don't particularly want to make a profit off of my game or anything, but my vision was for a opt-in subscription with some non-gameplay benefits to support development or maintenance, and so if I worked on this and then a year or two down the track I release my AFL game which people can contribute money towards, then that might look a bit weird.

The main reasons for wanting to develop my own AFL game have been:
- I want to control the design of the game (i.e., it's my hobby)
- Multiplayer & Persistent

So if you're happy for me to work on contributions towards PC2018 even if I eventually were to release my own AFL game which people could contribute money towards, then I'm happy to as well, but I just don't want things being messy if it ever came to that.

No concerns on my end mate. Honestly, all i want to see is a decent footy sim. Whether that be your game, a community built Premiership Coach version or some other project.

Happy to support and even help with whatever you have in mind. If you wanted to work on the multiplayer side of your game, integrate the Premiership Coach match sim engine, then layer your own feature set on top of that i'd gladly support it.
 

Log in to remove this ad.

No concerns on my end mate. Honestly, all i want to see is a decent footy sim. Whether that be your game, a community built Premiership Coach version or some other project.

Happy to support and even help with whatever you have in mind. If you wanted to work on the multiplayer side of your game, integrate the Premiership Coach match sim engine, then layer your own feature set on top of that i'd gladly support it.

Sounds great, thanks Grenville. I've got a prototype of my own match engine, but I've been going around in circles with it for quite some time so might draw from what you've done and see if I can come up with something I'm happy with.

I'm quite busy at the moment, so my progress is a bit slow right now, but I agree we all just want a decent footy sim.

I'll be sure to let you know how I go.
 
I have found the cause of the Staff screen crash. There was a height of zero for two values.

* Premiership Coach UI\Premiership Coach App\UIcomponents\ClubCurrent\StaffMain.xaml. <telerik:RadChart x:Name="rcScoutRatings" Margin="5,5,0,0" Height="0" Width="440" Opacity="0". Change Height to anything other than 0 (not sure of exact number)
* Premiership Coach UI\Premiership Coach App\UIcomponents\ClubCurrent\StaffMain.xaml.vb. Public Sub ShowScoutingGraph(). Change Height to anything other than 0.
 
Last edited:
No major progress to report. I'm still chugging along - although I haven't been documenting my progress/changes.

Minor stuff, in no particular order:
  • added start year and salary cap to new game options. Will still attempt to make adjustments to player/coach salaries based on this new cap figure.
  • tried to fix the preseason fixturing. The season proper was fine with 18 teams but the preseason was still built on 17 teams and I don't know if I have caught everything.
  • added ladder to current season menu. I'm sure it used to be there in an earlier version . . .
It doesn't sound like much but I have been tooling around with XML which is all new to me. I have been practising on some side projects to get my head around the reading and writing of this data.

Is anyone else (Daniel? Adam?) making any headway on this project? I will have some more free time in a couple weeks but I haven't decided if I will be doing any travel over Christmas. If I don't travel then I will have a lot of spare time on my hands.
 
This is where I throw out the "how long is a piece of string" comment.

It has been very slow going for me. To be honest, I have nearly given up completely a couple of times because it is a massive task - I cannot stress that part enough. Grenville/Adam produced a terrific piece of software that has many moving parts to it that simulate so much of running an AFL club. The only problem is that it is almost a full-time job just trying to understand what each part does and how it fits into the larger picture.

I have copied all of the source code to a series of pdf files just so I can isolate different parts of the puzzle. I am slowly going through the code in an attempt to get GWS in the game. This is a tough task on its own because I have to make sure that all of the data files are correct/complete - and this is arduous as well. Adding any enhancements to the game is a long way off.

I found that Adam had built in a couple of debugging tools into the program but there are also references to other development stuff on his home computer (like C:\SCS\Development\Premiership Coach\Documents\Ratings Folders) which would be good to check out if he still has them (hint!).

So to answer your question about how long this will take - I've got no f***ing idea!

:p
 

(Log in to remove this ad.)

I think that I have hit the wall.

I have successfully added GWS as a team but I cannot for the life of me populate the team with any players. I have tried to edit the data files without any luck as well as trying to locate the source of the problem in PC.

To date, I had transferred the entire source code to a series of pdf files which I had looked over to find any areas that obviously needed updating. That was a mind-numbing ordeal but I believe that I tracked down several references to teams that needed attention as well as fixing a few obvious typos. There were a few issues with the old preseason (NAB Cup) but I changed these so that everyone plays two preseason games (over a two week period instead of the real-life three). I can sim ahead without problem to the preseason games and the earlier games run OK but the game gets stuck with the first GWS game because they have no players.

To that end, I have done the following. I have uploaded two files for people's perusal. There is a PC∞.zip file (Premiership Coach ∞ was my working title) with the compiled game and the associated data files. You will see a couple of versions of the Players folder where I attempted several fixes. This is for people with no programming/coding knowledge but might be able to tinker with the data files and get it working.

I have also uploaded the full source code in the hopes that someone can continue my handiwork (or fix my failings).

http://www.mediafire.com/file/b43nbudpbsbb43p/PC∞.zip (52 MB)

http://www.mediafire.com/file/hz1l3w2w01b3ft6/PCsource.zip (303 MB)
 
I think that I have hit the wall.

I have successfully added GWS as a team but I cannot for the life of me populate the team with any players. I have tried to edit the data files without any luck as well as trying to locate the source of the problem in PC.

To date, I had transferred the entire source code to a series of pdf files which I had looked over to find any areas that obviously needed updating. That was a mind-numbing ordeal but I believe that I tracked down several references to teams that needed attention as well as fixing a few obvious typos. There were a few issues with the old preseason (NAB Cup) but I changed these so that everyone plays two preseason games (over a two week period instead of the real-life three). I can sim ahead without problem to the preseason games and the earlier games run OK but the game gets stuck with the first GWS game because they have no players.

To that end, I have done the following. I have uploaded two files for people's perusal. There is a PC∞.zip file (Premiership Coach ∞ was my working title) with the compiled game and the associated data files. You will see a couple of versions of the Players folder where I attempted several fixes. This is for people with no programming/coding knowledge but might be able to tinker with the data files and get it working.

I have also uploaded the full source code in the hopes that someone can continue my handiwork (or fix my failings).

http://www.mediafire.com/file/b43nbudpbsbb43p/PC∞.zip (52 MB)

http://www.mediafire.com/file/hz1l3w2w01b3ft6/PCsource.zip (303 MB)

Downloaded the zip file from the first link and tried running the game. Kept getting an error after trying to make a new game however I noticed you had two saves already there that work. I grabbed the 2012 lists from the original source code that I had and pasted them over the player files from one of your saves. GWS has players now, but I'm not sure if everything will work out. Going to check that now.

Edit: Game crashes if I try to advance past the first set of preseason matches. I did sim a couple seasons with the original code, and I was able to complete those seasons, so I am assuming the error is due to a change you made.
The GWS game gets completed however similarly to the original source code, the game crashes if you try to view the stats for the GWS game. From what I can recall, I believe this is to do with a missing GWS icon causing the game to crash.
 
Last edited:
Downloaded the zip file from the first link and tried running the game. Kept getting an error after trying to make a new game however I noticed you had two saves already there that work. I grabbed the 2012 lists from the original source code that I had and pasted them over the player files from one of your saves. GWS has players now, but I'm not sure if everything will work out. Going to check that now.

Edit: Game crashes if I try to advance past the first set of preseason matches. I did sim a couple seasons with the original code, and I was able to complete those seasons, so I am assuming the error is due to a change you made.
The GWS game gets completed however similarly to the original source code, the game crashes if you try to view the stats for the GWS game. From what I can recall, I believe this is to do with a missing GWS icon causing the game to crash.

Yeah, I forgot to mention that creating a new game causes a crash - that I could never resolve - but, if you restart the game, you can then load that save that you just created.

Let me know which player files you used. If I can get GWS populated with players then I can possibly attack the other problems.
 
Last edited:
Yeah, I forgot to mention that creating a new game causes a crash - that I could never resolve - but, if you restart the game, you can then load that save that you just created.

Let me know which player files you used. If I can get GWS populated with players then I can possibly attack the other problems.

If you can't upload the player files anywhere then email them to me (shirty21c AT gmail DOT com).

Sent from my ALE-L21 using Tapatalk

I used the player folders from the original source. Should be located in this folder: Premiership Coach UI\Premiership Coach App\Data\Base\Base2010\Players
 
Thank you very much. I got it working. Back in business.

I was seriously doubting myself because I tried your instructions several times and I still came up empty. I was going try one more time and then give up if it didn't take.

I haven't looked at the stats viewing error yet since I wanted to see how far I could sim into the season. I got past the first week of the preseason but hit a snag after that. At least I have something to work with now.
 
I found the cause of the stat viewing error. There was a missing icon but it didn't exist in any of the folders. It was an icon created within PremCo. I ended up just copying and pasting a Gold Coast icon in its place for now. The GWS players also show up with FA icons but I can live with that for now.
 
Thank you very much. I got it working. Back in business.

I was seriously doubting myself because I tried your instructions several times and I still came up empty. I was going try one more time and then give up if it didn't take.

I haven't looked at the stats viewing error yet since I wanted to see how far I could sim into the season. I got past the first week of the preseason but hit a snag after that. At least I have something to work with now.

I see how it didn't work for you initially. I linked the wrong lists. The list in that folder doesn't have GWS players, but the one in the bin folder do. Premiership Coach UI\Premiership Coach App\bin\Data\Base\Base2010\Players
 
272909002.gif


I'M OUT!

OK, I have done what I can but I can do no more. This thing has beaten me down to the point where I am a shell of a man. o_O

Here is the state of the game as I am leaving it. I was unable to resolve the preseason problems so I had the bright idea to remove the preseason and focus solely on the regular season and finals. I was successfully able to sim a full season and get through the finals and Brownlow BUT . . .

It got stuck after this because I think I messed up the finances when I changed the salary cap. I was not able to sign any coaches since I had a negative budget.

There are also problems in attempting to save the game which I was unable to resolve.

Here is the download link if you want to play around with it.
http://www.mediafire.com/file/ahc1cq51wjx2wzz/PC%u221E-noPS.zip

Here are the potential problems and possible workarounds:
  • When starting a new game, the start year and salary cap do not have any effect. I was not able to get this part working properly so I went back to the original figures. I believe that this is the cause of the coach signing problem.
  • When starting a season, click on Clubs in the bottom right. Sometimes GWS gets populated with players and sometimes they don't. Go the Saves folder and copy all of the data files from Players - this one to Players. They should be the same but . . .
  • Check Coach Details > Current Coaches and make sure that these are fully populated. I initially had to copy another coach to get Leon Cameron but now, when I restarted my save game, I see that Adelaide and West Coast are missing their coaches (I think I messed around with these two when I was trying to get Leon Cameron to show up).
  • When simming the season, the last (9th) game of the round gets cut off the results screen. I tried to fix this but no dice.

I did not try other parts, like playing out a game, so I don't know if there are any other problems. I think I did well just to get here but I don't have the skill nor expertise to take it any further.

I think the best bet for a proper update of the game is to get a Kickstarter campaign for Grenville so that he can do the job properly and get paid for his time.
 
272909002.gif


I'M OUT!

OK, I have done what I can but I can do no more. This thing has beaten me down to the point where I am a shell of a man. o_O

Here is the state of the game as I am leaving it. I was unable to resolve the preseason problems so I had the bright idea to remove the preseason and focus solely on the regular season and finals. I was successfully able to sim a full season and get through the finals and Brownlow BUT . . .

It got stuck after this because I think I messed up the finances when I changed the salary cap. I was not able to sign any coaches since I had a negative budget.

There are also problems in attempting to save the game which I was unable to resolve.

Here is the download link if you want to play around with it.
http://www.mediafire.com/file/ahc1cq51wjx2wzz/PC%u221E-noPS.zip

Here are the potential problems and possible workarounds:
  • When starting a new game, the start year and salary cap do not have any effect. I was not able to get this part working properly so I went back to the original figures. I believe that this is the cause of the coach signing problem.
  • When starting a season, click on Clubs in the bottom right. Sometimes GWS gets populated with players and sometimes they don't. Go the Saves folder and copy all of the data files from Players - this one to Players. They should be the same but . . .
  • Check Coach Details > Current Coaches and make sure that these are fully populated. I initially had to copy another coach to get Leon Cameron but now, when I restarted my save game, I see that Adelaide and West Coast are missing their coaches (I think I messed around with these two when I was trying to get Leon Cameron to show up).
  • When simming the season, the last (9th) game of the round gets cut off the results screen. I tried to fix this but no dice.

I did not try other parts, like playing out a game, so I don't know if there are any other problems. I think I did well just to get here but I don't have the skill nor expertise to take it any further.

I think the best bet for a proper update of the game is to get a Kickstarter campaign for Grenville so that he can do the job properly and get paid for his time.
 

Remove this Banner Ad

Premiership Coach

Remove this Banner Ad

Back
Top