Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: MOHAA Launcher

  1. #1

    Question MOHAA Launcher

    Hello, Urban Terror have now a launcher. Can launch UT from the web server list !

    http://www.urbanterror.info/news/348...rror-launcher/
    http://www.urbanterror.info/servers/list/

    It's wonderful !

    UT is more or less the same than MOHAA, can it is possible to modify the launcher for MOHAA or made a specific launcher for MOHAA?

    It can be very useful.
    "La merde a de l'avenir. Vous verrez qu'un jour on en fera des discours."
    Louis Ferdinant Céline

  2. #2
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Not a bad suggestion. I'll look into this. Thanks for sharing.

  3. #3
    Administrator JoTo's Avatar
    Join Date
    May 2010
    Location
    www.scapp.net
    Posts
    1,953

    Default

    Macadoum are you using that then? I mean many are using the mohaa's inbuild server browser or are anyway running a tool like XFire, so I mean thats working for the users now, what would be the advantage of a webbased moh launcher ?

  4. #4
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    its not hard I made one years ago, a few have been done, but I don't think they are that useful tbh :S

  5. #5

    Default

    It's very useful for me, more quick than go in the game, click on several buttons and can't class server easily...
    Elgan, what have you do exactly ?
    "La merde a de l'avenir. Vous verrez qu'un jour on en fera des discours."
    Louis Ferdinant Céline

  6. #6
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    well I'm not sure how that site works but several options are available

    ms activex's, browser plugins etc,

  7. #7

    Default

    Reg, replace Drive:\\Path\\ by your mohaa's path
    for example D:\\MOHAA\\mohaa.exe, 2 backslash must be used
    Code:
    REGEDIT 4
    
    [HKEY_CLASSES_ROOT\moh]
    "URL Protocol"=""
    @="URL:UrlLancher Protocol Handler"
    "DefaultIcon"="\"Drive:\\Path\\mohaa.exe,1\""
    
    [HKEY_CLASSES_ROOT\moh\shell]
    
    [HKEY_CLASSES_ROOT\moh\shell\open]
    
    [HKEY_CLASSES_ROOT\moh\shell\open\command]
    @="\"Drive:\\Path\\mohaa.bat\" %1"

    Batch, name it to mohaa.bat and place it in the mohaa directory
    Code:
    %~d0
    cd %~dp0
    set split=%1
    mohaa.exe +connect %split:~6,-1%
    i don't know if it works for you guys, for me it's fine

  8. #8
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Damn, nice I missed this post, but that's super helpful.

    Leyok, so how would this be used in a php\html form? I'm thinking of taking all user servers posted on this forum and maybe creating a little server status page where people can check live stats from the server and connect to it from this site. I think that would be useful.

    I can whip up a exe file really quickly to execute the above registry settings as you mentioned to "register" the games directory and then they should be able to connect through here. Or atleast I think that would be a nifty feature.

    EDIT:
    Code:
    %~d0cd %~dp0set split=%1mohaa.exe +connect %split:~6,-1%
    I'm going to feel stupid here, but can you explain how your batch script works? I'm fairly knowledgeable with batch scripting, and use it at work, but I don't know what exactly you're doing. The last line is the only one that makes sense to me. I understand split is just a variable you're setting, but to make it less confusing I would personally probably use the variable ipaddress to connect to.

  9. #9

    Default

    in batch there are specials arguments (I don't know all of them), the %~d0 retrieves the drive where the batch resides, and %~p0 retrieve the path of the batch (without the drive), if you combine %~dp0, it will be the drive and the path for the batch. you can find specials arguments here

    the %1, %2, etc... are arguments specified as a parameter when you execute the batch file, for example batch.bat test1 test2, %1 is test1, and %2 is test2

    in html/php, you change http:// to moh://, like <a href="moh://192.168.1.1/" target="_blank">

  10. #10
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    oh wow. Thanks for the explanation. I will try and put something together when I get some time. Thanks!

Posting Permissions

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