@echo off goto intro :auto cls title AOEO Firewall Auto-Config - Auto Mode echo En utilisant le mode auto... netsh advfirewall firewall add rule name="aoeo-1000" dir=in action=allow protocol=UDP localport=1000 netsh advfirewall firewall add rule name="aoeo-1001" dir=in action=allow protocol=UDP localport=1001 netsh advfirewall firewall add rule name="aoeo-1002" dir=in action=allow protocol=UDP localport=1002 netsh advfirewall firewall add rule name="aoeo-1003" dir=in action=allow protocol=UDP localport=1003 netsh advfirewall firewall add rule name="aoeo-1004" dir=in action=allow protocol=UDP localport=1004 netsh advfirewall firewall add rule name="aoeo-1005" dir=in action=allow protocol=UDP localport=1005 IF EXIST "C:\Program Files (x86)\Age Of Empires Online\Spartan.exe" (netsh firewall add allowedprogram "C:\Program Files (x86)\Age Of Empires Online\Spartan.exe" aoeo-spartan enable >nul) IF EXIST "C:\Program Files (x86)\Age Of Empires Online\Celeste_Launcher_Gui.exe" (netsh firewall add allowedprogram "C:\Program Files (x86)\Age Of Empires Online\Celeste_Launcher_Gui.exe" aoeo-celeste enable >nul) IF EXIST "C:\Program Files\Age Of Empires Online\Spartan.exe" (netsh firewall add allowedprogram "C:\Program Files\Age Of Empires Online\Spartan.exe" aoeo-spartan enable >nul) IF EXIST "C:\Program Files\Age Of Empires Online\Celeste_Launcher_Gui.exe" (netsh firewall add allowedprogram "C:\Program Files\Age Of Empires Online\Celeste_Launcher_Gui.exe" aoeo-celeste enable >nul) IF EXIST "C:\Program Files (x86)\Steam\steamapps\common\Age of Empires Online\Spartan.exe" (netsh firewall add allowedprogram "C:\Program Files (x86)\Steam\steamapps\common\Age of Empires Online\Spartan.exe" aoeo-spartan enable >nul) IF EXIST "C:\Program Files (x86)\Steam\steamapps\common\Age of Empires Online\Celeste_Launcher_Gui.exe" (netsh firewall add allowedprogram "C:\Program Files (x86)\Steam\steamapps\common\Age of Empires Online\Celeste_Launcher_Gui.exe" aoeo-celeste enable >nul) IF EXIST "C:\Program Files\Steam\steamapps\common\Age of Empires Online\Spartan.exe" (netsh firewall add allowedprogram "C:\Program Files\Steam\steamapps\common\Age of Empires Online\Spartan.exe" aoeo-spartan enable >nul) IF EXIST "C:\Program Files\Steam\steamapps\common\Age of Empires Online\Celeste_Launcher_Gui.exe" (netsh firewall add allowedprogram "C:\Program Files\Steam\steamapps\common\Age of Empires Online\Celeste_Launcher_Gui.exe" aoeo-celeste enable >nul) goto end :manual cls title AOEO Firewall Auto-Config - Manual Mode netsh advfirewall firewall add rule name="aoeo-1000" dir=in action=allow protocol=UDP localport=1000 netsh advfirewall firewall add rule name="aoeo-1001" dir=in action=allow protocol=UDP localport=1001 netsh advfirewall firewall add rule name="aoeo-1002" dir=in action=allow protocol=UDP localport=1002 netsh advfirewall firewall add rule name="aoeo-1003" dir=in action=allow protocol=UDP localport=1003 netsh advfirewall firewall add rule name="aoeo-1004" dir=in action=allow protocol=UDP localport=1004 netsh advfirewall firewall add rule name="aoeo-1005" dir=in action=allow protocol=UDP localport=1005 cls echo En utilisant le mode manuel.... echo Les ports (1000-1005 UDP) ont ete rajoutes. Aucune autre action manuelle n'est requise pour les ports puisqu'ils resteront toujours les memes. echo. echo Veuillez entrer le chemin complet d'installation de AOEO. echo Exemple de chemin: C:\Program Files (x86)\Mes installations\Age of Empires Online set /p path=Installation Path: cls netsh firewall add allowedprogram "%path%\Celeste_Launcher_Gui.exe" aoeo-celeste enable >nul netsh firewall add allowedprogram "%path%\Spartan.exe" aoeo-spartan enable >nul cls echo Fichier exe avec le chemin specifie autorise. pause goto end :intro cls title AOEO Firewall Auto-Config - Intro (Batch File v2) color 0c echo --- Intro/Disclaimer --- echo. echo Cet outil va configuer le pare-feu de base de Windows pour autoriser les ports echo et les fichiers exe associes au jeu à travers le pare-feu pour pouvoir echo jouer en multiplayer. echo. echo Cet outil est fourni sans aucune forme de garantie et est fourni echo 'tel quel'. Cet outil a été créé par @NCSGeek#3936 pour la communaute du projet Celeste d'AOEO. echo Ainsi, tout contact necessaire peut se faire via discord. echo. echo Appuyer sur un bouton pour accepter les termes et poursuivre avec l'outil. Merci, et longue echo vie à Age of Empire et le Projet Celeste ! :) pause>nul goto begin :begin cls color 0b title AOEO Firewall Auto-Config - Begin echo Bienvenue sur la configuration du pare-feu ! Veuillez choisir une option de configuration ci-dessous: echo 1 - Auto (Detecte automatiquement les dossiers d'installation par défaut de AOEO, et applique les regles du pare-feu pour ceux-ci) [Recommandee] echo 2 - Manuelle (Entrer manuellement les dossiers. Uniquement nécessaire si vous avez installé AOEO à un autre emplacement que celui par défaut, que ce soit pour steam ou non ou si AOEO n'est pas installe sur le lecteur C) [Avancee] echo. echo L'option #1 est recommandee. Si vous ne savez pas quelle option choisir, il vaut mieux choisir l'option #1. echo. echo. set /p method=Option (Enter '1' or '2'): if "%method%"=="1" (goto auto) if "%method%"=="2" (goto manual) :end echo L'outil a termine! pause