• 0

    posted a message on Broken Bank Saving

    That wasn't all that was wrong.

    Apparently you cannot open banks using loops, and that's exactly what I was doing. It's working now, but my time value is still saving a bit odd, I'll figure it out.

    Edit: That issue was based on the calculation considering match time, instead of match time + career time added.

    Thanks for the help guys!

    Posted in: Triggers
  • 0

    posted a message on WC3 Models Hype!

    Hm.. I was thinking about a community project doing such a thing, but blizzard doing it officially... that's amazing.

    Posted in: Warcraft Modding
  • 0

    posted a message on Broken Bank Saving

    I tried setting bank to a variable, but it didn't help anything.

    The compile timer = 10 updates the stat board once at the beginning, and once the timer is = to 0, then it compiles the current round onto the career stats and shows them.

    Posted in: Triggers
  • 0

    posted a message on Broken Bank Saving

    So... I changed the location of the verification, but it didn't help.

    I am Pre-loading the bank for each player during initialization...

    Do banks not work in offline testing?

    Am I using the keys and sections correctly?

    Thanks

    Posted in: Triggers
  • 0

    posted a message on Extracting starcraft 2 models (m3)

    For future reference,

    The blender plugin is here. https://github.com/stante/blendm3

    I'm still having issues with importing .M3's into 3ds Max... Keep getting invalid position and other errors? Is there a more recent version of the plugin? I really need to be able to get at the animations of models.

    I don't think the blender one supports animations.

    Posted in: Artist Tavern
  • 0

    posted a message on Broken Bank Saving

    So I am using the following code to open my banks, process, and save new ones.

    Basically it takes the stats from the current game and adds them to the previous matches, giving you a career total.

    I've never set up banks before, so what am I doing wrong?

    I believe I had a problem pertaining to using sections as keys, but i swapped them and it didn't help..

    Thanks

    Statistics Compile
        Events
        Local Variables
            Careerstats = 0 <Integer[7]>
            Player = 0 <Integer>
        Conditions
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Compile timer == 10
                Then
                    General - For each integer Player from 1 to 8 with increment 1, do (Actions)
                        Actions
                            Variable - Set Player stats[Player][2] = Starships destroyed[Player]
                            Variable - Set Player stats[Player][3] = Planets captured[Player]
                            Variable - Set Player stats[Player][4] = Capitals captured [Player]
                            Variable - Set Player stats[Player][5] = Match time
                            ------- Display this match stats
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    Player == Playing
                                Then
                                    ------- Fleet generated
                                    Dialog - Set End of match dialog items[1][Player][2] text to (Text(Player stats[Player][1])) for (All players)
                                    ------- Starships destroyed
                                    Dialog - Set End of match dialog items[1][Player][3] text to (Text(Player stats[Player][2])) for (All players)
                                    ------- Planets captured
                                    Dialog - Set End of match dialog items[1][Player][4] text to (Text(Player stats[Player][3])) for (All players)
                                    ------- Capitals captured
                                    Dialog - Set End of match dialog items[1][Player][5] text to (Text(Player stats[Player][4])) for (All players)
                                    ------- Time played
                                    Convert seconds to time string(Player, Match time)
                                    ------- Win?
                                    General - If (Conditions) then do (Actions) else do (Actions)
                                        If
                                            Player stats[Player][6] == 1
                                        Then
                                            Dialog - Set End of match dialog items[1][Player][7] text to "Y" for (All players)
                                        Else
                                    ------- Tournament win?
                                    General - If (Conditions) then do (Actions) else do (Actions)
                                        If
                                            Player stats[Player][7] == 1
                                        Then
                                            Dialog - Set End of match dialog items[1][Player][8] text to "Y" for (All players)
                                        Else
                                Else
                            ------- Display banked stats
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    Player == Playing
                                Then
                                    Bank - Open bank "orbitaa_kca" for player Player
                                    ------- Fleet generated
                                    Dialog - Set End of match dialog items[2][Player][2] text to (Text((Load "fleetgenerated" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Starships destroyed
                                    Dialog - Set End of match dialog items[2][Player][3] text to (Text((Load "starshipsdestroyed" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Planets captured
                                    Dialog - Set End of match dialog items[2][Player][4] text to (Text((Load "planetscaptured" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Capitals captured
                                    Dialog - Set End of match dialog items[2][Player][5] text to (Text((Load "capitalscaptured" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Time played
                                    Convert seconds to time string career(Player, (Load "timeplayed" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    ------- Wins
                                    Dialog - Set End of match dialog items[2][Player][7] text to (Text((Load "wins" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Tournament wins
                                    Dialog - Set End of match dialog items[2][Player][8] text to (Text((Load "tournamentwins" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                Else
                Else
            General - Wait 1.0 Real Time seconds
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Compile timer > 0
                Then
                    Variable - Set Compile timer = (Compile timer - 1)
                    Dialog - Set End of match dialog items[3][1][1] text to ("Career Totals - Compiling in " + ((Text(Compile timer)) + "...")) for (All players)
                    Trigger - Run (Current trigger)  (Check Conditions, Don't Wait until it finishes)
                Else
                    Dialog - Move End of match dialog items[3][1][1] to (450, 350) relative to Top Left of dialog for (All players)
                    Dialog - Set End of match dialog items[3][1][1] text to "Career Totals" for (All players)
                    Dialog - Set End of match dialog items[3][2][1] color to White for (All players)
                    ------- Bank player stats
                    General - For each integer Player from 1 to 8 with increment 1, do (Actions)
                        Actions
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    Player == Playing
                                Then
                                    Bank - Open bank "orbitaa_kca" for player Player
                                    ------- Update banked stats
                                    Bank - Create section "gameplaystats" in bank (Last opened bank)
                                    ------- gameplaystats
                                    Variable - Set Careerstats[1] = (Player stats[Player][1] + (Load "fleetgenerated" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    Variable - Set Careerstats[2] = (Player stats[Player][2] + (Load "starshipsdestroyed" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    Variable - Set Careerstats[3] = (Player stats[Player][3] + (Load "planetscaptured" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    Variable - Set Careerstats[4] = (Player stats[Player][4] + (Load "capitalscaptured" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    Variable - Set Careerstats[5] = (Player stats[Player][5] + (Load "timeplayed" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    Variable - Set Careerstats[6] = (Player stats[Player][6] + (Load "wins" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    Variable - Set Careerstats[7] = (Player stats[Player][7] + (Load "tournamentwins" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    Bank - Store integer Careerstats[1] as "fleetgenerated" of section "gameplaystats" in bank (Last opened bank)
                                    Bank - Store integer Careerstats[2] as "starshipsdestroyed" of section "gameplaystats" in bank (Last opened bank)
                                    Bank - Store integer Careerstats[3] as "planetscaptured" of section "gameplaystats" in bank (Last opened bank)
                                    Bank - Store integer Careerstats[4] as "capitalscaptured" of section "gameplaystats" in bank (Last opened bank)
                                    Bank - Store integer Careerstats[5] as "timeplayed" of section "gameplaystats" in bank (Last opened bank)
                                    Bank - Store integer Careerstats[6] as "wins" of section "gameplaystats" in bank (Last opened bank)
                                    Bank - Store integer Careerstats[7] as "tournamentwins" of section "gameplaystats" in bank (Last opened bank)
                                    ------- Display banked stats
                                    ------- Fleet generated
                                    Dialog - Set End of match dialog items[2][Player][2] text to (Text((Load "fleetgenerated" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Starships destroyed
                                    Dialog - Set End of match dialog items[2][Player][3] text to (Text((Load "starshipsdestroyed" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Planets captured
                                    Dialog - Set End of match dialog items[2][Player][4] text to (Text((Load "planetscaptured" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Capitals captured
                                    Dialog - Set End of match dialog items[2][Player][5] text to (Text((Load "capitalscaptured" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Time played
                                    Convert seconds to time string career(Player, (Load "timeplayed" of section "gameplaystats" from bank (Last opened bank) as integer value))
                                    ------- Wins
                                    Dialog - Set End of match dialog items[2][Player][7] text to (Text((Load "wins" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    ------- Tournament wins
                                    Dialog - Set End of match dialog items[2][Player][8] text to (Text((Load "tournamentwins" of section "gameplaystats" from bank (Last opened bank) as integer value))) for (All players)
                                    Bank - Save bank (Last opened bank)
                                    Bank - Set Option Signature for Bank (Last opened bank) to Enable
    
    Posted in: Triggers
  • 0

    posted a message on Cannot publish map

    I came across this somewhere else where someone had said that you cannot have custom player colors set in the player properties.

    I removed the custom player colors, and wala... it uploaded.

    What in the actual fuck blizzard.

    LUCKILY, I can change player color in the intialization of the game.

    I suppose blizzard isn't so bad after all c:

    Posted in: Data
  • 0

    posted a message on Cannot publish map

    I don't have any game attributes?

    Is there a bare minimum required?

    Also, my mod pack that I published to battle.net says that it's battle.net info is missing and refuses to load within the editor now..

    Edit: The mod pack seems to phase in and out, whether or not it's set to latest or not.

    ..Actually it goes between the "substitute spheres" situation and normal by checking latest off and on, this has to be done every time the map is loaded...?

    I'll go grab a screenshot of the error message screen for clarity.

    Here it is.

    Edit 2: Attempted to move the map file to C drive and change the name of the map instead of doing it through the publish menu....

    Still getting an error...

    Edit 3: Tried remaking my mod pack, but it didn't help

    Posted in: Data
  • 0

    posted a message on Cannot publish map

    Soo... I go to publish my map tonight and I get "Default attribute values could not be validated"..

    I've been googling around for about an hour, and nothing has seemed to help (even a few posts from sc2mapster showed up)

    Tried messing around with the dependent mod (that I uploaded to battle.net)

    Also saw some things about player color... tried that out..

    Ideas?

    Thanks

    Sorry for double post, but this is sorta urgent

    Posted in: Data
  • 0

    posted a message on Extracting starcraft 2 models (m3)

    Blender would be great

    Posted in: Artist Tavern
  • 0

    posted a message on "Default attribute values could not be validated"

    Soo... I go to publish my map tonight and I get "Default attribute values could not be validated"..

    I've been googling around for about an hour, and nothing has seemed to help (even a few posts from sc2mapster showed up)

    Tried messing around with the dependent mod (that I uploaded to battle.net)

    Also saw some things about player color... tried that out..

    Ideas?

    Thanks

    Posted in: Galaxy Editor Bugs and Feedback
  • 0

    posted a message on Extracting starcraft 2 models (m3)

    I hate to sound forward, but could I get a link to all of these wonderful resources?

    As I stated, most links I found by searching seem dated.

    Posted in: Artist Tavern
  • 0

    posted a message on Extracting starcraft 2 models (m3)

    I've been searching a bit on this issue and most information seems a bit dated.

    What plugins will I need to import extracted models from sc2 into 3ds max 2011?

    Do I just export models from the data editor?

    Is there a way to do this with gmax or blender these days?

    I just want to get the mesh out..

    Thanks

    Posted in: Artist Tavern
  • 0

    posted a message on Cannot create any new elements in trigger editor?

    I think for future reference it would be good for you to go back and see what fixed it.

    There are literally no topics pertaining to this problem.

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