Hi everybody! Im beginner modder and have a question. How to make residents appear in the house? I was trying to insert a line result.personCapacity = { type = "RESIDENTIAL", capacity = 99 } into the file (.con). N o effect. Then I inserted this line result.models[#result.models+1] = { id = "industry/lane.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,}, }. But then the mod stopped appearing in the game altogether. Help me, please.
How to make residents in a house?
Willkommen in der Transport Fever Community
Wir begrüßen euch in der Fan-Community zu den Spielen Transport Fever und Train Fever, den Wirtschaftssimulatoren von Urban Games. Die Community steht euch kostenlos zur Verfügung damit ihr euch über das Spiel austauschen und informieren könnt. Wir pflegen hier einen freundlichen und sachlichen Umgang untereinander und unser Team steht euch in allen Fragen gerne beiseite.
Die Registrierung und Nutzung ist selbstverständlich kostenlos.
Wir wünschen euch viel Spaß und hoffen auf rege Beteiligung.
Das Team der Transport-Fever Community
-
-
Hi!
Please do use a text size that does not require a demagnifying glass to read.
Take a look at the ingame residence building .cons, they all seem to contain something like this:
Code
Alles anzeigenfunction data() return townbuildingutil.make_building2( { { -4.60, -0.10 }, { 4.60, -0.10 }, { 4.60, 9.10 }, { -4.60, 9.10 } }, "RESIDENTIAL", "C", 3, { 2, 3 }, generatedData, "construction/building/era_c/res_3_2x3_01.gtex" ) endIf I was to add a building, I´d try to add something to this effect to Your .con - the figures in line 3 seem to be related to the buildings boundary, while the others may well be related to its capacity.
-
Yes, indeed such a line is in the default .con files. But I used another building mod as a sample, where there were already residents. And there is no such line.
-
Your approach is right.
Make sure to connect your house with lanes to the street.
But then the mod stopped appearing
There has to be an error message.
-
-
The "industry/lane.mdl" might be the correct approach. It contains the transportNetworkProvider. You might also add a transportNetworkProvider directly to your mdl.
Check the lanes with AltGr+L
-