bruhfinder1 2 Posted October 23, 2024 Hi, after i was trying to make a scenario, it would not save and then all the of other scenarios disappeared. I've restarted the game and even reinstalled it TWICE and it has the same glitch. I do not know how it happened but it did after i tried saving a custom scenario. PLEASE FIX THIS. ITS MAKING THE GAME COMPLEATLY UNPLAYABLE. Thank you sc00614 1 Quote Share this post Link to post Share on other sites More sharing options...
sc00614 32 Posted October 24, 2024 I encountered the same problem as you. After using the in-game scenario editor, I returned to the scenario page of the main menu. The scenario was completely unusable and turned black. The game could not be uninstalled from STEAM, making it completely unplayable. Quote Share this post Link to post Share on other sites More sharing options...
Marerjh 284 Posted October 24, 2024 (edited) @Łukasz Jakowski poor report but requires further investigation😳 Edited October 24, 2024 by Marerjh Quote Share this post Link to post Share on other sites More sharing options...
Marerjh 284 Posted October 24, 2024 (edited) Guys, leave more specific details. Maybe you used non-Latin characters? Maybe you used a weird date? What did you do with your scenario? Did you do something unusual that the developer wouldn't have thought of? Maybe you added custom civilizations? Describe everything you did from the moment you entered the scenario editor to the moment you exited it. @sc00614 @bruhfinder1 I can't reproduce the bug. Edited October 24, 2024 by Marerjh Łukasz Jakowski 1 Quote Share this post Link to post Share on other sites More sharing options...
Marerjh 284 Posted October 24, 2024 (edited) @Łukasz Jakowski got it. The reason is usage of / (slash) and \ (backslash) characters in the scenario tag. Other reserved characters in tag result in scenario not being created. Maybe add warning to not use those characters. https://help.interfaceware.com/v6/windows-reserved-file-names Now we need to figure out how to fix this bug. The folder with the scenario is not created, at least it is not in the Windows Explorer. Edited October 24, 2024 by Marerjh The only character that causes the bug is / and \ Quote Share this post Link to post Share on other sites More sharing options...
Marerjh 284 Posted October 24, 2024 (edited) The files that were supposed to be added to the scenario folder were added to the folder with all the scenarios. How to fix YOUR SCENARIO WILL BE DELETED Go to steamapps\common\Age of History 3\map\Earth3 Remove the scenario tag that caused the bug from the “Scenarios.txe” file Go to the «Scenarios» folder Delete all files. Do not touch folders. If you want to save your scenario then try to create new folder in «Scenarios» folder and move all files over there. In the “Scenarios.txt” file, replace the tag of the scenario that caused the bug with the name of the new folder. I haven't tried it, but it should work. Lukasz, it seems that after saving a scenario, the game rebuilds the list of scenarios it knows. When it encounters a file, it tries to open it as a folder, but fails. Game should handle such exceptions. Edited October 24, 2024 by Marerjh Łukasz Jakowski 1 Quote Share this post Link to post Share on other sites More sharing options...
Iceman 295 Posted October 24, 2024 (edited) 1 hour ago, Marerjh said: he reason is usage of / (slash) and \ (backslash) characters in the scenario tag. Also it's possible to put these characters in the civilization tag, but nothing weird happens. Edited October 24, 2024 by Iceman Quote Share this post Link to post Share on other sites More sharing options...
bruhfinder1 2 Posted October 24, 2024 4 hours ago, Marerjh said: The files that were supposed to be added to the scenario folder were added to the folder with all the scenarios. How to fix YOUR SCENARIO WILL BE DELETED Go to steamapps\common\Age of History 3\map\Earth3 Remove the scenario tag that caused the bug from the “Scenarios.txe” file Go to the «Scenarios» folder Delete all files. Do not touch folders. If you want to save your scenario then try to create new folder in «Scenarios» folder and move all files over there. In the “Scenarios.txt” file, replace the tag of the scenario that caused the bug with the name of the new folder. I haven't tried it, but it should work. Lukasz, it seems that after saving a scenario, the game rebuilds the list of scenarios it knows. When it encounters a file, it tries to open it as a folder, but fails. Game should handle such exceptions. @Marerjh Thanks I did delete all my custom scenarios and reinstalled the game last night and it fixed it (note: i did this independently of your guide on how to fix the bug) But... I do want to be able to make scenarios without bugging my entire game out. I do not remember using / in the tag or the name of the scenario but i did use all caps when writing the tag (KAISER) and made the scenario called: Kaiserreich. The tag being in caps might also be why (or im just wrong) Quote Share this post Link to post Share on other sites More sharing options...
sc00614 32 Posted October 24, 2024 2 hours ago, bruhfinder1 said: @Marerjh Thanks I did delete all my custom scenarios and reinstalled the game last night and it fixed it (note: i did this independently of your guide on how to fix the bug) But... I do want to be able to make scenarios without bugging my entire game out. I do not remember using / in the tag or the name of the scenario but i did use all caps when writing the tag (KAISER) and made the scenario called: Kaiserreich. The tag being in caps might also be why (or im just wrong) How did you fix it? Quote Share this post Link to post Share on other sites More sharing options...
Marerjh 284 Posted October 25, 2024 22 hours ago, Marerjh said: @Łukasz Jakowski got it. The reason is usage of / (slash) and \ (backslash) characters in the scenario tag. Other reserved characters in tag result in scenario not being created. Maybe add warning to not use those characters. https://help.interfaceware.com/v6/windows-reserved-file-names Now we need to figure out how to fix this bug. The folder with the scenario is not created, at least it is not in the Windows Explorer. This is still not fixed. Also i completely forgot about logs. Here's error when you save scenario with tag being either «/» or «\»: java.lang.IndexOutOfBoundsException: Index: 29, Size: 29 at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at aoc.kingdoms.lukasz.map.map.MapScenarios.loadScenarios(MapScenarios.java:279) at aoc.kingdoms.lukasz.menusScenarioEditor.ScenarioGeneratePreview.draw(ScenarioGeneratePreview.java:37) at aoc.kingdoms.lukasz.menu.MenuManager.draw(MenuManager.java:2076) at aoc.kingdoms.lukasz.menu.MenuManager.draw(MenuManager.java:1982) at aoc.kingdoms.lukasz.jakowski.Renderer.Renderer.renderUI(Renderer.java:572) at aoc.kingdoms.lukasz.jakowski.Renderer.Renderer.render(Renderer.java:550) at aoc.kingdoms.lukasz.jakowski.AA_Game.render(AA_Game.java:213) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:430) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:181) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:153) at aoc.kingdoms.lukasz.jakowski.desktop.DesktopLauncher.main(DesktopLauncher.java:108) Clicking on the “random scenario” when the game failed to load scenarios properly java.lang.IllegalArgumentException: bound must be positive at java.util.Random.nextInt(Random.java:388) at aoc.kingdoms.lukasz.map.map.MapScenarios.loadRandomScenario(MapScenarios.java:1885) at aoc.kingdoms.lukasz.menus.NewGame.Scenarios.Scenarios_Campaign_Vertical$4.actionElement(Scenarios_Campaign_Vertical.java:109) at aoc.kingdoms.lukasz.menu.Menu.actionElement(Menu.java:532) at aoc.kingdoms.lukasz.menu.MenuManager.actionElement(MenuManager.java:2173) at aoc.kingdoms.lukasz.menu.MenuManager.actionUp(MenuManager.java:2612) at aoc.kingdoms.lukasz.jakowski.Touch.actionUp(Touch.java:72) at aoc.kingdoms.lukasz.jakowski.AA_Game$1.touchUp(AA_Game.java:313) at com.badlogic.gdx.InputEventQueue.drain(InputEventQueue.java:70) at com.badlogic.gdx.backends.lwjgl3.DefaultLwjgl3Input.update(DefaultLwjgl3Input.java:190) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:409) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:181) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:153) at aoc.kingdoms.lukasz.jakowski.desktop.DesktopLauncher.main(DesktopLauncher.java:108) Launching game with text files in the «Scenarios» folder: https://pastebin.com/raw/Ju2mDyT7 Assigning “CON” as a scenario tag and saving: https://pastebin.com/raw/6kLhwAY5 Quote Share this post Link to post Share on other sites More sharing options...
minion1324311@gmail.com 0 Posted October 25, 2024 Can someone help with that? https://youtu.be/_UxqgezbdhQ?si=C8Mx70cQhAhiBQDU Quote Share this post Link to post Share on other sites More sharing options...
Łukasz Jakowski 13,390 Posted October 25, 2024 9 minutes ago, minion1324311@gmail.com said: Can someone help with that? https://youtu.be/_UxqgezbdhQ?si=C8Mx70cQhAhiBQDU By default, scenarios created in the scenario editor will be saved in: map/MAP_NAME/scenarios/ map/Earth3/scenarios/ The folder name of the scenario will correspond to the tag of the scenario! ##### Creating a mod folder: You can copy the folder named '_EmptyFoldersScenario' from modsExamples/ to the mods/ folder. After copying, rename '_EmptyFoldersScenario' to a unique name for your mod. For example: U_MyName_1037_Scenario Now you can set the mod name and description in the mod.txt file, and change logo.png to your mod’s logo ##### To create a mod that shares this scenario, copy the folder with the scenario tag to the path: mods/YOUR_MOD_NAME/map/MAP_NAME/scenarios/ Example: mods/U_MyName_1037_Scenario/map/Earth3/scenarios/ Keep in mind that the game will always prioritize reading scenarios from the mods folder. If you need to edit the scenario, it's recommended to temporarily move it from mods/YOUR_MOD_NAME/map/MAP_NAME/scenarios/ to the map/MAP_NAME/scenarios/ All data for the scenario will be read from the mods/ folder if the scenario exists. The game will save any changes made to the scenario in the game files at map/MAP_NAME/scenarios/ not your mod folder! Dule22 1 Quote Share this post Link to post Share on other sites More sharing options...