Convert books to PSUnreal

From PSwiki
Jump to navigation Jump to search

For books we changed the XML format as we do not have all the same formatting capabilities and we want to split the creations by page.

There are two type of books.

1) One only text, in this case the format is the same, and works also for editing. Expect these book to be fully working in PSUnreal without any modifications

2) One with text and images. The idea was that this format was available only to developers. But some smart players figured out how to enter the XML into the book, to produce a formatted book. These books will not be converted automatically. We ask the players to edit those books in Unreal and fix them for the new format.

The PSLegacy syntax was to have a <Content> tag with type text or pic, example:

 <Contents><Content type="pic" align="0" padding="0 20 0 20" width="225" height="202" src="/paws/base/book_pics/book_ulbernaut.dds;">
 <Content type="text"> Anysu Atani and Migg Ellorean ]</Content>

The new format is:

 <Page><Text>My name is Pabes Riolant, an adventurer always in search of new knowledge. I decided to compile a series of books on the creatures I faced, and you are reading one of them. Here is what I've discovered about the trepor.</Text><Pic width="300" height="300" y="330" src="109" /><Text>A fully-grown trepor is about 1.5m high, 1m wide and 1m long. </Text></Page><Page><Pic width="200" height="200" y="103" src="108" /><Text>They look like the previous image. They are fast-moving carnivorous predators that hunt in small packs. They inhabit plains, forests and caves.</Text><Pic width="200" height="200" y="430" src="108" /></Page><Page><Text>They have four feelers on their raised backs; these feelers help them to move around swiftly in the darkness. Most of their body is covered with a very hard layer of toughened scales. </Text></Page><Page><Text>They can be quite dangerous in small packs and lethal if their colony is threatened. They are able to attack in complete darkness because of their good vision and feelers. A trepor attacks by biting and clawing. Trepor colonies can be found deep in caves. Unlike most insects and arthropods, there is no single queen. </Text></Page><Page><Text>Trepors are unique in that they are hermaphroditic: all possess the organs to both fertilize and lay eggs. They will defend their colony and other trepors to the death, and any invaders are attacked on sight. If you encounter a trepor colony, extreme caution is advised. </Text></Page>

Pictures are no more referred explicitly with the texture name, but they have an internal ID which is pointing to the picture. We will provide you the picture ID in the future. example 108 and 109 are working atm.