Page 1 of 1

Can't use actor.create to make biolab

Posted: Tue Jun 08, 2021 3:50 am
by Lassar

Code: Select all


local BioLab  = Actor.Create( "bio "   , true, { Owner = greece, Location = BioLab.Location })

Tried to create a biolab and got this error.

---> System.NotImplementedException: No rules definition for unit bio

Could not really find anything in C:\Program Files\OpenRA\mods\ra\rules.

The best I could figure out is.

Code: Select all

        
BIO:
	Inherits: ^TechBuilding        

And that is not working.

Should not BIO be defined in the structures.yaml

Looks like someone forgot to put it in structures.yaml

Re: Can't use actor.create to make biolab

Posted: Tue Jun 08, 2021 12:31 pm
by Sleipnir
It looks like you have a stray space in the string "bio ". Try giving it "bio" instead.

Re: Can't use actor.create to make biolab

Posted: Thu Jun 10, 2021 5:32 am
by Lassar
Thank you, that was the problem.