error deprecation: unit.side has been deprecated - query

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
User avatar
Celtic_Minstrel
Developer
Posts: 2207
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: error deprecation: unit.side has been deprecated - query

Post by Celtic_Minstrel »

It looks like you can use {AI_CA_SPREAD_POISON} instead, which will cause similar behaviour but without using deprecated code… and if you're using the default AI, it's already included, so you can remove the line entirely.

(If you don't have a [stage] tag in your [ai], you're using the default AI.)
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
Spannerbag
Posts: 535
Joined: December 18th, 2016, 6:14 pm
Location: Yes

Re: error deprecation: unit.side has been deprecated - query

Post by Spannerbag »

Celtic_Minstrel wrote: June 29th, 2022, 2:00 am It looks like you can use {AI_CA_SPREAD_POISON} instead, which will cause similar behaviour but without using deprecated code… and if you're using the default AI, it's already included, so you can remove the line entirely.

(If you don't have a [stage] tag in your [ai], you're using the default AI.)
Heh, always happy to delete stuff.

Thanks for the heads-up, didn't realise a) I was using deprecated code and b) the behaviour I wanted is now baked in.
I find it hard to keep up sometimes...

Thanks again,
cheers,
-- Spannerbag
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.17, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
Post Reply