DarkBlizz

Game On => STARCRAFT II: WINGS OF LIBERTY => SC2 Tools => Topic started by: etherealG on June 18, 2010, 08:04:00 PM

Title: MAC 1v1 Random Autolauncher
Post by: etherealG on June 18, 2010, 08:04:00 PM
Hi Mac users.

Download link: http://www.mediafire.com/?yddvwwm3t5d (http://www.mediafire.com/?yddvwwm3t5d)

This is a little compilation I put together that will launch a 1v1 vs AI with a random map and random races for you and the AI. It's intended as a basic launcher for practice at 1v1 while we wait for beta phase 2.

I'm working on a selectable map/race/AI launcher like the windows ones, but until then this is just a quick start.

Please note: it has the AI and maps embedded, so it will work out the box, no other downloads needed. Also, it doesn't modify your SC2 Beta install at all. If you have OSX 10.5 (Leopard) or lower then you won't be able to use this, however you can download it and use the maps from inside the app with Mapcraft. Post a reply here if you need more guidance on how to do that.

The included AI: GreenTeaAI 0.49d.

Included maps: Blistering Sands, Desert Oasis, Lost Temple, Metalopolis, Steppes of War. I don't mind adding other maps on request :)

Credits: Thanks to ptanhkhoa and darka for such a great AI, it's really hard and fun for practice. Also a big thanks to Vernam7, without him I wouldn't have figured out how to make this app.

Cheers
etherealG
Title: Re: MAC 1v1 Random Autolauncher
Post by: wren on June 19, 2010, 02:48:07 PM
Hi,
Thanks a ton for making this app!
I encountered an error when I tried to run it: "Map could not be loaded."  On my second try it worked.  Seems like some maps might not be fully functional.

Thanks again for letting mac users play during down time!  Looking forward to the next version.

cheers!
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 20, 2010, 05:22:59 AM
thanks for the update, I'll try see if I can spot the problem. was the error from inside starcraft or before it launched?
Title: Re: MAC 1v1 Random Autolauncher
Post by: Rdx on June 23, 2010, 04:26:29 PM
Thanks for making this, but is it only for 10.6? I have 10.5 and when I unzip it and try to open the application a window pops up that says the application is not compatible with my version of Mac OS X, even though the info window says its an Intel app
Title: Re: MAC 1v1 Random Autolauncher
Post by: Vernam7 on June 23, 2010, 05:59:50 PM
 :thumbsup: you are welcome hehe


why dont you put and a screenshot to see what you are doing? 8)


goodluck with the selected race color etc in the future



Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 24, 2010, 07:23:34 PM
Quote from: Rdx on June 23, 2010, 04:26:29 PM
Thanks for making this, but is it only for 10.6? I have 10.5 and when I unzip it and try to open the application a window pops up that says the application is not compatible with my version of Mac OS X, even though the info window says its an Intel app

sorry to hear that, I'll try do my next build with a more compatible compile mode. I'm pretty sure the application *should* work in older mac versions since the code is extremely simple. I'll see what I can do. At the moment new AI's from green/dark tea are coming out almost every day, so rebuilding this just isn't practical. I'm having trouble getting the library for editing map files to work on mac too, so I can't get it to work without premaking the maps, which take aaages. Ah well, hopefully I'll get some time to fix it, or some more help from Vernam :)
Title: Re: MAC 1v1 Random Autolauncher
Post by: rebus on June 25, 2010, 04:16:46 AM
Thanks again for the work you put into this. I tried running it in 10.6.3 and 10.6.4 without success. My file/folder paths seem to be fine... any ideas? I keep getting the message "You can't open this application because it's not supported on this type of Mac."
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 25, 2010, 04:19:31 AM
Quote from: rebus on June 25, 2010, 04:16:46 AM
Thanks again for the work you put into this. I tried running it in 10.6.3 and 10.6.4 without success. My file/folder paths seem to be fine... any ideas? I keep getting the message "You can't open this application because it's not supported on this type of Mac."

I got the same error from another friend trying to use it, looks like it's compiled for 64bit only at the moment. I'm going to try recompile it this evening for 32 and 64 bit, with the new green+darktea AI and also for 10.5 and 10.6, hopefully that will cover everyone. I'll post here as soon as it's done :)
Title: Re: MAC 1v1 Random Autolauncher
Post by: rebus on June 25, 2010, 06:01:23 AM
Ah, that makes sense! Thanks for such a quick reply!
Title: Re: MAC 1v1 Random Autolauncher
Post by: Rdx on June 25, 2010, 04:14:13 PM
awesome! looking forward to finally being able to play sc2 :)
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 25, 2010, 04:36:49 PM
Hey Guys

This is a quick test release. Only 1 map, Metalopolis. I wanted to test the 10.5 and 32bit issues. Please give this a try and let me know if it works ok and I'll add in the rest of the maps.

This one has the new GreenTea 0.49 AI embedded.

http://www.mediafire.com/download.php?mm4t1nkminz (http://www.mediafire.com/download.php?mm4t1nkminz)

Cheers
Eth
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 25, 2010, 04:41:57 PM
Quote from: Vernam7 on June 23, 2010, 05:59:50 PM
why dont you put and a screenshot to see what you are doing?

Hey Vernam, can't do any screenshots for now cause it's an autolauncher. It just picks a random map and starts SC2 so there's nothing to screenshot :)
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 25, 2010, 06:01:45 PM
ok, ignore that last one, it's broken! damnit :P this one should work now. still only 1 map, want to test it on 10.5 and 10.6 also on 32bit if possible. Let me know how you guys do please.

http://www.mediafire.com/?mjmy02nmnz1 (http://www.mediafire.com/?mjmy02nmnz1)
Title: Re: MAC 1v1 Random Autolauncher
Post by: Vernam7 on June 25, 2010, 06:07:37 PM
why do you double compile it? x86 should be your only compile output because all x64 OS are fully compatible to x86 applications! at least windows are :P


i would be socked if Mac is that stupid to force people to use ALL x64 software in a x64 OS! :tease:

Title: Re: MAC 1v1 Random Autolauncher
Post by: jcoleman on June 25, 2010, 06:25:55 PM
Quoteok, ignore that last one, it's broken! damnit (http://darkblizz.org/Forum2/Smileys/DarkB/tongue.gif) this one should work now. still only 1 map, want to test it on 10.5 and 10.6 also on 32bit if possible. Let me know how you guys do please.
Runs great on 10.6.3, 27" iMac i7 (64-bit).  Looking forward to the selection of maps and AI difficulty...of course beta restarts soon... :)
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 25, 2010, 06:37:11 PM
Quote from: Vernam7 on June 25, 2010, 06:07:37 PM
why do you double compile it? x86 should be your only compile output because all x64 OS are fully compatible to x86 applications! at least windows are :P


i would be socked if Mac is that stupid to force people to use ALL x64 software in a x64 OS! :tease:

it's only a flag to the compiler, not a big deal to double compile at all really. same as just picking 1 target. only stupid thing is that 64bit only is the default, so I didn't realise till those people mentioned it :)

Looks like it's working ok now though, and omg, the new version of greantea is sooo hard, even with zerg now. I lost twice against zerg just now, I feel lame :P
Title: Re: MAC 1v1 Random Autolauncher
Post by: TheMarshma on June 25, 2010, 06:55:54 PM
Hopefully I'm doing this right.


http://imgur.com/63SUC (http://imgur.com/63SUC)


this is how I did it for my friends 10.6(with the first app you made where it was random vs random) and it worked.




So I put it in the same place for my 10.5.8 but no luck, the window opens like this for a split second. but the game doesn't launch.  If you need any more info that might help just let me know, and thanks, it really was awesome for my friends computer. super fun.


http://imgur.com/Xduzz (http://imgur.com/Xduzz)
Title: Re: MAC 1v1 Random Autolauncher
Post by: Rdx on June 25, 2010, 08:15:27 PM
i like the background pic marshma :P

the same thing happens to me, the app opens for a moment then closes regardless of where i place the launcher
Title: Re: MAC 1v1 Random Autolauncher
Post by: TheMarshma on June 25, 2010, 10:48:00 PM
Quote from: Rdx on June 25, 2010, 08:15:27 PM
i like the background pic marshma :P

the same thing happens to me, the app opens for a moment then closes regardless of where i place the launcher


I'm a sucker for Natalie Portman  =D
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 26, 2010, 03:25:26 AM
Thanks for the help testing guys, I think the 10.5 build isn't quite working right :( I'll hack at it some more and try to get it working for you. I'm afraid my knowledge of mac dev is like almost nothing so I'll keep trying.
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 26, 2010, 04:30:38 AM
new build that should work on 10.5 too. Also included the 0.49 fix for greentea. anyone know how to beat this AI, cause I keep getting wasted :P

Only the Steppes of War map this time, if the 10.5 works I'll add all the other maps to this version.

http://www.mediafire.com/?tm4ygnzwmz3 (http://www.mediafire.com/?tm4ygnzwmz3)
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 26, 2010, 04:37:25 AM
argh, nm this one, the map is broken!
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 26, 2010, 06:53:16 AM
Hey guys

Figured out the trouble with the map is a bug in the Latest GreenTeaAI, so I'm back to 0.49. This version works on my macbook pro 10.6 64bit, please can everyone test it out for 10.5 and 32bit, I think it should be working now :)

http://www.mediafire.com/?muwlwmnlm2j (http://www.mediafire.com/?muwlwmnlm2j)

Eth
Title: Re: MAC 1v1 Random Autolauncher
Post by: Rdx on June 26, 2010, 04:58:05 PM
same thing happens as before, the app opens and closes without doing anything. do i have to put the ai launcher anywhere in particular for it to work?
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 27, 2010, 06:46:55 AM
It shouldn't matter where the app is, but where your starcraft 2 is does matter. I couldn't find a way to detect where starcraft is installed, so I just use the default path. That means it needs to be in /Applications/Starcraft II Beta. My launcher can be anywhere else.

I can't think of any other reason it would break, but let me know if it is installed in the same path and I'll keep digging for you :)
Title: Re: MAC 1v1 Random Autolauncher
Post by: nonamejack on June 28, 2010, 10:56:49 AM
Still have the same issue as before. It opens briefly and then closes. Does it matter where the starcraft maps are located? Thanks for all the work you have put in on this.
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 28, 2010, 11:01:51 AM
the maps are all embedded in the app, so no, you shouldn't need to have the maps in any specific place. I've had a friend test 10.6 with a 32bit processor, which was fine, so we've got half the problems covered. I think it's either the starcraft 2 path that's breaking, or the 10.5 API not working right.

nonamejack, is your sc2 beta install in the /Applications/Starcraft II Beta folder?
Title: Re: MAC 1v1 Random Autolauncher
Post by: Rdx on June 28, 2010, 02:18:04 PM
sc2 is installed in the right place for me.
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 28, 2010, 04:30:07 PM
Quote from: Rdx on June 28, 2010, 02:18:04 PM
sc2 is installed in the right place for me.

Cheers Rdx, that's pretty definite that the problem is 10.5. I'll have to try figure out which part of my code isn't 10.5 compatible. Not too sure how though :( Ah well.

In the meantime, if you'd like to at least be able to play, here's how you can:

Download my .app, in finder right click it and click on show package contents. Inside you'll find resources and in that you'll find the map files. You can use this map file right from there, or you can copy it out to somewhere easier to type in to terminal. To launch that map in sc2 open terminal and type this in:

/usr/bin/open /Applications/StarCraft\ II\ Beta/StarCraft\ II.app --args -run /Applications/Starcraft\ 2\ AI\ Launcher.app/Contents/Resources/Scrap\ Station.s2ma

That last part is the path to the map file, if you want you can copy the map to somewhere easier and then use that path. This method should work irrelevant of which version of OSX you're on. Hope that helps :)

If you guys want I can explain how to make map files with AI embedded so you can play any AI you want, or update with the newer versions. Most of the info I found here in various places, but I don't mind doing a guide if there's interest.

Laters
Eth
Title: Re: MAC 1v1 Random Autolauncher
Post by: nonamejack on June 28, 2010, 09:56:02 PM
After attempting to follow your last instruction with the terminal and failing, I was was able to use your map with the MapCraft app and load starcraft 2 succesfully. I've played a few maps and its seems to work fine. Don't know if that helps you diagnose the issue at all but thought I would let yall know.
Title: Re: MAC 1v1 Random Autolauncher
Post by: Rdx on June 29, 2010, 02:01:19 AM
when i try to use the terminal command it returns that '--args' is an unrecognized option
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on June 29, 2010, 03:26:03 AM
I forgot, mapcraft does exactly this without the need for terminal and all that complicated stuff :) I'd suggest if you're on 10.5 then just open up the .app file to find the maps, and then use mapcraft to load them up.

You can find mapcraft at http://www.sc2mapster.com/assets/mapcraft/ (http://www.sc2mapster.com/assets/mapcraft/)
Title: Re: MAC 1v1 Random Autolauncher
Post by: Rdx on July 02, 2010, 01:42:46 AM
cool, works perfectly.  too bad i get spanked by the ai haha
Title: Re: MAC 1v1 Random Autolauncher
Post by: darksub on July 02, 2010, 01:55:14 PM
is there any map with an ai that works with a non patch version, i just download the 2.9gb version, i can start mapcraft, but enems online gather resources...
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on July 02, 2010, 05:14:19 PM
you can patch the version you have manually, check around on these forums, there's a few guides how to :)
Title: Re: MAC 1v1 Random Autolauncher
Post by: darksub on July 02, 2010, 09:28:59 PM
im looking for the patchs, i couldnt find them, bllizard took them out, if you now where i can find them please let me now
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on July 03, 2010, 04:46:42 PM
saw in the other thread you found the maps, nice. here's a new version with darkgreentea 0.49d and 5 of the usual tournament 1v1 maps, enjoy:

http://www.mediafire.com/?yddvwwm3t5d (http://www.mediafire.com/?yddvwwm3t5d)
Title: Re: MAC 1v1 Random Autolauncher
Post by: darksub on July 03, 2010, 10:55:21 PM
i ended deleting all, patches mees thins up, im going to wait until beta comes back up
Title: Re: MAC 1v1 Random Autolauncher
Post by: grgasca on July 05, 2010, 08:33:54 PM
been looking for something like this for ages the mapcraft one does not work for me, this one is working just fine, thanks a lot!!!!!!!! you rock!!!!
Title: Re: MAC 1v1 Random Autolauncher
Post by: etherealG on July 06, 2010, 03:20:59 AM
no problem :) hope you enjoy it. I'll keep doing updated releases till the beta phase 2 comes out. hopefully that'll be this week though!
Title: Re: MAC 1v1 Random Autolauncher
Post by: kfqzhw on July 08, 2010, 06:36:27 PM
I can't visit mediafire,can you add Download Mirrors? thanks!