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 Sat Apr 20, 2024 10:14 am
All times are UTC + 0
An explanation of how buildings are listed in the build menu
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
Tratos
General


Joined: 01 Jan 2003

PostPosted: Fri Dec 09, 2005 12:21 pm    Post subject:  An explanation of how buildings are listed in the build menu Reply with quote  Mark this post and the followings unread

Quick and easy one this.

Buildings are listed from top to bottom in order of their tech-level, so tech-level 1 structures appear at the top, whislt tech-level 10 ones appear at the bottom and everything else appears inbetween.

However, buildings are also split-up within their tech-level groups using the tag;

Code:
BuildCat=


The tag can be used to determine the order with which buildings are displayed in the menubar within their tech groups, it has no other effect.

Buildings will be displayed in the following order;

BuildCat=Tech
BuildCat=Power
BuildCat=Resource

So, if you have a lot of buildings of the same tech-level you can at least get some sort of order using the correct buildcat. There is also BuildCat=combat and that will put the building in the base defence and superweapon tab.


Key Words: #Tutorials #Modding #RedAlert2 #YurisRevenge #Rules.INI 

Back to top
View user's profile Send private message Send e-mail
DonutArnold
General


Joined: 18 Jan 2005
Location: Finland

PostPosted: Fri Dec 09, 2005 12:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

That's the tag that I need. Thx!

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


Joined: 01 Aug 2003
Location: Galt's Gulch

PostPosted: Fri Dec 09, 2005 1:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
tech-level 1 structures appear at the top

Actually, TechLevel=0 ones do Wink

I am pretty sure that this info is correct, because I am using the techlevel + AIBaseSide sort myself, but if your tests prove different, feel free to edit it.

Back to top
View user's profile Send private message Visit poster's website Skype Account
Tratos
General


Joined: 01 Jan 2003

PostPosted: Fri Dec 09, 2005 1:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes, you are right i hadn't even considered the object type or AIbase planning tag. However, im almost certain that BuildCat also affects the sorting.

Back to top
View user's profile Send private message Send e-mail
Tratos
General


Joined: 01 Jan 2003

PostPosted: Fri Dec 09, 2005 1:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ok, i did some tests and it seems we are both wrong. I cloned the allied power plant and added it to the end of the buildings list, and changed the BuildCat to Resource (and changed the UIname so icould tell them apart). Now going by my logic, it should appear after the original power plant because BuildCat=resource come last. Going by yours it should come after the original because the original is first in the buildings list. It didn't, it came first.

This leads me to believe that my theory on the buildcat is correct, but is in the wrong order, and is used in preference to the object list when there are two buildings of the same techlevel and cost. The object list would then be used to order buildings of the same level, cost and buildcat.

It's just a theory and needs furthur testing.

Edit: been testing. Um... well...

I added 8 new cloned power plants, all i changed was the buildcat, 3 were tech, 2 power, 3 resource. Along with the orignal that leaves 3 of each. However, when ingame, it appeared in the following order:

Tech
Tech
Tech
Resource
Power
Resource
Power
Power
Resource

as you can see, two of them are in the wrong places which makes no sense as they are identical save for the different UInames.

Not only that but they were completly jumbled up from their position on the building object list. I think there may be another factor unaccounted for.

Back to top
View user's profile Send private message Send e-mail
John Galt
Commander


Joined: 01 Aug 2003
Location: Galt's Gulch

PostPosted: Fri Dec 09, 2005 2:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

I just did more tests myself, and actually I was wrong about the building list, it is actually higher numbers that come first.

First test (only changed code, not complete code):

Code:
[BuildingTypes]
436=GAPOW
437=GAPOWRX
438=GAPWR1

[GAPOWRX]
Image=YAPOWR

[GAPOW]
Image=NAPOWR

[GAPWR1]
Image=GAROBO


Note that the list order does not follow the actual section ordering, so the order the game chooses should be clear and not ambiguated in this case.

And the results were GAPWR1 first, followed by GAPOWRX, then by GAPOW, then the original GAPOWR.

I tried various BuildCat combos as well (Power, Tech, Resource, Infrastructure), and nothing changed.

Then I swapped the GAPOW and GAPOWRX, and voila, the list becomes GAPWR1, GAPOW, GAPOWRX, GAPOWR.

(The weird names are just a way to rule out any possible lingual sort affecting the result.)


I can see why the BuildingTypes order is the final step, after all it is an injective function, unlike all the other criteria...


Edit: lol, this is what happens when two moderators start discussing stuff, you can't tell who edited his post and when, so things get lost... Well, I'll have to try out with more clones, but so far what I've seen suggests what I wrote above, higher index = priority.

Back to top
View user's profile Send private message Visit poster's website Skype Account
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.1720s ][ Queries: 11 (0.0092s) ][ Debug on ]