Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Darkhill on February 19, 2004, 09:27:31 pm

Title: Changing hotspots on the interface
Post by: Darkhill on February 19, 2004, 09:27:31 pm
I've figured out how to move where the animations are played for doors opening/closing.  And I've edited the original main hall mask and moved a mask and had hot spot change.  But I can't figure out how to create my own mask and have the game see the new hot spots.  Whenever I add my own mask I don't get anything in the game.  Is there a special way of making the mask or is there another table that I have missed somewhere?
Title: Changing hotspots on the interface
Post by: DragonClaw on February 19, 2004, 10:29:56 pm
mainhall.tbl
Title: Changing hotspots on the interface
Post by: Bobboau on February 19, 2004, 10:35:55 pm
I think the masks use the pallet index for what they do, so even if it looks identical the game doesn't look at the color just the pallet index
Title: Changing hotspots on the interface
Post by: Darkhill on February 19, 2004, 10:49:17 pm
I know the first set is where the animation is played.  And the second set is the coordinates for the mouse when you right click through the doors.  I'ved edited the default mask and moved a mask around to another spot and in the game thats where the hot spot is.  Looking at the mask a little closer there is a grayish border around the masks.  This has something to do with how the masks work but I don't know.
Title: Changing hotspots on the interface
Post by: Goober5000 on February 19, 2004, 11:42:43 pm
This is very subtle.  The mask is not pure black and white; it has different shades of white.  There are a bunch of colors that correspond to button indexes as follows: shade of white = 255 - button index.  So 255 = index 0, 254 = index 1, etc.
Title: Changing hotspots on the interface
Post by: Darkhill on February 19, 2004, 11:44:55 pm
One thing I have noticed is each mask is a slightly different shade of white.  The values go from 255 to 250.  I tried just making six different boxes with the color changes but it doesn't work.  There seems to be a slight grey border around all of them.  It must be the trick to getting them to work but I don't know how you are supposed to use it.
Title: Changing hotspots on the interface
Post by: Darkhill on February 19, 2004, 11:46:02 pm
We posted at the same time.  You know anything about the grey borders?
Title: Changing hotspots on the interface
Post by: Goober5000 on February 19, 2004, 11:49:29 pm
I don't know about the grey borders.  But download the SCP media vp and have a look at the command briefing button mask.  I added new button masks in the PCX and new button indexes in the code, and there's no grey border.
Title: Changing hotspots on the interface
Post by: Darkhill on February 20, 2004, 09:20:13 am
I've got it to work now.  It must have been something to do with the fact I was editing the mask in Paint and saving it with Photoshop.