Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (60 sloc) 5.197 kb
83567d0 Steven Thurlow directory restructure
authored
1
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
5 <meta name="keywords" content="civilization,civ2,civ3,civ4,civilization iii,civilization ii,civilization iv,mod,python,xml,script,install" />
6 <meta name="description" content="A Python and XML tutorial aimed at Civilization IV modding" /><!-- put meta tags here -->
7 <title>Sthurlow.com - Home</title>
8 </head>
9
10 <body bgcolor="teal">
11
12 <style type="text/CSS">
13
14 div.CodeTitle { position: relative; float: center;
15 top:0; width: 90%;
16 background-color:Teal; color: White; }
17
18 div.CodeBody { position: relative; overflow: auto; float: center;
19 top:1; width: 90%;
20 background-color:silver; color: black;
21 font-size: 115%; border: 0; }
22
23 div.TextPanel { position: relative; top: 15; float: center;
24 background-color: #EAEEFF;
25 border-style: solid; border-color: black; border-width: 1px;
26 font-size: 80%; font-family: Arial,sans-serif; }
27
28 div.Padding { position: relative;
29 width: 95%; }
30
31 div.PaddingBig { position: relative; align: center;
32 background-color: #EAEEFF;
33 width: 85%; }
34
35 table.TableBody { position: relative; overflow: auto; float: center;
36 top:1; width: 90%;
37 background-color:#EAEEFF; color: black;
38 font-size: 110%; border-width: 0; }
39
40 td.TableContent { background-color: silver; }
41
42 div.ImageCaption { position: relative;
43 top:1;
44 background-color:Teal; color: White; }
45
46 div.ImageBody { position: relative;
47 top:0;
48 background-color:silver; color: black; }
49 </style>
50
51 <div align="center" class="TextPanel">
52 <div align="left" class="PaddingBig">
53 <h2>A Beginner's Python Tutorial</h2><p>When CivilizationTM IV (Firaxis Games, published by Take2) was announced, one of the most exciting features was that much of the scripting code will be in python, and the game data in XML. This tutorial attempts to teach you the basics of python programming that you could use with civIV.</p>
54 <p>Of course, this tutorial is not limited to those who want to play a slow-paced turn-based strategy game. That is what it was written for, but is perfectly useful to any person with <b>no programming knowledge at all</b>, who wants to learn python. But what makes this tutorial unique, is that it is written for beginners, by a beginner.</p>
55
56 <div align="center"><div align="center" class="CodeTitle">Table 1 - Lessons</div>
57 <table class="TableBody">
58 <tr>
59 <td class="TableContent" width="30%"><b>Number</b></td>
60 <td class="TableContent" width="70%"><b>Name</b></td>
61 </tr>
62 <tr>
63 <td class="TableContent" width="%s"><p><a href="./lesson01/">Lesson 1</a><br /></p></td><td class="TableContent" width="%s">Installing Python</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson02/">Lesson 2</a><br /></p></td><td class="TableContent" width="%s">Very Simple Programs</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson03/">Lesson 3</a><br /></p></td><td class="TableContent" width="%s">Variables, and Programs in a Script</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson04/">Lesson 4</a><br /></p></td><td class="TableContent" width="%s">Loops and Conditionals</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson05/">Lesson 5</a><br /></p></td><td class="TableContent" width="%s">Functions</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson06/">Lesson 6</a><br /></p></td><td class="TableContent" width="%s">Tuples, Lists, and Dictionaries</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson07/">Lesson 7</a><br /></p></td><td class="TableContent" width="%s">The for loop</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson08/">Lesson 8</a><br /></p></td><td class="TableContent" width="%s">Classes</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson09/">Lesson 9</a><br /></p></td><td class="TableContent" width="%s">Importing Modules</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson10/">Lesson 10</a><br /></p></td><td class="TableContent" width="%s">File I/O</td></tr><tr><td class="TableContent" width="%s"><p><a href="./lesson11/">Lesson 11</a><br /></p></td><td class="TableContent" width="%s">Error Handling</td></tr></table></div><br /><p>Then we also have the (to be written) Civilization IV python introduction. It will begin its release in early November.</p>
64 <div align="center"><div align="center" class="CodeTitle">Table 2 - Lessons</div>
65 <table class="TableBody">
66 <tr>
67 <td class="TableContent" width="30%"><b>Number</b></td>
68 <td class="TableContent" width="70%"><b>Name</b></td>
69 </tr>
70 <tr>
71 <td class="TableContent" width="%s"><p><a href="">Lesson 1</a><br /></p></td><td class="TableContent" width="%s">Introduction to Civilization IV python (not released yet)</td></tr></table></div><br />
72 </div></div>
73 </body>
74
75 </html>
Something went wrong with that request. Please try again.