• 0

    posted a message on Library Import Trouble

    I made a custom library use a random hex shared key, and it works fine in the map I wrote it in. But, when I import it into a new map, the key isn't used, and the prefix for internal code becomes lib1 instead. This causes compile errors because I wrote galaxy code using the prefix I thought would stay with the library..

    What's up?

    Edit: Just to be clear I'm not asking how to make it work (manually change the ID), but rather why it's doing this. I know this isn't the proper behaviour for these..

    Posted in: Miscellaneous Development
  • 0

    posted a message on Skybox Info

    Bump :)

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Contest] Cut Scene

    Here's mine. It's very simple but hopefully neat looking (I threw it together earlier today).

    Youtube (might still be processing, took forever to upload :P):

    Embed Removed: https://www.youtube.com/v/g3MhfyBhwY0?fs=1
    Posted in: Project Workplace
  • 0

    posted a message on Behavior to set Animation Speed

    Is there such a thing? I created a behavior that changed Time Scale, but that ended up slowing the unit down as well, and I couldn't find just Animation Time Scale. I also tried doing it through triggers to no avail.

    Thanks.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Skybox Info

    @Kanaru: Go

    Thanks for pointing the hotkey out, and as for rebinding the control....duh..can't believe I didn't think of that :P

    Posted in: Miscellaneous Development
  • 0

    posted a message on Custom Events?

    I wouldn't mind keeping track of the triggers myself...I just figured since they put it in the GUI it would actually work. I really liked the idea of letting users of a custom lib register for an event directly into the GUI, as opposed to some action TriggerAddEventMyEvent(a trigger, ....).

    Posted in: Miscellaneous Development
  • 0

    posted a message on Custom Events?

    Bump :)

    Posted in: Miscellaneous Development
  • 0

    posted a message on Skybox Info

    Bump :)

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Make a dialog for race/class selection.

    @xhatix: Go

    It seems that the default return value for EventPlayer() ("Triggering Player" in GUI) is 1, which is what allows this to work in single player. I bet this would break if used in multiplayer (it would only register the event for Player 1). Triggering Player in the Event should be changed to Any Player.

    Posted in: Tutorials
  • 0

    posted a message on Custom Events?

    So what's up with the GUI custom events? How do I get one to work? I started making one thinking I'd figure it out as I go, but it looks like they're not in a working state. If you add a custom event to a trigger and try to compile it errors because in the trigger initialization it attempts to call your custom event, passing the trigger as the first parameter, which isn't in the event function's argument list. Example:

    void gf_GameSomethingSpecialHappens () { // no argument list
    }
    
    bool gt_test_trigger_Func (bool testConds, bool runActions) {
        // Stuff
    }
    
    //--------------------------------------------------------------------------------------------------
    void gt_test_trigger_Init () {
        gt_test_trigger = TriggerCreate("gt_test_trigger_Func");
        gf_GameSomethingSpecialHappens(gt_test_trigger); // It's trying to pass the trigger, which would be useful if it compiled my function to accept one..
    }
    

    So am I missing something or do these just not work?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Find mouse X and Y?

    @CrashLemon: Go

    Do you mean without clicking it first? I don't think that's possible. But if you mean after a click just use

            Mouse X position clicked in the world <Real>
            Mouse Y position clicked in the world <Real>
    
    Posted in: Miscellaneous Development
  • 0

    posted a message on Importing/Exporting Libs

    I wrote a library for keyboard movement, and used a randomized hex ID. It worked fine in the map that I wrote it in. But, when I imported it into a new map the library seemed to "forget" it's ID, and because of this I got a ton of syntax errors where I used the hex ID prefix in my galaxy code, because the new prefix was just "Lib1". Also, I'm getting two random blocks of "parent" declarations that aren't in the original code (one appears in my trigger to capture a key press, one in the trigger to capture a key release. I have only one custom data type, a struct type "keyData".

    // obviously not valid, why did you put these in my map Blizz?
        parent autoAFC2F4F4_val;
        parent autoC04CC4D5_val;
        parent auto7684E6A1_val;
        parent autoFF23AE17_val;
        parent auto0BD3BE7B_val;
        parent auto61DC7007_val;
    

    Anyone know what's going on?

    Edit: I reimported the library and now the prefixes are correct, but I'm still getting those random blocks of code..

    Posted in: Miscellaneous Development
  • 0

    posted a message on Copy Terrain?

    Wow, thanks a lot. I tried selecting terrain and it said at the bottom (Selection: whatever x,y to whatever x,y) but when I tried to copy/paste it, it didn't work the first time so I gave up.

    Thanks again, this helps me out a ton!

    Edit: This even works across maps, and it will even copy a textured area into a map without that texture at all (shows in game too)! :O It looks like you can terrain an area in a separate map with whatever tiles you need, then copy paste it into a map with a completely different tileset..

    Edit 2: Nevermind, you can still only have 8 tiles in a map. It stops you from pasting or painting more tiles if you have more than 8 types. :(

    Posted in: Miscellaneous Development
  • 0

    posted a message on Copy Terrain?

    Is there any way to copy a section of terrain? I worked on a terrain section then realized later that I needed it on a different spot on the map.

    In other words, is there any way to avoid having to redo the whole section (besides just building around that spot instead)?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Skybox Info

    Sorry if I posted in the wrong section, still new to this site :)

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