question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Children of DefaultScript sometimes revert to their parent until a server reload

See original GitHub issue

Describe the bug

When creating extensions of DefaultScript to apply object-oriented programming to things that don’t have a physical presence in the world (e.g. stored settings for a user), these custom scripts sometimes revert back to DefaultScript and begin throwing errors until the server is reloaded.

To Reproduce

No consistent reproduction that I have found, but occasionally this error will occur when the server has been running for a while:

AttributeError: 'DefaultScript' object has no attribute 'wear_outfit'
An untrapped error occurred. Please file a bug report detailing the steps to reproduce.

The scripts are supposed to be SavedOutfit objects, not DefaultScript. Reloading the server restores their proper type and eliminates the error temporarily.

Expected behavior

A class descending from DefaultScript retains any additional functions, properties, etc. and does not revert into a generic DefaultScript object.

Environment, Evennia version, OS etc

Evennia version: 0.9.5 (rev da1885aaa) OS: posix Python: 3.8.10 Twisted: 21.7.0 Django: 3.2.8

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fariparedescommented, Oct 12, 2021

Looks like it may have been due to an ImportError from a circular import? Going to fix that and wait to see if it happens again.

0reactions
Griatchcommented, Oct 18, 2021

Closing this unless noted otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Surviving the Stomach Bug: Truths & Tips for Parents
So simply commit to do your best. Change the sheets and clean up areas of vomit immediately after supporting your child. Soapy warm...
Read more >
Reload parent component after updating child in Blazor
I have a page with a child component, and I'm trying to make the parent page redraw itself (without reloading) when the child...
Read more >
65769 – Child processes fail to start
But after a period of time, Apache will stop accepting new connection until the parent Apache process is eventually restarted.
Read more >
keepalived/ChangeLog at master · acassen ... - GitHub
When keepalived starts, the parent process reads the config. If there ... Before a reload, both for the vrrp and the checker process,...
Read more >
What every parent needs to know about the stomach bug
Since the stomach bug is most often caused by a virus, antibiotics (drugs that fight bacteria) will not help your child get better...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found