Jump to content

2 - game crash for ovserver map


Geradon

Recommended Posts

NAME: Game Crash for all players (observer map)
SEVERITY: 2 (because it's only observer map)
LOCATION: Loading Screen
REPRODUCIBILITY: just once, but for all players
DESCRIPTION: BF crashed with error message below while we (3 players) started an observer map.
SCREENSHOT: see below
ADDITIONAL INFORMATION: -

Error1.png

Link to comment
Share on other sites

8 hours ago, MephistoRoss said:

Seems like this is a bug in the lua script of the custom map. So I am not sure what you want the devs to do with this?

I did take a look at the one and only lua script required to run this map and saw nothing which should lead to an error. What's more strange is that, according to Geradon, this only happened one time. If it's a 'true' script error it should crash all the time (assuming the lua file doesn't change its own script :P ), not just randomly.

Edited by Ladadoos
Link to comment
Share on other sites

54 minutes ago, fiki574 said:

If it continues to happen, i can fix it with the tool. It even says the line where the error is.

1.	OnOneTimeEvent
2.   {
3.      Conditions =
4.     {
5.		PlayerHasGameLost {Player = "pl_Player1"};
6.      },
7.
8.      Actions =
9.      {
10.		PlayerGameOver { Player = "pl_Player2", TargetTag = "spectator2"},
11.		PlayerGameOver { Player = "pl_Player3", TargetTag = "spectator3"},
12.	  };
13.   };
14.
15.     OnOneTimeEvent
16.   {
17.      Conditions =
18.      {
19.		PlayerHasGameLost { Player = "pl_Player4"},
20.      },
21.
22.      Actions =
23.      {
24.		PlayerGameOver { Player = "pl_Player5", TargetTag = "spectator5"},
25.		PlayerGameOver { Player = "pl_Player6", TargetTag = "spectator6"},
26.	  };
27.   };
28.
29. State {StateName = "INIT"}

This is the script literally copied from the file, I changed nothing besides the line number on the left for convenience sake. Besides what I said earlier about it being strange that it doesn't always crash if it's a script error, I don't see anything in/near line 18 that could give this crash. 

Edited by Ladadoos
Link to comment
Share on other sites

Well weird cuz only difference is:

3.      Conditions =
4.     {
5.		PlayerHasGameLost {Player = "pl_Player1"};
6.      },
17.      Conditions =
18.      {
19.		PlayerHasGameLost { Player = "pl_Player4"},
20.      },

As u can see, there's ";" in first case, and "," in second but that really shouldn't cause problems.

You can try changing the "," to ";" so it looks like this:

17.      Conditions =
18.      {
19.		PlayerHasGameLost { Player = "pl_Player4"};
20.      },
Edited by fiki574
Link to comment
Share on other sites

1 minute ago, fiki574 said:

Well weird cuz only difference is:

As u can see, there's ";" in first case, and "," in second but that really shouldn't cause problems.

You can try changing the "," to ";" so it looks like this:

Well, I've written quite a bit of script always using ' , ' at the end instead of  ' ; ' and never had issues.That being said though, the only difference I notice that might cause it compared to how I write it is that I write

      Conditions = {
		PlayerHasGameLost ({Player = "pl_Player1"}),
      },

instead of

      Conditions = {
		PlayerHasGameLost {Player = "pl_Player1"},
      },

Although this also shouldn't cause it because else this script would never work :P It sometimes working and sometimes not (according to Geradon) is basically why I think it must be something else, but no idea what. Maybe some client stuff.

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use