Staredit Network > Forums > SC1 Mapping Tools > Topic: Tool to launch Starcraft with a map from command line
Tool to launch Starcraft with a map from command line
May 11 2019, 4:56 pm
By: sethmachine  

May 11 2019, 4:56 pm sethmachine Post #1



Hi,

I am looking for a way to launch Starcraft with a path to a .scm/.scx file, so that Starcraft will just load up this file and play it immediately rather than going through the start screen or map selection menu, etc.

E.g. something like: "$ starcraft.exe --map Hunters.scm --windowed=True" would launch a Starcraft process that immediately plays the Hunters.scm map in windowed mode.

This exists for Warcraft 3, so there's a good chance it's possible with Starcraft.

See this example for Warcraft 3: https://github.com/sethmachine/pyw3x/blob/master/pyw3x/wc3_runner.py

Warcraft 3 executable actually accepts CLI arguments (so no modded executable) and loads a map using the -loadfile parameter.



None.

May 12 2019, 11:02 pm O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

I don't know if loading a specific map is fully functional yet, but this may be useful:
http://www.staredit.net/topic/16489/



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

May 13 2019, 12:31 am jjf28 Post #3

Cartography Artisan

I never wrote the run map portion; I have 1.16.1 code to launch StarCraft, run a map, then kill the program entirely and repeat... but I never mapped out hiscore/create game screens and such.

I could write some code to terminate StarCraft if running and run a map automatically from there in a few hours, if that sounds useful to you.



Rs_yes-im4real - Clan Aura - jjf28.net84.net

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:37 pm]
Ultraviolet -- MTiger156
MTiger156 shouted: I'd like to think that Jeff Kaplan will eventually try to overthrow J Allen Brack. Given that he is Vice President with loads of charisma and popularity, he has way more power than he imagines. Blizz and Activision wouldn't even be able to fire Jeff, cuz they NEED him badly.
Everyone is expendable. The machine will continue running either way. Learned that a long time ago in the restaurants, I imagine it applies to these other companies, too. There's always someone willing to take your job
[07:27 pm]
Roy -- NudeRaider
NudeRaider shouted: Roy doesn't sound like a very time intensive thing to do, Roy.
I'll see if I can work it into my schedule.
[02:42 pm]
NudeRaider -- Roy
Roy shouted: I really need to put disclaimers on that guide, since it was written long before SC:R was a thing.
doesn't sound like a very time intensive thing to do, Roy.
[01:45 pm]
MTiger156 -- I'd like to think that Jeff Kaplan will eventually try to overthrow J Allen Brack. Given that he is Vice President with loads of charisma and popularity, he has way more power than he imagines. Blizz and Activision wouldn't even be able to fire Jeff, cuz they NEED him badly.
[10:13 am]
Roy -- I really need to put disclaimers on that guide, since it was written long before SC:R was a thing.
[06:24 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: Blizzard's been so dickish lately :(
lately? They've been transforming from a passionate game studio to a major corporation that only considers business decisions like a decade ago. And they were only lucky that their business interests didn't conflict with the gamer's interests before. Merging with Activision didn't help in that regard.
[04:20 am]
Ultraviolet -- Activision, rather
[04:19 am]
Ultraviolet -- Blizzard's been so dickish lately :(
[03:36 am]
youarenotworthy -- Thanks.
[03:28 am]
O)FaRTy1billion[MM] -- most common addresses have already been found and are supported, the only exception is things relating to graphics because SC:R has different (and incompatible) handling of sprites and graphics
Please log in to shout.


Members Online: Roy, jjf28