views:

331

answers:

3

hey guys i'm about to begin a football manager inspired facebook application in php/mysql and had a couple of questions:

1) where would be the best place to host the database? any services offered within great britain would be excellent!

2) does anyone have any ideas on how i could use player statistics as part of the in-game match engine? how would php accomodate this? i would like to make the matches as realistic as possible?

3) lastly i wanted to know whether php/mysql would be the best language to code this game in. i am quite confident within this language and can pick up new skills relatively quickly. but i am worried once again (in reference to number 2) about how i would simulate matches using the data from php. i'd appreciate any pointers.

thanks for the help guys!

A: 

2) You'd need to find an API that offers player statistics in some way, but if you're thinking along the lines of physical traits rated on a scale from 1 to 10 I fear you're out of luck. You could look into exporting player statistics from the original Football Manager game or somethijng along those lines, but I doubt it's available.

3) PHP will do fine.

Good luck!

Johannes Gorset
im very excited about it thanks. i'm looking to import stats from the original football manager game. but i don't know how this would translate into php code for a realistic match play experience.
jeansymolanza
A: 
  1. For database hosting, the DB provided with your web host is usually suitable. For read-only applications or applications that very rarely update or delete information, the other option would be to use Amazon SimpleDB. It's very fast for fetching simple data (almost like NoSQL) and is free until you hit a certain pricing tier.
  2. This is something you'll have to work out on your own; I'm no football expert and would have a difficult time trying to give you much advice. Maybe if you could explain your situation a little more, I could give you a stronger response.
  3. Use the language that you're most comforable with. If that's PHP, then go with PHP. If you write your code best in another language, then use another language. Facebook has a particularly well written PHP library, so I certainly encourage you to take advantage of it if PHP is your strong suit, but there are plenty of other languages with very strong FB libraries available. As for MySQL, the DB doesn't really matter very much. I've used MySQL, SQLite, and SimpleDB for Facebook apps. All three have their strong points and their weaknesses. Choose a database engine that suits your needs: MySQL is very strong in overall performance. SimpleDB is great for reliability and simplicity, but bad for update or deletion-intensive applications. SQLite is great if you're looking for an extremely portable DB that is infrequently accessed for only simple I/O (i.e.: storing user session tokens). Make sure you plan to scale: don't build an app on SQLite if you intend to have a million users someday, and don't build on SimpleDB if you intend to be updating information in realtime.

Anyhow, good luck in your application! Hope this helps!

mattbasta
i'll settle for mysql then. thanks for your excellent and detailed response. the type of engine i am hoping to build is one which fetches a certain range of in-match phrases that commentators usually make i.e. $player1 has got the ball.... $player1 passes it to $player2... kind of like football manger... where there has to be some awareness to everything. the game must understand where each player is at each time. it would then display a list of events sequentially over a period of 4 minutes for example that highlight the key moments of the match.
jeansymolanza
of course this would vary significantly depending on the tactic used and player stats. i have a feeling that this will be a very difficult part of the game to code. note the bar @ http://www.youtube.com/watch?v=JaiuOE6FuTs on the bottom of the screen that updates in real time. this is what i hope to create. the 3D gameplay is something hidden from the player... the match engine developed using php/mysql would work this magic lool any pointers?
jeansymolanza
here is a better example http://smimgs.com/images/screenshots/big/live-scores.png
jeansymolanza
A: 

check out http://onefootballnews.com

tool