Page 1 of 1

Editor object order

Posted: Mon Jun 11, 2018 10:35 am
by enric
In objects placement, selecting Russian, for example, I get all objets in the alphabetical order.
A friend asked me why he does not see the objects in the alphabetical order, as I can't answer why.
Can you help us, Pip?

Re: Editor object order

Posted: Mon Jun 11, 2018 3:27 pm
by pipfromslitherine
I would guess that it depends upon how the OS decides to parse the files when I do the enumeration of the folder for the objects. The game doesn't do any internal sorting.

Cheers

Pip

Re: Editor object order

Posted: Mon Jun 11, 2018 5:45 pm
by enric
ummmm, digging inside I think the order in some folders comes from:
/Applications/BA2.app/Contents/Resources/DATA/TEXT/TEXT1.TXT
where some objects folder are enumerate, for example
IDS_O_desert,"Desert Objects",
IDS_O_desert_concrete_at_bunker_desert,"Large Bunker",
IDS_O_desert_concrete_bunker_desert,"Bunker",
IDS_O_desert_covered_bunker_desert,"Covere Bunker",
IDS_O_desert_crates_desert,"Crates",
IDS_O_desert_desert_boulder1,"Boulder",
So, in the Editor, the first Desert object is "Large Bunker," followed for "Bunker", an so on.

But this do not apply to all folders, and the most bizarre is that the order is NOT the same in all computer, even with the same OS version, see the images.
BA is a surprises box!
iMac shows Russian objects ordered:
Editor.jpg
Editor.jpg (91.21 KiB) Viewed 11038 times
Powerbook doesn't:
Editor PowrBook.jpg
Editor PowrBook.jpg (89.15 KiB) Viewed 11038 times

Re: Editor object order

Posted: Mon Jun 11, 2018 8:21 pm
by pipfromslitherine
Dunno what to say - Windows consistently gives back the same order which is likely why it doesn't try and normalize the order.

Cheers

Pip

Re: Editor object order

Posted: Tue Jun 12, 2018 7:27 am
by enric
This is another mystery cause deep in the Unix core of MacOS, when reading a directory, by default, it returns the list in alphabetical order.
Probably BA doesn't use the OS directrices to get the files.