Data Realms Fan Forums http://45.55.195.193/ |
|
Materials - Oh, crap. http://45.55.195.193/viewtopic.php?f=4&t=5292 |
Page 1 of 1 |
Author: | TheLastBanana [ Wed Jun 13, 2007 12:27 am ] |
Post subject: | 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. |
Author: | ProjektTHOR [ Wed Jun 13, 2007 12:51 am ] |
Post subject: | |
Well, for the time being, you could use the Wiki to list when you've used an index? |
Author: | TheLastBanana [ Wed Jun 13, 2007 12:54 am ] |
Post subject: | |
Okay, I've learned it can be over 256 (phew) Still, we can't have the same materials any more. |
Author: | zalo [ Wed Jun 13, 2007 12:56 am ] |
Post subject: | |
Just use insanely high and random numbers. Ok? |
Author: | Data [ Wed Jun 13, 2007 3:16 am ] |
Post subject: | |
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 |
Author: | Alechs [ Wed Jun 13, 2007 3:31 am ] |
Post subject: | |
I R crashing =[, something about material 91? |
Author: | Galaxy613 [ Wed Jun 13, 2007 3:32 am ] |
Post subject: | |
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! |
Author: | kamakazibob [ Wed Jun 13, 2007 3:45 am ] |
Post subject: | |
Huzzah! |
Author: | Data [ Wed Jun 13, 2007 4:34 am ] |
Post subject: | |
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 |
Author: | Alechs [ Wed Jun 13, 2007 4:53 am ] |
Post subject: | |
ok... thanks... hmm can't remember using any mods though... . Maybe I did. |
Author: | robburdon [ Thu Jun 14, 2007 7:16 pm ] |
Post subject: | |
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??? |
Author: | Alenth Eneil [ Thu Jun 14, 2007 7:36 pm ] |
Post subject: | |
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? |
Author: | robburdon [ Thu Jun 14, 2007 9:40 pm ] |
Post subject: | |
ohh. i think i understand. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |