Error messages, how to fix the errors
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.
Error messages, how to fix the errors
I recently uploaded a campaign, written for BfW 1.16. It's called "Frogfolk Delivery Service."
Shortly after uploading it, I got feedback about error messages. I solved some of the errors, but not these.
How do I fix them?
Also, how do I view the error log? I'm not seeing an error messages when I play my campaign, so maybe they're hidden?
Thanks.
20221024 19:28:49 warning general: no location found for 'data/add-ons/Frogfolk_Delivery_Service/translations', skipping textdomain
20221024 19:29:01 warning unit: Unknown attribute 'controller' discarded.
Shortly after uploading it, I got feedback about error messages. I solved some of the errors, but not these.
How do I fix them?
Also, how do I view the error log? I'm not seeing an error messages when I play my campaign, so maybe they're hidden?
Thanks.
20221024 19:28:49 warning general: no location found for 'data/add-ons/Frogfolk_Delivery_Service/translations', skipping textdomain
20221024 19:29:01 warning unit: Unknown attribute 'controller' discarded.
Author of:
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
- Pentarctagon
- Project Manager
- Posts: 5730
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Error messages, how to fix the errors
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Error messages, how to fix the errors
Thanks for the link. I'm on a Mac, so I followed the instruction for macOS. Opening the terminal didn't display an error log. The instructions were confusing, so maybe I made a mistake.
Analyzing the errors I quoted above, I have two questions: Why would the empty translations folder cause an error?
Regarding the second error, how could "controller" be a problem? In my BfW scenario, the code employing "controller" is simple:
I could be wrong, I've looked and looked, but my code appears to have no errors.
Could somebody download my campaign and see if you also find an error? It's called "Frogfolk Delivery Service," written for BfW 1.16.
Analyzing the errors I quoted above, I have two questions: Why would the empty translations folder cause an error?
Regarding the second error, how could "controller" be a problem? In my BfW scenario, the code employing "controller" is simple:
controller=human
or controller=ai
. How could that produce an error? It's not like I tried to use lua or anything complex.I could be wrong, I've looked and looked, but my code appears to have no errors.
Could somebody download my campaign and see if you also find an error? It's called "Frogfolk Delivery Service," written for BfW 1.16.
Author of:
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: Error messages, how to fix the errors
An empty translations folder is what you need in order to solve that error. I downloaded the campaign, and there is no such folder. If you created one, it must be in the wrong place. Check the path carefully.
That line appears inside a [unit] tag (which is what the beginning of the error message means). However, the "controller" key is only valid in [side] tags. That's a very important concept in WML: Each tag only has specific keys that work inside it, which are the ones listed on the wiki. Other keys will be ignored except for the warning message.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: Error messages, how to fix the errors
Hi, beetlenaut. In the original uploaded version there wasn't a "translations" folder, so I added it in an update to fix the error. I'm baffled why the folder was still missing when you downloaded it, unless you downloaded the campaign before I made the update. Regardless, I put an empty "en" folder in the translations folder, like some people do, and re-updated the campaign on the server a few minutes ago. The new version is 1.0.2.
Thanks for directing me toward my "controller" error. Like you'd indicated, I wrongfully included a
I'm disappointed that I made such a basic error, but that's the problem with cutting and pasting blocks of code. Sometimes you paste a line that you don't actually need.
I'd appreciate it if you would download the latest update and make sure the campaign displays no more errors.
Thanks!
Thanks for directing me toward my "controller" error. Like you'd indicated, I wrongfully included a
controller=human
in a [unit] tag. I'm disappointed that I made such a basic error, but that's the problem with cutting and pasting blocks of code. Sometimes you paste a line that you don't actually need.
I'd appreciate it if you would download the latest update and make sure the campaign displays no more errors.
Thanks!
Author of:
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
Re: Error messages, how to fix the errors
I just downloaded 1.0.2 and I don't see anyHelmet wrote: ↑October 25th, 2022, 2:31 pm Hi, beetlenaut. In the original uploaded version there wasn't a "translations" folder, so I added it in an update to fix the error. I'm baffled why the folder was still missing when you downloaded it, unless you downloaded the campaign before I made the update. Regardless, I put an empty "en" folder in the translations folder, like some people do, and re-updated the campaign on the server a few minutes ago. The new version is 1.0.2.
translations
folder.It's possible that the uploader simply ignores empty folders.
Re: Error messages, how to fix the errors
Ah. Your theory makes sense. Thanks.
I placed a tiny text file in the translation folder and updated the campaign to version 1.0.3.
Maybe I'm being a perfectionist, but I don't want any errors in an error log that might alarm a player, even trivial errors that have no impact on gameplay.
Author of:
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: Error messages, how to fix the errors
The translations folder is there now. The uploader does ignore some things, but it shouldn't ignore an empty folder named "translations". I know it didn't in the past. That may be a bug. I don't know if that one line in your text file is going to cause problems, but it might. The game will be expecting folders with .mo files, not a .txt or .cfg file.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: Error messages, how to fix the errors
It seems unlikely that abeetlenaut wrote: ↑October 25th, 2022, 4:43 pm I don't know if that one line in your text file is going to cause problems, but it might. The game will be expecting folders with .mo files, not a .txt or .cfg file.
.txt
file in translations
would cause problems; there's a lot of other add-ons that have various random files in the translations
folder - .txt
files, shell scripts, etc.