Page MenuHomeFeedback Tracker

Class 'SCR_EditableWorldEntityComponentClass' must inherit from 'SCR_EditableDescriptorComponentClass'
Closed, ResolvedPublic

Description

A random set of conditions will cause the following compile errors to show up:

Can't compile "Game" script module!
scripts/Game/Editor/Components/EditableEntity/SCR_EditableWorldEntityComponent.c(12): Component Class 'SCR_EditableWorldEntityComponentClass' must inherit from 'SCR_EditableDescriptorComponentClass'
Runtime mode

console.log:
20:21:46.042  SCRIPT    (E): @"scripts/Game/Editor/Components/EditableEntity/SCR_EditableWorldEntityComponent.c,12": Component Class 'SCR_EditableWorldEntityComponentClass' must inherit from 'SCR_EditableDescriptorComponentClass'
20:21:46.503  SCRIPT    (E): @"scripts/Game/Inventory/Items/SCR_PlaceableInventoryItemComponent.c,8": Component Class 'SCR_PlaceableInventoryItemComponentClass' must inherit from 'SCR_BaseInventoryItemComponentClass'
20:21:46.534  SCRIPT    (E): Can't compile "Game" script module!
scripts/Game/Editor/Components/EditableEntity/SCR_EditableWorldEntityComponent.c(12): Component Class 'SCR_EditableWorldEntityComponentClass' must inherit from 'SCR_EditableDescriptorComponentClass

These compile errors are accurate. Those component classes do inherit the wrong base classes. However these compile errors don't always show up. Only when a random set of conditions are met. ie a mod is updated and it will start showing until you remove another completely unrelated mod, etc. even though these scripts are all vanilla unmodded scripts.

See for yourself.. the code is simply wrong in Reforger:

class SCR_EditableWorldEntityComponentClass: SCR_EditableEntityComponentClass
{
};

class SCR_EditableWorldEntityComponent: SCR_EditableDescriptorComponent
{

But I dont know how it ever is able to compile with these in the codebase. But it does, most of the time.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

Geez changed the task status from New to Awaiting internal Testing.Aug 15 2023, 1:34 PM
Geez closed this task as Resolved.Sep 13 2023, 10:11 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello AaronStatic.
This should be fixed in the next major update.

I am still getting this error. Replicated reliably by loading the following mods:

Overthrow
Overthrow - RHS Compatibility
RHS - Status Quo
CRX Enfusion A.I.

Or by "next major update" did you mean the one after 0.9.9.97?

Geez added a comment.Sep 18 2023, 11:51 AM

Hello AaronStatic.
It is very likely this will be in the later major update yes.