Skip to content

Dev: FAQ

Silent edited this page Jul 6, 2023 · 3 revisions

Q: My custom FiniteStateDevice is crashing when TXEngine Starts. Why? A: Are you trying to fetch from the cache within __init__? Many elements in the cache are not available at load-time. Instead, fetch from the cache during runtime (IE, within a state's logic function).

Q: How do I get a reference to the main Player object? A: from_cache('player')