27 September 2011

Finally fixed the shader bug!!

Update on the yesterday's releases: the architect view shader is now working correctly both in web and standalone. What that means:

Tab switches between architect view and normal view. The game is paused in the architect view and there is a special menu for it. You can use it to place multiple dig commands to make easier tunnels; when you switch back to normal mode, the robots will start digging.

Keys (after selecting "multiple dig"): scroll wheel makes the selection bigger on one axis, Shift+scroll wheel and Ctrl+scroll wheel do the same on the other 2 axis. For now, the height is limited to 3 squares.

You can in the same way cancel dig orders.

As for the bug, I have no idea what caused it but all I had to do was remove a variable (I started suspecting something when checking the shaders Unity compiled for me and seeing it generated lots of internal variables). After 5 minutes of reorganizing some parts, everything worked, without a clue as what the original problem was.

No comments:

Post a Comment