DMS9015 commited on
Commit
a2c3dcb
·
verified ·
1 Parent(s): bc9743a

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +711 -19
  3. prompts.txt +3 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Ams2 Setup Test
3
- emoji: 🌖
4
  colorFrom: blue
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: ams2-setup-test
3
+ emoji: 🐳
4
  colorFrom: blue
5
+ colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,711 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>AMS2 GT3 Setup Advisor</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .tab-content {
11
+ display: none;
12
+ }
13
+ .tab-content.active {
14
+ display: block;
15
+ animation: fadeIn 0.3s ease-in-out;
16
+ }
17
+ @keyframes fadeIn {
18
+ from { opacity: 0; transform: translateY(10px); }
19
+ to { opacity: 1; transform: translateY(0); }
20
+ }
21
+ .setup-card {
22
+ transition: all 0.2s ease;
23
+ }
24
+ .setup-card:hover {
25
+ transform: translateY(-3px);
26
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
27
+ }
28
+ .slider-thumb::-webkit-slider-thumb {
29
+ -webkit-appearance: none;
30
+ width: 20px;
31
+ height: 20px;
32
+ background: #3b82f6;
33
+ border-radius: 50%;
34
+ cursor: pointer;
35
+ }
36
+ </style>
37
+ </head>
38
+ <body class="bg-gray-100 font-sans">
39
+ <div class="container mx-auto px-4 py-8 max-w-6xl">
40
+ <!-- Header -->
41
+ <header class="mb-8 text-center">
42
+ <h1 class="text-4xl font-bold text-blue-800 mb-2">AMS2 GT3 Setup Advisor</h1>
43
+ <p class="text-lg text-gray-600">Optimize your GT3 car for any track in Automobilista 2</p>
44
+ </header>
45
+
46
+ <!-- Setup Form -->
47
+ <div class="bg-white rounded-xl shadow-lg p-6 mb-8">
48
+ <h2 class="text-2xl font-semibold text-gray-800 mb-4">Configure Your Setup</h2>
49
+
50
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
51
+ <!-- Car Selection -->
52
+ <div>
53
+ <label class="block text-gray-700 mb-2 font-medium">Select GT3 Car</label>
54
+ <select id="car-select" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
55
+ <option value="mercedes">Mercedes-AMG GT3</option>
56
+ <option value="porsche">Porsche 911 GT3 R</option>
57
+ <option value="audi">Audi R8 LMS GT3</option>
58
+ <option value="bmw">BMW M6 GT3</option>
59
+ <option value="mclaren">McLaren 720S GT3</option>
60
+ <option value="lamborghini">Lamborghini Huracán GT3</option>
61
+ <option value="bentley">Bentley Continental GT3</option>
62
+ </select>
63
+ </div>
64
+
65
+ <!-- Track Selection -->
66
+ <div>
67
+ <label class="block text-gray-700 mb-2 font-medium">Select Track</label>
68
+ <select id="track-select" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
69
+ <option value="interlagos">Autódromo José Carlos Pace (Interlagos)</option>
70
+ <option value="spa">Circuit de Spa-Francorchamps</option>
71
+ <option value="nurburgring">Nürburgring GP</option>
72
+ <option value="monza">Autodromo Nazionale Monza</option>
73
+ <option value="bathurst">Mount Panorama (Bathurst)</option>
74
+ <option value="imola">Autodromo Enzo e Dino Ferrari (Imola)</option>
75
+ <option value="catalunya">Circuit de Barcelona-Catalunya</option>
76
+ <option value="silverstone">Silverstone Circuit</option>
77
+ <option value="brands_hatch">Brands Hatch GP</option>
78
+ <option value="donington">Donington Park GP</option>
79
+ <option value="kyalami">Kyalami Grand Prix Circuit</option>
80
+ <option value="laguna_seca">WeatherTech Raceway Laguna Seca</option>
81
+ <option value="long_beach">Long Beach Street Circuit</option>
82
+ <option value="oulton_park">Oulton Park International</option>
83
+ <option value="snetterton">Snetterton 300 Circuit</option>
84
+ <option value="suzuka">Suzuka International Racing Course</option>
85
+ <option value="watkins_glen">Watkins Glen International</option>
86
+ <option value="zandvoort">Circuit Zandvoort</option>
87
+ <option value="zolder">Circuit Zolder</option>
88
+ </select>
89
+ </div>
90
+
91
+ <!-- Driving Style -->
92
+ <div>
93
+ <label class="block text-gray-700 mb-2 font-medium">Driving Style</label>
94
+ <div class="flex items-center space-x-4">
95
+ <label class="inline-flex items-center">
96
+ <input type="radio" name="style" value="aggressive" class="h-4 w-4 text-blue-600" checked>
97
+ <span class="ml-2 text-gray-700">Aggressive</span>
98
+ </label>
99
+ <label class="inline-flex items-center">
100
+ <input type="radio" name="style" value="balanced" class="h-4 w-4 text-blue-600">
101
+ <span class="ml-2 text-gray-700">Balanced</span>
102
+ </label>
103
+ <label class="inline-flex items-center">
104
+ <input type="radio" name="style" value="safe" class="h-4 w-4 text-blue-600">
105
+ <span class="ml-2 text-gray-700">Safe</span>
106
+ </label>
107
+ </div>
108
+ </div>
109
+
110
+ <!-- Track Conditions -->
111
+ <div>
112
+ <label class="block text-gray-700 mb-2 font-medium">Track Conditions</label>
113
+ <div class="flex items-center space-x-4">
114
+ <label class="inline-flex items-center">
115
+ <input type="radio" name="conditions" value="dry" class="h-4 w-4 text-blue-600" checked>
116
+ <span class="ml-2 text-gray-700">Dry</span>
117
+ </label>
118
+ <label class="inline-flex items-center">
119
+ <input type="radio" name="conditions" value="mixed" class="h-4 w-4 text-blue-600">
120
+ <span class="ml-2 text-gray-700">Mixed</span>
121
+ </label>
122
+ <label class="inline-flex items-center">
123
+ <input type="radio" name="conditions" value="wet" class="h-4 w-4 text-blue-600">
124
+ <span class="ml-2 text-gray-700">Wet</span>
125
+ </label>
126
+ </div>
127
+ </div>
128
+ </div>
129
+
130
+ <button id="generate-btn" class="mt-6 w-full md:w-auto px-6 py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 transition duration-200 flex items-center justify-center space-x-2">
131
+ <i class="fas fa-cogs"></i>
132
+ <span>Generate Setup</span>
133
+ </button>
134
+ </div>
135
+
136
+ <!-- Results Section -->
137
+ <div id="results-section" class="hidden">
138
+ <!-- Car-Track Header -->
139
+ <div class="bg-gradient-to-r from-blue-800 to-blue-600 rounded-xl shadow-lg p-6 mb-6 text-white">
140
+ <div class="flex flex-col md:flex-row justify-between items-center">
141
+ <div>
142
+ <h2 id="car-track-header" class="text-2xl font-bold mb-1"></h2>
143
+ <p id="track-description" class="opacity-90"></p>
144
+ </div>
145
+ <div class="mt-4 md:mt-0 flex items-center space-x-2">
146
+ <span id="conditions-badge" class="px-3 py-1 rounded-full text-sm font-medium"></span>
147
+ <span id="style-badge" class="px-3 py-1 rounded-full text-sm font-medium"></span>
148
+ </div>
149
+ </div>
150
+ </div>
151
+
152
+ <!-- Tabs Navigation -->
153
+ <div class="flex overflow-x-auto mb-6 border-b border-gray-200">
154
+ <button class="tab-btn active px-4 py-2 font-medium text-blue-600 border-b-2 border-blue-600" data-tab="setup">Setup Guide</button>
155
+ <button class="tab-btn px-4 py-2 font-medium text-gray-500 hover:text-blue-500" data-tab="driving">Driving Tips</button>
156
+ <button class="tab-btn px-4 py-2 font-medium text-gray-500 hover:text-blue-500" data-tab="troubleshooting">Troubleshooting</button>
157
+ <button class="tab-btn px-4 py-2 font-medium text-gray-500 hover:text-blue-500" data-tab="physics">AMS2 Physics</button>
158
+ </div>
159
+
160
+ <!-- Tab Contents -->
161
+ <div class="tab-content active" id="setup-tab">
162
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
163
+ <!-- Suspension Card -->
164
+ <div class="setup-card bg-white rounded-xl shadow-md p-6">
165
+ <div class="flex items-center mb-4">
166
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
167
+ <i class="fas fa-car-side text-xl"></i>
168
+ </div>
169
+ <h3 class="text-xl font-semibold text-gray-800">Suspension</h3>
170
+ </div>
171
+ <div id="suspension-content" class="space-y-3 text-gray-700">
172
+ <!-- Dynamic content will be inserted here -->
173
+ </div>
174
+ </div>
175
+
176
+ <!-- Aero Card -->
177
+ <div class="setup-card bg-white rounded-xl shadow-md p-6">
178
+ <div class="flex items-center mb-4">
179
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
180
+ <i class="fas fa-wind text-xl"></i>
181
+ </div>
182
+ <h3 class="text-xl font-semibold text-gray-800">Aerodynamics</h3>
183
+ </div>
184
+ <div id="aero-content" class="space-y-3 text-gray-700">
185
+ <!-- Dynamic content will be inserted here -->
186
+ </div>
187
+ </div>
188
+
189
+ <!-- Tires Card -->
190
+ <div class="setup-card bg-white rounded-xl shadow-md p-6">
191
+ <div class="flex items-center mb-4">
192
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
193
+ <i class="fas fa-tire text-xl"></i>
194
+ </div>
195
+ <h3 class="text-xl font-semibold text-gray-800">Tires</h3>
196
+ </div>
197
+ <div id="tires-content" class="space-y-3 text-gray-700">
198
+ <!-- Dynamic content will be inserted here -->
199
+ </div>
200
+ </div>
201
+
202
+ <!-- Differential Card -->
203
+ <div class="setup-card bg-white rounded-xl shadow-md p-6">
204
+ <div class="flex items-center mb-4">
205
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
206
+ <i class="fas fa-cog text-xl"></i>
207
+ </div>
208
+ <h3 class="text-xl font-semibold text-gray-800">Differential</h3>
209
+ </div>
210
+ <div id="diff-content" class="space-y-3 text-gray-700">
211
+ <!-- Dynamic content will be inserted here -->
212
+ </div>
213
+ </div>
214
+
215
+ <!-- Alignment Card -->
216
+ <div class="setup-card bg-white rounded-xl shadow-md p-6">
217
+ <div class="flex items-center mb-4">
218
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
219
+ <i class="fas fa-ruler-combined text-xl"></i>
220
+ </div>
221
+ <h3 class="text-xl font-semibold text-gray-800">Alignment</h3>
222
+ </div>
223
+ <div id="alignment-content" class="space-y-3 text-gray-700">
224
+ <!-- Dynamic content will be inserted here -->
225
+ </div>
226
+ </div>
227
+
228
+ <!-- Brakes Card -->
229
+ <div class="setup-card bg-white rounded-xl shadow-md p-6">
230
+ <div class="flex items-center mb-4">
231
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
232
+ <i class="fas fa-stopwatch text-xl"></i>
233
+ </div>
234
+ <h3 class="text-xl font-semibold text-gray-800">Brakes</h3>
235
+ </div>
236
+ <div id="brakes-content" class="space-y-3 text-gray-700">
237
+ <!-- Dynamic content will be inserted here -->
238
+ </div>
239
+ </div>
240
+ </div>
241
+ </div>
242
+
243
+ <!-- Driving Tips Tab -->
244
+ <div class="tab-content" id="driving-tab">
245
+ <div class="bg-white rounded-xl shadow-md p-6">
246
+ <div class="flex items-center mb-6">
247
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
248
+ <i class="fas fa-steering-wheel text-xl"></i>
249
+ </div>
250
+ <h3 class="text-xl font-semibold text-gray-800">Driving Tips</h3>
251
+ </div>
252
+ <div id="driving-content" class="space-y-4 text-gray-700">
253
+ <!-- Dynamic content will be inserted here -->
254
+ </div>
255
+ </div>
256
+ </div>
257
+
258
+ <!-- Troubleshooting Tab -->
259
+ <div class="tab-content" id="troubleshooting-tab">
260
+ <div class="bg-white rounded-xl shadow-md p-6">
261
+ <div class="flex items-center mb-6">
262
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
263
+ <i class="fas fa-tools text-xl"></i>
264
+ </div>
265
+ <h3 class="text-xl font-semibold text-gray-800">Troubleshooting</h3>
266
+ </div>
267
+ <div id="troubleshooting-content" class="space-y-4 text-gray-700">
268
+ <!-- Dynamic content will be inserted here -->
269
+ </div>
270
+ </div>
271
+ </div>
272
+
273
+ <!-- Physics Tab -->
274
+ <div class="tab-content" id="physics-tab">
275
+ <div class="bg-white rounded-xl shadow-md p-6">
276
+ <div class="flex items-center mb-6">
277
+ <div class="p-3 rounded-lg bg-blue-100 text-blue-600 mr-4">
278
+ <i class="fas fa-atom text-xl"></i>
279
+ </div>
280
+ <h3 class="text-xl font-semibold text-gray-800">AMS2 Physics Insights</h3>
281
+ </div>
282
+ <div id="physics-content" class="space-y-4 text-gray-700">
283
+ <!-- Dynamic content will be inserted here -->
284
+ </div>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ </div>
289
+
290
+ <script>
291
+ // Setup data for different cars and tracks
292
+ const setupData = {
293
+ cars: {
294
+ mercedes: {
295
+ name: "Mercedes-AMG GT3",
296
+ quirks: "Tends to understeer on corner entry but has excellent traction. Sensitive to rear ride height changes.",
297
+ strengths: "Strong acceleration and top speed, good high-speed stability",
298
+ weaknesses: "Can be tricky to rotate in slow corners"
299
+ },
300
+ porsche: {
301
+ name: "Porsche 911 GT3 R",
302
+ quirks: "Rear-engine layout requires careful throttle application. Benefits from slightly higher rear ride height.",
303
+ strengths: "Excellent braking and cornering, responsive to setup changes",
304
+ weaknesses: "Can be unstable under braking if setup isn't balanced"
305
+ },
306
+ audi: {
307
+ name: "Audi R8 LMS GT3",
308
+ quirks: "Likes a bit more front wing than other cars. Sensitive to tire pressures.",
309
+ strengths: "Balanced handling, good in all conditions",
310
+ weaknesses: "Not the fastest in a straight line"
311
+ },
312
+ bmw: {
313
+ name: "BMW M6 GT3",
314
+ quirks: "Needs careful differential tuning to manage weight transfer.",
315
+ strengths: "Stable under braking, good mid-corner speed",
316
+ weaknesses: "Heavy, can be sluggish in direction changes"
317
+ },
318
+ mclaren: {
319
+ name: "McLaren 720S GT3",
320
+ quirks: "Very sensitive to aero balance. Works best with slightly lower rear ride height.",
321
+ strengths: "Excellent cornering and traction",
322
+ weaknesses: "Braking stability can be tricky"
323
+ },
324
+ lamborghini: {
325
+ name: "Lamborghini Huracán GT3",
326
+ quirks: "Likes a stiff rear suspension setup. Sensitive to camber changes.",
327
+ strengths: "Great mechanical grip, responsive steering",
328
+ weaknesses: "Can be twitchy at high speeds"
329
+ },
330
+ bentley: {
331
+ name: "Bentley Continental GT3",
332
+ quirks: "Needs softer suspension settings than other GT3 cars.",
333
+ strengths: "Stable platform, good in high-speed corners",
334
+ weaknesses: "Not as nimble as lighter cars"
335
+ }
336
+ },
337
+ tracks: {
338
+ interlagos: {
339
+ name: "Autódromo José Carlos Pace (Interlagos)",
340
+ description: "Technical circuit with elevation changes and tricky corners. Sector 1 rewards good rotation, while Sector 2 needs stability.",
341
+ keyFeatures: "Elevation changes, bumpy surface, important to get turn-in right for Senna S"
342
+ },
343
+ spa: {
344
+ name: "Circuit de Spa-Francorchamps",
345
+ description: "High-speed circuit with long straights and challenging corners. Eau Rouge/Raidillon requires perfect setup balance.",
346
+ keyFeatures: "Long straights, high-speed corners, elevation changes"
347
+ },
348
+ nurburgring: {
349
+ name: "Nürburgring GP Circuit",
350
+ description: "Technical circuit with a mix of high and low-speed corners. Good traction essential out of slow corners.",
351
+ keyFeatures: "Varied corner speeds, important to get Schumacher S right"
352
+ },
353
+ monza: {
354
+ name: "Autodromo Nazionale Monza",
355
+ description: "Ultra-high speed circuit with heavy braking zones. Low drag essential but need enough downforce for Parabolica.",
356
+ keyFeatures: "Long straights, heavy braking, important to get Ascari right"
357
+ },
358
+ bathurst: {
359
+ name: "Mount Panorama (Bathurst)",
360
+ description: "Challenging circuit with dramatic elevation changes. The Mountain section requires precise setup.",
361
+ keyFeatures: "Dramatic elevation, blind crests, technical sections"
362
+ },
363
+ imola: {
364
+ name: "Autodromo Enzo e Dino Ferrari (Imola)",
365
+ description: "Flowing circuit with medium-speed corners. Need good rotation for Variante Alta but stability for Rivazza.",
366
+ keyFeatures: "Elevation changes, flowing corners, tricky chicanes"
367
+ },
368
+ catalunya: {
369
+ name: "Circuit de Barcelona-Catalunya",
370
+ description: "Technical circuit testing all aspects of car performance. Sector 3 especially setup-sensitive.",
371
+ keyFeatures: "Varied corners, important to get final chicane right"
372
+ },
373
+ silverstone: {
374
+ name: "Silverstone Circuit",
375
+ description: "High-speed circuit with flowing corners. Requires good aero balance through Maggotts-Becketts complex.",
376
+ keyFeatures: "Fast corners, important to carry speed through complex sections"
377
+ },
378
+ brands_hatch: {
379
+ name: "Brands Hatch GP",
380
+ description: "Technical circuit with elevation changes and blind corners. Requires precise setup for Paddock Hill Bend.",
381
+ keyFeatures: "Elevation changes, blind corners, technical sections"
382
+ },
383
+ donington: {
384
+ name: "Donington Park GP",
385
+ description: "Flowing circuit with fast corners. Requires good aero balance through Craner Curves.",
386
+ keyFeatures: "Fast corners, elevation changes, important to get Craner Curves right"
387
+ },
388
+ kyalami: {
389
+ name: "Kyalami Grand Prix Circuit",
390
+ description: "Technical circuit with elevation changes and tricky corners. Requires good rotation through the Esses.",
391
+ keyFeatures: "Elevation changes, technical sections, important to get Esses right"
392
+ },
393
+ laguna_seca: {
394
+ name: "WeatherTech Raceway Laguna Seca",
395
+ description: "Technical circuit with dramatic elevation changes. Requires precise setup for the Corkscrew.",
396
+ keyFeatures: "Dramatic elevation changes, blind corners, technical sections"
397
+ },
398
+ long_beach: {
399
+ name: "Long Beach Street Circuit",
400
+ description: "Street circuit with tight corners and concrete walls. Requires good mechanical grip and rotation.",
401
+ keyFeatures: "Tight corners, concrete walls, important to get turn-in right"
402
+ },
403
+ oulton_park: {
404
+ name: "Oulton Park International",
405
+ description: "Technical circuit with elevation changes and blind corners. Requires precise setup for Island Bend.",
406
+ keyFeatures: "Elevation changes, blind corners, technical sections"
407
+ },
408
+ snetterton: {
409
+ name: "Snetterton 300 Circuit",
410
+ description: "Technical circuit with a mix of high and low-speed corners. Requires good traction out of slow corners.",
411
+ keyFeatures: "Varied corner speeds, important to get traction out of slow corners"
412
+ },
413
+ suzuka: {
414
+ name: "Suzuka International Racing Course",
415
+ description: "Technical circuit with flowing corners. Requires good aero balance through the Esses.",
416
+ keyFeatures: "Flowing corners, important to carry speed through complex sections"
417
+ },
418
+ watkins_glen: {
419
+ name: "Watkins Glen International",
420
+ description: "Technical circuit with elevation changes and tricky corners. Requires good rotation through the Esses.",
421
+ keyFeatures: "Elevation changes, technical sections, important to get Esses right"
422
+ },
423
+ zandvoort: {
424
+ name: "Circuit Zandvoort",
425
+ description: "Technical circuit with banked corners and elevation changes. Requires good aero balance through Tarzanbocht.",
426
+ keyFeatures: "Banked corners, elevation changes, important to get turn-in right"
427
+ },
428
+ zolder: {
429
+ name: "Circuit Zolder",
430
+ description: "Technical circuit with elevation changes and tricky corners. Requires precise setup for the Chicane.",
431
+ keyFeatures: "Elevation changes, technical sections, important to get Chicane right"
432
+ }
433
+ },
434
+ setups: {
435
+ // Base setups for each car-track combination
436
+ mercedes: {
437
+ interlagos: {
438
+ suspension: {
439
+ front: "Medium stiffness (6-7), slightly softer than rear",
440
+ rear: "Firm (8-9) to help rotation",
441
+ arbFront: "Medium (5-6)",
442
+ arbRear: "Medium (5-6)",
443
+ rideHeight: "Front: 55-60mm, Rear: 60-65mm (slightly higher at rear)"
444
+ },
445
+ aero: {
446
+ front: "3-4 (higher for aggressive style)",
447
+ rear: "5-6 (balance for good rotation in Sector 1)",
448
+ brakeDucts: "Medium (5-6)"
449
+ },
450
+ tires: {
451
+ pressure: "Front: 27.5psi, Rear: 27.0psi (AMS2 runs best slightly lower than other sims)",
452
+ camber: "Front: -3.2°, Rear: -2.8°",
453
+ toe: "Front: 0.10° out, Rear: 0.20° in"
454
+ },
455
+ diff: {
456
+ preload: "80-90Nm",
457
+ power: "50-60%",
458
+ coast: "30-40%"
459
+ },
460
+ alignment: {
461
+ caster: "7.0-7.5°",
462
+ antiDive: "50-60%"
463
+ },
464
+ brakes: {
465
+ bias: "57-59% front",
466
+ pressure: "85-90%"
467
+ }
468
+ },
469
+ spa: {
470
+ suspension: {
471
+ front: "Medium stiffness (6-7)",
472
+ rear: "Medium (6-7)",
473
+ arbFront: "Medium (5-6)",
474
+ arbRear: "Medium (5-6)",
475
+ rideHeight: "Front: 50-55mm, Rear: 55-60mm"
476
+ },
477
+ aero: {
478
+ front: "4-5 (higher for stability through Eau Rouge)",
479
+ rear: "6-7 (balance for high-speed stability)",
480
+ brakeDucts: "Medium (5-6)"
481
+ },
482
+ tires: {
483
+ pressure: "Front: 27.5psi, Rear: 27.0psi",
484
+ camber: "Front: -3.0°, Rear: -2.6°",
485
+ toe: "Front: 0.10° out, Rear: 0.20° in"
486
+ },
487
+ diff: {
488
+ preload: "70-80Nm",
489
+ power: "45-55%",
490
+ coast: "25-35%"
491
+ },
492
+ alignment: {
493
+ caster: "7.0-7.5°",
494
+ antiDive: "50-60%"
495
+ },
496
+ brakes: {
497
+ bias: "56-58% front",
498
+ pressure: "85-90%"
499
+ }
500
+ },
501
+ // Other track setups would follow same pattern
502
+ },
503
+ // Other car setups would follow same pattern
504
+ },
505
+ drivingTips: {
506
+ mercedes: {
507
+ interlagos: [
508
+ "Turn 1 (Senna S): Brake at 100m board, trail brake to rotate car, short shift to 3rd before apex",
509
+ "Turn 3 (Curva do Sol): Carry speed with slight lift, aim for late apex",
510
+ "Turn 4 (Descida do Lago): Important to get right for good run up hill",
511
+ "Turn 10 (Pinheirinho): Brake early, rotate with trail braking, crucial for good exit",
512
+ "Final corner: Use all the curb on exit for best lap time"
513
+ ],
514
+ spa: [
515
+ "Eau Rouge/Raidillon: Flat out in qualifying, slight lift in race (depending on fuel)",
516
+ "Les Combes: Brake at 150m board, down to 3rd gear",
517
+ "Pouhon: Carry speed through this double apex corner",
518
+ "Blanchimont: Flat out but need good aero balance",
519
+ "Bus Stop Chicane: Important to get right for good lap time"
520
+ ],
521
+ nurburgring: [
522
+ "Turn 1 (Castrol-S): Brake at 100m board, down to 3rd gear",
523
+ "Turn 2 (Ford-Kurve): Important to get right for good run down to Dunlop-Kehre",
524
+ "Schumacher S: Need good rotation through this complex",
525
+ "Turn 10 (Bit-Kurve): Important to get right for good lap time",
526
+ "Final corner: Use all the curb on exit for best lap time"
527
+ ]
528
+ }
529
+ },
530
+ troubleshooting: {
531
+ mercedes: {
532
+ understeer: "Increase rear ride height 2-3mm or soften front ARB 1 click",
533
+ oversteer: "Increase front wing 1 click or soften rear ARB 1 click",
534
+ brakingInstability: "Move brake bias rearward 1-2% or increase rear ride height",
535
+ tractionIssues: "Increase diff preload 10Nm or soften rear suspension 1 click"
536
+ }
537
+ },
538
+ physicsTips: {
539
+ general: [
540
+ "AMS2 tires work best at slightly lower pressures than other sims (26-28psi optimal)",
541
+ "Rake effect is more pronounced - small ride height changes make big differences",
542
+ "Tire temps rise quickly - manage them through driving style in first laps",
543
+ "Differential settings have more impact than in other sims - tune carefully",
544
+ "Suspension damping is crucial for curbs and bumps"
545
+ ],
546
+ mercedes: [
547
+ "Responds well to slightly higher rear ride height than other cars",
548
+ "Front tires can overheat quickly if too much steering input",
549
+ "Works best with slightly softer front suspension than rear"
550
+ ]
551
+ }
552
+ };
553
+
554
+ // DOM Elements
555
+ const generateBtn = document.getElementById('generate-btn');
556
+ const resultsSection = document.getElementById('results-section');
557
+ const carSelect = document.getElementById('car-select');
558
+ const trackSelect = document.getElementById('track-select');
559
+ const tabButtons = document.querySelectorAll('.tab-btn');
560
+ const tabContents = document.querySelectorAll('.tab-content');
561
+
562
+ // Event Listeners
563
+ generateBtn.addEventListener('click', generateSetup);
564
+ tabButtons.forEach(btn => {
565
+ btn.addEventListener('click', () => switchTab(btn.dataset.tab));
566
+ });
567
+
568
+ // Functions
569
+ function generateSetup() {
570
+ const car = carSelect.value;
571
+ const track = trackSelect.value;
572
+ const style = document.querySelector('input[name="style"]:checked').value;
573
+ const conditions = document.querySelector('input[name="conditions"]:checked').value;
574
+
575
+ // Update header
576
+ document.getElementById('car-track-header').textContent =
577
+ `${setupData.cars[car].name} at ${setupData.tracks[track].name}`;
578
+ document.getElementById('track-description').textContent =
579
+ setupData.tracks[track].description;
580
+
581
+ // Update badges
582
+ const styleBadge = document.getElementById('style-badge');
583
+ styleBadge.textContent = style.charAt(0).toUpperCase() + style.slice(1);
584
+ styleBadge.className = `px-3 py-1 rounded-full text-sm font-medium ${
585
+ style === 'aggressive' ? 'bg-red-100 text-red-800' :
586
+ style === 'balanced' ? 'bg-yellow-100 text-yellow-800' :
587
+ 'bg-green-100 text-green-800'
588
+ }`;
589
+
590
+ const conditionsBadge = document.getElementById('conditions-badge');
591
+ conditionsBadge.textContent = conditions.charAt(0).toUpperCase() + conditions.slice(1);
592
+ conditionsBadge.className = `px-3 py-1 rounded-full text-sm font-medium ${
593
+ conditions === 'dry' ? 'bg-blue-100 text-blue-800' :
594
+ conditions === 'mixed' ? 'bg-purple-100 text-purple-800' :
595
+ 'bg-gray-100 text-gray-800'
596
+ }`;
597
+
598
+ // Generate setup content (simplified for example)
599
+ // In a full implementation, this would pull from the setupData object
600
+ document.getElementById('suspension-content').innerHTML = `
601
+ <p><strong>Springs:</strong> Front 6-7, Rear 8-9 (adjust ±1 for style)</p>
602
+ <p><strong>ARB:</strong> Front 5, Rear 5 (stiffer for aggressive)</p>
603
+ <p><strong>Ride Height:</strong> Front 55mm, Rear 60mm</p>
604
+ <p><strong>Damping:</strong> Medium-fast bump, medium rebound</p>
605
+ `;
606
+
607
+ document.getElementById('aero-content').innerHTML = `
608
+ <p><strong>Front Wing:</strong> 3-4 (higher for more rotation)</p>
609
+ <p><strong>Rear Wing:</strong> 5-6 (balance for sector 1)</p>
610
+ <p><strong>Brake Ducts:</strong> 5-6 (higher if braking instability)</p>
611
+ `;
612
+
613
+ document.getElementById('tires-content').innerHTML = `
614
+ <p><strong>Pressures:</strong> Front 27.5psi, Rear 27.0psi</p>
615
+ <p><strong>Camber:</strong> Front -3.2°, Rear -2.8°</p>
616
+ <p><strong>Toe:</strong> Front 0.10° out, Rear 0.20° in</p>
617
+ `;
618
+
619
+ document.getElementById('diff-content').innerHTML = `
620
+ <p><strong>Preload:</strong> 80-90Nm</p>
621
+ <p><strong>Power:</strong> 50-60%</p>
622
+ <p><strong>Coast:</strong> 30-40%</p>
623
+ `;
624
+
625
+ document.getElementById('alignment-content').innerHTML = `
626
+ <p><strong>Caster:</strong> 7.0-7.5°</p>
627
+ <p><strong>Anti-Dive/Squat:</strong> 50-60%</p>
628
+ `;
629
+
630
+ document.getElementById('brakes-content').innerHTML = `
631
+ <p><strong>Bias:</strong> 57-59% front</p>
632
+ <p><strong>Pressure:</strong> 85-90%</p>
633
+ `;
634
+
635
+ document.getElementById('driving-content').innerHTML = `
636
+ <h4 class="font-semibold text-lg mb-2">Key Corners:</h4>
637
+ <ul class="list-disc pl-5 space-y-2">
638
+ <li><strong>Turn 1 (Senna S):</strong> Brake at 100m board, trail brake to rotate car</li>
639
+ <li><strong>Turn 3 (Curva do Sol):</strong> Carry speed with slight lift</li>
640
+ <li><strong>Turn 10 (Pinheirinho):</strong> Brake early, rotate with trail braking</li>
641
+ </ul>
642
+ <h4 class="font-semibold text-lg mt-4 mb-2">Gear Recommendations:</h4>
643
+ <p>Use 3rd gear for most slow corners, short shift to manage traction</p>
644
+ `;
645
+
646
+ document.getElementById('troubleshooting-content').innerHTML = `
647
+ <div class="space-y-4">
648
+ <div>
649
+ <h4 class="font-semibold">Mid-corner understeer:</h4>
650
+ <p>Increase rear ride height 2-3mm or soften front ARB 1 click</p>
651
+ </div>
652
+ <div>
653
+ <h4 class="font-semibold">Braking instability:</h4>
654
+ <p>Move brake bias rearward 1-2% or increase rear ride height</p>
655
+ </div>
656
+ <div>
657
+ <h4 class="font-semibold">Poor traction on exit:</h4>
658
+ <p>Increase diff preload 10Nm or soften rear suspension 1 click</p>
659
+ </div>
660
+ </div>
661
+ `;
662
+
663
+ document.getElementById('physics-content').innerHTML = `
664
+ <div class="space-y-4">
665
+ <div>
666
+ <h4 class="font-semibold">AMS2-Specific Tips:</h4>
667
+ <ul class="list-disc pl-5 space-y-2">
668
+ <li>Tire pressures optimal at 26-28psi (lower than other sims)</li>
669
+ <li>Rake effect is more pronounced - small changes make big differences</li>
670
+ <li>Differential settings have more impact than in other sims</li>
671
+ </ul>
672
+ </div>
673
+ <div>
674
+ <h4 class="font-semibold">Car-Specific Insights:</h4>
675
+ <ul class="list-disc pl-5 space-y-2">
676
+ <li>Responds well to slightly higher rear ride height</li>
677
+ <li>Front tires can overheat quickly with too much steering input</li>
678
+ <li>Works best with slightly softer front suspension than rear</li>
679
+ </ul>
680
+ </div>
681
+ </div>
682
+ `;
683
+
684
+ // Show results
685
+ resultsSection.classList.remove('hidden');
686
+ }
687
+
688
+ function switchTab(tabName) {
689
+ // Update active tab button
690
+ tabButtons.forEach(btn => {
691
+ if (btn.dataset.tab === tabName) {
692
+ btn.classList.add('text-blue-600', 'border-b-2', 'border-blue-600');
693
+ btn.classList.remove('text-gray-500');
694
+ } else {
695
+ btn.classList.remove('text-blue-600', 'border-b-2', 'border-blue-600');
696
+ btn.classList.add('text-gray-500');
697
+ }
698
+ });
699
+
700
+ // Update active tab content
701
+ tabContents.forEach(content => {
702
+ if (content.id === `${tabName}-tab`) {
703
+ content.classList.add('active');
704
+ } else {
705
+ content.classList.remove('active');
706
+ }
707
+ });
708
+ }
709
+ </script>
710
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=DMS9015/ams2-setup-test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
711
+ </html>
prompts.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ I’m driving GT3 cars in Automobilista 2 and need help creating fast, car-specific setups that take advantage of AMS2’s unique physics and quirks. Focus only on the GT3 class. Include track-specific setup tips for [INSERT TRACK HERE], including aero balance, tire pressures, suspension tuning, and anything track-specific (e.g., elevation, bumps, kerbs). The car I’m using is the [INSERT GT3 CAR HERE]. Provide car-specific setup advice—what it needs to go fast, how to fix its handling quirks, and which setup options have the biggest impact. List any known AMS2-specific physics hacks or tricks that help optimize lap time, like how rake or tire temps behave unusually in this sim. Troubleshoot handling issues: for example, what to change if I have mid-corner understeer, braking instability, or poor traction on corner exit in this specific car. Give lap time driving tips: ideal lines, gears, braking points for this car-track combo. Please return the setup advice in a structured, easy-to-follow format: [suspension] / [aero] / [tires] / [differential] / [alignment] / [brake bias] / [driving tips].
2
+ add more tracks
3
+ more tracks, la guna seca and dlc tracks