Home   Help Search Login Register  

Author Topic: CTD cos of Closedialog 0  (Read 1122 times)

0 Members and 1 Guest are viewing this topic.

ponq

  • Guest
CTD cos of Closedialog 0
« on: 16 Jun 2004, 18:44:10 »
We just beta-tesed a new mp mission, but had a CTD while running a cutscene.

I'm using the revive and spectate script (realy nice).

In the cutscene script (part2.sqs) I had this line
Code: [Select]
closedialog 0
to make sure everyone could see the dialog fullscreen instead of throught he deathcam (if player was still not revived).

As said, while running the script ofp crashed to desktop.

Here's the code of "part2.sqs"
Code: [Select]
;script om part 2 van Desert Ambush Revisited te prepareren
;lamp in le port uit
(Object 28664) switchlight "off"

;turn off possible running deathcam
endgame = 1
publicvariable "endgame"

;units levend maken
setviewdistance 500
playmusic "radiohead"
~2

titlecut [" ", "black out", 6]
~6
The above part of the script did NOT cause any probs.  so the error must origin from the next part (continued):
Code: [Select]
closedialog 0
disableuserinput true

; ***************************************
playergrp = []
?(alive S1): playergrp = playergrp + [S1]
?(alive S2): playergrp = playergrp + [S2]
?(alive S3): playergrp = playergrp + [S3]
?(alive S4): playergrp = playergrp + [S4]
?(alive S5): playergrp = playergrp + [S5]

?!(local server) goto "skip"
?!(alive s1):  deletevehicle ss1
?!(alive s2):  deletevehicle ss2
?!(alive s3):  deletevehicle ss3
?!(alive s4):  deletevehicle ss4
?!(alive s5):  deletevehicle ss5

#skip

dummyplayergrp = []
?(alive sS1): dummyplayergrp = dummyplayergrp + [Ss1]
?(alive sS2): dummyplayergrp = dummyplayergrp + [Ss2]
?(alive sS3): dummyplayergrp = dummyplayergrp + [Ss3]
?(alive sS4): dummyplayergrp = dummyplayergrp + [Ss4]
?(alive sS5): dummyplayergrp = dummyplayergrp + [Ss5]

"_x setdamage 0" foreach playergrp

"[_x] exec {spetz2.sqs}" foreach playergrp

;uit mogelijk vehicle halen
"UnassignVehicle _x" foreach playergrp

;behaviour op safe zette
officer1 SetBehaviour "Safe"
"_x setbehaviour {SAFE}" foreach playergrp

;fire aanzetten
Fire2 inflame true

;naar fuel basis verplaatsen
"_x setpos getpos barrel1" foreach playergrp

;naar officer kijken
;"_x DoWatch Officer1" foreach playergrp

;"_x SetDir 270" foreach playergrp



;--------Camera-----------
;camera maken
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

titlecut [" ", "black in", 2]


;=== 15:37:42 desert vanaf hoog
_camera camSetTarget [39762.94,92609.50,-47000.25]
_camera camSetPos [7010.49,10721.69,101.23]
_camera camSetFOV 0.887
_camera camCommit 0
the script continues with more cam commands, but since the server machine did not even see the first cam, I don't think we'll find the prob there.

Also, the server machine and ONE client had a CTD, while two other clients (internet connections, the ctd client was on lan) did not suffer ctd.

*edit to clarify*
I think the game crashed cos I called dialog 0 without actually having a dialog running. Could that be the case? *edit*

Anyone have a clue?

thnx
« Last Edit: 16 Jun 2004, 20:21:47 by ponq »

ponq

  • Guest
Re:CTD cos of Closedialog 0
« Reply #1 on: 16 Jun 2004, 22:01:55 »
Found it!

Sorry for posting this prob too soon. I've been working on this mission for  a bit too long now...;)

Prob isn't in the above shown lines of the script.

Prob was deleting a vehicle which still had some drop commands on it.... Took me a while to figure that out.

Solved.