Can't use actor.create to make biolab

BIO rules not in C:\Program Files\OpenRA\mods\ra\rules Can't use actor.create to make biolab.

Information and discussion for custom maps and mods.
Post Reply
Lassar
Posts: 33
Joined: Tue Dec 18, 2018 11:20 pm

Can't use actor.create to make biolab

Post 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

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

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

Post by Sleipnir »

It looks like you have a stray space in the string "bio ". Try giving it "bio" instead.

Lassar
Posts: 33
Joined: Tue Dec 18, 2018 11:20 pm

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

Post by Lassar »

Thank you, that was the problem.

Post Reply