| 
									
										
										
										
											2020-10-24 14:46:27 -04:00
										 |  |  | {% extends 'pageWrapper.html' %} | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block head %} | 
					
						
							|  |  |  |     {{ super() }} | 
					
						
							|  |  |  |     <title>Generate Game</title> | 
					
						
							| 
									
										
										
										
											2021-05-13 00:41:49 +02:00
										 |  |  |     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/generate.css") }}" /> | 
					
						
							|  |  |  |     <script type="application/ecmascript" src="{{ url_for('static', filename="assets/generate.js") }}"></script> | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  | {% endblock %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block body %} | 
					
						
							| 
									
										
										
										
											2020-12-03 01:55:06 -05:00
										 |  |  |     {% include 'header/oceanHeader.html' %} | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |     <div id="generate-game-wrapper"> | 
					
						
							|  |  |  |         <div id="generate-game" class="grass-island"> | 
					
						
							| 
									
										
										
										
											2021-10-11 20:52:30 -04:00
										 |  |  |             <h1>Generate Game{% if race %} (Race Mode){% endif %}</h1> | 
					
						
							| 
									
										
										
										
											2020-12-04 03:40:46 -05:00
										 |  |  |             <p> | 
					
						
							| 
									
										
										
										
											2021-10-11 20:52:30 -04:00
										 |  |  |                 This page allows you to generate a game by uploading a config file or a zip file containing config | 
					
						
							|  |  |  |                 files. If you do not have a config (.yaml) file yet, you may create one on the game's settings page, | 
					
						
							|  |  |  |                 which you can find via the <a href="{{ url_for("games") }}">supported games list</a>. | 
					
						
							| 
									
										
										
										
											2020-12-04 03:40:46 -05:00
										 |  |  |             </p> | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  |             <p> | 
					
						
							|  |  |  |                 {% if race -%} | 
					
						
							| 
									
										
										
										
											2021-10-14 19:41:23 +02:00
										 |  |  |                     This game will be generated in race mode, | 
					
						
							|  |  |  |                     meaning the spoiler log will be unavailable and game specific protections will be in place, | 
					
						
							|  |  |  |                     like ROM encryption or cheat mode removal. | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  |                 {%- else -%} | 
					
						
							| 
									
										
										
										
											2020-12-04 03:40:46 -05:00
										 |  |  |                     If you would like to generate a race game, | 
					
						
							| 
									
										
										
										
											2021-10-11 20:52:30 -04:00
										 |  |  |                     <a href="{{ url_for("generate", race=True) }}">click here.</a><br /> | 
					
						
							| 
									
										
										
										
											2021-10-14 19:41:23 +02:00
										 |  |  |                     Race games are generated without a spoiler log and game specific protections will be in place, | 
					
						
							|  |  |  |                     like ROM encryption or cheat mode removal. | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  |                 {%- endif -%} | 
					
						
							|  |  |  |             </p> | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |             <div id="generate-game-form-wrapper"> | 
					
						
							|  |  |  |                 <form id="generate-game-form" method="post" enctype="multipart/form-data"> | 
					
						
							| 
									
										
										
										
											2021-10-11 20:52:30 -04:00
										 |  |  |                     <table> | 
					
						
							|  |  |  |                         <tbody> | 
					
						
							|  |  |  |                             <tr> | 
					
						
							|  |  |  |                                 <td><label for="forfeit_mode">Forfeit Permission:</label></td> | 
					
						
							|  |  |  |                                 <td> | 
					
						
							|  |  |  |                                     <select name="forfeit_mode" id="forfeit_mode"> | 
					
						
							|  |  |  |                                         <option value="auto">Automatic on goal completion</option> | 
					
						
							|  |  |  |                                         <option value="goal">Allow !forfeit after goal completion</option> | 
					
						
							|  |  |  |                                         <option value="auto-enabled">Automatic on goal completion and manual !forfeit</option> | 
					
						
							|  |  |  |                                         <option value="enabled">Manual !forfeit</option> | 
					
						
							|  |  |  |                                         <option value="disabled">Disabled</option> | 
					
						
							|  |  |  |                                     </select> | 
					
						
							|  |  |  |                                 </td> | 
					
						
							|  |  |  |                             </tr> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                             <tr> | 
					
						
							|  |  |  |                                 <td> | 
					
						
							|  |  |  |                                     <label for="hint_cost"> Hint Cost:</label> | 
					
						
							|  |  |  |                                     <span | 
					
						
							|  |  |  |                                         class="interactive" | 
					
						
							|  |  |  |                                         data-tooltip="After gathering this many checks, players can !hint <itemname> | 
					
						
							|  |  |  |                                             to get the location of that hint item.">(?) | 
					
						
							|  |  |  |                                     </span> | 
					
						
							|  |  |  |                                 </td> | 
					
						
							|  |  |  |                                 <td> | 
					
						
							|  |  |  |                                     <select name="hint_cost" id="hint_cost"> | 
					
						
							|  |  |  |                                         {% for n in range(0, 110, 5) %} | 
					
						
							|  |  |  |                                             <option {% if n == 10 %}selected="selected" {% endif %} value="{{ n }}"> | 
					
						
							|  |  |  |                                                 {% if n > 100 %}Off{% else %}{{ n }}%{% endif %} | 
					
						
							|  |  |  |                                             </option> | 
					
						
							|  |  |  |                                         {% endfor %} | 
					
						
							|  |  |  |                                     </select> | 
					
						
							|  |  |  |                                 </td> | 
					
						
							|  |  |  |                             </tr> | 
					
						
							|  |  |  |                         </tbody> | 
					
						
							|  |  |  |                     </table> | 
					
						
							|  |  |  |                     <div id="generate-form-button-row"> | 
					
						
							|  |  |  |                         <input id="file-input" type="file" name="file"> | 
					
						
							|  |  |  |                     </div> | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  |                 </form> | 
					
						
							| 
									
										
										
										
											2021-10-11 20:52:30 -04:00
										 |  |  |                 <button id="generate-game-button">Upload File</button> | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |     {%  include 'islandFooter.html' %} | 
					
						
							| 
									
										
										
										
											2020-08-02 22:11:52 +02:00
										 |  |  | {% endblock %} |