Galaxy Editor Pitfalls

Strilanc

Veteran Scripter
Reaction score
42
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
Reaction score
234
-There's two unit loops: For loop and Pick loop
-The unit Pick loop cannot be nested - don't use it.
 

SerraAvenger

Cuz I can
Reaction score
234
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)
 
Reaction score
54
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
Reaction score
73
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
Reaction score
5
- Custom script is a joke, it lags like a mofo
- Collapsed If/Then/Else will always be uncollapsed when you refresh the trigger
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
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
Reaction score
234
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
Reaction score
42
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
Reaction score
234
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.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top