<feed xmlns='http://www.w3.org/2005/Atom'>
<title>advtrains.git/advtrains/spec, branch release-2.4.7</title>
<subtitle>Advtrains mod for minetest.</subtitle>
<id>https://git.bananach.space/advtrains.git/atom?h=release-2.4.7</id>
<link rel='self' href='https://git.bananach.space/advtrains.git/atom?h=release-2.4.7'/>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/'/>
<updated>2024-11-09T21:09:00+00:00</updated>
<entry>
<title>Address wagon aliasing issues</title>
<updated>2024-11-09T21:09:00+00:00</updated>
<author>
<name>Y. Wang</name>
<email>y5nw@protonmail.com</email>
</author>
<published>2024-09-19T18:39:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=66868e2eefe97b7a6d35fa3fecc895b9c7bbc4cc'/>
<id>urn:sha1:66868e2eefe97b7a6d35fa3fecc895b9c7bbc4cc</id>
<content type='text'>
As it turns out, not fully testing new features is not necessarily a
good idea ...

This patch follows up 1F616EMO's patch by
* Making get_wagon_prototype return the resolved alias,
* Handling recursive wagon alises (in particular, loops), and
* Adding (partial) unittest for the wagon aliasing system. [v2]: The
testcases are complemented a bit more to cover situations where the
alias resolution system should return nil.

[v2]: This patch should hopefully also warn about not spawning wagons.
Note that this only warns about the missing wagon entity and does _not_
actually fix the issue.

How to test:
* In a world with both advtrains_train_subway and advtrains_train_japan
  enabled, place a subway wagon, a Japanese engine, and a regular
  Japanese wagon.
* Add the test mod to the world; do NOT remove advtrains_train_japan.
* Restart the world. Notice that the Japanese wagons still appear as
  Japanese wagons despite being aliased to subway wagons.
* Restart the world without the advtrains_train_japan mod. Notice that
  the engine appears as the subway wagon while the regular Japanese
  wagon appears as the wagon placeholder. [v2]: Also note that the
  warning message about the missing wagon prototype still mentions the
  regular Japanese wagon.
* Restart the world again with the advtrains_train_japan mod. Notice
  that both type of Japanese wagons reappear as Japanese wagons.
* Observe that unittests work.

Test mod:
advtrains.register_wagon_alias("advtrains:engine_japan", "advtrains:subway_wagon")
advtrains.register_wagon_alias("advtrains:wagon_japan", "advtrains:wagon_japan")
</content>
</entry>
<entry>
<title>Autogenerate .tr files from .po files</title>
<updated>2024-11-04T16:17:51+00:00</updated>
<author>
<name>Y. Wang</name>
<email>yw05@forksworld.de</email>
</author>
<published>2023-10-04T18:07:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=425b0993d355b9f45ddd400bd4925f9f1a5bd34d'/>
<id>urn:sha1:425b0993d355b9f45ddd400bd4925f9f1a5bd34d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rework graphical train HUD code</title>
<updated>2024-08-08T20:48:23+00:00</updated>
<author>
<name>Y. Wang</name>
<email>yw05@forksworld.de</email>
</author>
<published>2023-06-02T11:30:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=0bfc7bbe099c7bba20cf1194b3ffad9471d0c7a4'/>
<id>urn:sha1:0bfc7bbe099c7bba20cf1194b3ffad9471d0c7a4</id>
<content type='text'>
- A basic texture manipulation API is added; currently this is only a
  (selected) subset of texture modifiers provided by MT; the goal is to
  avoid writing (potentially incorrect) texture strings by hand;
- The graphical HUD code is cleaned up; in particular, most code used
  for generating texture patterns are moved to texture.lua so that the
  code can be used outside of the HUD;
- Inactive elements are given the darkslategray background.

A basic unittest is added; however, it needs to be expanded for better
coverage.

Reported-by: Lars Müller &lt;appgurulars@gmx.de&gt;
</content>
</entry>
<entry>
<title>Add more unit tests, fix broken unit test</title>
<updated>2021-11-09T20:56:41+00:00</updated>
<author>
<name>Gabriel Pérez-Cerezo</name>
<email>gabriel@gpcf.eu</email>
</author>
<published>2021-11-09T20:56:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=3561a7bfa2e3ed6690c359c052cf056652df4deb'/>
<id>urn:sha1:3561a7bfa2e3ed6690c359c052cf056652df4deb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Support different types of speed restrictions; add documentation</title>
<updated>2021-11-07T12:49:01+00:00</updated>
<author>
<name>ywang</name>
<email>yw05@forksworld.de</email>
</author>
<published>2021-11-03T17:55:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=be2f37a0678c66278d1c491b8f1250a8a3be9feb'/>
<id>urn:sha1:be2f37a0678c66278d1c491b8f1250a8a3be9feb</id>
<content type='text'>
</content>
</entry>
</feed>
