Cricket Betting Site Betway
Page 1 of 15 12311 ... LastLast
Results 1 to 15 of 212

Thread: Cricket Sim 2004

  1. #1
    School Boy/Girl Captain Andrew_14's Avatar
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    143

    Cricket Sim 2004

    I am developing a game of my own in Visual C++. I am only new to programming, but here's what it will feature:

    *Write-to-Scorecard feature. It will write the match you most recently played's scorecard to a text file.

    *Records. Will keep a records.dat file, containing the highest batsman score, bowlers, team innings, lowest scores etc.

    *Realistic outcomes. Game engine will produce realistic outcomes for each player and team.

    *Databases. Create your own squads by creating a Cricket Sim 2004 database, instructions on formatting included with game.

    The game will be available in a couple of weeks, mabey a month. I may release a demo.

    If you wish to be a tester, SIGN UP HERE.

  2. #2
    Cricketer Of The Year bugssy's Avatar
    Join Date
    May 2002
    Location
    Sydney NSW
    Posts
    8,214
    sounds good mate

    test me up!
    Career cricket
    311 wickets @16.54 and 3021 runs @ 34.56 from 176 games over 11 years H.S 178*
    Member of the CW Green
    Cricket Web Career:(end of season 11) FC: 7404 runs @ 30.85 H.S 253* : One Day: 7331 runs @ 48.55 H.S 155*
    Off season: FC 1209 @ 52.51 & One Day: 921 @ 92.10
    COD4: djs clan
    World Of Warcraft: just sensational

  3. #3
    gio
    gio is offline
    U19 Cricketer
    Join Date
    May 2003
    Location
    Glasgow, UK
    Posts
    448
    I'll gladly test it

  4. #4
    Cricket Web Moderator Neil Pickup's Avatar
    Join Date
    Mar 2002
    Location
    Oxford, England
    Posts
    27,194
    As an experienced programmer () I'm happy to help out, I'm getting good at breaking things.

    I do think your release schedule's a touch on the optimistic side, mind!
    MSN Messenger: minardineil2000 at hotmail dot com | AAAS Chairman
    CricketWeb Black | CricketWeb XI Captain
    ClarkeWatch: We're Watching Rikki - Are You?

    Up The Grecians - Exeter City FC

    Completing the Square: My Cricket Web Blog


  5. #5
    International Debutant kears_falcon_9's Avatar
    Join Date
    Jan 2004
    Location
    Adelaide
    Posts
    2,664
    Ill Test Mate
    ----------------
    < D.A.V.I.D >
    ----------------

  6. #6
    International Debutant DJellett's Avatar
    Join Date
    Feb 2004
    Location
    Melbourne, Australia
    Posts
    2,786
    Sounds gr8, can't w8....











    m8



    Gotta bring back a little Yaju...
    Dylan Hooper-Jellett
    CWCA Chairman

    Want to be the next Bradman - of the forum?
    Simmed Cricket. Real Fun.
    CricketWeb Cricket - Sign Up Now


    Quote Originally Posted by Voltman View Post
    Melicous? Is that a nasty, yet tasty, comment?

  7. #7
    School Boy/Girl Captain Andrew_14's Avatar
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    143
    Quote Originally Posted by Neil Pickup
    As an experienced programmer () I'm happy to help out, I'm getting good at breaking things.

    I do think your release schedule's a touch on the optimistic side, mind!
    I actually need help in something (if you know C++).

    I am fairly new to C++, and I am making a cricket simulator.

    The simulator writes a config.ini file. In the configuration file, it says:

    1
    1

    This means that write-to-scorecard is enabled, and so is records mode. I am not sure how I would get the program to read this.

    What I mean is, I want, for example, the simulator to read the first 1, and sign the value one to a. Then, it can read the second line, and sign 1 to b.

    More clearly, how do I get it to read a certain line, and assign the line value to a integer?

    How would I do this?

    Thanks.

  8. #8
    International Debutant DJellett's Avatar
    Join Date
    Feb 2004
    Location
    Melbourne, Australia
    Posts
    2,786
    Andrew - will this game be suitable for PBeM managers?

  9. #9
    International Vice-Captain Dasa's Avatar
    Join Date
    Feb 2004
    Location
    Melbourne
    Posts
    4,955
    I'll be happy to test it.

  10. #10
    International Vice-Captain
    Join Date
    Mar 2003
    Location
    .
    Posts
    4,710
    i will test...

  11. #11
    School Boy/Girl Captain Andrew_14's Avatar
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    143
    PBeM managers?

  12. #12
    Hall of Fame Member Jamee999's Avatar
    Join Date
    Oct 2003
    Location
    Leicestershire, UK
    Posts
    15,094
    To be used in Cricket Web's competitions like:

    World Club Cricket

    A League for the Ages 2

    Cricket Web XI

    Oceiana Cup

    Or something.

    RIP Fardin Qayyumi (AKA "cricket player"; "Bob"), 1/11/1990 - 15/4/2006

  13. #13
    School Boy/Girl Captain Andrew_14's Avatar
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    143
    Interesting. The databases I am constructing for it are fairly accurate in terms of which teams do well. Not just that, but it goes in depth with their home records and how they perform away, same with the players.

    If you create a databse for it, which I am trying to make as easy as possible, yes it will be quite accurate.

    I don't fully understand thos competitions, but I think that's what your trying to ask...

  14. #14
    Hall of Fame Member Jamee999's Avatar
    Join Date
    Oct 2003
    Location
    Leicestershire, UK
    Posts
    15,094
    Cheers

    That's sounds very accurate.

  15. #15
    Cricket Web Moderator Neil Pickup's Avatar
    Join Date
    Mar 2002
    Location
    Oxford, England
    Posts
    27,194
    I've not used C++ before (mainly because I can't afford it/haven't found a free giveaway copy yet) - but I can give you the code I use in Pascal in Beach Cricket to load from the file and assign the data into the variables, it's not likely to be vastly different in C++.

    FileName:=Dir+'\data\config.ini'; (where Dir is a string variable of the game directory)
    AssignFile(ConfigFile,FileName); (tells the program to read data off the filename - may be different in C++)
    Reset(ConfigFile); (reset the file to the beginning so you read the first line first)
    ReadLn(ConfigFile,STemp); (read the first line of the file and put it in the string "STemp")
    a:=StrToInt(STemp); (convert the string STemp to the Integer A)
    ReadLn(ConfigFile,STemp); (read the next line of the file and put it in the string "STemp" - just over-writes)
    b:=StrToInt(STemp); (convert the string STemp to the Integer B)

    Repeat for as long as you want - you will probably need loops and arrays in your player data file loading. Magpie loads 1500 players and around 200 variables for each, so it has a 200-variable loop repeating 1500 times, loading each data into an array named PlayerData[x,y] where x is 1 to 1500 and y is 1 to 200.

    CloseFile(ConfigFile); (tells the program to stop reading - important you include this or you get all sorts of read-write errors).

    Hope that helps!
    Last edited by Neil Pickup; 23-08-2004 at 08:20 AM.

Page 1 of 15 12311 ... LastLast


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CW Players A-Z
    By Mr Mxyzptlk in forum CW Development League
    Replies: 316
    Last Post: 10-05-2007, 12:35 AM
  2. World of Cricket 2004 first screenshot
    By melbournemartin in forum Cricket Games
    Replies: 22
    Last Post: 03-07-2005, 10:28 PM
  3. cricket 2004 what do you think? EA or no way
    By DAN THE MAN in forum Cricket Games
    Replies: 4
    Last Post: 26-06-2004, 08:54 PM
  4. Cricket 2004 glitches
    By Tell in forum Cricket Games
    Replies: 1
    Last Post: 15-06-2004, 12:17 AM
  5. Cricket Web Forum
    By James in forum Cricket Web Forum Announcements
    Replies: 2
    Last Post: 11-04-2004, 03:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •