Search found 1237 matches

by fabi
May 9th, 2016, 4:59 pm
Forum: WML Workshop
Topic: Coding Conventions
Replies: 17
Views: 4269

Re: Coding Conventions

Using CamelCase and capitalizing the part after "Pre" or "Post" feels fine. How do you determine what feels fine? That is not exactly a precise question, so let me elaborate a little bit more. I guess most people would answer that determining what feels fine means hearing about ...
by fabi
April 27th, 2016, 11:00 am
Forum: Coder’s Corner
Topic: Heavy repository
Replies: 27
Views: 7970

Re: Heavy repository

I have asked for a split of the repository ever since it was converted into a git one.

I hope you have more luck than me :-)
by fabi
April 26th, 2016, 10:02 pm
Forum: Users’ Forum
Topic: rooster/owl sound
Replies: 9
Views: 2896

Re: rooster/owl sound

I like them.
But that might be because I am biased.

They were introduced (iirc by Zookeeper) after I suggested them.
It was the first idea of mine that made it into Wesnoth.
by fabi
April 26th, 2016, 9:24 pm
Forum: Game Development
Topic: Irdya - Wesmere Reference Implementation
Replies: 41
Views: 15866

Re: Irdya - Wesmere Reference Implementation

So, if I'm understanding this correctly, if I declare a non-global function foo() in the folder AddOn1/Test1, then that function would not be available to Irdya once it starts reading the folder AddOn1/Test2? Or AddOn2/Test3? And the same is true for any non-global variable? Sorry, let's try that a...
by fabi
April 25th, 2016, 8:06 am
Forum: Game Development
Topic: Irdya - Wesmere Reference Implementation
Replies: 41
Views: 15866

Re: Irdya - Wesmere Reference Implementation

So, if I'm understanding this correctly, if I declare a non-global function foo() in the folder AddOn1/Test1, then that function would not be available to Irdya once it starts reading the folder AddOn1/Test2? Or AddOn2/Test3? And the same is true for any non-global variable? Well, Irdya would not r...
by fabi
April 21st, 2016, 1:06 am
Forum: Game Development
Topic: Irdya - Wesmere Reference Implementation
Replies: 41
Views: 15866

Re: Irdya - Wesmere Reference Implementation

Okay, I have learned that I haven't communicated well enough how WesMods and WSL works. Let me try again. Irdya reads all its content in the form of WesMods. After loading a few of them finally a scenario is started. Irdya can't do much more. Load WesMods and play scenarios. When you have a host tha...
by fabi
April 17th, 2016, 6:17 pm
Forum: Game Development
Topic: Irdya - Wesmere Reference Implementation
Replies: 41
Views: 15866

Re: Irdya - Wesmere Reference Implementation

Does that mean variables can be declared just about anywhere? Not quite. It means Lua/MoonScript can be coded anywhere. Declaring variables is only one of the options. Let's have another example to show what is possible. last = 10 for i=1, last scenario id: "scenario_number_#{i}" next_sce...
by fabi
April 17th, 2016, 4:33 pm
Forum: Game Development
Topic: Irdya - Wesmere Reference Implementation
Replies: 41
Views: 15866

Re: Irdya - Wesmere Reference Implementation

So to have everything be "add-on local", I would just need to wrap all the WSL in my add-on in an event that happens before the events I'm using? I don't know the exact shape of your add-on. I guess the music player comes as a mp modification? The trick is not to wrap it into events but t...
by fabi
April 15th, 2016, 5:01 pm
Forum: WML Workshop
Topic: Coding Conventions
Replies: 17
Views: 4269

Re: Coding Conventions

What about "movetype"?

movetype.name is also used as id.
by fabi
April 14th, 2016, 9:52 pm
Forum: WML Workshop
Topic: Coding Conventions
Replies: 17
Views: 4269

Re: Coding Conventions

Okay, so event names or better types are a special case. I have reasons to capitalize them. Start TimeOver Turn1 Side2Turn3 And so on. I am also going to call them PreStart PreRecruit PostAdvance and so on. Using CamelCase and capitalizing the part after "Pre" or "Post" feels fine.
by fabi
April 14th, 2016, 9:27 pm
Forum: Game Development
Topic: Irdya - Wesmere Reference Implementation
Replies: 41
Views: 15866

Re: Irdya - Wesmere Reference Implementation

Maybe for this case there should be a way to qualify which addon's variable you are trying to read/write? (namespacing like addon.var, for example.) Yes. And the good news are: Lua comes with exactly that feature. And you also guessed the exact syntax for accessing the variable. Although Pentarctag...
by fabi
April 14th, 2016, 2:01 pm
Forum: Users’ Forum
Topic: New Campaigns?
Replies: 57
Views: 11272

Re: New Campaigns?

we had a statistic gatherer in place ages ago. I used it to balance scenarios, you could see when people drop out of your campaign. If they drop out with little money they most likely fail for balancing reasons. I would like to see such info for mine campaign, regardless of 'rating' question. Yes, ...
by fabi
April 14th, 2016, 1:53 pm
Forum: Users’ Forum
Topic: New Campaigns?
Replies: 57
Views: 11272

Re: New Campaigns?

Wow, I am happy it gone to a quite constructive way. :lol: No. I bet nothing will happen regarding the issue. Please note, we had a statistic gatherer in place ages ago. I used it to balance scenarios, you could see when people drop out of your campaign. If they drop out with little money they most...
by fabi
April 14th, 2016, 1:13 pm
Forum: Users’ Forum
Topic: New Campaigns?
Replies: 57
Views: 11272

Re: New Campaigns?

I have been involved into the discussion around that topic a lot and this argument is new to me. You mean my proposition or the reason I recalled for the rating feature not being implemented? If the latter, then I likely misremembered it. We talked about the "like" vs "number" r...