Jump to content

Assert on 3.4 - storing a script from an entity


AggrorJorn
 Share

Recommended Posts

I am running in to a problem where some of my scripts no longer work in update 3.4. They do work in 3.3 and they haven't been changed for several weeks.

 

In the script I try to save the script of an entity so that I don't have to type .script all the time.

 


self.player.script:Hello() --works

self.player = self.player.script

self.player:Hello() --Error: player is a nill value.

However if I try to access it, the scripts variables and functions, it gives me an error.

 

..\tier1\fileio.cpp (4002) : Assertion Failed: m_nNumRegisteredWriters == 0
Assert( Assertion Failed: m_nNumRegisteredWriters == 0 ):..\tier1\fileio.cpp:4002

 

I tried replicating this with a small test but there saving a script worked just fine.

 

If I need to upload the project, just let me know.

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.
Note: Your post will require moderator approval before it will be visible.

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...