LuckyEnforceAgent commited on
Commit
fd9d6c0
·
verified ·
1 Parent(s): 22d9105

I NEED A AI ASISTANT THAT IS TRAINED ON ARMA REFORGER MODDING

Browse files
Files changed (3) hide show
  1. README.md +8 -5
  2. chat.html +198 -0
  3. index.html +176 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Armaforge Assistant
3
- emoji: 🏃
4
- colorFrom: purple
5
- colorTo: yellow
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: ArmaForge Assistant 🤖
3
+ colorFrom: gray
4
+ colorTo: gray
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
chat.html ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>ArmaForge Assistant - Live Chat</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <style>
11
+ .chat-container {
12
+ height: calc(100vh - 180px);
13
+ }
14
+ .code-block {
15
+ font-family: 'Courier New', monospace;
16
+ background-color: #1e293b;
17
+ border-left: 3px solid #10b981;
18
+ }
19
+ .user-bubble {
20
+ background-color: #1e40af;
21
+ border-radius: 1rem 1rem 0 1rem;
22
+ }
23
+ .ai-bubble {
24
+ background-color: #334155;
25
+ border-radius: 1rem 1rem 1rem 0;
26
+ }
27
+ .typing-indicator span {
28
+ height: 8px;
29
+ width: 8px;
30
+ background-color: #6ee7b7;
31
+ border-radius: 50%;
32
+ display: inline-block;
33
+ margin: 0 2px;
34
+ animation: bounce 1.4s infinite ease-in-out both;
35
+ }
36
+ .typing-indicator span:nth-child(1) {
37
+ animation-delay: -0.32s;
38
+ }
39
+ .typing-indicator span:nth-child(2) {
40
+ animation-delay: -0.16s;
41
+ }
42
+ @keyframes bounce {
43
+ 0%, 80%, 100% { transform: scale(0); }
44
+ 40% { transform: scale(1); }
45
+ }
46
+ </style>
47
+ </head>
48
+ <body class="bg-gray-900 text-gray-100 min-h-screen">
49
+ <div class="container mx-auto px-4 py-6">
50
+ <!-- Header -->
51
+ <header class="flex justify-between items-center mb-6 border-b border-teal-500 pb-4">
52
+ <div class="flex items-center space-x-3">
53
+ <i data-feather="cpu" class="w-8 h-8 text-teal-400"></i>
54
+ <h1 class="text-2xl font-bold text-teal-400">ArmaForge Assistant</h1>
55
+ </div>
56
+ <button class="text-teal-300 hover:text-white flex items-center">
57
+ <i data-feather="settings" class="mr-2"></i> Settings
58
+ </button>
59
+ </header>
60
+
61
+ <!-- Chat Area -->
62
+ <div class="chat-container overflow-y-auto mb-4 space-y-4">
63
+ <!-- Welcome Message -->
64
+ <div class="flex">
65
+ <div class="ai-bubble max-w-3xl p-4">
66
+ <p class="font-medium">Welcome to ArmaForge Assistant! 👋</p>
67
+ <p class="mt-1">I'm here to help with all your Arma Reforger modding questions. You can ask about:</p>
68
+ <ul class="list-disc pl-5 mt-2 space-y-1">
69
+ <li>Script debugging and optimization</li>
70
+ <li>Workbench setup and configuration</li>
71
+ <li>Mod packaging and deployment</li>
72
+ <li>Game mechanics implementation</li>
73
+ </ul>
74
+ <p class="mt-2">What would you like to know about today?</p>
75
+ </div>
76
+ </div>
77
+
78
+ <!-- Sample Conversation -->
79
+ <div class="flex justify-end">
80
+ <div class="user-bubble max-w-3xl p-4">
81
+ <p>How do I spawn AI units in a mission script?</p>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="flex">
86
+ <div class="ai-bubble max-w-3xl p-4">
87
+ <p>Here's a basic example of spawning AI units in Arma Reforger:</p>
88
+ <div class="code-block p-4 rounded-lg mt-2 text-sm overflow-x-auto">
89
+ <pre class="text-green-400">
90
+ // Create a group for the AI
91
+ auto group = GetGame().CreateGroup();
92
+
93
+ // Spawn a soldier at position [0,0,0]
94
+ auto unit = GetGame().CreateCharacter(group, "Faction_US_Soldier_Rifleman_M4A1");
95
+ unit.SetPosition(vector.Zero);
96
+
97
+ // Add waypoints
98
+ auto waypoint = group.AddWaypoint(vector(100, 0, 100));
99
+ waypoint.SetType(EWaypointType.MOVE);</pre>
100
+ </div>
101
+ <p class="mt-3">Remember to set appropriate faction templates and loadouts for your units.</p>
102
+ </div>
103
+ </div>
104
+
105
+ <!-- Typing Indicator -->
106
+ <div class="flex items-center space-x-2 opacity-75 hidden" id="typingIndicator">
107
+ <div class="ai-bubble px-4 py-2">
108
+ <div class="typing-indicator">
109
+ <span></span>
110
+ <span></span>
111
+ <span></span>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </div>
116
+
117
+ <!-- Input Area -->
118
+ <div class="bg-gray-800 rounded-lg p-4">
119
+ <form id="chatForm" class="flex items-center space-x-2">
120
+ <input type="text" id="userInput" placeholder="Ask about Arma Reforger modding..."
121
+ class="flex-grow bg-gray-700 border border-gray-600 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-teal-500">
122
+ <button type="submit" class="bg-teal-600 hover:bg-teal-500 p-3 rounded-lg">
123
+ <i data-feather="send" class="w-5 h-5"></i>
124
+ </button>
125
+ </form>
126
+ <div class="flex justify-between mt-2 text-xs text-gray-400">
127
+ <div class="flex space-x-2">
128
+ <button class="hover:text-teal-400 flex items-center">
129
+ <i data-feather="code" class="w-3 h-3 mr-1"></i> Code
130
+ </button>
131
+ <button class="hover:text-teal-400 flex items-center">
132
+ <i data-feather="image" class="w-3 h-3 mr-1"></i> Image
133
+ </button>
134
+ </div>
135
+ <div>
136
+ <button class="hover:text-teal-400 flex items-center">
137
+ <i data-feather="trash-2" class="w-3 h-3 mr-1"></i> Clear
138
+ </button>
139
+ </div>
140
+ </div>
141
+ </div>
142
+ </div>
143
+
144
+ <script>
145
+ // Initialize feather icons
146
+ feather.replace();
147
+
148
+ // Simple chat interaction
149
+ document.getElementById('chatForm').addEventListener('submit', function(e) {
150
+ e.preventDefault();
151
+ const input = document.getElementById('userInput');
152
+ const message = input.value.trim();
153
+
154
+ if (message) {
155
+ // Add user message to chat
156
+ const chatContainer = document.querySelector('.chat-container');
157
+ const userMsg = document.createElement('div');
158
+ userMsg.className = 'flex justify-end';
159
+ userMsg.innerHTML = `
160
+ <div class="user-bubble max-w-3xl p-4">
161
+ <p>${message}</p>
162
+ </div>
163
+ `;
164
+ chatContainer.appendChild(userMsg);
165
+
166
+ // Clear input
167
+ input.value = '';
168
+
169
+ // Show typing indicator
170
+ const typingIndicator = document.getElementById('typingIndicator');
171
+ typingIndicator.classList.remove('hidden');
172
+
173
+ // Scroll to bottom
174
+ chatContainer.scrollTop = chatContainer.scrollHeight;
175
+
176
+ // Simulate AI response after delay
177
+ setTimeout(() => {
178
+ typingIndicator.classList.add('hidden');
179
+
180
+ // Add AI response
181
+ const aiMsg = document.createElement('div');
182
+ aiMsg.className = 'flex';
183
+ aiMsg.innerHTML = `
184
+ <div class="ai-bubble max-w-3xl p-4">
185
+ <p>Thanks for your question about Arma Reforger modding. I'm currently a demo interface, but in a real implementation, I would provide detailed guidance on "${message}".</p>
186
+ <p class="mt-2">For real help, this would connect to an AI backend trained on Arma Reforger documentation and modding resources.</p>
187
+ </div>
188
+ `;
189
+ chatContainer.appendChild(aiMsg);
190
+
191
+ // Scroll to bottom
192
+ chatContainer.scrollTop = chatContainer.scrollHeight;
193
+ }, 2000);
194
+ }
195
+ });
196
+ </script>
197
+ </body>
198
+ </html>
index.html CHANGED
@@ -1,19 +1,177 @@
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>ArmaForge Assistant - Your Modding Companion</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
11
+ <style>
12
+ .glow-text {
13
+ text-shadow: 0 0 8px rgba(110, 231, 183, 0.8);
14
+ }
15
+ .code-block {
16
+ font-family: 'Courier New', monospace;
17
+ background-color: #1e293b;
18
+ border-left: 3px solid #10b981;
19
+ }
20
+ .chat-bubble {
21
+ border-radius: 1rem;
22
+ position: relative;
23
+ }
24
+ .user-bubble {
25
+ background-color: #1e40af;
26
+ }
27
+ .ai-bubble {
28
+ background-color: #334155;
29
+ }
30
+ </style>
31
+ </head>
32
+ <body class="bg-gray-900 text-gray-100 min-h-screen">
33
+ <div id="vanta-bg" class="fixed inset-0 z-0"></div>
34
+
35
+ <div class="relative z-10 container mx-auto px-4 py-8">
36
+ <!-- Header -->
37
+ <header class="flex flex-col md:flex-row justify-between items-center mb-12 border-b border-teal-500 pb-6">
38
+ <div class="flex items-center space-x-4 mb-4 md:mb-0">
39
+ <i data-feather="cpu" class="w-10 h-10 text-teal-400"></i>
40
+ <h1 class="text-3xl md:text-4xl font-bold glow-text text-teal-400">ArmaForge Assistant</h1>
41
+ </div>
42
+ <nav class="flex space-x-6">
43
+ <a href="#" class="text-teal-300 hover:text-white font-medium flex items-center">
44
+ <i data-feather="home" class="mr-2"></i> Home
45
+ </a>
46
+ <a href="#" class="text-teal-300 hover:text-white font-medium flex items-center">
47
+ <i data-feather="book" class="mr-2"></i> Docs
48
+ </a>
49
+ <a href="#" class="text-teal-300 hover:text-white font-medium flex items-center">
50
+ <i data-feather="message-square" class="mr-2"></i> Community
51
+ </a>
52
+ </nav>
53
+ </header>
54
+
55
+ <!-- Hero Section -->
56
+ <section class="mb-16 text-center">
57
+ <h2 class="text-4xl md:text-5xl font-bold mb-6 glow-text">Your <span class="text-teal-400">Arma Reforger</span> Modding Expert</h2>
58
+ <p class="text-xl md:text-2xl text-gray-300 max-w-3xl mx-auto mb-8">
59
+ Get instant help with script debugging, mod creation, and troubleshooting for Arma Reforger.
60
+ </p>
61
+ <div class="flex justify-center space-x-4">
62
+ <button class="bg-teal-600 hover:bg-teal-500 text-white px-6 py-3 rounded-lg font-medium flex items-center transition">
63
+ <i data-feather="terminal" class="mr-2"></i> Start Modding Chat
64
+ </button>
65
+ <button class="border border-teal-400 text-teal-400 hover:bg-teal-900/50 px-6 py-3 rounded-lg font-medium flex items-center transition">
66
+ <i data-feather="download" class="mr-2"></i> Get Templates
67
+ </button>
68
+ </div>
69
+ </section>
70
+
71
+ <!-- Features Grid -->
72
+ <section class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16">
73
+ <div class="bg-gray-800/70 backdrop-blur-sm p-6 rounded-xl border border-gray-700 hover:border-teal-500 transition">
74
+ <div class="bg-teal-900/30 w-12 h-12 rounded-lg flex items-center justify-center mb-4">
75
+ <i data-feather="code" class="text-teal-400"></i>
76
+ </div>
77
+ <h3 class="text-xl font-bold mb-2">Script Debugging</h3>
78
+ <p class="text-gray-300">Get help fixing script errors and optimizing your Arma Reforger mod code.</p>
79
+ </div>
80
+ <div class="bg-gray-800/70 backdrop-blur-sm p-6 rounded-xl border border-gray-700 hover:border-teal-500 transition">
81
+ <div class="bg-teal-900/30 w-12 h-12 rounded-lg flex items-center justify-center mb-4">
82
+ <i data-feather="box" class="text-teal-400"></i>
83
+ </div>
84
+ <h3 class="text-xl font-bold mb-2">Mod Creation</h3>
85
+ <p class="text-gray-300">Step-by-step guidance for creating all types of Arma Reforger mods.</p>
86
+ </div>
87
+ <div class="bg-gray-800/70 backdrop-blur-sm p-6 rounded-xl border border-gray-700 hover:border-teal-500 transition">
88
+ <div class="bg-teal-900/30 w-12 h-12 rounded-lg flex items-center justify-center mb-4">
89
+ <i data-feather="tool" class="text-teal-400"></i>
90
+ </div>
91
+ <h3 class="text-xl font-bold mb-2">Troubleshooting</h3>
92
+ <p class="text-gray-300">Solve common and complex issues with your mods and game setup.</p>
93
+ </div>
94
+ </section>
95
+
96
+ <!-- Chat Preview -->
97
+ <section class="bg-gray-800/70 backdrop-blur-sm rounded-xl border border-gray-700 p-6 mb-16">
98
+ <h2 class="text-2xl font-bold mb-6 text-center">Try a Sample Query</h2>
99
+ <div class="space-y-4">
100
+ <!-- User Message -->
101
+ <div class="flex justify-end">
102
+ <div class="chat-bubble user-bubble max-w-3xl p-4">
103
+ <p>How do I add custom weapons to Arma Reforger using the Workbench?</p>
104
+ </div>
105
+ </div>
106
+
107
+ <!-- AI Response -->
108
+ <div class="flex">
109
+ <div class="chat-bubble ai-bubble max-w-3xl p-4">
110
+ <p>Here's a basic workflow for adding custom weapons:</p>
111
+ <div class="code-block p-4 rounded-lg mt-2 text-sm overflow-x-auto">
112
+ <pre class="text-green-400">
113
+ // 1. Create a new mod in Workbench
114
+ // 2. Add a new script file (e.g., MyWeapon.c)
115
+ class MyWeapon : Weapon_Base
116
+ {
117
+ void MyWeapon()
118
+ {
119
+ // Weapon configuration
120
+ m_WeaponLength = 0.85;
121
+ m_Weight = 3.5;
122
+ m_Damage = 85;
123
+ // Add other parameters...
124
+ }
125
+ }</pre>
126
+ </div>
127
+ <p class="mt-3">Remember to register your weapon in the config.cpp and set up proper models and textures.</p>
128
+ </div>
129
+ </div>
130
+ </div>
131
+
132
+ <div class="mt-8">
133
+ <form class="flex items-center">
134
+ <input type="text" placeholder="Ask about Arma Reforger modding..."
135
+ class="flex-grow bg-gray-700 border border-gray-600 rounded-l-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-teal-500">
136
+ <button type="submit" class="bg-teal-600 hover:bg-teal-500 px-6 py-3 rounded-r-lg font-medium">
137
+ <i data-feather="send" class="w-5 h-5"></i>
138
+ </button>
139
+ </form>
140
+ </div>
141
+ </section>
142
+
143
+ <!-- Footer -->
144
+ <footer class="text-center text-gray-400 border-t border-gray-800 pt-8">
145
+ <div class="flex justify-center space-x-6 mb-6">
146
+ <a href="#" class="hover:text-teal-400"><i data-feather="github"></i></a>
147
+ <a href="#" class="hover:text-teal-400"><i data-feather="discord"></i></a>
148
+ <a href="#" class="hover:text-teal-400"><i data-feather="twitter"></i></a>
149
+ </div>
150
+ <p>© 2023 ArmaForge Assistant. Not affiliated with Bohemia Interactive.</p>
151
+ <p class="text-sm mt-2">Arma Reforger is a registered trademark of Bohemia Interactive.</p>
152
+ </footer>
153
+ </div>
154
+
155
+ <script>
156
+ // Initialize Vanta.js background
157
+ VANTA.NET({
158
+ el: "#vanta-bg",
159
+ mouseControls: true,
160
+ touchControls: true,
161
+ gyroControls: false,
162
+ minHeight: 200.00,
163
+ minWidth: 200.00,
164
+ scale: 1.00,
165
+ scaleMobile: 1.00,
166
+ color: 0x10b981,
167
+ backgroundColor: 0x111827,
168
+ points: 9.00,
169
+ maxDistance: 20.00,
170
+ spacing: 15.00
171
+ });
172
+
173
+ // Initialize feather icons
174
+ feather.replace();
175
+ </script>
176
+ </body>
177
  </html>