My Era not loading with no error message

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

My Era not loading with no error message

Post by ArchMessenger »

Hi there,

I am making an era for myself because it's something I always wanted to do, but I'm running into a problem.
I loaded a local game, and it displayed a few error messages for abilities that I had misspelled. After fixing those problems, my game loads without any errors, but also without the ability to play my era.
I wasn't sure what to post along with this. I can provide the file with my era if that helps. I currently have it in the 'add-ons' folder of my computer (Windows 10).
Also, please let me know if this post should be in WML help. I'm fairly new and wasn't 100% where to ask for help, any help or guidance would be greatly appreciated! Thanks! ^_^
User avatar
Ravana
Forum Moderator
Posts: 3313
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: My Era not loading with no error message

Post by Ravana »

Try delete all files in cache folder.
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

Re: My Era not loading with no error message

Post by ArchMessenger »

Will give this a try, I'll lyk how it goes
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

Re: My Era not loading with no error message

Post by ArchMessenger »

After deleting the cache, some new error messages were loaded (a few spelling mistakes or a case-sensitive file, etc)
But now I'm back to where I started. The game loads into local multiplayer with no errors of any kind, but my era is not selectable. I have tried relaunching the game after deleting cache files, but that no longer seems to have an effect.
User avatar
Pentarctagon
Project Manager
Posts: 5730
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: My Era not loading with no error message

Post by Pentarctagon »

Are there any errors in the log file?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
dwarftough
Posts: 580
Joined: August 4th, 2019, 5:27 pm
Contact:

Re: My Era not loading with no error message

Post by dwarftough »

ArchMessenger wrote: May 29th, 2025, 8:40 pm After deleting the cache, some new error messages were loaded (a few spelling mistakes or a case-sensitive file, etc)
But now I'm back to where I started. The game loads into local multiplayer with no errors of any kind, but my era is not selectable. I have tried relaunching the game after deleting cache files, but that no longer seems to have an effect.
With some kinds of errors, the game shows the error only the first time you encounter them. You can trigger re-processing of your addon by clearing the cache as you've done earlier or by editing any file in your addon (adding a random space or newline for example, I think just Ctrl-S to update the last update timestamp of a file may also work) when the game isn't launched. Would be great if you could screenshot or copypaste the errors you get.

You may also try searching for errors in the logs. To find them, launch the game, click i in the left bottom corner, go to the user data directory (by clicking the folder icon) and open the "logs" folder
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
gnombat
Posts: 892
Joined: June 10th, 2010, 8:49 pm

Re: My Era not loading with no error message

Post by gnombat »

ArchMessenger wrote: May 29th, 2025, 7:21 pm I can provide the file with my era if that helps.
Yes, I would recommend just attaching the file - there's a good chance someone will spot the issue(s) with it.
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

Re: My Era not loading with no error message

Post by ArchMessenger »

Pentarctagon wrote: May 29th, 2025, 9:11 pm Are there any errors in the log file?
I just checked it, and it would appear that every unit in my era is listed twice and has 'invalid characters'. Is a " - " not a valid character? All my units are lowercase letters and " - " to separate words.
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

Re: My Era not loading with no error message

Post by ArchMessenger »

gnombat wrote: May 29th, 2025, 10:35 pm Yes, I would recommend just attaching the file - there's a good chance someone will spot the issue(s) with it.
I would, the only thing is that the mod takes a lot of inspiration from another video game that I don't own the IP to, (for that reason I wasn't planning on posting the completed product, just keep it to myself) It would be okay if I shared it then on this forum though? It seemed like there were some pretty strict opinions on that in the guidelines..
User avatar
Pentarctagon
Project Manager
Posts: 5730
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: My Era not loading with no error message

Post by Pentarctagon »

As per https://wiki.wesnoth.org/UnitTypeWML:
An id must consist only of alphanumerics and spaces (or underscores).
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
gnombat
Posts: 892
Joined: June 10th, 2010, 8:49 pm

Re: My Era not loading with no error message

Post by gnombat »

ArchMessenger wrote: May 30th, 2025, 1:19 am I would, the only thing is that the mod takes a lot of inspiration from another video game that I don't own the IP to, (for that reason I wasn't planning on posting the completed product, just keep it to myself) It would be okay if I shared it then on this forum though? It seemed like there were some pretty strict opinions on that in the guidelines..
Well, if it's really heavily copyright-infringing, you could post a simplified version of it here, with most of the content cut out...
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

Re: My Era not loading with no error message

Post by ArchMessenger »

Pentarctagon wrote: May 30th, 2025, 2:11 am As per https://wiki.wesnoth.org/UnitTypeWML:
An id must consist only of alphanumerics and spaces (or underscores).
I'm such a goofball, I got hyphens and underscores confused >_<
I've switched out all the unit ID's and all their references to be underscores where there were hyphens.

After those changes, I deleted my cache and relaunched the game. The game launches fine with no errors and my era is still not visable, and there are no mentions of it in my logs file
:(
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

Re: My Era not loading with no error message

Post by ArchMessenger »

gnombat wrote: May 30th, 2025, 1:02 pm Well, if it's really heavily copyright-infringing, you could post a simplified version of it here, with most of the content cut out...
Not a ton of names or proper nouns in it so I think it's fine, if I need to take it down just let me know, here's my file attached
Attachments
Era_of_The_Frozen_Throne.zip
(783.21 KiB) Downloaded 13 times
User avatar
Pentarctagon
Project Manager
Posts: 5730
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: My Era not loading with no error message

Post by Pentarctagon »

What is

Code: Select all

[include]
    file=factions/alliance.cfg
[/include]
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
ArchMessenger
Posts: 14
Joined: May 29th, 2025, 6:39 pm

Re: My Era not loading with no error message

Post by ArchMessenger »

I'll be honest I'm not a seasoned coder, most of my stuff is copy-pasted with some renaming, so I don't remember where I took that from, it seemed like I needed a file that recognized I was attempting to load an era that would then call all the factions, I have another attempt at that file that looked something like this

Code: Select all

  [multiplayer_side]
        id=alliance
        name= _ "Alliance"
        type=random_faction
        {~add-ons/Era_of_The_Frozen_Throne/factions/alliance.cfg}
    [/multiplayer_side]
But that didn't seem to be working
Post Reply