Generated Aug-15 08:40:43 GMT

You are not logged in.

Name: Password:

Or: Recover Account (Forgotten Password) / Register new user / Re-send validation email / Main Page

ADVERTISEMENT

Website Discussion, Bug Reports and Abuse Reports

Using industry tile images in your message board posts

This thread is open.

Posted by Hammerite This user is an administrator. 2009-06-11 17:53:37 GMT


You can now use images showing industry tiles in your message board posts.

The syntax for this is \tilepic{details}, where details specifies which tile you want. These details can occur in any order and can, to some extent, be phrased in natural language. The only slightly technical thing you need to remember is that if you're specifying a tile with cubes on it, the number of cubes should be given as cx, where x is the number of cubes.

For example, \tilepic{unflipped yellow tech level 2 coal mine with c4} becomes An unflipped yellow Tech Level 2 Coal Mine with 4 coal cubes on it when posted.

The "details" are not case sensitive. You can separate them by spaces, hyphens, whatever you want, but they must be separated from each other by some non-alphanumeric character (such as a space).

To give more of an idea of how this works, \tilepic{} gives An unflipped blue Tech Level 1 Cotton Mill. That is because the program that implements this assumes initially that what you want is an unflipped blue Tech Level 1 Cotton Mill, and so if you don't specify any details, that is what you get.

If the program sees details it doesn't understand, it ignores them. For example, \tilepic{reed 2 port} gives An unflipped blue Tech Level 2 Port, as the word "red" has been misspelt as "reed" and isn't understood. (For that matter, the words "tech", "level" and "with" in the first example I gave above are actually completely ignored.)

If the program sees conflicting details, then details coming later on in the sequence override earlier ones. For example, \tilepic{green yellow shipyard coalmine} gives An unflipped yellow Tech Level 1 Coal Mine, because "yellow" came later than "green" and "coalmine" came later than "shipyard".

Make sure you include the closing braces character } . If you forget this then the output will not be what you expect:



If you want to post a tile with cubes on it, make sure you remember that the number of cubes has to be given as cx, where x is the number of cubes. If you just give it as x then it will be interpreted as a tech level.

For example, \tilepic{green 2 iron 3 unflipped} will become An unflipped green Tech Level 3 Iron Works. If you wanted An unflipped green Tech Level 2 Iron Works with 3 iron cubes on it, you should have typed \tilepic{green 2 iron c3 unflipped}.

(The program automatically knows to use black cubes if the type of tile is a coal mine; it automatically knows to use orange cubes if the type of tile is an iron works. If the tile is neither of these, then the program will ignore the number of cubes specified. It isn't necessary, however, to make sure that the tile type comes first.)

Have fun

Posted by Hammerite This user is an administrator. 2009-06-11 17:57:01 GMT


I should maybe say that although the details are not case sensitive, the word "tilepic" is.

Posted by Hammerite This user is an administrator. 2009-06-12 14:27:25 GMT


You can now also use

\coalcube gives A coal cube
\ironcube gives An iron cube
\backslash gives \

Posted by Hammerite This user is an administrator. 2009-07-07 17:35:01 GMT


These pictures An iron cube now appear A coal cube in the middle An unflipped yellow Tech Level 2 Coal Mine with 3 coal cubes on it of lines instead of forcing text to the bottom (does not affect the ones above that are already posted)

You must log on in order to post messages.

Click here to return to the Board Page, or here to return to the Main Page.