Page 1 of 1

arg5 for 3D floor

Posted: Mon May 15, 2006 14:23
by NeoHippo
DoomBuilder shows these args for the 3D floor:

Code: Select all

160
	{
		title = "H Sector Set 3D Floor";
		arg1 = "Tag";
		arg2 = "Type";
		arg3 = "Flag";
		arg4 = "Alpha";
		arg5 = "Tag hibyte";}
What does arg5 do? It is not mentioned in Documentation.

Posted: Mon May 15, 2006 15:07
by Graf Zahl
It is used to extend the tag to more than 255 numbers. For example, to use tag 260, put 4 in arg1 and 1 in arg5.

Posted: Mon May 15, 2006 16:54
by Paul
How do you give the sector a tag higher than 255?

Posted: Mon May 15, 2006 16:59
by Graf Zahl
JUst by assigning it. The sector tag is a 16 bit value (remember 666?)

Posted: Mon May 15, 2006 17:14
by kgsws
Example:
Tag is 6427
then HiByte is 6427 div 256 = 25 ( 6427/256) but not anything after dot
and LoByte is 6427 mod 256 = 27 = 6427-(LoByte * 256)

i think it is right

Edit: i make mistake, HiByte is firs and LoByte is second ...

Posted: Mon May 15, 2006 17:46
by Graf Zahl
It's the other way around:

Lobyte = tag % 256
Hibyte = tag/256

Posted: Mon May 15, 2006 23:21
by Syfo-Dyas
Hugh?

So how would that look in the editor?

160
{
title = "H Sector Set 3D Floor";
arg1 = " Tag";
arg2 = "Type";
arg3 = "Flag";
arg4 = "Alpha";
arg5 = "Tag hibyte";}

I'm sure this is easy, but I've got a real hard time learning some stuff wthout a visual.

Posted: Tue May 16, 2006 0:31
by BlazingPhoenix
Would it be possible to add a 'tag hibyte' for all the sector/thing types that need a tid that's higher than 255? that seriously would help :).