Thread: [Help]Making launcher for game!

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    3

    Question [Help]Making launcher for game!

    Hello, I need help with making launcher for the game World of Warcraft. It must change the content of file "realmlist.wtf" which is in folder: ../Data/enUS(or enGB)/realmlist.wtf, and run the file wow.exe from the directory where is the application. I've tried much things and none of the worked, so please help me ^^

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    I would love to help you if you post your code and let us know the many things you have tried that did not work.

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    3
    Well.. I've tried with int but I never did made the realmlist change so I've made that code:
    Code:
    int realm()
    {
        const char *path="/data/enUS/realmlist.wtf";
        std::ofstream file(path);
        std::string data("set realmlist logon.lionfury-wow.com");
        file << data;
    }
    I have to make when someone press the button it load that int, but.. I don't know how

  4. #4
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Int is for numbers

  5. #5
    Registered User
    Join Date
    Sep 2012
    Posts
    3
    One other guy told me to write it like that

  6. #6
    Registered User
    Join Date
    Sep 2012
    Posts
    1
    Int function is for numbers. What value are you returning?

    Posting more codes would certainly help. Especially one that includes the function realm() being called.

  7. #7
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Quote Originally Posted by MoltenX View Post
    One other guy told me to write it like that
    Unless you are returning a numerical value (doubtful) the other guy was wrong. If you could just post the code in its entirety it would expedite our assistance.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Launcher/Updater
    By Busman in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 05-09-2012, 04:07 AM
  2. Launcher/Updater
    By Busman in forum Game Programming
    Replies: 0
    Last Post: 04-08-2012, 07:03 AM
  3. Should I use a game engine in making a RPG game?
    By m3rk in forum Game Programming
    Replies: 6
    Last Post: 01-26-2009, 04:58 AM
  4. Making a game
    By KneeGrow in forum Game Programming
    Replies: 1
    Last Post: 04-16-2004, 12:40 PM
  5. help with making a game
    By thatdude in forum C++ Programming
    Replies: 10
    Last Post: 12-19-2003, 06:10 AM