Page MenuHomeFeedback Tracker

Type-Errors when working with (Workbench) scripts
Assigned, NormalPublic

Description

When trying to create a Workbench Script for the World Editor, I have run into the following problem: I get the error

Unknown type 'NameOfTheType'

when compiling if I use certain types in my script. See here for an attached example:


I tested with the following types and always get the error: RoadGeneratorEntity, RoadEntity, ShapeEntity, SplineShapeEntity, RiverEntity
The classes/types get recognized by the editor (information when hovering / navigation when Ctrl+Click), so the problem is just when compiling.

The problem persists when trying it in a new script file or project.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create new project
  2. Create new script file
  3. Paste in the code from the attached file
  4. Press compile

You should get two errors. One for SplineShapeEntity and the other for RiverEntity.

Event Timeline

Hexomanya created this task.Sun, Jan 5, 9:50 PM
Geez changed the task status from New to Awaiting internal Testing.Tue, Jan 7, 4:11 PM
Geez changed the task status from Awaiting internal Testing to Assigned.