Search found 106 matches

by Kernigh
June 1st, 2012, 7:01 pm
Forum: WML Workshop
Topic: How to get turn limit or max turns number in wml
Replies: 6
Views: 1280

Re: How to get turn limit or max turns number in wml

Resurrecting an old thread here. Is there any way to do this in Lua that's developed in the past two years? Yes, wesnoth.game_config.last_turn gives the turn limit. This feature existed since [rev]44561[/rev] (22 July 2010) and is in 1.10, but the wiki never documented it. I have now added it to th...
by Kernigh
May 24th, 2012, 3:39 am
Forum: Multiplayer Development
Topic: (1.10) A New Land Classic 0.14.4
Replies: 33
Views: 11828

Re: (1.10) A New Land Classic 0.14.3

Problem: In PvP games, battlefield flooded with units and structures. My name for this problem is Too Much Gold , or TMG . Players buy many units, and flood the front line with units. TMG causes a slow game . The front line stalls. In one turn, a player might kill a few units and conquer a few hexe...
by Kernigh
May 22nd, 2012, 5:09 am
Forum: WML Workshop
Topic: How do I put enemies on mp maps
Replies: 4
Views: 1097

Re: How do I put enemies on mp maps

anyways I have some maps I want to put enemies on, so how do i code a map even? (... how do i put it together into an add-on or post add ons) My guess is that you have a .map file (from the map editor), but you have no add-on and no .cfg file. There is, at the moment, no good tutorial for creating ...
by Kernigh
May 21st, 2012, 2:29 pm
Forum: WML Workshop
Topic: Emacs WML-mode
Replies: 50
Views: 20198

Re: Emacs WML-mode

I found a copy of Emacs WML-mode in wesnoth/data/tools/emacs_mode, and started using it with Emacs 23.4. I have a problem when indenting IF_VAR calls. Emacs indents like this: {IF_VAR a equals $b ( [then] {ERROR "yes"} [/then] [else] {ERROR "no"} [/else] )} But wmlindent does ind...
by Kernigh
May 21st, 2012, 12:57 am
Forum: Multiplayer Development
Topic: Legend of Wesmere(Multiplayer)
Replies: 6
Views: 3225

Re: Legend of Wesmere(Multiplayer)

There is no multiplayer Legend of Wesmere since Wesnoth 1.9.10, because svn r51620 removed multiplayer LoW from Wesnoth. I found no explanation of this removal, not in Wesnoth's changelog , nor in Wesnoth's bug tracker . My best guess is that Wesnoth's developers abandoned multiplayer LoW because th...
by Kernigh
May 12th, 2012, 2:52 am
Forum: WML Workshop
Topic: 1.10 -> 1.8
Replies: 3
Views: 483

Re: 1.10 -> 1.8

The error it showed was pointing to about 10 locations, and the source of problem was said to be an absolutely normal tag. The error is absolutely elsewhere obviously, and tracking it through the 300 kilobytes of code is not too much an option. Sometimes, Wesnoth reports the wrong place for an erro...
by Kernigh
March 7th, 2012, 4:03 am
Forum: Multiplayer Development
Topic: (1.10) A New Land Classic 0.14.4
Replies: 33
Views: 11828

Re: (1.10) A New Land Classic 0.14.3

... the undead have no good options for fighting in large bodies of water. Loyalists send Mermen. Outlaws and Orcs send Nagas. Undead have no water units to send. Suppose that an opponent constructs a moat of shallow water, and fills said moat with, for example, Naga Guardians. An Undead side might...
by Kernigh
March 7th, 2012, 3:14 am
Forum: Multiplayer Development
Topic: Q: Looking for a few old maps (Map Request!!)
Replies: 8
Views: 2921

Re: Q: Looking for a few old maps (Map Request!!)

There is a tool called wmlint that converts addons automately: http://forums.wesnoth.org/viewtopic.php?f=21&t=24460 Some add-ons contain code that wmllint cannot convert. I use wmllint to convert old add-ons. wmllint finds and fixes many problems, and saves much time, but I must do what wmllint...
by Kernigh
March 3rd, 2012, 7:04 am
Forum: Multiplayer Development
Topic: GambCiv • A civ-like Wesnoth add-on
Replies: 98
Views: 36531

Re: GambCiv • A civ-like Wesnoth add-on

em3 wrote:The ingame chat messages mention, that the add-on is translatable, yet I'm unable to locate a .po file...
Follow instructions at http://wiki.wesnoth.org/WesCamp.

However, http://gettext.wesnoth.org/ has no .po files for GambCiv, so there must be some problem.
by Kernigh
March 3rd, 2012, 1:14 am
Forum: WML Workshop
Topic: Order of loading
Replies: 9
Views: 1376

Re: Order of loading

Here is how to make an era that only adds events to Default or Age of Heroes. My "Stealth Era" has two parts. First, utils/stealth.cfg defines a STEALTH_EVENTS macro. Second, eras/stealth.cfg defines the eras: #textdomain wesnoth-Secret_Maps [era] id=Secret Maps/Stealth Default name= _ &qu...
by Kernigh
February 23rd, 2012, 7:14 pm
Forum: Multiplayer Development
Topic: Problem with 2v2 maps.
Replies: 3
Views: 1201

Re: Problem with 2v2 maps.

But it seems the teams and factions are random despite taking specific factions and players to specific sides (moving players between slots not chaging teams). In the map selection screen, find the checkbox for Shuffle sides , and change it to off . Shuffle sides randomly swaps players into differe...
by Kernigh
February 11th, 2012, 6:08 pm
Forum: WML Workshop
Topic: Portrait displayed on the right side when unit is unknown
Replies: 6
Views: 1127

Re: Portrait displayed on the right side when unit is unknow

This is difficult. You must use [store_unit] and perhaps [store_unit_type] to find the correct image. Here is my attempt to code this. My code might not work. # Find the scout. [store_unit] [filter] role=scout [/filter] variable=unit [/store_unit] # If scout is dead, do nothing. {IF_VAR unit.length ...
by Kernigh
February 7th, 2012, 10:17 pm
Forum: Multiplayer Development
Topic: (1.10) A New Land Classic 0.14.4
Replies: 33
Views: 11828

Re: (1.10) A New Land Classic 0.14.3

There was a major bug with Mushroom Farms in 0.14.2, so I had to rush 0.14.3 . Version 0.14.3: * Mushroom Farms now provide the correct amount of gold. Version 0.14.2 introduced a bug that confused Mixed Flowers (^Efm) with Mushroom Farms (^Emf). Re^Efm is an empty farm, but Re^Emf is a crop. Becaus...
by Kernigh
February 7th, 2012, 6:03 pm
Forum: Multiplayer Development
Topic: Edited Map Configuration File Path
Replies: 2
Views: 1059

Re: Edited Map Configuration File Path

For multiplayer, these are your main references: Distributing content PreprocessorRef ScenarioWML [event] name=prestart [time_area] [filter_location] terrain=*U*,*u* [/filter_location] {UNDERGROUND} [/time_area] [/event] This code is wrong . The wildcard * only works at end of a terrain code. So U* ...
by Kernigh
February 7th, 2012, 5:15 pm
Forum: WML Workshop
Topic: Porting an old add-on to 1.10
Replies: 8
Views: 1601

Re: Porting an old add-on to 1.10

1. The menu items are not working correcly. There are no errors, they just don't show up, or show up where they're not supposed to. The filter for WS_PASS_BALL (in utils/ball_stuff.cfg) is wrong. [filter_location] is in wrong place. Read the doc for [set_menu_item] . Notice that [show_if] and [filt...