Custom Unit

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.
User avatar
Pentarctagon
Project Manager
Posts: 5531
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Custom Unit

Post by Pentarctagon »

In the log when I use what you uploaded, I see:

Code: Select all

20190408 18:49:43 error display: could not open image 'units/awakening/Robin.png'
20190408 18:49:44 error gui/draw: Image: 'units/awakening/Robin.png~RC(magenta>red)~SCALE_INTO_SHARP(144,144)' not found and won't be drawn.
20190408 18:49:45 error gui/draw: Image: 'units/awakening/Robin.png~RC(magenta>red)' not found and won't be drawn.
20190408 18:49:47 error general: Square bracket lengths do not match up: units/awakening/M-Attack[1,2,3,4].png:[100,700,200]
20190408 18:49:47 error general: Square bracket lengths do not match up: units/awakening/M-Attack[1,2,3,4].png:[100,700,200]
20190408 18:49:47 error general: Square bracket lengths do not match up: units/awakening/M-Attack[1,2,3,4].png:[100,700,200]
20190408 18:49:47 error general: Square bracket lengths do not match up: units/awakening/M-Attack[1,2,3,4].png:[100,700,200]
20190408 18:49:48 error display: could not find image for report: 'units/awakening/Robin.png~RC(magenta>red)'
20190408 18:49:48 warning unit: unknown unit in advances_to list of type robin: Grima
20190408 18:49:48 warning unit: unknown unit in advances_to list of type robin: Robin GE
20190408 18:49:50 warning unit: unknown unit in advances_to list of type robin: Grima
20190408 18:49:50 warning unit: unknown unit in advances_to list of type robin: Robin GE
20190408 18:49:50 warning unit: unknown unit in advances_to list of type robin: Grima
20190408 18:49:50 warning unit: unknown unit in advances_to list of type robin: Robin GE
20190408 18:49:51 warning unit: unknown unit in advances_to list of type robin: Grima
20190408 18:49:51 warning unit: unknown unit in advances_to list of type robin: Robin GE
20190408 18:49:51 warning unit: unknown unit in advances_to list of type robin: Grima
20190408 18:49:51 warning unit: unknown unit in advances_to list of type robin: Robin GE
20190408 18:49:51 warning unit: unknown unit in advances_to list of type robin: Grima
20190408 18:49:51 warning unit: unknown unit in advances_to list of type robin: Robin GE
If you check your log file, does it have anything different?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Daseka
Posts: 9
Joined: June 18th, 2018, 10:59 pm

Re: Custom Unit

Post by Daseka »

This is what appears in Log File.

Code: Select all

Battle for Wesnoth v1.14.6 (fb522fd-Modified)
Started on Tue Apr 09 00:23:51 2019

Automatically found a possible data directory at C:\Program Files (x86)\Steam\steamapps\common\wesnoth

Data directory:               C:\Program Files (x86)\Steam\steamapps\common\wesnoth
User configuration directory: C:\Users\USER\OneDrive\Documentos\My Games\Wesnoth1.14
User data directory:          C:\Users\USER\OneDrive\Documentos\My Games\Wesnoth1.14
Cache directory:              C:\Users\USER\OneDrive\Documentos\My Games\Wesnoth1.14\cache

Setting mode to 1360x768
Checking lua scripts... ok
20190409 00:25:12 warning engine: User lbruiser has unknown game_id: 58616
20190409 00:30:04 error engine/team_construction: game_error: unknown unit type: robin
Unknown unit type : robin
Unknown unit type : robin
Unknown unit type : robin
Unknown unit type : robin
Unknown unit type : robin
Unknown unit type : robin
Unknown unit type : robin
Unknown unit type : robin
User avatar
beetlenaut
Developer
Posts: 2814
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Custom Unit

Post by beetlenaut »

OneDrive causes problems like this.
the 1.14 release announcement wrote: Known Issues
General bugs:
OneDrive can interfere with Wesnoth’s user config/data directory set-up, leading to all kinds of different manifestations of the issue. There’s no fix available yet. The recommendation for the time being is to avoid syncing the Wesnoth user directory with OneDrive.
You probably need to disable or uninstall OneDrive. If that is a problem for you, you can edit the Steam launch shortcut as explained by shadowm in this post.

You have some other problems with the robin unit images and animation (as you can see in Pentarctagon's log), but this will probably fix the error with "Unknown unit type".
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Post Reply