ForestDragon's WML questions

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.
Post Reply
User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

ForestDragon's WML questions

Post by ForestDragon » May 15th, 2016, 5:26 pm

hello, am kinda curious if it's possible to add more things into [sound][/sound] or [music][/music] other than just the sound itself, like speed, pitch, ect? just curious
Last edited by ForestDragon on May 23rd, 2016, 6:11 am, edited 1 time in total.
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
zookeeper
WML Wizard
Posts: 9739
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Is it possible to alter sounds in-game by using WML?

Post by zookeeper » May 15th, 2016, 7:00 pm

No.

User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » May 24th, 2016, 11:49 am

ok, so i am making a new MP mod, and i might need a bit of help (btw, i is called XP bank):
1.i need to make a variable, that has different amount for each side (aka 'stored_exp', but different for each side, like side.stored_exp, or something, help pls)
2.i need to check the units exp, so it turns into a variable, or just simply check it, so that it cant turn it into stored_exp foreverfigured out
Last edited by ForestDragon on May 24th, 2016, 12:08 pm, edited 1 time in total.
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
Ravana
Moderator
Posts: 1839
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: ForestDragon's WML questions

Post by Ravana » May 24th, 2016, 12:05 pm

1. I tend to use names like a_1 to a_9.
2. Not sure what you ask.

User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » May 24th, 2016, 12:23 pm

1.i also might need something to check whose turn it is, and the interacted unit's side too, to make sure that the exp will be deposited to, and withdrawn from that side's XP bank
2.i guess this.unit.experience will do
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

Re:Need Help making a MP mod

Post by ForestDragon » May 25th, 2016, 10:50 am

help, i cant get my mod to display in the modification selection (plus, it didn't even give me an error message or anyhing :annoyed: ), here are all the files:
xpbank_mod.cfg:
xpbank_event.cfg , very incomplete:
EDIT:changed the filenames, still not working :x :doh: :(
Last edited by ForestDragon on May 26th, 2016, 5:24 am, edited 3 times in total.
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
zookeeper
WML Wizard
Posts: 9739
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper » May 25th, 2016, 11:13 am

Better check those filenames.

User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » May 25th, 2016, 11:19 am

changed the filenames, still not working, i think it may be something else :|
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
zookeeper
WML Wizard
Posts: 9739
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper » May 25th, 2016, 1:24 pm

ForestDragon wrote:changed the filenames
Even main.cfg?

User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » May 25th, 2016, 2:54 pm

no, just the ones mentioned in main to what they are
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
zookeeper
WML Wizard
Posts: 9739
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper » May 25th, 2016, 3:06 pm

Well there you go then. Naturally a file called main.cfg does nothing by itself.

User avatar
shadowm
Site Administrator
Posts: 6485
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: ForestDragon's WML questions

Post by shadowm » May 26th, 2016, 3:50 am

What zookeeper is actually trying to say is that it should named _main.cfg (note the leading underscore), not main.cfg.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Elsewhere: shadowmBlogFollow me on Twitter

User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » May 26th, 2016, 5:23 am

umm it is actually in the files _main.cfg sorry for confusing you. the only suspects i have is the mod file itself, and the event
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
ForestDragon
Forum Regular
Posts: 1490
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » May 26th, 2016, 12:48 pm

ok, new state of files (i removed mods, and macros folder, and put the files into main folder)i don't even know what to do:i checked other mods that worked, and found nothing wrong with mine, yet it still doesn't show up (well, it shows up in addon menu) :doh: :augh: :cry: :shock: (btw, i am on a different computer, where it's still 1.11.5):
_main.cfg:
xpbank_mod.cfg:
xpbank_event.cfg:
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
zookeeper
WML Wizard
Posts: 9739
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper » May 26th, 2016, 12:55 pm

Works perfectly fine for me. That is, the game reads the files until it chokes on the syntax errors.

Most likely you have the files in the wrong place or their extension isn't actually .cfg.

Post Reply