Emulators for past versions offering a stable environment for add-ons development and backward support

Discussion of all aspects of the game engine, including development of new and existing features.

Moderator: Forum Moderators

dwarftough
Posts: 609
Joined: August 4th, 2019, 5:27 pm
Contact:

Re: Experiment in loading past eras/campaigns in cores

Post by dwarftough »

momom3 wrote: April 6th, 2025, 6:55 pm The emulator doesn't work for me.
When I hit k and select a different core, it starts loading, then fails first
"Error loading custom game configuration files. The game will try loading without add-ons." Details: unit type not found: Bone Knight
then I hit OK
"Error loading custom game configuration files. The game will fallback to the default core files." Details: unit type not found: Bone Knight
then I hit OK again, and it loads 1.18.

(It's not always the Bone Knight that's the unit type not found.)
demario wrote: April 16th, 2025, 3:30 am Which version's emulator are you loading?

Can you give the list of add-ons you have installed? It it part of the the build information provided by the game by clicking on the Image icon on the bottom-left corner of the main menu and then the
I found, among my addons, that Reign of the Lords and LotI Era prevent a successful switch of the core to any of the emulator cores (the latest version).

The reason seems to be any mod that directly from _main.cfg (or includes to it) adds units that are based on units that are absent in the core in question.

In the attached archive there is a minimal mod that breaks the switching of cores. If the unit is based on Wose Shaman (added in 1.16), the 1.16 emulator core loads and others don't. If you switch to "Saurian Javelineer" (added in 1.18), then no emulators will load
Attachments
A_Mod_That_Breaks_Core_Switching.zip
(1.11 KiB) Downloaded 104 times
Co-founder and current maintainer of IsarFoundation, Afterlife Rated and overall Wesnoth Autohost Project
MP versions of classical mainline campaigns: UtBS, TRoW, SotA
Developer and maintainer of my fork of World Conquest, Invincibles Conquest II
Biased RNG in MP
demario
Posts: 138
Joined: July 3rd, 2019, 1:05 pm

Re: Experiment in loading past eras/campaigns in cores

Post by demario »

dwarftough wrote: May 7th, 2025, 3:18 pm I found, among my addons, that Reign of the Lords and LotI Era prevent a successful switch of the core to any of the emulator cores (the latest version).

The reason seems to be any mod that directly from _main.cfg (or includes to it) adds units that are based on units that are absent in the core in question.
The "Reign of the Lords" add-on is known to be incompatible with the emulators. I believe this is a bug in the add-on. The unit definition should be protected by the guard #ifdef MULTIPLAYER. I sent a pm to let the author know, but he had no time to fix it back then.

Since, I put the info in the spoiler section for the releases of the emulators: people need to delete the "Reign of the Lords" add-on to make the emulators work.
I take your word that "LotI Era" is having the same problem. Thanks for letting us know.
"simply put, it's an old game"T — Cackfiend
User avatar
lhybrideur
Posts: 497
Joined: July 9th, 2019, 1:46 pm

Re: Experiment in loading past eras/campaigns in cores

Post by lhybrideur »

Yes, LotI Modification is compatible with SP campaigns and is therefore not compatible with core switching.
demario
Posts: 138
Joined: July 3rd, 2019, 1:05 pm

Re: Emulators for past versions offering a stable environment for add-ons development and backward support

Post by demario »

In another post, I have stated that:
/me wrote: If the idea that your work is available for players for longer than a couple of release of wesnoth is important to you as a content creator, and you don't feel like being dragged by the work of porting your content to a newer version, you can screen off yourself from the future changes in the game engine by developing your content inside an emulator. Most of the emulator contains a map editor that generates map compatible with that version.
I will now go in a bit of details to try to clear who, what and how.
  • Which content creators can be supported to port through emulators?
    Answer:
  • What is the process to have an add-on ported through emulators?
    Answer:
  • What are the services offered by the emulators?
    Answer:
  • What are the benefits of porting an add-on using the "stock add-on" model?
    Answer:
  • What kind of add-on can be ported using emulators?
    Answer:
  • How old can be the add-on ported through emulators?
    Answer:
  • Would porting an add-on through emulators hurt its popularity?
    Answer:
  • I am not a content creator, how can I help porting add-ons through emulators?
    Answer:
  • I am not skilled in WML/lua, can I still help porting add-ons through emulators?
    Answer:
  • I am decided to help porting add-ons through emulators, where do I start?

    First, please, do get in touch either publicly by replying to this post or privately by sending a pm.
"simply put, it's an old game"T — Cackfiend
Post Reply