• 0

    posted a message on TD Map Reviews
    Quote from capnflummox: Go

    Dixel's TD [...] 8/10 - it's original, it's score based, it's "polished".

    Thank you! We're working on a patch to cheer up the terrain a bit, among other things .

    Posted in: Map Review
  • 0

    posted a message on Can Functions Return Arrays?
    Quote from SexLethal: Go

    @Kenterik: Go

    Since pointers were removed there is no elegant way to do this. The usual approach to returning dynamic objects is to create a global array (or in this case a 2 dimentional array) and associate an index with your object.

    For instance you could have the function RandPoint(int whichArray) and it would assign the 10 random points to an array RandPoints[<your points>][<which array>]. Make the second dimension large enough and reuse indices.

    May I ask why you put the <which array> in the second dimension here? My first intuition would be to use RandPoints[ArrayPointer][PointIndex] to store each point...

    Posted in: Triggers
  • 0

    posted a message on Dixel's TD
    Quote from Abion47: Go

    Ok, current version is good, barring any crap from battle.net or blizzard.

    Thank you, glad to hear it's working.

    Posted in: Map Feedback
  • 0

    posted a message on Dixel's TD

    So hey everyone, we've (Popobawa and me) just released our map on the EU servers.

    loadingscreen

    It's called Dixel's TD, and it's a TD where you have to maze, but the goal is to finish all 26 waves as fast as possible. The monsters do gradually get weaker, so the longer you wait before killing them, the easier it will be not to leak. If you leak a single monster, it's game over. If you build your maze all the way at the front, you will finish very quickly, but the monsters are very tough there. There is a consistent highscore table, so other players can see if you did well.

    screenshot

    I'm converting a movie, I'll upload and link it in this post tomorrow morning.

    Furthermore, we're looking for someone who would like to publish the map on the US servers every now and then. Maybe we can do a trade where we publish eachother's maps?

    Posted in: Map Feedback
  • 0

    posted a message on Unit Type Cost returning as 0?

    @RileyStarcraft: Go

    I tried using the catalog functions, and it took me a while to figure out how exactly to do it. It was an educational experience, but I imagine some people just want the answer right now.

    • Something I ran into was that the catalog wants a string as entry, but UnitGetType returns a UnitType. (Which is a string, but the GUI doesn't know).
    • Also, the fieldpath for Catalog is "CostResource[Minerals]", not "CostResource[0]".

    Anyway, for people looking for a quick fix:

    <>  CostOfUnit
        Return Type: int
        Parameters
            u = null <unit>
        Local Variables
            <> - c = 0 <int>
            <> - t = UnitGetType(lp_u) <string>
            <> - v = "" <string>
        Actions
            SetVariable(v, (CatalogFieldValueGet(c_gameCatalogUnit, t, "CostResource[Minerals]", c_playerAny)))
            SetVariable(c, (StringToInt(v)))
            Return(c)
    
    Posted in: Miscellaneous Development
  • 0

    posted a message on Problem: All names in triggers empty

    Thanks for the help, but it's not solved yet. :(
    In the MPQ editor, the pack looks like this now, but I still have no text in the editor.

    stillproblems

    Posted in: Miscellaneous Development
  • 0

    posted a message on Problem: All names in triggers empty

    That explains, a my friend has the EU version of the beta, I'm on the US version. So what you're saying is that I am missing a en.GB folder?

    Is there a way we can copy those text folders?

    And what do you mean by "inside your name" ?

    EDIT: By the way, things do work if I send a map to him (so sending from my US to his EU works).

    Posted in: Miscellaneous Development
  • 0

    posted a message on Problem: All names in triggers empty

    When I open a friend's map, the triggers look like this. Things work fine the other way around. What is either one of us doing wrong?

    The Problem

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.