-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlistthecars.py
108 lines (93 loc) · 3.22 KB
/
listthecars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
desc="this python script is for generating a HTML pic preview of all car liveries from exported pics from Colin Mcrae Dirt"
import os
cars=os.listdir("cars")
types=os.listdir("type")
tracks=os.listdir("tracks")
f = open('carlist.htm','w')
f.write("""
<html>
<head>
<style>
img
{
margin: -32px -64px -16px -64px;
}
</style>
</head>
<body>
""")
newc=oldc=""
count=0
for c in cars:
newc=c[0:3] #car model
num=c[5:6] #livery number
if(newc!=oldc): #if new car, make a car title
# f.write("</div>")
# f.write("<div class=\"col-sm-4\"> " )
f.write("<h2>" + newc + "</h2>\n")
# f.write("<h3>Livery " + num + "</h3>\n") #livery title
# f.write("""<div class = "crop" >""" )
f.write("""<img src="cars/""" + c + """"</img>\n""") #put the car pic in
# f.write("</div>")
oldc=newc #variable for if new car
# count+=1
f.write("</body></html>\n")
f.close()
# dir(a)
----
f = open('tracklist.htm','w')
f.write("""
<html>
<head>
<style>
img
{
margin: 0px 128px;
}
</style>
</head>
<body>
""")
newc=oldc=""
count=0
for t in tracks:
# newc=c[0:3] #car model
# num=c[5:6] #livery number
if(newc!=oldc): #if new car, make a car title
# f.write("</div>")
# f.write("<div class=\"col-sm-4\"> " )
f.write("<h2>" + newc + "</h2>\n")
# f.write("<h3>Livery " + num + "</h3>\n") #livery title
# f.write("""<div class = "crop" >""" )
f.write("""<img src="cars/""" + c + """"</img>\n""") #put the car pic in
# f.write("</div>")
oldc=newc #variable for if new car
# count+=1
f.write("</body></html>\n")
f.close()
---
"""
Car comments
207 I think a pure grey/silver/white suits the car best, similar with the 307.
the 55 impreza looks best with the classic blue + magenta highlights
att should be silver/grey
aqp is missing the classic quattro livery (white + yellow/silver highlights)
cc2 all liveries look ok, but i prefer the red/yellow one
cc4 the red & white liveries look ok, perhaps the red 1 is better
cli the clio looks best with yellow, but white is fine too
cor similar ^, but yellow, or white, but not both
cr34 best with distinctive red livery
exige, since its lotus, best with a WARM yellow, not cool yellow
new stratos best with classical lancia colors (green/red on top of white)
gt4 i'm glad they have the classic (green/red on top of white) for this
me9 1st livery is best, but mb it could be better. cool colors dont really suit the evo, cuz the mitsubisih logo is red. seems they were having fun with the plates.
n12, blue+green livery exists, but not with the distinctive crux star pattern. Recall the US cover has the gold subaru on the front (with less logos). Was that cover made 1st, or the gold livery?
pajeros should be mainly red. the green highlights on 1 livery makes it looks like a stratos
rdw like the logo, car should be green. red doesn't fit
suzuki swift should be yellow, just like those car ads
lacia stratos has red & green livery, but not quite in the classic shape
tacoma 1st yellow lovery looks ok ispz
toureg should be blue, like the red bulill videos
triton like pajero, should be red
xsara should be red, but it looks different ot the cover of the CMR04 game what happened to mah lights?
"""