This topic is for discussions related to Implicit Actions by Eric Eve
This is a great extension. I very much prefer â(first trying to open the door)â instead of â(first opening the door)â, since it is sometimes followed by âThe door is locked.â or something similar.
However, I am experiencing some strange behaviour with the text immediately following â(first trying to open the door)â.
Without the extension, it looks like this:
>n
(first opening the main door)
Before you can take a step, you hear a muffled explosion. You feel light headed for a momentâŚBroomTek Entrance
The BroomTek building looks rundown, as if it has been abandoned for years. Much of the glass is broken and the metal is dull and dingy. The car park is to the south and the main door is to the north.
>
With the extension installed, it looks like this:
>n
(first trying to open the main door)
Before you can take a step, you hear a muffled explosion. You feel light headed for a momentâŚBroomTek Entrance
The BroomTek building looks rundown, as if it has been abandoned for years. Much of the glass is broken and the metal is dull and dingy. The ca
>
The italics and bold are gone. Plus the room description is truncated.
I have no idea why this is happening or how to fix it.
Additional Information: The reason going north is showing a room description is because the first time you open that door, the player is moved to another location (âBroomTek Entranceâ). I think this is probably relevant to the problem somehow.
UPDATE: The problem seems to be in the âText Captureâ extension, which is required by âImplicit Actionsâ. The truncated text was easily fixed, by increasing the buffer size (âUse maximum capture buffer length of at least 512.â), but it looks as though it is also stripping out formatting for some reason, so bold and italic type arenât showing up as bold and italic. Iâm not sure why itâs doing this, and I donât know enough about Inform 6 code to be able to see if there is a workaround.
I would really hate to have to get rid of the âImplicit Actionsâ extension, but unless I can figure out how to prevent it from stripping out my formatting, I may have no other choice.
There was an experimental extension that captured text with formatting, but Iâm not sure how stable it is.
that was @Draconisâ Formatting Capture
Yep, and itâs specifically tested to work with Implicit Actions, since thatâs what I needed it for in Enigma!
Sorry if this is a dumb question, but how do I get âImplicit Actionâ to use âFormatting Captureâ, instead of âText Capture?â
Unfortunately you canât. But that shouldnât be necessary. Formatting Capture has a section that specifically cuts out all the code of Text Capture to ensure it doesnât interfere.
Volume X - Shutting Down Text Capture (for use with Text Capture by Eric Eve)
[This is needed because many extensions depend specifically on Text Capture, and it conflicts with our replacement code here]
Part 1 - Empty (in place of Part 1 - Define a Use Option in Text Capture by Eric Eve)
Use ineffectual.
Part 2 - Empty (in place of Part 2 - Define Our Four Phrases (for use without FyreVM Support by TextFyre) in Text Capture by Eric Eve)
Use ineffectual.
Part 3 - Empty (in place of Part 3 - I6 Code in Text Capture by Eric Eve)
Use ineffectual.
Thanks, but one more dumb question (sorry). Do I just Include âFormatting Captureâ or do I need to also include the code you posted above?
Just include Formatting Capture. That code is included in the extension.
(At least itâs included in the version of the extension I have on my computer. If it doesnât work, tell me, and Iâll update the version in Github.)
When I try to compile with âFormatting Captureâ included, I get this error:
Problem. In the sentence âSection B - Formatting Commands (in place of section SR5/1/7 - Saying - Fonts and visual effects in Standard Rules by Graham Nelson)â , it looks as if you intend to replace a section of source text from the extension âStandard Rules by Graham Nelsonâ, but that extension does not seem to have any heading called âsection SR5/1/7 - Saying - Fonts and visual effectsâ. (The version I loaded was 6.)
According to the Extensions tab, Iâm running Version 2.0.221014 of your extension.
Ah, which version of Inform are you on?
Inform 7 v10.1.1
Additional info: I had temporarily commented out the Include for âText Captureâ. When I put it back in, I now get the error I posted above, plus this error as well:
In Volume X - Shutting Down Text Capture in the extension Formatting Capture by Daniel Stelzer:
Problem. In the sentence âPart 2 - Empty (in place of Part 2 - Define Our Four Phrases (for use without FyreVM Support by TextFyre) in Text Capture by Eric Eve)â [](source:D:\OneDrive\Documents\Inform\Extensions\Daniel Stelzer\Formatting Capture.i7x#line209), it looks as if you intend to replace a section of source text from the extension âText Capture by Eric Eveâ, but that extension does not seem to have any heading called âPart 2 - Define Our Four Phrases (for use without FyreVM Support by TextFyre)â. (The version I loaded was 8.1.)
That might be the issue. Iâll check the newest versions of these extensions and see what the headings are called now.