Noob with loads of questions :O

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
Magical_Noob
Posts: 50
Joined: May 24th, 2009, 2:46 pm
Location: UK

Noob with loads of questions :O

Post by Magical_Noob »

Hello I'm completely new to this, and is currently trying to build my own era. I came across many problems in the process, and is in need of help :D

currently my era only has one unit, I need to make sure I'm doing my things correctly before I add more.

Edit: Removed original questions, since they are solved.

New question: For some reason my unit's exp bar does not show up, and when exp hits cap, nothing happens. My units are lvl 0s and does not advances to anything, is this the problem? if so, how to solve this? O.o
Last edited by Magical_Noob on September 11th, 2012, 11:05 pm, edited 4 times in total.
User avatar
Crendgrim
Moderator Emeritus
Posts: 1328
Joined: October 15th, 2010, 10:39 am
Location: Germany

Re: Noob with loads of questions :O

Post by Crendgrim »

Hi!
First of all, please do not use colors in your posts (posting guideline 1d).
Then, this better fits in WML workshop as this does not have anything to do with Lua. Moved.

To answer your first question: Look here: EditingWesnoth#Where_is_my_user_data_directory.3F
Everything from mainline is available for your add-on.
UMC Story Images — Story images for your campaign!
JaMiT
Inactive Developer
Posts: 511
Joined: January 22nd, 2012, 12:38 am

Re: Noob with loads of questions :O

Post by JaMiT »

Magical_Noob wrote:_main (note pad)
That should be called _main.cfg, not _main.txt (the .txt extension is apparently there since Windows recognizes it as a Notepad file, but Windows by default hides known extensions).
User avatar
Magical_Noob
Posts: 50
Joined: May 24th, 2009, 2:46 pm
Location: UK

Re: Noob with loads of questions :O

Post by Magical_Noob »

Ok, I changed it, thx.
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Noob with loads of questions :O

Post by Pentarctagon »

I recommend switching over to Notepad++, it really makes things a lot easier.
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
Magical_Noob
Posts: 50
Joined: May 24th, 2009, 2:46 pm
Location: UK

Re: Noob with loads of questions :O

Post by Magical_Noob »

Pentarctagon wrote:I recommend switching over to Notepad++, it really makes things a lot easier.
Where can I get Notepad++?
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Noob with loads of questions :O

Post by Pentarctagon »

Here.

There's also a syntax high-lighter for notepad++ here (scroll to the bottom of the post).
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
Magical_Noob
Posts: 50
Joined: May 24th, 2009, 2:46 pm
Location: UK

Re: Noob with loads of questions :O

Post by Magical_Noob »

Thanks ^^
User avatar
Celtic_Minstrel
Developer
Posts: 2207
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Noob with loads of questions :O

Post by Celtic_Minstrel »

Magical_Noob wrote:Edit: Removed original questions, since they are solved.
Uh, why would you do this? Just make a new post with the new question...
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
Magical_Noob
Posts: 50
Joined: May 24th, 2009, 2:46 pm
Location: UK

Re: Noob with loads of questions :O

Post by Magical_Noob »

Celtic_Minstrel wrote:
Magical_Noob wrote:Edit: Removed original questions, since they are solved.
Uh, why would you do this? Just make a new post with the new question...
I didnt want to spam the whole forum with my questions :S
User avatar
TheScribe
Posts: 465
Joined: June 17th, 2012, 8:17 pm
Location: You won't know till it's too late

Re: Noob with loads of questions :O

Post by TheScribe »

My units are lvl 0s and does not advances to anything, is this the problem?
No, that shouldn't be a problem. If you post your code you might get more help.

P.S. Are you sure it reached full XP?
Spoiler:
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Noob with loads of questions :O

Post by zookeeper »

Magical_Noob wrote:I didnt want to spam the whole forum with my questions :S
Yeah, it's better to keep your questions in one thread if possible, but please just make a new post when you come up with the next question, instead of editing away the previous ones.
User avatar
Magical_Noob
Posts: 50
Joined: May 24th, 2009, 2:46 pm
Location: UK

Re: Noob with loads of questions :O

Post by Magical_Noob »

TheScribe wrote:
My units are lvl 0s and does not advances to anything, is this the problem?
No, that shouldn't be a problem. If you post your code you might get more help.

P.S. Are you sure it reached full XP?
Spoiler:
Im sure, the exp does not even show up, and exp can and will go up to 50/20

Code: Select all

[unit_type]
    id=Zombie
    name= _ "Zombie"
    race=undead
    image="units/undead/zombie.png"
    ellipse="misc/ellipse-nozoc"
    {MAGENTA_IS_THE_TEAM_COLOR}
    {TRAIT_FEARLESS_MUSTHAVE}
    hitpoints=10
    movement_type=smallfoot
    movement=4
    level=0
    experience=24
    alignment=chaotic
    advances_to=null
    cost=1
    usage=fighter
    description= _ ""

User avatar
8680
Moderator Emeritus
Posts: 742
Joined: March 20th, 2011, 11:45 pm
Location: The past

Re: Noob with loads of questions :O

Post by 8680 »

Magical_Noob wrote:

Code: Select all

advances_to=null
There’s your problem. Change null to the id= of the [unit_type] to which you want your Zombies to advance.
User avatar
TheScribe
Posts: 465
Joined: June 17th, 2012, 8:17 pm
Location: You won't know till it's too late

Re: Noob with loads of questions :O

Post by TheScribe »

He said they weren't supposed to level though. (i.e. AMLA)
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
Post Reply