Jump to content

Need Help on Particles


Allan
 Share

Recommended Posts

Ok, I think there are like 3 or 4 buildings with particles so it would be ok. 

Thank you for helping me with these particles, such a pleasure to interact with you ! Now we are finishing the details to release the project this week :focus:

 

Link to comment
Share on other sites

4 minutes ago, Allan said:

Ok, I think there are like 3 or 4 buildings with particles so it would be ok. 

Thank you for helping me with these particles, such a pleasure to interact with you ! Now we are finishing the details to release the project this week :focus:

 

Let us know how it goes! Do not hesitate to share photos and videos of the event :)

  • Like 1
Link to comment
Share on other sites

I tested with particles enabled in multiplayer but the game crashes, and we are sure that the particles are the problem because we deleted them and it worked. Do you have an idea of what can cause this ?

 

Link to comment
Share on other sites

4 hours ago, Allan said:

I tested with particles enabled in multiplayer but the game crashes, and we are sure that the particles are the problem because we deleted them and it worked. Do you have an idea of what can cause this ?

 

Do you have the exact same version of the mod ? Maybe you can add some logging so you can see when it crashes precisely.

Link to comment
Share on other sites

1 hour ago, Allan said:

Yes we had all the same. When I deleted all the ParticlePlayerColor files it worked, maybe it crashes because of the cmpPlayer in the function :search:

 

When it crashes is there anything in the interestinglog.html file ?

 

Link to comment
Share on other sites

It says this : 
 

ERROR: Cannot serialise JS objects of type 'function': (unnamed)

ERROR: Script component ParticlePlayerColor of entity 1643 failed to serialize: Serialize_InvalidScriptValue Serializing: ({TimerTick:(function() { this.UpdateColor(); })})

 

Link to comment
Share on other sites

9 hours ago, Allan said:

It says this : 
 

ERROR: Cannot serialise JS objects of type 'function': (unnamed)

ERROR: Script component ParticlePlayerColor of entity 1643 failed to serialize: Serialize_InvalidScriptValue Serializing: ({TimerTick:(function() { this.UpdateColor(); })})

 

Hmm it's the timer that's breaking it, is the git repo up to date ?

It fails to serialize a function while it shouldn't have to do that.

Link to comment
Share on other sites

3 hours ago, Stan` said:

It fails to serialize a function while it shouldn't have to do that.

To be honest I don't understand this concept, like how a simple timer crash the game ? It makes no sense :search:

Link to comment
Share on other sites

3 hours ago, Allan said:

To be honest I don't understand this concept, like how a simple timer crash the game ? It makes no sense :search:

I pushed a fix for it.

The game serializes all the javascript components, and in your case:

TimerTick = function()
{
	this.UpdateColor();
};

Should have been:

TimerTick()
{
	this.UpdateColor();
};

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...