<feed xmlns='http://www.w3.org/2005/Atom'>
<title>advtrains.git, 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:33:18+00:00</updated>
<entry>
<title>Add setting to bypass coupler type checks when coupling</title>
<updated>2024-11-09T21:33:18+00:00</updated>
<author>
<name>Maverick2797</name>
<email>git.maverick2797@gmail.com</email>
</author>
<published>2024-11-02T07:36:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=3d2d19f6f7eba90f0d19b002824b2ff466567608'/>
<id>urn:sha1:3d2d19f6f7eba90f0d19b002824b2ff466567608</id>
<content type='text'>
Allows a server to disable the coupler checks when multiple coupler types are present, making everything effectively a universal coupler
</content>
</entry>
<entry>
<title>Discard running interrupt and schedule events when LuaATC components are removed</title>
<updated>2024-11-09T21:32:51+00:00</updated>
<author>
<name>Maverick2797</name>
<email>git.maverick2797@gmail.com</email>
</author>
<published>2024-10-31T10:06:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=19d8e8c1a7dc82fa0ca1f65f04936e22c8b6e2a7'/>
<id>urn:sha1:19d8e8c1a7dc82fa0ca1f65f04936e22c8b6e2a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add get_fc_index() fucntion</title>
<updated>2024-11-09T21:32:23+00:00</updated>
<author>
<name>Maverick2797</name>
<email>git.maverick2797@gmail.com</email>
</author>
<published>2024-10-30T13:06:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=715efe22939bbe472ba4a2c81c74e64c45726bc2'/>
<id>urn:sha1:715efe22939bbe472ba4a2c81c74e64c45726bc2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix get_fc concat when fc = nil</title>
<updated>2024-11-09T21:31:56+00:00</updated>
<author>
<name>Maverick2797</name>
<email>git.maverick2797@gmail.com</email>
</author>
<published>2024-10-30T11:02:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=322fc31e74151a0ce6a14b49185b0ec9000ff5b2'/>
<id>urn:sha1:322fc31e74151a0ce6a14b49185b0ec9000ff5b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add "New From Route" function into route editing form</title>
<updated>2024-11-09T21:18:14+00:00</updated>
<author>
<name>1F616EMO</name>
<email>root@1f616emo.xyz</email>
</author>
<published>2024-09-30T11:37:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=d83d06ecdd8a23e5c36826f150c72d0ff8b644f9'/>
<id>urn:sha1:d83d06ecdd8a23e5c36826f150c72d0ff8b644f9</id>
<content type='text'>
This patch allows creating new routes based on what was done on another route. This can be useful to fix minor mistakes on a route, or to create similar routes. Note that the route buffer created "steps back" one section, but with turnouts kept.

The new button is placed above the "Save ARS" button - I know it is ugly, so please suggest a better place for it.
</content>
</entry>
<entry>
<title>Fix update_route receiving invalid route ID in after()</title>
<updated>2024-11-09T21:16:39+00:00</updated>
<author>
<name>1F616EMO</name>
<email>root@1f616emo.xyz</email>
</author>
<published>2024-09-28T22:43:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=8b9eb2a96d9c1c425ff9014fdf27c82526d8376b'/>
<id>urn:sha1:8b9eb2a96d9c1c425ff9014fdf27c82526d8376b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix depercated functions</title>
<updated>2024-11-09T21:15:06+00:00</updated>
<author>
<name>1F616EMO</name>
<email>root@1f616emo.xyz</email>
</author>
<published>2024-09-28T22:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=e53670904127c8493e13b587e507407f2beac8b3'/>
<id>urn:sha1:e53670904127c8493e13b587e507407f2beac8b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement staticdata for trains</title>
<updated>2024-11-09T21:10:06+00:00</updated>
<author>
<name>Y. Wang</name>
<email>y5nw@protonmail.com</email>
</author>
<published>2024-09-20T12:45:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=b075d8e3336dfb2755dd1b9dc29c5320a155013b'/>
<id>urn:sha1:b075d8e3336dfb2755dd1b9dc29c5320a155013b</id>
<content type='text'>
This patch exposes train.staticdata that can be used by other modders to
save data in trains across restarts. It additionally exposes two new
APIs for modders where this is relevant:

* advtrains.te_register_on_couple(function(init_train, stat_train)):
  registers a callback for train coupling, where stat_train is couple
  into init_train and is subsequently removed. This callback is run
  before the actual coupling takes place; in particular, it is run
  before stat_train is removed.
* advtrains.te_register_on_decouple(function(train, newtrain, index)):
  registers a callback for train decoupling, where newtrain is created
  by splitting the train at the given index (the wagon at the index is
  part of the new train). This callback is run after decoupling takes
  place.

advtrains.te_register_on_decouple(function
</content>
</entry>
<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>Fix crashing when train hitting objects without armor group</title>
<updated>2024-11-09T21:06:38+00:00</updated>
<author>
<name>1F616EMO</name>
<email>root@1f616emo.xyz</email>
</author>
<published>2024-09-13T23:36:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bananach.space/advtrains.git/commit/?id=86e80e4cfb0d7017ff962e40ab99a4ab6addf8f2'/>
<id>urn:sha1:86e80e4cfb0d7017ff962e40ab99a4ab6addf8f2</id>
<content type='text'>
</content>
</entry>
</feed>
