HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Save Hero

06-05-2005, 11:58 AM#1
Thunder_Eye
Whats wrong with this system? Ive put them in an campaign and I cant find the problem.
06-05-2005, 12:14 PM#2
johnfn
No one really likes digging through maps to search for a problem we don't even know anything about. If possible please describe the error in more detail and then we should be able to help you :)
06-05-2005, 12:50 PM#3
Earth-Fury
yeah. im lazy too. please post a description of the problem, and anny triggers that may relate to this problem.
06-07-2005, 05:43 PM#4
Thunder_Eye
Well I actually have no idea what trigger causes the problem
Here are an example of the triggers.

Trigger Name ~~ Melee Initialization
Events
Map initialization
Conditions
Actions
Game Cache - Create a game cache from Test.w3v
Set Test = (Last created game cache)
Set Integer = (Load Integer of Integers from Test)
Trigger - Run From <gen> (checking conditions)

Trigger Name ~~ From
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Integer Equal to 2
Then - Actions
Game Cache - Restore Trall of Heroes from Test for Player 1 (Red) at (Center of from map 2 <gen>) facing 0.00
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Integer Equal to 3
Then - Actions
Game Cache - Restore Trall of Heroes from Test for Player 1 (Red) at (Center of from map 3 <gen>) facing 0.00
Else - Actions
Do nothing
If ((Last restored unit) Not equal to No unit) then do (Skip remaining actions) else do (Do nothing)
Unit - Create 1 Thrall for Player 1 (Red) at (Center of new <gen>) facing Default building facing degrees

Trigger Name ~~ to 2
Events
Unit - A unit enters To map 2 <gen>
Conditions
Actions
Game Cache - Clear Test
Game Cache - Store (Entering unit) as Trall of Heroes in Test
Set Integer = 1
Game Cache - Store Integer as Integer of Integers in Test
Game - Set the next level to Maps\Test\Test\2.w3x
Game - Victory Player 1 (Red)

Trigger Name ~~ to 3
Events
Unit - A unit enters To map 3 <gen>
Conditions
Actions
Game Cache - Clear Test
Game Cache - Store (Entering unit) as Trall of Heroes in Test
Set Integer = 1
Game Cache - Store Integer as Integer of Integers in Test
Game - Set the next level to Maps\Test\Test\3.w3x
Game - Victory Player 1 (Red)
06-07-2005, 05:48 PM#5
Joey.
I didn't notice anything wrong in the top, but I don't have enough time to read em all. I'll have to come back in a little while.
06-07-2005, 06:01 PM#6
Thunder_Eye
Just noticed one problem in the first trigger thou it didnt change the problem.

I open wc3, go single player, open custom campaign, enters Test campaign, start maps 1 and when it has loaded about half the map wc3 just shuts down without any messages :(
06-07-2005, 07:36 PM#7
shadow1500
Quote:
Trigger Name ~~ Melee Initialization
Events
Map initialization
Conditions
Actions
Game Cache - Create a game cache from Test.w3v
Set Test = (Last created game cache)
Set Integer = (Load Integer of Integers from Test)
Trigger - Run Melee Initialization <gen> (checking conditions)

delete the last action "Trigger - Run Melee Initialization", it causes an infinite loop.
06-08-2005, 12:59 PM#8
Elven Ronin
Quote:
Originally Posted by shadow1500
delete the last action "Trigger - Run Melee Initialization", it causes an infinite loop.

Hmm, yes nothing quite like an infinite loop to crash the game.

Though I actually use an "infinite loop" in one of my maps, it runs from 2 to 1 (or something like that). I just break it internally when the conditions are met.
06-09-2005, 12:02 AM#9
ShadowWolf
Quote:
Originally Posted by Elven Ronin
Hmm, yes nothing quite like an infinite loop to crash the game.

Though I actually use an "infinite loop" in one of my maps, it runs from 2 to 1 (or something like that). I just break it internally when the conditions are met.


So exactly what is going wrong in the game? Is it just not loading the hero, or does it not continue?
06-09-2005, 12:18 AM#10
Elven Ronin
I'm not the great when it comes to using game caches - next to no practice at it. The crash thunder eye mentioned was from the infinite loop, I'm not 100% sure what's keeping the thing from working in the first place.
06-09-2005, 10:07 PM#11
Thunder_Eye
Well I said I found the problem about "Trigger - Run Melee Initialization <gen> (checking conditions)"

(forgot to edit the post)

Ive changed it to "Trigger - Run From <gen> (checking conditions)"

so that cant be the problem or can it?

(Edited post with triggers)

Anyone who can figure this out?
06-13-2005, 04:56 PM#12
Thunder_Eye
(Sry for double post but it would be to messy to edit previous one again)

Ok i got the thing to work so it doesnt crash but now suddenly the hero doesnt load
:(