This is dedicated to documentation of the Quake3_Quake1 mod which makes DarkPlaces/Zircon engine capabilities available for Quake 1 single player/coop mapping using the Quake 3 map format. Documentation will be here as an ongoing process.

Post tutorial Report RSS Books With Markup, Images, Multiple Pages

Books tutorial in the form of item_readable. This tutorial covers how they work. They can have pictures and markup.

Posted by on - Basic Mapping/Technical

Books are "item_readable". They support markup, pictures, multiple pages.

Specify the model, a typical model is "model" "models/books/book_old.md3" or specify a model.

The text can be in the readtext field or if it ends with .txt, it specifies an external .txt file like "books/map_hotel_directory.txt".

The use of an external file with a text editor with the .txt opened greatly speeds up tweaking as every time the map restarts it will reload the book from file.

book2


When a player looks at a book, it will offer the player the option to read it.

book


When a book is opened, the player can flip through the pages if it is a multipage book.

The text for a book can be as a string like such where [p] specifies a newline. The "readtext" string is the following:

"readtext" "[h1][times][book2]Log Entries[p]Six days ago, enemies appeared out of nowhere and we lost the North Tower.[p]The South Tower is where most supplies are stored, we regrouped at that location. Heavy casualities. We are few in number.[p][pic books/quantum 200 85]"

Pictures. Pictures will take up their entire line:

  • [pic books/quantum 200 85] This will use quake/quake3_quake1/books/quantum.png (or .jpg) as picture in the book with a in book width of 200 pixels wide and 85 pixels tall.

Supported tags:

  • [p] This is considered a newline
  • [h1] large heading
  • [h2] small heading

Supported backgrounds:

  • [book]
  • [book2]
  • [book3]
  • [note]
  • [note2]
  • [screen]

Supported text styles. The entire book will use this font.

  • [times] a font similar to Times Roman
  • [arial] a font that looks like Arial
  • [terminal] a fixed-width computer screen font

Supported text colors. The entire book will use this color.

  • black, white, gray, red, green, blue, darkred, darkgreen, darkblue, darkgray

There are 3 alignment tags: left, right, center. These specify the alighment of the text or picture for the next time.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: