Uploaded addons turning images into 5-byte files

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Groggy_Dice
Inactive Developer
Posts: 165
Joined: February 4th, 2011, 6:19 am
Contact:

Uploaded addons turning images into 5-byte files

Post by Groggy_Dice »

I've been uploading new versions of a campaign I'm porting, and to verify that the upload went well, I'd download the addon back. But every time, I'd find that the unit image (there's only one image in the addon) had not really been uploaded; instead, it had been replaced by a 5-byte file that read "%PNG". This is not a new problem either, because I downloaded a 1.2 campaign, and found that all the images had been replaced by the same 5-byte files.

I wonder what the cause is, and of course what the solution is. For background, I'm using the Python addon_manager to upload, Python is 2.7.x, the computer it's being uploaded from is XP, and my ported campaign is Prudence.tar.bz2; the 1.2 campaign is The_undead_of_light.

While I'm asking, some campaigns show up in the menu with three-number codes in brackets; they appear to be RGB color codes, but are not functioning. I assume it's safe to edit them out of the _main.cfg files?
Ports:
Prudence (Josh Roby) | By the Sword (monochromatic) | The Eight of Cembulad (Lintana~ & WYRMY)
Resources:
UMC Timeline (Dec) | List of Unported UMC (Dec) | wmllint++ (Feb)
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: Uploaded addons turning images into 5-byte files

Post by Max »

https://gna.org/bugs/?16649
http://forums.wesnoth.org/viewtopic.php ... 1&p=455780

should be fixed in 1.9, looks like it wasn't ported back to 1.8.
you could try to apply this fix (http://svn.gna.org/viewcvs/wesnoth?view ... sion=46295) manually - the file hasn't changed much...
Groggy_Dice
Inactive Developer
Posts: 165
Joined: February 4th, 2011, 6:19 am
Contact:

Re: Uploaded addons turning images into 5-byte files

Post by Groggy_Dice »

Thanks, I switched out the file, and it works now.
Ports:
Prudence (Josh Roby) | By the Sword (monochromatic) | The Eight of Cembulad (Lintana~ & WYRMY)
Resources:
UMC Timeline (Dec) | List of Unported UMC (Dec) | wmllint++ (Feb)
Post Reply