MysteryMan on 1/3/2013 at 18:44
I have some plaques in my mission, and I am using Art:Plaque, and Book Text:name (str) and it works nicely, but when I remove the Book Art, the screen goes black with no on screen text. In the old version of T2, it worked, but not in NewDark. How do I do this ? A search revealed nothing.
R Soul on 1/3/2013 at 18:57
Quote Posted by MysteryMan
but when I remove the Book Art, the screen goes black with no on screen text.
Removed the property or just deleted the contents? You can't have a blank Art property, you have to delete it. That'll work if there isn't an Art property being inherited from the hierarchy. In other words, good for GoldPlaques etc, not good for books.
Yandros on 1/3/2013 at 19:01
Actually, I think old T2 would crash with a blank Book Art property. The black screen you're seeing may be a "fix" for that crash. But R Soul is right, you need to make your object derive from an archetype that doesn't have a Book Art property.
MysteryMan on 1/3/2013 at 19:36
Thankyou R Soul and Yandros That fixed it.
LarryG on 1/3/2013 at 19:41
And here I was thinking that our MysteryMan doesn't know about the tnhScript
OnScreenText or NV's
NVOnscreenText.
But on reflection, I think the issue is with the Legible script:
Quote:
Legible
gen.osm 1/G/2
The base script for readable objects. You need to use one of the derived scripts to get it to do anything. First checks for the Book\Text property and aborts if it isn't found. If Book\Art is set, it enters book-mode with the text and art resources specified. Without Book\Art, it loads the string Page_0 from the text and displays it on-screen. In Thief 2, if Trap\Quest Var is set, it appends the value of the quest variable to the Book\Text. ("Book" will become "Book00", for example.)
Just the name of the quest variable is written in Trap\Quest Var. The syntax of QVarTrapTrigBase doesn't apply.
This seems to state that if you delete the Book Art property (or don't set it in the first place) that you will get onscreen text. Just blanking the value for the Book Art may not do it. You may have to delete the property itself, and make sure that you don't inherit a Book Art setting from an archetype.
MysteryMan on 1/3/2013 at 20:13
Quote Posted by LarryG
And here I was thinking that our MysteryMan doesn't know about the tnhScript
OnScreenText or NV's
NVOnscreenText.
But on reflection, I think the issue is with the Legible script:
This seems to state that if you delete the Book Art property (or don't set it in the first place) that you will get onscreen text. Just blanking the value for the Book Art may not do it. You may have to delete the property itself, and make sure that you don't inherit a Book Art setting from an archetype.
Thanks Larry I am now just beginning to study more scripting. I am using some Nvscripting now.
I thought of using tnh.script for onscreen texting, but I didn't know whether or not it would conflict with the Nvscripting. Basically, I just wanted a simple solution, but for now on, I will study the custom scripting more often.
LarryG on 1/3/2013 at 22:28
No conflicts. You can use as many custom OSMs as you want, each with its own set of scripts. You're already using gen.osm and convict.osm, and maybe a T2 mission specific osm or two. There's no issues also using scripts from public.osm or tnhScript.osm or NVScript.osm.
Yandros on 2/3/2013 at 01:29
For the record, I typically use NVOnscreenText for simple applications, while (
http://dromed.whoopdedo.org/tnhscript/onscreentext) telliamed's script is more versatile. I use it, for example, when displaying subtitles during a conversation from a single .str file.
MysteryMan on 3/3/2013 at 01:29
Thanks Larry that is good to know. I wasn't sure, but I feel confident now.
Thanks Yandros I will study Telliamed's scripting.
Dark_Garrett on 11/8/2015 at 18:11
Well I'm basically having the same problem. Plaque doesn't show on-screen text. Done this a hundred times in OldDark. You can't really screw up a simple plaque. Filename.str in book folder, vanilla gold plaque, add book/text/filename; as long as there's no art or inherited art everything should default to onscreen. But when I click on it, nothing. I have a clean tafferpatched 1.23 Thief/Dromed install, all scripts loaded, what am I missing?