[vb][vb.net][code]No more Select Cases for world prefixes.

Discussion in 'Programming General' started by speljohan, Apr 24, 2007.

[vb][vb.net][code]No more Select Cases for world prefixes.
  1. Unread #1 - Apr 24, 2007 at 10:40 AM
  2. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    [vb][vb.net][code]No more Select Cases for world prefixes.

    First, make a new inet on your form, then just use this code:

    Code:
    for some reason it's impossible for me to post it here because vBulletin is being gay. Link:
    http://www.speljohan.net/text/getWorldPrefix.txt
    This code should work, although i didn't try it out myself.

    Enjoy
     
  3. Unread #2 - Apr 26, 2007 at 5:37 PM
  4. Puzzle
    Joined:
    May 6, 2005
    Posts:
    846
    Referrals:
    0
    Sythe Gold:
    0

    Puzzle Apprentice

    [vb][vb.net][code]No more Select Cases for world prefixes.

    this is less reliable that cases for several reasons
    1. it depends on an external source
    2. it adds yet another server to connect to and dependin on how fast your server is is how fast the client will switch
    3. and if you shut down your hosting all the client makers that used your method will be screwed
     
  5. Unread #3 - Apr 26, 2007 at 5:43 PM
  6. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    [vb][vb.net][code]No more Select Cases for world prefixes.

    anyone with common sence could modify it to download all the world into a file, and load them from there instead.
    And about the link, for some reason vBulletin says "Page cannot be found" if i try post the code. And my server won't get down. trust me ;)
     
  7. Unread #4 - May 1, 2007 at 7:41 PM
  8. muscles181
    Joined:
    Jan 27, 2007
    Posts:
    157
    Referrals:
    1
    Sythe Gold:
    0

    muscles181 Active Member

    [vb][vb.net][code]No more Select Cases for world prefixes.

    wow cool
     
  9. Unread #5 - Aug 2, 2007 at 8:50 PM
  10. pwnintheface
    Joined:
    Jul 31, 2007
    Posts:
    70
    Referrals:
    0
    Sythe Gold:
    0

    pwnintheface Member
    Banned

    [vb][vb.net][code]No more Select Cases for world prefixes.

    thx mate. Its a little slow, but I can manage.
     
  11. Unread #6 - Aug 19, 2007 at 7:36 AM
  12. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    [vb][vb.net][code]No more Select Cases for world prefixes.

    Spel is right, why don't you listen to him?

    Here is what I personally would do. prepackage the worlds in to a file upon releasing the client. then, check for world updates while the client is playing. Thus allowing the client to still play while the worlds are being updated, instead of making him wait. Use your brain next time people ;)

    I might make a world switching class later on, this is sure to be included. thanks Spel :)

    Edit: I would like to outline that .Net doesn't use Inet.OpenURL() (ugh), it uses WebClient.DownloadString().
    Webclient can be found near the bottom of the toolbox item selection dialog.
     
  13. Unread #7 - Mar 21, 2008 at 4:53 AM
  14. Stuart
    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10

    Stuart Guru
    Banned

    [vb][vb.net][code]No more Select Cases for world prefixes.

    I would like to outline this is the vb6 section (ugh) :p
     
  15. Unread #8 - Aug 24, 2008 at 1:47 AM
  16. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    [vb][vb.net][code]No more Select Cases for world prefixes.

    Unstuck, for obvious reasons.

    It probably needs updating, and it's not really worth stickying in the first place.
     
< Ideas | Up-to-date World Info >

Users viewing this thread
1 guest


 
 
Adblock breaks this site