Material Reference

NOTE: this is an informal bug post place ONLY. Real bugs should be posted on GitHub
Post Reply
User avatar
anarchogeek
Private First Class
Private First Class
Posts: 36
Joined: Fri Jan 07, 2005 9:09 pm

Material Reference

Post by anarchogeek »

OK. Now this COULD just be my stupidity.

Using the side-specific matrefs, such as:

Code: Select all

outside matref mat13
inside matref mat14
I can use ONLY the material reference numbers. The above code turns up a bug, stating that the materials cannot be found. A standard "matref" finds it without difficulty.

Code: Select all

outside matref 13
inside matref 14
will work fine, assuming that those are the correct texture numbers.

Is this just me, or is it a bug?

-HTanker
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

what names did you give your materials?
ImageJeffM
User avatar
anarchogeek
Private First Class
Private First Class
Posts: 36
Joined: Fri Jan 07, 2005 9:09 pm

Post by anarchogeek »

JeffM2501 wrote:what names did you give your materials?
In this case, the materials are named mat13 and mat14. Let me give you a similar (but simpler) piece of code that messes it up.. (I've never been able to assign a particular side using material names):

Code: Select all

material
  color 0.15 0.58 0.61 1
  name mat14
end

Code: Select all

Arc
  #name ob38
  position 0 300 390
  size 300 300 10
  rotation 0
  ratio 1
  angle 360
  divisions 64
  phydrv phy7
  texsize 1 1 1 1
  outside matref mat14
  inside matref mat14
  endside matref mat14
  startside matref mat14
  top matref mat14
  bottom matref mat14
end
In this case, for testing, I'm using the same material on all sides. I know that, in a practical situation, this is stupid (:)). The errors returned are:

Code: Select all

couldn't find reference material: mat14
D:\BZLib\bzlandWIN.bzw: warning (line 769): unknown object parameter "outside" - skipping
couldn't find reference material: mat14
D:\BZLib\bzlandWIN.bzw: warning (line 770): unknown object parameter "endside" - skipping
couldn't find reference material: mat14
D:\BZLib\bzlandWIN.bzw: warning (line 771): unknown object parameter "top" - skipping
Again, referring to it by number (not by name), it works fine.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

wierd sounds like a bug in the arc parser
ImageJeffM
User avatar
romfis
Private First Class
Private First Class
Posts: 215
Joined: Tue Jan 18, 2005 6:33 pm
Location: Österreich / Wien
Contact:

Post by romfis »

the bug see only on windows server (bzfs.exe).
on linux server not found the bug.

mfg.
romfis
User avatar
anarchogeek
Private First Class
Private First Class
Posts: 36
Joined: Fri Jan 07, 2005 9:09 pm

Post by anarchogeek »

Yes... I've confirmed that this happens only under Windows. The problem has existed, as far as I can tell, from late beta to 2.0.2.
Post Reply