C Runescape name checker

Discussion in 'Programming General' started by Kimiko, Nov 30, 2013.

C Runescape name checker
  1. Unread #1 - Nov 30, 2013 at 3:33 PM
  2. Kimiko
    Joined:
    Nov 30, 2013
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0

    Kimiko Newcomer

    C Runescape name checker

    Hey, I'm new to the forum. I've been programming in C on the Unix operating system for eight years. I recently started out on Java, and venturing out onto runescape forums. I'm going to try to make this section a bit more active than it is, and if anyone wants to help and offer ideas, by all means toss them in.

    I saw a source code a for a runescape name checker that was done in Java. I thought it would be neat to make my own version in C. All though this makes a GET request to a php file on my server, you can make a POST request to runescape directly; however, you'd need the openssl library for that, which I won't get into today.
    This source can only be compiled on Windows since it uses the WinInet API.

    Code:
    
    
    Post any comments, questions, concerns about the code.
    If you need help compiling, you can post your issues.
     
  3. Unread #2 - Jan 2, 2014 at 5:58 PM
  4. D3xus
    Joined:
    Aug 19, 2013
    Posts:
    46
    Referrals:
    0
    Sythe Gold:
    0

    D3xus Member

    C Runescape name checker

    Love your thought to make action more active, I'm with you on that one :D

    Why C? Would it not be slower then many other languages, though?
     
  5. Unread #3 - Jan 2, 2014 at 6:05 PM
  6. 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

    C Runescape name checker

    C is actually a lot faster in terms of processing speed. As far as internet capability goes however, it'd be about the same as it chiefly relies on your connection; HTTP requests by and large are all handled the same way.
     
  7. Unread #4 - Jan 2, 2014 at 6:11 PM
  8. D3xus
    Joined:
    Aug 19, 2013
    Posts:
    46
    Referrals:
    0
    Sythe Gold:
    0

    D3xus Member

    C Runescape name checker

    Should you use it over Java? (Sorry, didn't read that he made it for fun)
     
  9. Unread #5 - Jan 2, 2014 at 6:52 PM
  10. 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

    C Runescape name checker

    Depends on what you eventually want to do. Every programming language has its pros and cons (except for Visual Basic, which mostly just has cons) so it comes down eventually to the end application.

    For example, if you wanted to code a RuneScape bot that injects in to the game client itself, you would use Java because RuneScape itself is written in Java so you can do a bit of hackery bullshit done and you're all dandy (makes it sound easier than it is) whereas if you wanted programs with processing speed then I'd go with C, C++ etc. for sure.

    It also comes down to what you're comfortable using. Unless you're like me and have a shitload of time on your hands due to lack of any social life, it can be hard to learn to use other languages properly on a whim, so people just tend to stick to what they know best.
     
  11. Unread #6 - Jan 5, 2014 at 12:33 PM
  12. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    C Runescape name checker

    I hope you're referring to VB6 and not VB.NET.
     
  13. Unread #7 - Jan 6, 2014 at 10:54 PM
  14. Kimiko
    Joined:
    Nov 30, 2013
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0

    Kimiko Newcomer

    C Runescape name checker

    C would probably be your fastest option, unless you're doing assembly which isn't really necessary unless you're coding a boot loader.

    C is a machine level language, there is no run time interpretation happening. It assembles when it compiles.
     
  15. Unread #8 - Jan 6, 2014 at 10:57 PM
  16. Kimiko
    Joined:
    Nov 30, 2013
    Posts:
    15
    Referrals:
    0
    Sythe Gold:
    0

    Kimiko Newcomer

    C Runescape name checker

    I chose C because I worked a lot with hardware, kernel and embedded devices. I needed direct access to the machine without the high level of abstraction, and the virtual machine that Java is bound to.

    C is a great language if you want direct access to the memory, or the hardware. As for Runescape, since the game is written in Java, and you can run the game jar from memory, then you'd build your jar loader in java. It's similar to Run Portable Executable with a .exe file. Running a bin from memory, then using dynamic function calling to call the methods. This requires a bit of reverse engineering, both in bytecode and the assembly level.
     
< Holding Programming Lessons | >

Users viewing this thread
1 guest


 
 
Adblock breaks this site