• 0

    posted a message on Dealing with Points/Regions?

    So Points and regions don't use their name string to id themselves, instead they use Id's and their values are retrieved via PointFromId() functions. How can i deal with this? From within Galaxy. If i straight up hard code ether the ID's or the coordinates, it becomes increasing frusturating, making simple changes.

    Is there anyway to get around this?

    Posted in: Galaxy Scripting
  • 0

    posted a message on Should i be using StringExternal? Namespaces?
    Quote from xhatix: Go

    @UberJumper: Go

    StringExternal is awaiting a HexCode for parameters / variables, and cannot be defined

    and if player_race is a string it is better to use "Zerg" instead of trying to catch the correct StringExternal - as it is used for Text

    localization should be done pre every release version you push out

    libNtve_ or other prefixes is there because - if you use an external lib - you can have libExternal_IdoSomething() and in your code libInternal_IdoSomething()

    What is required to create your own lib, i noticed when including it as .galaxy. It does not get treated as a lib and instead just pollutes the importers namespace?

    Also is there a way to access any of the points stored in the editor from within galaxy code?

    Posted in: Galaxy Scripting
  • 0

    posted a message on Should i be using StringExternal? Namespaces?

    Hi, i am basically doing everything in pure galaxy since the GUI editor makes me want to kill something. Should i be using StringExternal? my understanding is that it handles and deals with localization.

    Does this mean do stuff like:

    string player_race = PlayerRace(1);
    
    if(player_race == "Zerg")
    {
    
    }
    

    I should actually be doing:

    string player_race = PlayerRace(1);
    if(player_race == StringExternal("something"))
    {
    
    }
    

    If so how can i find the something? Otherwise when exactly should i be using the localizations?

    When working with multiple galaxy files, i keep running into a few little issues with functions being declared with the same name. However i noticed that, for some nativeLib actions you need to prefix the function with libNtve_? E.g. libNtve_gf_CreateUnitsWithDefaultFacing. Why is this :(?

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.