Andromeda - a galaxy extension

Discussion in 'Starcraft 2 (SC2) Editor Help' started by gex, Apr 6, 2010.

  1. gex

    gex New Member

    Ratings:
    +6 / 0 / -0
    Do you work as software developer in a company? I guess not ;). (Also I don't but I made some internships): If you talk like that in a company you're fired immediately I guess ;).
    Code is always wrong at first. There is no genius that codes bugless code. Thus safety just speeds up the production of really bugless code since you can make less and only less serious bugs.
    You even do not need a typed language with this logic. Datatypes are just there to protect you from errors :D. So back to assembler ;).

    But enough of that, I know what you wanna say. And also I sometimes wanna do such hacks :). I wish we still had pointers...

    Your example does not work. Neither the first, nor the second. Since ++ uses java / C semantics. And those semantics say that the operand must be a correct LValue. Method invocations are no correct LValues, so you should get an error here.

    Be sure, my inlining will be that clever :).

    foreach syntax:
    This one. As it is java syntax.

    I am not quite sure how it will work. Probably with an Iterator. Your datastructure must provide a getIterator() method that returns and properly initializes an iterator (here, it should be set on your "first" element). The iterator has then the next and hasNext methods. The iterator will be deleted after the loop has finished.
     
  2. Nestharus

    Nestharus o-o

    Ratings:
    +83 / 0 / -0
    I added some other questions

    ?? Don't know what you are talking about here ; P.

    Let me remind you that a programming language is not equal to coding in that language.
     
  3. gex

    gex New Member

    Ratings:
    +6 / 0 / -0
    No such keyword is planned at the moment. Without vjass's macros it wasn't too useful. This is why it is not really in any other language.

    Writing to the this var: No, impossible and also useless. It is just a normal local variable. There is no useful scenario where you had to write to it, just use another local.

    If pointers get back, outs and refs will be no problem. Without, they won't get in (Damn you blizzard!).
    Delegates won't be in. At least not for a very long time.
    Same goes with operator overloading, despite the [] operator, since I will support array accessor methods that can use it. So you can make a class that can be used like an array.


    @production safety:
    If I allow to make own allocations it will reduce safety, in debug as in non-debug mode. Disallowing them would increase safety. That was all what I wanted to tell.
     
  4. Nestharus

    Nestharus o-o

    Ratings:
    +83 / 0 / -0
    array property? (something I've needed countless times)

    Code:
    int hi[int index, int index2] //n dimension array
    {
        get { }
        set { }
    }
    

    and
    I always figured the safety of a product was always up to the user, not the tool ; D. If the tool provides it, I've always seen it as optional (maybe debug mode vs production or maybe some flag).
     
  5. gex

    gex New Member

    Ratings:
    +6 / 0 / -0
    well that is something like an array accessor. So probably yes, for nice syntax reasons. But it is not necessary. Just a get and set method do the same.
     
  6. Nestharus

    Nestharus o-o

    Ratings:
    +83 / 0 / -0
    In that regard, all properties are just pretty syntax and not needed ; P, so I think you should 100% add it (not just a probably) regardless : D.


    and again


    was nice talking to you, but I need to get some sleep : D.
     
  7. SerraAvenger

    SerraAvenger Cuz I can

    Ratings:
    +236 / 0 / -0
    Like SC2 maps?

    As a matter of fact, I guess Java is so popular because... Well, it's taught everywhere. It's (relatively) fast. It has huge libraries backing it up. It has a wide variety of possible applications.
    And last but not least, it's just an Island.

    I personally am more on the golang and ruby side = )

    Oh and I don't believe Java guarantees bugfree code or even just less serious bugs. I believe, however, that it gives away a lot of power.
    Possibly the number of serious bugs will reduce for newby programmers doing non-newby stuff. But really... That's not their job.
    The question you must ask yourself is whom you want to target.
     
    • Like Like x 1
  8. rover2341

    rover2341 Is riding a roller coaster...Wee!

    Ratings:
    +114 / 0 / -0
    I cant seem to change the code, I found view script but wont let me add the include nothing saves. Can you explain how to do this step more detailed.

     
  9. Nestharus

    Nestharus o-o

    Ratings:
    +83 / 0 / -0
    I say target the pros : (, or you make us all sad. Beginners can just use your default stuff without overriding it. Pros can delve in and change w/e.

    Do the right thing or I shall cry : (

    Also you are only a beginner for so long ^>^


    Here's another question to ask yourself-
    Basic vs c++

    Obviously a bit of an extreme example, but I hope you can understand where I'm coming from.
     
  10. gex

    gex New Member

    Ratings:
    +6 / 0 / -0
    lets stop the java discussion here. I think everyone, including me sees the pros AND cons of a restrictive language.

    Andromeda will copy the syntax from JAVA, but this doesn't mean it will be as restrictive as java, since I myself also sometimes want full control over something. So believe me, I will give you (sooner or later) all control that is somehow useful.
     
  11. rover2341

    rover2341 Is riding a roller coaster...Wee!

    Ratings:
    +114 / 0 / -0
    A Demo Map Of a Hello World Would be Helpful.

    What I have Done
    1. Get Starcraft 2
    2. Download Andromeda
    3. Get Java
    4. Get NotePad++ (Optional)
    5. Get Extension for NotePad++(Optional)
    6. Found A Demo Map That allows you to use custom script and save it. (Element of Water Made)
    8. Create a .a Type File and Add to Map. (Thats The file attached)

    Where I Was Stuck
    Its Not 3.1 Or 3.2 Its 3.1 Or 3.1 + 3.2 to get 3.2 to work. In The Tutorial

    Where I Am Stuck
    Geting Any functions to run in the custom script section, Like say "Hello World".
     

    Attached Files:

  12. Nestharus

    Nestharus o-o

    Ratings:
    +83 / 0 / -0
    Will you be able to disable new/delete entirely as well as allocate/deallocate for a class?

    Sometimes there is absolutely no need for those ; D.


    I assume that they are automatically defined for classes if there are no constructors/destructors in it, so a user would have to make them private or w/e, which is a waste ; ).

    Eh... maybe structs should just be bare bones where people can code from scratch so other people can use andromeda syntax and classes should have all the extra cool andromeda stuff. I mean like structs can have the features of classes, but nothing is auto implemented and it all has to be done from scratch o-o. Like struct extends array vs struct in vJASS.

    Just a thought ; D.
     
  13. rover2341

    rover2341 Is riding a roller coaster...Wee!

    Ratings:
    +114 / 0 / -0
    I Figured It out.

    It wont let me, run it after the test, It says sc2Folder is not setup in the config.

    Shouldn't it be something like this. It doesn't like it.
    sc2Folder=C:/Program Files (x86)/StarCraft II Beta
     
  14. Vestras

    Vestras Retired

    Ratings:
    +249 / 0 / -0
    Try with C:\Program Files (x86)\StarCraft II Beta
     
    • Like Like x 1
  15. rover2341

    rover2341 Is riding a roller coaster...Wee!

    Ratings:
    +114 / 0 / -0
    :)
     
  16. SerraAvenger

    SerraAvenger Cuz I can

    Ratings:
    +236 / 0 / -0
    gex, may I see your grammar? Guess it's JavaCC
    Currently working on a galaxy -> GUI compiler based on yacc. Have a first grammar done, but didn't try it out yet. I did it in 30 minutes so I think I did something wrong somewhere^^
     

Share This Page