View unanswered posts | View active topics It is currently Wed Jan 15, 2025 10:53 am



Reply to topic  [ 13 posts ] 
 Materials - Oh, crap. 
Author Message
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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
Profile WWW
Banned
User avatar

Joined: Tue Feb 27, 2007 4:05 pm
Posts: 2527
Reply with quote
Post 
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
Profile YIM
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 
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
Profile WWW

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post 
Just use insanely high and random numbers.

Ok?


Wed Jun 13, 2007 12:56 am
Profile WWW
DRL Developer
DRL Developer
User avatar

Joined: Tue Jul 27, 2004 8:02 pm
Posts: 428
Location: AZ
Reply with quote
Post 
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
Profile ICQ
User avatar

Joined: Sat Dec 09, 2006 9:37 pm
Posts: 55
Reply with quote
Post 
I R crashing =[, something about material 91? :???:


Wed Jun 13, 2007 3:31 am
Profile WWW
User avatar

Joined: Thu Oct 19, 2006 12:31 am
Posts: 397
Location: USA, VA
Reply with quote
Post 
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! :machine:


Wed Jun 13, 2007 3:32 am
Profile WWW
User avatar

Joined: Wed Jun 06, 2007 8:01 pm
Posts: 159
Location: I have the power!
Reply with quote
Post 
Huzzah! :machine:


Wed Jun 13, 2007 3:45 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Tue Jul 27, 2004 8:02 pm
Posts: 428
Location: AZ
Reply with quote
Post 
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
Profile ICQ
User avatar

Joined: Sat Dec 09, 2006 9:37 pm
Posts: 55
Reply with quote
Post 
ok... thanks... hmm can't remember using any mods though... :-( . Maybe I did.


Wed Jun 13, 2007 4:53 am
Profile WWW
User avatar

Joined: Thu Jan 18, 2007 7:36 pm
Posts: 67
Location: The floor
Reply with quote
Post 
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
Profile

Joined: Mon Dec 04, 2006 3:34 am
Posts: 2378
Reply with quote
Post 
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
Profile
User avatar

Joined: Thu Jan 18, 2007 7:36 pm
Posts: 67
Location: The floor
Reply with quote
Post 
ohh. i think i understand. :?


Thu Jun 14, 2007 9:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ] 

Who is online

Users browsing this forum: Google [Bot]


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.056s | 15 Queries | GZIP : Off ]