Read before you judge (trigger help-dialog)

Gray Shadows

Member!
Joined
Aug 29, 2004
Messages
22
Reaction score
0
Website
Visit site
I know you guys said to try it on my own. But theres a trigger problem that wont allow me to play my map. I have isolated it and it has to do with a dialog problem. Here is all i have.

Seperation
Events
Map initialization
Conditions
Actions
If (((Matching player) is in Evil_Team[1]) Equal to True) then do (Trigger - Run VotingB <gen> (checking conditions)) else do (Trigger - Run VotingG <gen> (checking conditions))




VotingB
Events
Conditions
Actions
Dialog - Change the title of Menu[Integer_A] to Choose Game Length
Dialog - Create a dialog button for Menu[(Integer A)] labelled Choose Fire
Set Fire[Integer_A] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[(Integer A)] labelled Wind
Set Water[Integer_A] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[(Integer A)] labelled Earth
Set Earth[Integer_A] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[(Integer A)] labelled Water
Set Water[Integer_A] = (Last created dialog Button)
Dialog - Show Menu[(Integer A)] for (Player((Integer A)))



VotingG
Events
Conditions
Actions
Dialog - Change the title of Menu[Integer_B] to Choose Game Length
Dialog - Create a dialog button for Menu[Integer_B] labelled Choose Fire
Set Fira[Integer_B] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[Integer_B] labelled Wind
Set Watea[Integer_B] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[Integer_B] labelled Earth
Set Earta[Integer_B] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[Integer_B] labelled Water
Set Watea[Integer_B] = (Last created dialog Button)
Dialog - Show Menu[Integer_B] for (Player(Integer_B))



VotingG
Events
Conditions
Actions
Dialog - Change the title of Menu[Integer_B] to Choose Game Length
Dialog - Create a dialog button for Menu[Integer_B] labelled Choose Fire
Set Fira[Integer_B] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[Integer_B] labelled Wind
Set Watea[Integer_B] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[Integer_B] labelled Earth
Set Earta[Integer_B] = (Last created dialog Button)
Dialog - Create a dialog button for Menu[Integer_B] labelled Water
Set Watea[Integer_B] = (Last created dialog Button)
Dialog - Show Menu[Integer_B] for (Player(Integer_B))


I have it like that becuase i have two teams. One good the other evil. The dialog is there so that if you choose Fire you get your corresponding unit. But when i load it to play it says.....

*
This applicaton has encountered a critical error:

FATAL ERROR!

Program: c:\program files\warcraft iii\War3.exe
Exeption: 0xC000005 (ACCESS_VIOLATION) at 001B:6F0ED6C0

The instruction at "0x6F0ED6C0' referenced memory at '0x000001C'.
The memory could not be 'read'/

Press OK to terminate the application...


Thats what it says exactly
 

Gray Shadows

Member!
Joined
Aug 29, 2004
Messages
22
Reaction score
0
Website
Visit site
Oh sorry theres a typo i copied a trigger twice. The second VotingG should be

Count Votes
Events
Dialog - A dialog button is clicked for Menu[1]
Dialog - A dialog button is clicked for Menu[2]
Dialog - A dialog button is clicked for Menu[3]
Dialog - A dialog button is clicked for Menu[4]
Conditions
Actions
If ((Clicked dialog button) Equal to Earth[Integer_A]) then do (Unit - Create 1 Good Earth for (Matching player) at (Center of G1Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Clicked dialog button) Equal to Fire[Integer_A]) then do (Unit - Create 1 Good Fire for (Matching player) at (Center of G2Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Clicked dialog button) Equal to Water[Integer_A]) then do (Unit - Create 1 Good Water for (Matching player) at (Center of G3Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Clicked dialog button) Equal to Wind[Integer_A]) then do (Unit - Create 1 Good Wind for (Matching player) at (Center of G4Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Clicked dialog button) Equal to Earta[Integer_B]) then do (Unit - Create 1 Evil Earth for (Matching player) at (Center of B1Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Clicked dialog button) Equal to Fira[Integer_B]) then do (Unit - Create 1 Evil Fire for (Matching player) at (Center of B2Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Clicked dialog button) Equal to Watea[Integer_B]) then do (Unit - Create 1 Evil Water for (Matching player) at (Center of B3Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Clicked dialog button) Equal to Wina[Integer_B]) then do (Unit - Create 1 Evil Wind for (Matching player) at (Center of B4Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
Trigger - Turn off (This trigger)
 

Icey_Gregorio

Member!
Joined
Aug 16, 2004
Messages
129
Reaction score
0
Location
My home
Website
Visit site
Hey now I could use this crap yeah :wavey
 

Gray Shadows

Member!
Joined
Aug 29, 2004
Messages
22
Reaction score
0
Website
Visit site
.......

huh?

......

i missed something

......
 

SlayMaximus

Member!
Joined
Dec 29, 2003
Messages
64
Reaction score
0
Location
Virginia
Website
www.riplo.com
GrayS:

That's a lot of trigger code and its really kinda hard to parse through. Can you post or email your map or that part of it so we can see if we can recreate the error and troubleshoot it? If not, it is virtually impossible for me to help you.

The only thing that I could suggest is that it looks like you are trying to create a dialog at the map initialization. For reasons I do not understand but have read about, it seems there are problems with that. You may want to use an event that triggers at an elapsed game time of 1 second (anything more than 0) and see if that helps. I'm not sure I ever saw that this leads to a processor memory access violation, but I suppose it is conceivable.

Eric
 

Gray Shadows

Member!
Joined
Aug 29, 2004
Messages
22
Reaction score
0
Website
Visit site
Hey

Alright i will post my map later on when i get to my computer but here is what i am trying to do.

Previous to the game:
8 players join online and 4 get on a bad team and the other 4 get on a good team.

What this means:
They are then divided to thier teams and are given a different quest to finish before the other team can finish thier quest.

Start of the game:
A dialog will show up asking them what elemental they wish to be (i.e. Earth, Wind, Fire, Water.) then when they choose their certain element will appear on the map.

What this means:
When they choose one of the elements thier adjoining side of the element has to show. Meaning that if they are from 5-8 (good team) and they pick water then good water appears and not bad. If they are 1-4 (bad team) and they pick water then evil water appears and not good.

Problem:
I tried my best to make it work but the memory error thing happens and i dont know how to check if it works.

What this means:
I need someone good at triggers to help me figure out whats wrong with my map.

Thx
Ill post post my map later.
 

Gray Shadows

Member!
Joined
Aug 29, 2004
Messages
22
Reaction score
0
Website
Visit site
My Map

Here is my map.....

Please nobody take it because i have been working very hard on it..... :madatu
 

SlayMaximus

Member!
Joined
Dec 29, 2003
Messages
64
Reaction score
0
Location
Virginia
Website
www.riplo.com
Gray:

There were a couple of problems. The crash problem was the result of the indexes to the menu arrays being undefined. I added two variable set commands as shown below to define Interger_A and Integer_B and the crash went away. Undefined variables get you every time!

But, the dialog still did not display correctly, since all these triggers were under the event “Map Initialization.†I changed that event to a 1 second elapsed game time and the dialog displays correctly. The modified trigger is below, but I have not posted the entire map again since these changes are minor.

I’m not sure if the rest of the selection triggers will function as you intend now, but this should get you past the crash so you can troubleshoot any additional problems. If you want me to look more at it, I will.

Eric



Seperation
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Sound - Play Pursuit
Game - Turn the day/night cycle On
Visibility - Enable black mask
Visibility - Enable fog of war
Set Integer_A = (Player number of (Triggering player))
Set Integer_B = (Player number of (Triggering player))
If (((Matching player) is in Evil_Team[1]) Equal to True) then do (Trigger - Run VotingB <gen> (checking conditions)) else do (Trigger - Run VotingG <gen> (checking conditions))
 

Gray Shadows

Member!
Joined
Aug 29, 2004
Messages
22
Reaction score
0
Website
Visit site
Thank you sooo sooo much. I'm going to do a bunch more work to make sure it works so see you later when i get another problem lol. Just kidding. I will make myself work on the problem for at least an hour before coming to you guys agian.....
 

NewPosts

New threads

Top