OnResource onOil?

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

OnResource onOil?

Post by PaulStretch »

So I have the developer version of in EE2aos, and I can't place oil or uranium mines on resources. Even though I'm modding the game, I didn't do anything to the oilrigs, uranium mines or resourceoil unittypes. I'm just curious if this is something related to the developer version of 1.5 or it's probably something that I unknowingly changed myself. Also why does using placementtype "onResource" cause the game to crash even if it's in the UnitdefEnum hdr?

User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: OnResource onOil?

Post by Dr.MonaLisa »

They updated something in AOS regarding oil/uranium mines. I think in the vanilla EE2 it's impossible to place mines on other resources like gold, stone, but it's possible in AOS.

Code: Select all

placementType = OnResource
placementTargetType = ResourceOil
Seems to be correct in EE2X_db.zip\EE2X_db\Units\resources.ddf.

Make sure you didn't unpack some .h files from zips/hdrs.zip that would confuse AOS.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
These users thanked the author Dr.MonaLisa for the post:
PaulStretch
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Re: OnResource onOil?

Post by PaulStretch »

Yes, that's it. I was able to figure it out. For some reason mine only said "OnOil" for the Oilrigs. I must have messed with it at some point and forgot.
Post Reply

Return to “Questions”