Hey, I love the mod, but it doesn't take terrain into consideration when showing which cities can build the wonders. Shwedagon Zedi Daw for instance requires a lake, but shows as being buildable in all my cities while none of them are near a lake:
import
statements, and i've been fixing that for some of the mods i use regularly. here are my diffs for Claimed Wonders and the Wonders Screen. hope it helps you!diff -r old/code/wonder-tracker.js new/code/wonder-tracker.js
3c3
< import { Icon } from '/core/ui/utilities/utilities-image.js';
---
> import { Icon } from '/core/ui/utilities/utilities-image.chunk.js';
diff -r old/code/mod-options-decorator.js new/code/mod-options-decorator.js
3c3
< import { CategoryData, CategoryType } from '/core/ui/options/options-helpers.js';
---
> import { d as CategoryData, C as CategoryType } from '/core/ui/options/editors/index.chunk.js';
diff -r old/code/wonders-screen-model.js new/code/wonders-screen-model.js
1,2c1,2
< import { Icon } from '/core/ui/utilities/utilities-image.js';
< import { ComponentID } from '/core/ui/utilities/utilities-component-id.js';
---
> import { Icon } from '/core/ui/utilities/utilities-image.chunk.js';
> import { C as ComponentID } from '/core/ui/utilities/utilities-component-id.chunk.js';
diff -r old/code/wonders-screen-options.js new/code/wonders-screen-options.js
3,5c3,4
< import '/core/ui/options/options.js'; // make sure this loads first
< import { CategoryType } from '/core/ui/options/options-helpers.js';
< import { Options, OptionType } from '/core/ui/options/model-options.js';
---
> import '/core/ui/options/screen-options.js'; // make sure this loads first
> import { O as Options, a as OptionType, C as CategoryType } from '/core/ui/options/editors/index.chunk.js';
diff -r old/code/wonders-screen.js new/code/wonders-screen.js
1,4c1,4
< import Panel from '/core/ui/panel-support.js';
< import Databind from '/core/ui/utilities/utilities-core-databinding.js';
< import { InputEngineEventName } from '/core/ui/input/input-support.js';
< import { MustGetElement } from '/core/ui/utilities/utilities-dom.js';
---
> import { P as Panel } from '/core/ui/panel-support.chunk.js';
> import { D as Databind } from '/core/ui/utilities/utilities-core-databinding.chunk.js';
> import { b as InputEngineEventName } from '/core/ui/input/input-support.chunk.js';
> import { MustGetElement } from '/core/ui/utilities/utilities-dom.chunk.js';
You did it Beezany! Thank you so much for sharing. I managed to get the 2 mods to workthe 1.2.4 game update refactored the ui codebase and broke almost all mods. often you just need to update someimport
statements, and i've been fixing that for some of the mods i use regularly. here are my diffs for Claimed Wonders and the Wonders Screen. hope it helps you!
Diff:diff -r old/code/wonder-tracker.js new/code/wonder-tracker.js 3c3 < import { Icon } from '/core/ui/utilities/utilities-image.js'; --- > import { Icon } from '/core/ui/utilities/utilities-image.chunk.js';
Diff:diff -r old/code/mod-options-decorator.js new/code/mod-options-decorator.js 3c3 < import { CategoryData, CategoryType } from '/core/ui/options/options-helpers.js'; --- > import { d as CategoryData, C as CategoryType } from '/core/ui/options/editors/index.chunk.js'; diff -r old/code/wonders-screen-model.js new/code/wonders-screen-model.js 1,2c1,2 < import { Icon } from '/core/ui/utilities/utilities-image.js'; < import { ComponentID } from '/core/ui/utilities/utilities-component-id.js'; --- > import { Icon } from '/core/ui/utilities/utilities-image.chunk.js'; > import { C as ComponentID } from '/core/ui/utilities/utilities-component-id.chunk.js'; diff -r old/code/wonders-screen-options.js new/code/wonders-screen-options.js 3,5c3,4 < import '/core/ui/options/options.js'; // make sure this loads first < import { CategoryType } from '/core/ui/options/options-helpers.js'; < import { Options, OptionType } from '/core/ui/options/model-options.js'; --- > import '/core/ui/options/screen-options.js'; // make sure this loads first > import { O as Options, a as OptionType, C as CategoryType } from '/core/ui/options/editors/index.chunk.js'; diff -r old/code/wonders-screen.js new/code/wonders-screen.js 1,4c1,4 < import Panel from '/core/ui/panel-support.js'; < import Databind from '/core/ui/utilities/utilities-core-databinding.js'; < import { InputEngineEventName } from '/core/ui/input/input-support.js'; < import { MustGetElement } from '/core/ui/utilities/utilities-dom.js'; --- > import { P as Panel } from '/core/ui/panel-support.chunk.js'; > import { D as Databind } from '/core/ui/utilities/utilities-core-databinding.chunk.js'; > import { b as InputEngineEventName } from '/core/ui/input/input-support.chunk.js'; > import { MustGetElement } from '/core/ui/utilities/utilities-dom.chunk.js';
I'm trying to follow these directions to fix my Wonders mod! Please help a noob out. I was able to find all these JavaScript Files to edit via notepad in the Code folder of the mod except for the wonder-tracker.js ?the 1.2.4 game update refactored the ui codebase and broke almost all mods. often you just need to update someimport
statements, and i've been fixing that for some of the mods i use regularly. here are my diffs for Claimed Wonders and the Wonders Screen. hope it helps you!
Diff:diff -r old/code/wonder-tracker.js new/code/wonder-tracker.js 3c3 < import { Icon } from '/core/ui/utilities/utilities-image.js'; --- > import { Icon } from '/core/ui/utilities/utilities-image.chunk.js';
Diff:diff -r old/code/mod-options-decorator.js new/code/mod-options-decorator.js 3c3 < import { CategoryData, CategoryType } from '/core/ui/options/options-helpers.js'; --- > import { d as CategoryData, C as CategoryType } from '/core/ui/options/editors/index.chunk.js'; diff -r old/code/wonders-screen-model.js new/code/wonders-screen-model.js 1,2c1,2 < import { Icon } from '/core/ui/utilities/utilities-image.js'; < import { ComponentID } from '/core/ui/utilities/utilities-component-id.js'; --- > import { Icon } from '/core/ui/utilities/utilities-image.chunk.js'; > import { C as ComponentID } from '/core/ui/utilities/utilities-component-id.chunk.js'; diff -r old/code/wonders-screen-options.js new/code/wonders-screen-options.js 3,5c3,4 < import '/core/ui/options/options.js'; // make sure this loads first < import { CategoryType } from '/core/ui/options/options-helpers.js'; < import { Options, OptionType } from '/core/ui/options/model-options.js'; --- > import '/core/ui/options/screen-options.js'; // make sure this loads first > import { O as Options, a as OptionType, C as CategoryType } from '/core/ui/options/editors/index.chunk.js'; diff -r old/code/wonders-screen.js new/code/wonders-screen.js 1,4c1,4 < import Panel from '/core/ui/panel-support.js'; < import Databind from '/core/ui/utilities/utilities-core-databinding.js'; < import { InputEngineEventName } from '/core/ui/input/input-support.js'; < import { MustGetElement } from '/core/ui/utilities/utilities-dom.js'; --- > import { P as Panel } from '/core/ui/panel-support.chunk.js'; > import { D as Databind } from '/core/ui/utilities/utilities-core-databinding.chunk.js'; > import { b as InputEngineEventName } from '/core/ui/input/input-support.chunk.js'; > import { MustGetElement } from '/core/ui/utilities/utilities-dom.chunk.js';
That file and fix is for the Claimed Wonders mod, the rest of the code is for the Wonders Screen mod.I'm trying to follow these directions to fix my Wonders mod! Please help a noob out. I was able to find all these JavaScript Files to edit via notepad in the Code folder of the mod except for the wonder-tracker.js ?