Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Wed Apr 17, 2024 6:35 am
All times are UTC + 0
Remind me how AddOccupy/RemoveOccupy are calculated?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Mar 08, 2023 5:33 am    Post subject:  Remind me how AddOccupy/RemoveOccupy are calculated? Reply with quote  Mark this post and the followings unread

I have forgotten and I can't find any notes on the topic.

This building really needs it.



cator25.png
 Description:
 Filesize:  371.2 KB
 Viewed:  835 Time(s)

cator25.png



_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Wed Mar 08, 2023 3:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

It's calculated in cell tiles, with the northern/top foundation cell of the building being 0.

The tag is written like this, Add/RemoveOccupyX=X,X

The first X number can be between 1-8, so you are limited to only adding/removing 8 cells around a building.

The second X is the cell coordinates along a South-East, North-West axis, with the North-West direction being negative numbers.

The last X is the South-West to North-East axis, with the North-East direction being negative numbers.



occupy.jpg
 Description:
 Filesize:  233 KB
 Viewed:  781 Time(s)

occupy.jpg



_________________



Last edited by Mig Eater on Thu Mar 09, 2023 2:15 pm; edited 1 time in total

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Mar 08, 2023 7:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks, any idea why the last value is ignored? I tried making it a 0 instead of 9 and moving it to the top of the list, to no effect.

I mean I can lower the OccupyHeight and just add the 4 cells to it, but 9 should work? Or is it because the value is >0?



occuplied.jpg
 Description:
 Filesize:  315.34 KB
 Viewed:  753 Time(s)

occuplied.jpg



_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Mar 08, 2023 8:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yea seems it only respects up to #8.

Lowering OccupyHeight and adding AddOccupy cells for the top level works, even using that last positive value as a RemoveOccupy.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Mar 09, 2023 2:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

I must have misremembered, I thought it worked with all single digit numbers. I guess WW didn't need more then 8 so didn't bother coding the last number. I'll correct my original post for anyone looking at this in the future.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1611s ][ Queries: 16 (0.0128s) ][ Debug on ]