T3 Two Dumb Questions: Editor Source Code, HTML Pictures

I was thinking, a long time ago, of rewriting Dragon George And The Man in T3 because I really liked the T3 editor, This was lonnng ago.

I had written it in Inform something and entered it a Dragon Comp. It actually wasn’t finished, I had planned a whole different ending, sort of another chapter. I also decided to add on a different beginning. I did a quick ending I thought was terrible.

And I was going to insert some graphics, self designed, cartoon-like. it seemed the h t m l made that easy, i also liked t3’s conversation system, although I found T2 a lot easier to learn.

All my source code for my WIPs is basically gone. But I can play George, see what I did, text wise_wise and puzzle_wise and just copy it over, with additions

  1. The easier way for me to start is use the source for an existing game and change the code, like Ditch Day Drifter. So I complied Golden Skull at the archive as a test run.

I now cannot find the source code in the editor to alter it, basically asking for editor help as a short cut rather than reading pages about how to use the editor. I am an experienced programmer.

  1. People have been asking about a banner. My memory is that was a picture at the beginning, like a cover picture.

Is it still easy to insert one picture here and there in the code using h t m l? Where would I find some code for that? Anyone written an extension so it does not always need to be a banner?

Thanks in advance.

Marnie Parker aka that Doe person Getting this weird message are you posting code? No. I bet it is the word, html.and this editor. [quote=“Marnie, post:1, topic:73096, full:true, username:doeadeer3”]
I was thinking, a long time ago, of rewriting Dragon George And The Man in T3 because I really liked the T3 editor, This was ago.

I had written it in Inform something and entered it a Dragon Comp. It actually wasn"t finished, I had planned a whole different ending, sort of another chapter. I also decided to add on a different beginning. I did a quick ending I though was terrible.

And I was going to insert some graphics, self designed, cartoon like. it seemed the html made that easy, i also liked t3’s conversation system, although i found T2 a lot easier to learn.

All my source code for my WIPs is basically gone. But I can play George, see what I did, text wise_wise and puzzle_wise and just copy it over, with additions

  1. The easier way for me to start is use the source for an existing game and change the code, like Ditch Day Drifter. So I complied Golden Skull at the archive.

I now cannot find the source code in the editor to alter it, basically asking for editor help as a short cut rather than reading pages about how to use it.I am an experienced programmer.

  1. People have been asking about a banner. My memory is that was a picture at the beginning, like a cover picture.

Is it still easy to insert one picture here and there in the code using html? where would I find some code for that? Anyone written an extension so it does not always need to be a banner?

Thanks in advance.

Marnie Parker aka that Doe person Getting this wierd message are you posting code? No. I bet it is the word, html.
[/quote]

1 Like

If you’re talking about Windows Workbench for TADS 3, then you see a list of the files in the project in the window on the left hand side. You can just double click on any of those files in the list to open it in the editor.

According to the docs for HTML TADS you should be able to display an image with <IMG SRC='file.jpg'> - show an image from the file "file.jpg" (or at least by outputting that), but in a quick test I couldn’t get that to work. I do have some sample code (in both adv3 and adv3Lite) for displaying pictures in a banner window, using the Custom Banner extension.

2 Likes

All you need to do is

"<img src='myimage.png'>";

and you can print pictures to the main game window.
I bundled my graphics into the image file as resources, so I wouldn’t have to distribute a large collection of .png’s with the .t3, which takes a couple extra steps.

1 Like

Thanks!!!

1 Like

Eric, I know that. But I do not WhiCh Folder or icon refers to the source file. I have clicked all over the place. Do you have to turn the compiler, player off to get back to the text editor?

Thanks in advance.

Marnie Parker, Doe

I remember the standard thing not working, the banner you can resize and stuff. The gif better be the size you want in the first place. Right? Hmmm. I wonder if there is a way to rewrite that.

Thanks! I was thinking of putting them in a separate file too. :slight_smile:

Are we talking about Windows Workbench here? Near the top of the left-hand pane there’s a little yellow icon labelled ‘source files’. The first couple of entries below that represent first the TADS System Files and then the adv3 or adv3Library files (with little plus signs next to them which you can click to get the full list of library files). The game source files come immediately after that. For Goldskull there might be one called goldskull.t or perhaps just start.t, depending how it was created). You should be able to double click on it to open it in the Workbench editor.

Thanks. I wasn’t clear what I was looking at.