Author |
Message |
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
Materials - Oh, crap.
This is bad.
If you look at the variable "Index" on the materials, you'll notice it says the number can't collide with another number.
Meaning... We're possibly limited to 256 materials, meaning any mods released with the same index go boom.
BAD.
|
Wed Jun 13, 2007 12:27 am |
|
|
ProjektTHOR
Banned
Joined: Tue Feb 27, 2007 4:05 pm Posts: 2527
|
Well, for the time being, you could use the Wiki to list when you've used an index?
|
Wed Jun 13, 2007 12:51 am |
|
|
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
Okay, I've learned it can be over 256 (phew)
Still, we can't have the same materials any more.
|
Wed Jun 13, 2007 12:54 am |
|
|
zalo
Joined: Sat Feb 03, 2007 7:11 pm Posts: 1496
|
Just use insanely high and random numbers.
Ok?
|
Wed Jun 13, 2007 12:56 am |
|
|
Data
DRL Developer
Joined: Tue Jul 27, 2004 8:02 pm Posts: 428 Location: AZ
|
Aaah! don't use anything over 255 or under 0... it's cause trouble. We'll figure out some way to keep mods from introducing conflicting indices of materials. Stay tuned
|
Wed Jun 13, 2007 3:16 am |
|
|
Alechs
Joined: Sat Dec 09, 2006 9:37 pm Posts: 55
|
I R crashing =[, something about material 91?
|
Wed Jun 13, 2007 3:31 am |
|
|
Galaxy613
Joined: Thu Oct 19, 2006 12:31 am Posts: 397 Location: USA, VA
|
Once again the great Data decendth apon his forums to qwell a disquieting developement amongst the mod community.
We shall drink to his good health!
|
Wed Jun 13, 2007 3:32 am |
|
|
kamakazibob
Joined: Wed Jun 06, 2007 8:01 pm Posts: 159 Location: I have the power!
|
Huzzah!
|
Wed Jun 13, 2007 3:45 am |
|
|
Data
DRL Developer
Joined: Tue Jul 27, 2004 8:02 pm Posts: 428 Location: AZ
|
Alechs, i tmeans one of your mods are using a material which ends up being index 91... it gets copied to the terrain as that index and then anyhting colliding with it will freak out and give that error, since there isn't any material definied with index 91. We'll talk about this in a post soon
- D
|
Wed Jun 13, 2007 4:34 am |
|
|
Alechs
Joined: Sat Dec 09, 2006 9:37 pm Posts: 55
|
ok... thanks... hmm can't remember using any mods though... . Maybe I did.
|
Wed Jun 13, 2007 4:53 am |
|
|
robburdon
Joined: Thu Jan 18, 2007 7:36 pm Posts: 67 Location: The floor
|
Data, this might be really hard to implement (or not with your greatness) but i have an idea...
When the loader goes through materials.ini, it looks for duplicate indexes, and the reassigns them to the next open slot. Possible?
Or it could just be a standalone appliacation that does the same, names: CCCC (Cortex Command Conflict Crusher)
Are these reasonable suggestions, and what confuses me is what is the advantage of using the indexing???
|
Thu Jun 14, 2007 7:16 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
Data could make it so each mod can have it's own material list or array or whatever he used to store them. Or at least a way to define new sets.
Perhaps use namespacing Data?
|
Thu Jun 14, 2007 7:36 pm |
|
|
robburdon
Joined: Thu Jan 18, 2007 7:36 pm Posts: 67 Location: The floor
|
ohh. i think i understand.
|
Thu Jun 14, 2007 9:40 pm |
|
|
|