Search found 85 matches

by Spixi
July 31st, 2016, 2:40 pm
Forum: Coder’s Corner
Topic: Chart widget
Replies: 6
Views: 2588

Chart widget

As mentioned in https://wiki.wesnoth.org/NotSoEasyCoding#Gold_graph it is desired to have a chart widget to show several variables. This is a concept for the chart widget (at the moment without legend) written for GUI2. At the moment it is just a stub with dummy data, but you can find a first insigh...
by Spixi
May 20th, 2016, 7:01 pm
Forum: Coder’s Corner
Topic: Combo Drag widget
Replies: 0
Views: 923

Combo Drag widget

I just noted the Combo Drag widget which is used to select or switch the side controller in the Multiplayer Connect dialog. Is this widget intended for general use? It feels very odd and unintuitive to me. Wouldn't it be better to have a draggable Frame widget, which can contain any sort of widgets?...
by Spixi
May 20th, 2016, 4:41 pm
Forum: Multiplayer Development
Topic: 2p - The Great River
Replies: 3
Views: 1597

2p - The Great River

This is a nice and well-tested map I made for 2 players. What do you think about it?
2p_The_Huge_River.png
by Spixi
April 8th, 2016, 7:17 pm
Forum: Ideas
Topic: [accepted, implemented] Context-free Grammar for unit names
Replies: 28
Views: 9874

Re: How about using Context-free Grammar to generate unit na

Just out of curiosity, is the current algorithm based on MCMC on letters , not syllables or blocks? If the length is the problem, isn't just possible to include it in the likelihood by hand so that probability of long names go down? You can find the current implementation in /src/race.cpp . I wonde...
by Spixi
April 8th, 2016, 6:37 pm
Forum: Ideas
Topic: [accepted, implemented] Context-free Grammar for unit names
Replies: 28
Views: 9874

Re: How about using Context-free Grammar to generate unit na

The problem with Markov chains is that there may be loops or dead ends which can cause very long or very short names. This small example shows, what I mean: Given are the following names: LILA ANNE ALENA This produces the following Markov chain: <start> -> { A, A, L } A -> { <end>, <end>, L, N } E -...
by Spixi
April 4th, 2016, 8:16 pm
Forum: Coder’s Corner
Topic: Accessibility of a tile from other tiles
Replies: 6
Views: 1660

Re: Accessibility of a tile from other tiles

The meta-macros are just helpers for generating those big piles of variations of the same macro. Per every meta-macro, you should find (in the same file) macro definitions for all possible combinations of the lettered arguments of the meta-macro. For example, this: #meta-macro TERRAIN_BASE TERRAINL...
by Spixi
April 3rd, 2016, 7:19 pm
Forum: Coder’s Corner
Topic: Accessibility of a tile from other tiles
Replies: 6
Views: 1660

Re: Accessibility of a tile from other tiles

Search shows it is only used in https://github.com/wesnoth/wesnoth/blob/9e24258b5f5bd9e6b17006d06737fa32f4fc92aa/data/tools/expand-terrain-macros.py , so not in general preprocessing. Also, since it says !!! ONLY USE THIS IF YOU KNOW WHAT YOU ARE DOING !!! I doubt you need to use it. Thank you. I w...
by Spixi
April 3rd, 2016, 6:43 pm
Forum: Coder’s Corner
Topic: Accessibility of a tile from other tiles
Replies: 6
Views: 1660

Re: Accessibility of a tile from other tiles

Ok.Those macros in data/core/terrain-graphics/internal-tracks.cfg are very hard stuff I don't understand. Thank you, nevertheless.

Small question: What does the preprocessor directive #meta-macro do? It is not documented in https://wiki.wesnoth.org/PreprocessorRef .
by Spixi
April 3rd, 2016, 2:03 pm
Forum: Coder’s Corner
Topic: Accessibility of a tile from other tiles
Replies: 6
Views: 1660

Accessibility of a tile from other tiles

Hi there, I have a question about unit movement. As you see in the screenshot there are two parallel rails, which are not connected with each other. The unit can move to it, however. This should not be possible. rails.png Is there any easy possibility to modify the movement, that it is only possible...
by Spixi
March 20th, 2016, 10:17 am
Forum: Ideas
Topic: [interface] Radial menu
Replies: 3
Views: 1801

[interface] Radial menu

Hi community, many games use radial menus for quick access to context-sensitive actions. This trend has also been adopted by other applications in mobile and desktop environments. These are some examples for radial menus, which are also known as "pie menus" PieMenu.png sims.jpeg radial_menu.gif My i...
by Spixi
May 14th, 2015, 3:17 pm
Forum: Ideas
Topic: [engine] Achievement system
Replies: 8
Views: 2799

Re: [engine] Achievement system

If the game outright tempts me to "try this outlandish challenge!", then for me attempting that instantly loses most of its appeal. I no longer feel like I'm actually doing something special, and I know for certain that it's possible to achieve, achieved by lots of other people, and something that ...
by Spixi
May 10th, 2015, 10:32 pm
Forum: Ideas
Topic: [engine] Achievement system
Replies: 8
Views: 2799

[engine] Achievement system

Hi there! Since I did not find anything similar using the search function I am proposing this feature as a new idea. One thing first: This feature is solely a incentive system and does not affect any aspects of the gameplay. However, I am convinced that it will be a great feature, because it will im...
by Spixi
May 18th, 2014, 8:01 am
Forum: Art Contributions
Topic: Avoiding storing sprites in 9000 files, how?
Replies: 15
Views: 6453

Re: Avoiding storing sprites in 9000 files, how?

I don't understand your arguments to zip the images. PNG already supports compression and we use wesnoth-optipng to minimize the file size. There is also no performance win if you read an uncopressed zip, tar or cpio archive instead of single files. All modern OSes collect read() calls in a queue an...
by Spixi
April 6th, 2014, 12:14 am
Forum: Coder’s Corner
Topic: [elseif] in WML
Replies: 29
Views: 7211

Re: [elseif] in WML

By doing that, you are a perpetrator of the very issue you complain of - namely, different coding styles. If/then/elseif/else are very basic logic structures used in many if not all programming languages. It would make little sense not to use them here. Plus, your way only introduces more lines of ...
by Spixi
April 5th, 2014, 9:06 am
Forum: Coder’s Corner
Topic: [elseif] in WML
Replies: 29
Views: 7211

Re: [elseif] in WML

I don't think that tags like [else] or [elseif] are really needed. The only lead to confusion between different coding styles. Think KISS. There should only one way to do something and this way does it well. So I prefer to stay with: Sample for IF-ELSE: [if] {CONDITION} [then] {STATEMENT} [/then] [/...