Game Crashing...

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Game Crashing...

Post by Black-Hole »

I made a trigger that adds ever spell in the game to the hero, it consists of 4 triggers, The first 2 just set variables for every spell (Very long triggers)
Spoiler:

Code: Select all

The 3rd one adds the spells and enables them for the hero and player, This trigger runs on its own after 5 sec of game time.
Add Spells
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Wait 0.01 seconds
        Unit - Add Hero_Spells[Spells_Index_Hero] to King_Hero
        Unit - Add Unit_Spells[Spells_Index_Unit] to King_Hero
        Player - Enable Unit_Spells[Spells_Index_Unit] for (Owner of King_Hero)
        Player - Enable Hero_Spells[Spells_Index_Hero] for (Owner of King_Hero)
        Set Spells_Index_Hero = (Spells_Index_Hero - 1)
        Set Spells_Index_Unit = (Spells_Index_Unit - 1)
        Trigger - Run Add Spells <gen> (checking conditions)


The last trigger just turns off the trigger above because when it was causing the game to crash.

Add Spells Turn Off
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Spells_Index_Hero Less than or equal to 0
                Spells_Index_Unit Less than or equal to 0
            Then - Actions
                Game - Display to (All players) the text: All spells added!
                Trigger - Turn off (This trigger)
                Trigger - Turn off Add Spells <gen>
            Else - Actions
The problem i am having with the game is a couple things, One the hero dies after about 200 spells have been added, but after he died hes still alive? But dead... and then a spell activates and the game crashes... (Its a really weird spell) I have attached the map below

(edit by Bartimaeus) Removed link, to make sure no one else gets it.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Gameing...

Post by Ozzapoo »

By downloading this map you agree not to use this map for your self. You also agree not to release this map to the public without Black-Hole or B-H-Ps Permission. Please list all changes you made to the map and to the triggering use on the map. Please inform us if you use and custom scripts, and leave an explination of what the script does. Please fallow the rules listed above and thank you for your support!
why would you bother writing that.... -.-"
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Game Crashing...

Post by Arabidnun »

I have played around with your map and have come up with a better solution, where you encounter no memeory leaks. I hope.... Well, when I got the map to work(only worked on Hero's spell as it didn't matter and there were less of them. Also, I switched around all your trigger stuff, Where now each Hero_Spell[Spell_Index], now actually is set to a number, So when i just made your trigger's smoother adding:

For each (Integer A) from 1 to 159, do (Actions)
Loop - Actions
Unit - Add Hero_Spells[(Integer A)] to Blood Mage 0001 <gen>
Player - Enable Hero_Spells[(Integer A)] for (Owner of Blood Mage 0001 <gen>)

This way it loops 159 times, and for each integer A, which is a number set to the ability, it adds it to the hero Blood Mage. It does add them all, But i see no point, as they.....just get overwritten and they don't stack, only 12 attribute's at a time can be on that hero.

I was thinking of a system for you, mabye one that, Hero uses X ability, after ability cast, Remove X Ability, Add Another Y ability, and that X ability Can not be used again. Pm me if you're interested.


Well, heres your map so you can see what I did.
Last edited by Arabidnun on August 25th, 2008, 1:27 am, edited 1 time in total.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Game Crashing...

Post by Bartimaeus »

Well, since Arabidnun has your map, and I doubt you want anyone stealing it, and I'm sure he'll fix whatever problem you have with it, I removed the link.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Game Crashing...

Post by Arabidnun »

Bartimaeus wrote:Well, since Arabidnun has your map, and I doubt you want anyone stealing it, and I'm sure he'll fix whatever problem you have with it, I removed the link.
I removed my link as well, If you want the map again Black-Hole. Pm me