Change to .pbl file?

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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.
User avatar
revansurik
Posts: 550
Joined: October 17th, 2012, 11:40 pm
Location: Brazil
Contact:

Re: Change to .pbl file?

Post by revansurik »

beetlenaut wrote:
December 30th, 2019, 8:18 pm
If your screen looks the same as you showed in your screenshots before, it looks like your .pbl file isn't being read at all. The version, author, size, and type columns are all empty or default values. (I guess the name must come from the folder name, not the .pbl.)

Is your _server.pbl file in the same folder as your _main.cfg file? Did you misspell it or forget the underscore?
I haven't changed the pbl file's location or name ever since I first created the campaigns, and they always worked fine. Even on 1.12 it worked fine iirc, the issue seems to be on 1.14 only.

I took a screenshot of the folder, though. The pbl file is together with the main, as you can see:
Spoiler:
EDIT: OMG I JUST FOUND THE PROBLEM. The pbl file has a capital P (.Pbl); I removed it and now I can FINALLY upload. Omg I'd forgotten how much I hate coding :lol:

Anyway, you saying that the file wasn't being read at all was what reminded me to check the file name, so thanks very much! ^_^
Author of the Dragon Trilogy.

If you enjoyed A Song of Fire, War of the Jewel, Aria of the Dragon-Slayer and Soldier of Wesnoth, you may like my new project: Star of Chaos, a science-fiction mystery/adventure intended to be a trilogy
;-)

User avatar
beetlenaut
Developer
Posts: 2400
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Change to .pbl file?

Post by beetlenaut »

File names in Wesnoth are case-sensitive. The capital P in the name is probably the cause of your problem.

Edit: Never mind. I guess you already found it.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide

gnombat
Posts: 263
Joined: June 10th, 2010, 8:49 pm
Contact:

Re: Change to .pbl file?

Post by gnombat »

I realize that this is resolved already so I'm too late to actually be helpful here, but I thought I'd point out that Wesnoth does in fact write a useful error message in the log file in this situation (in contrast to the error messages displayed in the GUI, which are not very helpful):

Code: Select all

error filesystem: Not opening 'C:\.../_server.pbl' due to case mismatch.
I guess the moral of the story is always check Wesnoth's log file in case it might have some interesting information.

Post Reply