can't recruit costum 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.
Post Reply
inuyasha35
Posts: 32
Joined: September 24th, 2020, 2:57 am

can't recruit costum unit

Post by inuyasha35 »

I made a costum unit in my own costum era, the only problem is that the unit can't be recruited, and when I have him as my leader, It just shows me the "you have been defeated" message, please help me
User avatar
Pentarctagon
Project Manager
Posts: 5527
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: can't recruit costum unit

Post by Pentarctagon »

Moved to the WML Workshop.

Also it will probably be easiest if you upload to the forums what you've made so far as a zip.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
beetlenaut
Developer
Posts: 2814
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: can't recruit costum unit

Post by beetlenaut »

It sounds like the unit is not being loaded properly. You probably have a mistake in the code that loads your unit or in the unit file itself. We can't help you find it unless we can see it though. You should upload it like Pentarctagon said.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
inuyasha35
Posts: 32
Joined: September 24th, 2020, 2:57 am

Re: can't recruit costum unit

Post by inuyasha35 »

sorry I didn't answer in a while, but sufficed to say, I had a minus sign (-) in my unit id, it was a kinda stupid mistake. xixixi
inuyasha35
Posts: 32
Joined: September 24th, 2020, 2:57 am

Re: can't recruit costum unit

Post by inuyasha35 »

oh, and another thing, the unit database seems rather dated, is there going to be an update soon?
Soliton
Site Administrator
Posts: 1680
Joined: April 5th, 2005, 3:25 pm
Location: #wesnoth-mp

Re: can't recruit costum unit

Post by Soliton »

The unit database is updated every week.
"If gameplay requires it, they can be made to live on Venus." -- scott
Pilauli
Posts: 115
Joined: August 18th, 2020, 12:56 pm

Re: can't recruit costum unit

Post by Pilauli »

inuyasha35 wrote: February 10th, 2021, 8:34 pm oh, and another thing, the unit database seems rather dated, is there going to be an update soon?
Not quite sure what about it you feel is dated.

- The units in the database: you might be using an older version of the database (for example, from 1.10?) rather than for the most recent versions.
https://units.wesnoth.org/1.14/mainline ... nline.html (stable)
https://units.wesnoth.org/1.15/mainline ... nline.html (experimental)

- The layout and interface for the database: if you feel it's dated, you might be right, but I assume updating it would require someone to be bothered by it enough to do so, and would then bother everyone who was used to the old system. So there are probably no plans for an update to this.
Post Reply