Client component _sv and _entity are nil


So I have a component that initializes fine on the server, but has issues on the client. I don’t have it defined as a “client_component” in the manifest, only as a “component”. In the component initialize() function, I print a line to the log, letting me know whether self._sv and self._entity are nil: they’re properly set up for the server one, which gets initialized first, but not set for the client one. This happens both when the component is added at run-time and then after I save and reload.

What am I doing wrong?


So, I’m going to leave this here for posterity, but it turned out to be pretty simple. If you experience this problem, make sure nobody has messed with your manifest to also register your components under “component_renderers”. Not pointing any fingers, fellow ACE modders, but you know who you are. :stuck_out_tongue: