Results 1 to 8 of 8

Thread: How would i do an online high score system? and have my program acsess it?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    How would i do an online high score system? and have my program acsess it?

    I want to make an online highscore system... With the top 10 scores online.... How would i do this? is it possible?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  2. #2
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: How would i do an online high score system? and have my program acsess it?

    Yes, it's possible.

    Here's a few that come to mind:
    • VB(or custom) Server application
    • Web server with PHP, ASP, etc.
    • FTP Server

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: How would i do an online high score system? and have my program acsess it?

    Hmm..... With the first option, would that be 2 seperate programs?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  4. #4
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: How would i do an online high score system? and have my program acsess it?

    Yes, the server application would conceivably be different than the client application.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: How would i do an online high score system? and have my program acsess it?

    Hmm.... Okay.... how would i do that, with high scores?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  6. #6
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: How would i do an online high score system? and have my program acsess it?

    You'd want to design a protocol that'd allow users to post data, and get data. I'd suggesting designing your packets as UDTs.

    Like these:
    vb Code:
    1. 'not a complete packet, just a part of a packet
    2. Private Type tUserScore
    3.   lScore as Long 'their score
    4.   lNameLength as Long 'the length of the next field
    5.   sUserName as String 'their name
    6. End Type
    7.  
    8. Private Type tSubmitScore
    9.   lCmdID as Long '4 bytes for a command ID, the parser will check this and act accordingly
    10.   lScore as Long 'The score
    11.   lNameLegth as Long 'the length of the next field
    12.   sUserName as String 'their name
    13. 'or design this like the next packet* to upload an entire local scoreboard
    14. End Type
    15.  
    16. 'next packet*
    17. Private Type tScoreResults
    18.   lCmdID as Long 'a unique ID for this packet
    19.   lNbrUserScores as Long 'the number of items in the following array
    20.   UserScore() as tUserScore
    21. End Type

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: How would i do an online high score system? and have my program acsess it?

    Okay. Whats a UDT? (fyi, im not that advanced with vb... so i dont even know how to have it acess on line, nor resive information, other than .txt files...)
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  8. #8
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: How would i do an online high score system? and have my program acsess it?

    A UDT is a user-defined type. Like the three in my example code.

    For designing a protocol, have a look at this: http://www.vbforums.com/showthread.php?t=615906

Posting Permissions

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



Click Here to Expand Forum to Full Width