Game Development Community

Ignore specific fields?

by Richard Hebblewhite · in Plastic Tweaker · 08/17/2009 (4:43 pm) · 2 replies

Hi!

Is there a way to make tweaker ignore certain fields when parsing a new script file ? For example, I'm modifying some weapon scripts that make use of various scopes etc (from the ModMaker addon).

Whenever I open one of these weapons via Tweaker, is seems to override the crosshair I'm using which results in an empty square rather than the correct crosshair image. I notice that Tweaker has added an "Crosshair = 1;" field in addition to my existing "Crosshair = true;" and seems to always set my crosshair value to "-1.#IND".

Is this because I'm using a custom setting that Tweaker can't find automatically ?



Thanks!

About the author

Senior Lecturer at Glyndwr University, Wrexham. Director of RareBit Interactive & Programme Director for Computer Game, Immersive Technology and Creative Computing Programmes.


#1
08/26/2009 (8:32 am)
Yes there is, if you used the tweaker to generate the tweak comments in the file you can manually move that field outside of the tweakable ares

example
//M[ tweakerComments   
$look = 0; // TypeF32 (range=-360 360)   
//M]  
$NotTweakableVariable = 10; //will not be picked up by tweaker

For more information on Tweaker see this article
#2
08/27/2009 (11:36 am)
I have no idea why I didnt think of that... LoL. Thanks!



Rich.