Galaxy Editor Pitfalls

Strilanc

Veteran Scripter
Learning to use a new editor is an exercise in frustration and discovery. I figured we should make a list of "gotchas" that new editors might also run into.

I'll start. Post your own below and I'll include the good ones in the main post.

- Unlike WC3 and SC1, start locations are not a unit. You create start locations using the Point layer and assign them under Player Properties. This actually makes a lot of sense, when you think about it.
- Units don't have an actor property, it's the other way around. That's why duplicating a unit without duplicating its actor causes it to have no graphics (the actor points to only the old unit).
- A unit's cost (time/minerals/etc) is not specified in the unit data, but in the training ability data. For example, the SCV cost is specified in the command center's Train ability.
- Maps start with a relatively thick border which is out of bounds. So if you make a really small map you won't be able to place any units unless you modify the bounds.
- If a unit has a behavior with 0 points it will fail the "has behavior" condition, which would be alright except that 0 points is the default. Increase behaviors' min point value past 0 to workaround the issue.
- The "pick each" loops seem more convenient, because you don't have to introduce a local variable, but they can't be nested. Don't use them, unless you like surprise errors when calling functions that happen to use the same loop.
- If you duplicate a unit (and its actor) your unit shows up as a red sphere, because the actor's model paths are updated to include the new unit's id (and no such models exist). Set the paths back to see the original unit.
 

SerraAvenger

Cuz I can
Never had problems with them myself. Seems that wingdnosring had, though =D
EDIT:
-Checking the "custom script" flag for a function converts it to the "customscriptaction", rather than making galaxy available.
-There is two GUI function types: "function" and "action"
-The GUI "function" cannot use custom script. (only as a customscriptaction)
 

Ancanus

[ancanus@TheHelper.net]# _
I believe he means the .exe process is still running on the task manager, even though there is no active editor windows on his taskbar.

@Black.sheep, this only occurs to me whenever I have any of the terrain, data, or the trigger modules open. As soon as you close all of these, the process exits.
 

D.V.D

Make a wish
Pitch yes, roll no. Roll you had to make units face custom models with a specif roll and to get all possible rolls, u would need 360 animations of that unit each with a different roll or 360 units each with a different roll.
 

overload119

New Member
- Custom script is a joke, it lags like a mofo
- Collapsed If/Then/Else will always be uncollapsed when you refresh the trigger
 

Ancanus

[ancanus@TheHelper.net]# _
- Lack of Documentation. Fix this, and we will come up with workarounds for all the previously mentioned.
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
There is two GUI function types: "function" and "action"
I fail to understand how this is a pitfall. Functions must return a value and actions do not; however, an action definition is the same as a function of type action. A function of type action CAN return a value if you would like it to, though. Functions are undoubtedly what they started with, and gave them the capabilities of being "functions" "actions" "condition" and "events"... but then they split actions and conditions off for us to use and have a different picture. I think of that as convenience.

Feel free to explain. :) I don't understand what you mean...
 

SerraAvenger

Cuz I can
I fail to understand how this is a pitfall.
Because a) both get compiled the very same way (not considering custom script) and b) both are callable from any place using customscript and c) there is no such difference in galaxy and d) it is just counter intuitive.

Pitfall = unexpected behaviour, not "bad behaviour" or "limitation".

If I create a function and give it a return type, I expect it to be callable from any place where it would be semantically appropriate. This is not the case, so it is a pitfall.
 

Strilanc

Veteran Scripter
I'm not sure if I agree with the function/action distinction being a pitfall. One returns a value and the other doesn't. It's a reasonable place to draw a line.
 

SerraAvenger

Cuz I can
I'm not sure if I agree with the function/action distinction being a pitfall. One returns a value and the other doesn't. It's a reasonable place to draw a line.
According to Dan: "A function of type action CAN return a value if you would like it to"

I still stand my point. You decide what goes in, though. I have nothing to add to my argumentation right now.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Test!
  • tom_mai78101 tom_mai78101:
    I must be in a test server.
  • tom_mai78101 tom_mai78101:
    Nice, Twitter tweets embedding now works
  • Wizard Wizard:
    Yup.
  • Ghan Ghan:
    Excellent.
  • Ghan Ghan:
    @tom_mai78101 Hello there.
  • Ghan Ghan:
    Tagging works in the chat too.
  • tom_mai78101 tom_mai78101:
    @Ghan Missed it.
  • Wizard Wizard:
    Still fixing things here and there. Added widgets to the portal, will make it match the ones here on the forum index tomorrow.
  • Ghan Ghan:
    The venerable World Editor Tutorials site has been converted to HTTPS at last.
  • jonas jonas:
    cool
  • jonas jonas:
    and I can even edit my messages, nice
  • seph ir oth seph ir oth:
    GENERAL CHIT CHAT, YOU ARE A BOLD ONE
  • Ghan Ghan:
    Hello there
  • The Helper The Helper:
    this new chatbox is great and the forum software update is great too
    +1
  • The Helper The Helper:
    upgrade has fixed forum registration spam problem
  • tom_mai78101 tom_mai78101:
    Something tells me we might be able to customize the chatbox a bit, considering that there's a gap under every message.
  • Wizard Wizard:
    Going to deploy a fix soon, just had to take some time for myself this weekend.
  • Varine Varine:
    Unbelievable. Time for yourself? How dare you!
  • Wizard Wizard:
    xD
  • tom_mai78101 tom_mai78101:
    Hm, it is now harder to type anything on an Android phone. Pressing Backspace or Enter keys will dismiss the Android keyboard for some reasons.
  • tom_mai78101 tom_mai78101:
    Just noticed there's a delay of at least 2 minutes before each post. Guess I can't post Headline News quickly as I used to.
  • tom_mai78101 tom_mai78101:
    As far as I can tell, there are definitely things I need to get accustomed to first.
  • Varine Varine:
    FCC is cracking down recently

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top