Mon, Sep 6th 2010, 11:55 Sign Up Login Forgot Password
Armory Network: Starcraft 2 Armory Diablo 3 Armory
Page 1 - Jump to:
Galaxy Editor Code Examples

gearvOsh US

Administrator
Battlecruiser
6,197 posts

Pet 41,794
24,989

Character:
gearvOsh#896 (US)

Mar 13th, 12:36
So I have been browsing the Starcraft 2 MPQ files lately and found some examples of how the new editor programming code will look like. The new language is called "Galaxy" and all the files end in .galaxy. Below are some excerpts from the files I found.



From what I can tell, its syntax is very similar to C/Java/PHP. Furthermore, it looks to be a procedural language instead of object oriented (oh well!). I know this will excite some of you modders out there

Belphegor CS

Ghost
504 posts

Pet 974
648

Mar 13th, 13:22
Which reminds me. When are you going to add syntax highlighting to code segments?
I thought what I'd do was, I'd pretend I was one of those deaf-mutes. Or should I?

gearvOsh US

Administrator
Battlecruiser
6,197 posts

Pet 41,794
24,989

Character:
gearvOsh#896 (US)

Mar 13th, 13:33
Quote by Belphegor
Which reminds me. When are you going to add syntax highlighting to code segments?


Never. Galaxy isn't a real programming language, and I don't have time to build one.

lom109 US

Super Moderator
Immortal
1,801 posts

Pet 4,689
1,228

Mar 13th, 13:51
lol ... i'm sure there will be a trigger thingie gui for starters out ther

Moderator

THoR US

Siege Tank
952 posts

Pet 14,781
6,055

Mar 13th, 16:52
Reminds me of JASS, though I'm sure there are tons of other programming languages it is also similar to. Chances are I'll stick to the GUI.
on 13/5/10Quote by Genten
You could go for mass Void Rays(which are superpowerful, probably as powerful as an army of Void Rays.)
No way!

Todandict US

Hellion
779 posts

Pet 5,857
3,144

Character:
Todandict#907 (US)

Mar 13th, 19:36
Yeah, I'll probably end up using the GUI as well. A lot of this stuff is somewhat familiar to C++.
Challenge me whenever I'm online. Gold player.
Note: If I don't respond to you immediately, I'm probably alt-tabbed out, doing single player, or talking to somebody. I'll get to you soon as I'm able.

Brisingr852

Dark Templar
652 posts

Pet 6,710
4,551

Character:
Cuddles#553 (US)

Mar 13th, 19:42
wow. lol. i give up on modding already

Roland US

Phoenix
2,750 posts

Pet 40,414
32,107

Mar 13th, 19:51
Quote by lom109
lol ... i'm sure there will be a trigger thingie gui for starters out ther


I sure hope so, Blizzard mods have always been expansive, but very learn able if your willing. I'll be disappointed if you actually have to learn to write in code for this.
"You’re an idiot, babe
It’s a wonder that you still know how to breathe"

-Robert Zimmerman

Todandict US

Hellion
779 posts

Pet 5,857
3,144

Character:
Todandict#907 (US)

Mar 13th, 19:55
Quote by Roland
Quote by lom109
lol ... i'm sure there will be a trigger thingie gui for starters out ther


I sure hope so, Blizzard mods have always been expansive, but very learn able if your willing. I'll be disappointed if you actually have to learn to write in code for this.


Honestly, I doubt it will come to that. At least for people who like to create simple campaigns and all that.
Challenge me whenever I'm online. Gold player.
Note: If I don't respond to you immediately, I'm probably alt-tabbed out, doing single player, or talking to somebody. I'll get to you soon as I'm able.

Aurick US

Hellion
632 posts

Pet 1,692
231

Character:
Aurick#736 (US)

Mar 13th, 20:04
Yeah, I'm pretty sure they'll have a very intuitive GUI for putting together at least moderately well custom games.
Mayor of Awesometown

Deathleech US

Corruptor
3,016 posts

Pet 50,474
30,563

Mar 13th, 20:09
So gears, did you just create us a custom map? ;p

Acayex

Changeling
615 posts

Pet 14,619
9,552

Character:
Acayex#434 (US)

Mar 13th, 20:11
Reminds me of Java. But then again, I've only learned Java... Hope to learn C in the upcoming spring . I wonder if learning programming will allow me to make awesome maps, then use that as my homework lol

Zerg-Meat KR

Observer
925 posts

39,019
30,660

Mar 13th, 21:25
Oh man, i don't know a thing about coding. I never even learned it, but i really want to make my own maps. Is it hard to learn by yourself?

gwoodkid AU

Immortal
1,807 posts

Pet 11,841
10,691

Character:
GLeeary#386 (SEA)

Mar 13th, 21:55
Oh, great, pretty much like you are writing the code in Java or C/C++. Guess no need to use OOP in galaxy... We just need the API reference or some code snippets and I think we ready to go.

"I bring tidings of doom..."
SC2 ID: GLeeary.386

Mezzer US

Super Moderator
Warp Prism
1,140 posts

Pet 7,768
4,268

Mar 14th, 05:33
From the above bit of code you can't really tell anything about the language itself, except that its syntactically closest to C. And while you guys may be hoping for some well developed GUI for the editor, anybody who's ever done any real WC3 map making (for example) will be hoping that there isn't any GUI at all.

But as long as they give us the ability to somehow do whatever we want/need, it won't really matter what the language is like.