MAC 1v1 Random Autolauncher

Started by etherealG, June 18, 2010, 08:04:00 PM

Previous topic - Next topic

etherealG

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

TheMarshma

Hopefully I'm doing this right.


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

Rdx

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

TheMarshma

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

etherealG

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.

etherealG

#20
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

etherealG

argh, nm this one, the map is broken!

etherealG

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

Eth

Rdx

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?

etherealG

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 :)

nonamejack

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.

etherealG

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?

Rdx

sc2 is installed in the right place for me.

etherealG

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

nonamejack

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.