User Tools

Site Tools


dev:art:trainpacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
dev:art:trainpacks [2023-03-20 07:56]
blockhead created
dev:art:trainpacks [2023-03-20 14:30]
ywang
Line 35: Line 35:
 Internationalised train packs can be used in different languages, which helps Internationalised train packs can be used in different languages, which helps
 people who want to enjoy Minetest in their own language. There is usually not a people who want to enjoy Minetest in their own language. There is usually not a
-huge number of strings of text to cover in a train pack.+huge number of strings of text to cover in a train pack, and Advtrains provides 
 +translations for some strings.
  
 Not all mod authors read and write more than one language. But those that do Not all mod authors read and write more than one language. But those that do
Line 41: Line 42:
 who are monolingual should still internationalise their software and provide a who are monolingual should still internationalise their software and provide a
 template to make internationalisation easier for potential contributors. template to make internationalisation easier for potential contributors.
 +
 +Minetest provides [[http://minetest.gitlab.io/minetest/translations/|an API]]
 +for translations. Client-side translation is preferred in most cases.
  
 ===== Animation ===== ===== Animation =====
Line 145: Line 149:
  
 Seats in AdvTrains belong to groups. Each group can have permissions and default Seats in AdvTrains belong to groups. Each group can have permissions and default
-seats. It is possible to switch seats while on board a train. Sometimes there +seats. It is possible to switch seat groups while on board a train, provided that 
-are more options with some wagonssuch as the Konstal 105N which allows the +the seat group is not fully occupied. However, it is not possible to switch seats 
-driver to sit at the front or back and passengers in one of four spots. Some +within a seat group. The Konstal 105N allows the driver to sit at the front or 
-passenger wagons have no drivers seat and no passenger seat selection.+back and passengers in one of four spots by defining one seat group for each seat
 +Wagons with only one seat group have no seat selection. 
 + 
 +Wagons commonly use ''dstand'' and ''pass'' as the seat group indices for the 
 +driver stand and the passenger area, respectively. 
 + 
 +If no seat group is defined, the player can freely choose the seat when getting 
 +on. However, this behavior appears to be provided for backward compatibility, as 
 +players in such wagons can only get off (i.e. they can not access wagon properties, 
 +even in the driver stand, and they can only switch seats by getting off and on) 
 + 
 +The ''assign_to_seat_group'' defines a list of seat groups. When a player gets 
 +on, the player is put into the first seat group in the list that has a free seat 
 +and (for driver seats) is accessible to the player. It is common to put the driver 
 +stand in front of the passenger area in the ''assign_to_seat_group'' table.
  
 The important thing is that you test your wagon to make sure all of the seats The important thing is that you test your wagon to make sure all of the seats
dev/art/trainpacks.txt · Last modified: 2023-11-09 11:47 by orwell