Jump to content
Age of History 3
  • 0
eyov2

Is it possible to overwrite vanilla buildings and technologies?

Question

I tried to replace vanilla buildings with modded ones but images are not showing up. Same with tech but its freezes the game on the 2nd day

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
13 minutes ago, Łukasz Jakowski said:

It is possible.

Show all of your changes, folders. Make screenshots.

Buildings are working now but tech still freezes the game

scr3.png

scr2.png

scr1.png

Share this post


Link to post
Share on other sites

  • 0

Okay, so you have removed all of the technologies and added only three?

 

There's more than just buildings and units—you have to also modify governments, laws.
 
game/Governments.json
REQUIRED_TECHNOLOGY: -1,
##  To disable required technology: -1
 
game/laws/Laws.json
RequiredTechID: [-1, 44, 54, 61, 89],
->
RequiredTechID: [-1, -1 , -1 , -1 , -1 ],
##  To disable required technology: -1
 
game/units/
All the files:
RequiredTechID: -1,
 
game/buildings/Buildings.json
game/buildings/BuildingsResources.json

RequiredTechID: [-1],
RequiredTechID: [-1, -1],

All scenarios, or the default scenario, need to change the default technology ID if is larger than 2(lower than all of your technologies counted from 0).
Scenario Editor -> and in the last menu -> "Unlocked technologies"


 

Share this post


Link to post
Share on other sites

  • 0
1 hour ago, Łukasz Jakowski said:

Okay, so you have removed all of the technologies and added only three?

 

There's more than just buildings and units—you have to also modify governments, laws.
 
game/Governments.json
REQUIRED_TECHNOLOGY: -1,
##  To disable required technology: -1
 
game/laws/Laws.json
RequiredTechID: [-1, 44, 54, 61, 89],
->
RequiredTechID: [-1, -1 , -1 , -1 , -1 ],
##  To disable required technology: -1
 
game/units/
All the files:
RequiredTechID: -1,
 
game/buildings/Buildings.json
game/buildings/BuildingsResources.json

RequiredTechID: [-1],
RequiredTechID: [-1, -1],

All scenarios, or the default scenario, need to change the default technology ID if is larger than 2(lower than all of your technologies counted from 0).
Scenario Editor -> and in the last menu -> "Unlocked technologies"


 

I replaced technology for units, laws with -1 but its still dont work. Logs:

java.lang.IndexOutOfBoundsException: Index: 4, Size: 3
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at aoc.kingdoms.lukasz.map.technology.TechnologyTree.buildTechUnlocks(TechnologyTree.java:52)
    at aoc.kingdoms.lukasz.menus.InitGame.initGame(InitGame.java:650)
    at aoc.kingdoms.lukasz.menus.InitGame.draw(InitGame.java:93)
    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)

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.
Answer this question...

×   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.



×
×
  • 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