Jump to content
Age of History 3
bruhfinder1

[Critical] Scenarios cannot load after trying to make new scenario.

Recommended Posts

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

Screenshot 2024-10-23 193844.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by Marerjh

Share this post


Link to post
Share on other sites

@Ł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 by Marerjh
The only character that causes the bug is / and \

Share this post


Link to post
Share on other sites

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

  1. Go to steamapps\common\Age of History 3\map\Earth3
  2. Remove the scenario tag that caused the bug from the “Scenarios.txe” file
  3. Go to the «Scenarios» folder
  4. 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 by Marerjh

Share this post


Link to post
Share on other sites

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 by Iceman

Share this post


Link to post
Share on other sites

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

  1. Go to steamapps\common\Age of History 3\map\Earth3
  2. Remove the scenario tag that caused the bug from the “Scenarios.txe” file
  3. Go to the «Scenarios» folder
  4. 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)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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:

Assigning “CON” as a scenario tag and saving:

 

Share this post


Link to post
Share on other sites

9 minutes ago, minion1324311@gmail.com said:

 

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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Age of History 3 - October 23rd, 2024 - Official release date
      Age of History 3 - Official release date

       

      Steam: October 23rd, 2024

      Android: When it's ready

      iOS: When it's ready

      Epic: When it's ready

       
    • Campaign: Small Scenarios
      In this topic, share your ideas for Campaign scenarios.

      These scenarios focus on a small part of the map, with the rest designated as wasteland.

       

      For example, a scenario of the Reconquista in 1054, where gameplay takes place only on the Iberian Peninsula.

      What are your ideas for small historical scenarios?

       


       
    • Events - Common events for every civilization in the game
      Hi,
      in this topic, I am interested in your ideas for events that can happen for every Civilization in the game.
      I'm also interested in Missions for every Civilization.

      Here is some example, have more than 10k army, have more than 5000 gold, build 10 buildings, recruit an Advisor, increase tax efficiency 20 times, be largest  producer of some resource in the world, unlock 5 Civilization legacies etc.
      • 196 replies
    • First preview of the Alpha version of Age of History 3
      First preview of the Alpha version of Age of History 3, YouTube.
      Release date: When it's ready 😛 Subscribe for more!



       





       
    • Land units - Ideas AoH3
      AoH3 will have different types of land units.

      In this topic we will write ideas for new land units. 

       

      So the AoH 3 will have new battle system.


      Representation of the battlefield in the game.


      Land units will be grouped into 3 types. Each unit will have a different recruitment cost, attack, defense, movement speed and upkeep.

      Groups determine the placement of units on the battlefield.


       

      Each unit can be unlocked by researching technology and then upgraded.

       

      Here is the current list of units with upgrades:

      First line:

      Warrior -> Light Footmen -> Heavy Infantry -> Infantry -> Line Infantry -> Modern Infantry

      Hoplites -> Spearmen -> Pikeman -> Elite Pikeman -> Musketeer -> Riflemen -> Mechanized Infantry -> Modern Mechanized Infantry

      First line side:

      Horseman -> Elite Horseman -> Cavalry -> Tank -> Modern Tank

      Second line:

      Archer -> Bowmen -> Crossbowman -> Elite Crossbowman

      Canon -> Field Cannon -> Artillery -> Modern Artillery

      Early Airplane -> Airplane -> Modern Airplane

       

      This is a very early version, so maybe something should be changed?

      Or maybe an idea for a new type of unit with upgrades? I'm waiting for your suggestions.

       
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Age of History Games