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 Thu Mar 28, 2024 6:32 pm
All times are UTC + 0
How to make a building useable, but not 'buildable"?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Avantel
Civilian


Joined: 23 Aug 2020

PostPosted: Fri Aug 28, 2020 3:10 pm    Post subject:  How to make a building useable, but not 'buildable"?
Subject description: Can't build it, but can use it
Reply with quote  Mark this post and the followings unread

I am trying to make a vehicle that can deploy into a garrisonable infantry bunker (permanent). I am still working on finding a good voxel and structure SHP to use, but implementing those should be relatively easy.


So far, the code works for the vehicle to deploy into the bunker, then for the bunker to work properly as it should (using the Slave miner voxel as a stand-in for now). I also have it labeled in the BuildingTypes list, with a corresponding full code entry.

What I am having trouble with is making it so that the bunker doesn't show up in the building tabs. I've tried setting it to tech level -1 (which seems to be how the MCV and ConYards work), but that simply makes it bug out and become a neutral structure after deploying.

Am I missing something obvious, or is there just no way to accomplish this?

Back to top
View user's profile Send private message
cxtian39
Commander


Joined: 11 Feb 2016

PostPosted: Fri Aug 28, 2020 9:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

That's how TechLevel=-1 bunker behaves

Soviet bunker behaves differently (won't go back to neutral and won't eject in red health) because it has TechLevel>0

You can make its prerequisite not buildable

_________________

Back to top
View user's profile Send private message Skype Account
E1 Elite
General


Joined: 28 May 2013

PostPosted: Sat Aug 29, 2020 4:31 am    Post subject: Reply with quote  Mark this post and the followings unread

BuildLimit=0 or TechLevel=11?

Back to top
View user's profile Send private message
silverwind
Cyborg Firebomber


Joined: 11 Jun 2016

PostPosted: Sat Aug 29, 2020 7:42 am    Post subject: Reply with quote  Mark this post and the followings unread

BuildLimit=0 won't fix it - it'll just grey out the icon. Using prerequisites, or required/forbidden houses would work much better, as would techlevel=11.

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Sat Aug 29, 2020 2:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

It doesn't grey out the icon with BuildLimit=0. Any specific condition when that happens?

Back to top
View user's profile Send private message
silverwind
Cyborg Firebomber


Joined: 11 Jun 2016

PostPosted: Sat Aug 29, 2020 3:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

No? guess it treats 0 like a positive value, then. BuildLimit is supposed to grey out cameos when the limit is reached for +ve values, and remove the cameo completely for -ve values.

I remember testing this though, after reading about a different behaviour when -ve values were used (that -ve values caused 'absolute' build limits that don't get reset when the unit dies).

EDIT: I tested again. I stand corrected. Build Limit < 0 removes the icon when the number is built (even if the units die), =0 just removes the icon completely, and > 0 greys out the icon while the limit is reached.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 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.1640s ][ Queries: 11 (0.0076s) ][ Debug on ]