HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

map crash problem

02-09-2006, 10:52 PM#1
Linera
Every time I try to run this map it crash the sec after it enters the game after loading.

I was able to figure out which trigger is causing it but can't figure out why the game crashes.

Trigger:
Party Boards
Collapse Events
Time - Every 0.10 seconds of game time
Conditions
Collapse Actions
Set multitemp = 2
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
-------- Party Boards --------
Multiboard - Change the number of rows for PartyList[(Integer A)] to ((Number of players in PartyGroups[(Integer A)]) + 1)
-------- Leader --------
Multiboard - Set the text for PartyList[(Integer A)] item in column 1, row 2 to (Name of (Player(PartyLeader[(Integer A)])))
-------- members --------
Collapse Player Group - Pick every player in PartyGroups[(Integer A)] and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Picked player) Not equal to (Player(PartyLeader[(Integer A)]))
Collapse Then - Actions
Multiboard - Set the text for PartyList[(Integer A)] item in column 1, row multitemp to (Name of (Picked player))
Set multitemp = (multitemp + 1)
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Picked player) Equal to (Local player)
Collapse Then - Actions
Multiboard - Show PartyList[(Integer A)]
Collapse Else - Actions
Do nothing
02-09-2006, 10:58 PM#2
johnfn
That's weird. My best suggestion would be just to take out parts of the trigger until you get it working, and then isolate the problem to a line or two, because I can't see anything obviously wrong.
02-09-2006, 11:06 PM#3
Zoxc
If any value in PartyLeader are 0 this map will crash.
02-09-2006, 11:09 PM#4
Linera
I found where the problem is

Its in this action:

Trigger:
Multiboard - Change the number of rows for PartyList[(Integer A)] to ((Number of players in PartyGroups[(Integer A)]) + 1)

I fixxed it byt changing the above code to:
Trigger:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
PartyLeader[(Integer A)] Not equal to 0
Collapse Then - Actions
Multiboard - Set the text for PartyList[(Integer A)] item in column 1, row 2 to (Name of (Player(PartyLeader[(Integer A)])))
Collapse Else - Actions
Do nothing