Autokorrektur! Ich meinte natürlich Mörser
Beiträge von Rob (x4)
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
-
-
also ich habe ein kleines Problem mit meiner Mod vom DHL Lager. Bei mir im Spiel wird es nicht als LKW Station erkannt. Ich kann es beim erstellen einer neuen Linie einfach nicht auswählen und es wir auch kein Icon für eine LKW Station über der Mod angezeigt wie bei den Vanilla Stationen.
Das merkwürdige ist, dass es bei Elektronikfreak zu funktionieren scheint??
Woran kann das liegen ?
Kann vielleicht ein weiterer Mörder der sich mit Scripten auskennt mal drüber schauen ob er was findet ?
-
-
-
Code
File not found: station_new_small.lua c:\build\tpf2_steam\src\game\transport\street\streettyperep.cpp:226: int __cdecl StreetTypeRep::GetIndexExact(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) const: Assertion `false' failed. MinidumpCallback: dumpPath "E:/Steam/userdata/83975160/1066780/local/crash_dump/", minidumpId "3924482b-0718-48b6-8851-a96ef8b0b95c", succeeded 1 local time is Wed May 13 17:36:54 2020jetzt sagt er das
-
Ich habe leider immer noch keine Ahnung vom Scripten, wo genau muss ich local jetzt einfügen und wie genau muss das aussehen ?
Code
Alles anzeigenlocal constructionutil = require "constructionutil" local paramsutil = require "paramsutil" local vec3 = require "vec3" local transf = require "transf" local colliderutil = require "colliderutil" function data() return { type = "STREET_STATION_CARGO", description = { name = _("DHL Distribution Center"), description = _("Großes DHL Distribution Center als Lagerhalle für Güter"), }, availability = { yearFrom = 1850, }, buildMode = "MULTI", categories = { "misc" }, order = 10, updateFn = function(params) local result = { } local Edges = {} result.models = {} local groundFace = {} result.groundFace = {} local fenceface = {} -- local fenceface2 = {} -- Diesen Code probieren aus bandionmc_depot_modern.con oder bandion_mc_amazon_depot.con besser local groundFaceKoord = { {10,5}, {10,2}, {16,2}, {16,33}, {2.5,33}, {2.5,5} } local terrainFaces = { groundFaceKoord } -- Koordinaten sind schon Original local groundFaceKoord = { {7.62938,-64.1358}, {-147.091,-64.1358}, {-147.091,22.0542}, {-55.7,22.0542}, {-35.3,34}, {0.747144,34}, {0.747144,2.62174}, {7.62938,2.62174} } local terrainFaces = { groundFace2Koord } -- Koordinaten sind schon Original -- Modell result.models[#result.models +1] = { id = "asset/dhltest.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -50.5205, -20.7222, 0, 1 } } result.models[#result.models +1] = { id = "asset/dhl_mid.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } result.models[#result.models +1] = { id = "asset/dhl_street.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } result.models[#result.models +1] = { id = "asset/dhl_pforte.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } -- Edges Edges[#Edges +1] = { { 7.5, -2.65701, 0 }, { 8.0, 0.0, 0.00 } } Edges[#Edges +1] = { { 15.5, -2.65701, 0 }, { 8.0, 0.0, 0.00 } } Edges[#Edges +1] = { { 15.5, -2.65701, 0 }, { 5.0, 0.0, 0.00 } } Edges[#Edges +1] = { { 20.5, -2.65701, 0 }, { 5.0, 0.0, 0.00 } } Edges[#Edges +1] = { { 7.5, -58.0858, 0 }, { 8.0, 0.0, 0.00 } } Edges[#Edges +1] = { { 15.5, -58.0858, 0 }, { 8.0, 0.0, 0.00 } } Edges[#Edges +1] = { { 15.5, -58.0858, 0 }, { 5.0, 0.0, 0.00 } } Edges[#Edges +1] = { { 20.5, -58.0858, 0 }, { 5.0, 0.0, 0.00 } } result.edgeLists = { { type = "STREET", params = { type = "station_new_small.lua" }, edges = Edges, snapNodes = { 3 , 7 }, } } -------------------------------------------- local fenceface = {} -- Zwischen Einfahrten fenceface = { {-4,-8.38576, 0}, {5,-8.38576, 0}, {7.17938,-10.45, 0}, {7.17938,-52.48, 0}, {0.929379,-52.48, 0} } constructionutil.makeFence(fenceface, "station/air/asset/fence_metal.mdl", 3, false, result.models) local fenceface2 = {} fenceface2 = { {5.35 ,-63.5, 0}, {-147.691 ,-63.5, 0}, {-147.691 ,20.5, 0}, {-145.6 ,22.6542, 0}, {-55.6 ,22.6542, 0}, {-34.7 ,34.5142, 0}, {1.27215,32.8, 0}, {1.27215, 8.77174, 0} } constructionutil.makeFence(fenceface2, "station/air/asset/fence_metal.mdl", 3, false, result.models) result.colliders = { colliderutil.createBox({ 65, -50, 1 }, { -52, 121, 15 }) } local TerrainFaces = {} TerrainFaces[#TerrainFaces +1] = { {20,-64.2858,-0.00001},{-148.291,-64.2858,-0.00001},{-148.291,23.2542,-0.00001},{-57.0906,23.2542,-0.00001},{-37.0906,35.1142,-0.00001},{20,35.1142,-0.00001} } -- Groundface neu eingefuegt und funktioniert result.groundFaces = { } result.groundFaces[#result.groundFaces + 1] = { face = groundFaceKoord, modes = { { type = "FILL", key = "industry_concrete_01.lua" } } } result.groundFaces[#result.groundFaces + 1] = { face = groundFaceKoord, modes = { { type = "STROKE_OUTER", key = "building_paving.lua" } } } -- ENDE Groundface -- result.groundFaces2 ={} -- groundFace2 = { -- {7.62938,-64.1358}, -- {-147.091,-64.1358}, -- {-147.091,22.0542}, -- {-55.7,22.0542}, -- {-35.3,34}, -- {0.747144,34}, -- {0.747144,2.62174}, -- {7.62938,2.62174} -- } -- result.groundFaces2[#result.groundFaces2 + 1] = { face = groundFace, modes = { { type = "FILL", key = "industry_concrete_01.lua" } } } --local groundFaces ={} -- groundFace = { -- {10,5}, -- {10,2}, -- {16,2}, -- {16,33}, -- {2.5,33}, -- {2.5,5} -- } -- result.groundFaces[#result.groundFaces + 1] = { face = groundFace, modes = { { type = "FILL", key = "industry_gravel_big_01.lua" } } } ----- result.groundFaces[#result.groundFaces + 1] = { face = groundFace, modes = { { type = "FILL", key = "town_concrete.lua" } } } ----- result.groundFaces[#result.groundFaces + 1] = { face = groundFace, modes = { { type = "STROKE_OUTER", key = "building_paving.lua" } } } -- Diesen Code probieren aus bandionmc_depot_modern.con oder bandion_mc_amazon_depot.con besser -- result.groundFaces = { } -- result.groundFaces[#result.groundFaces + 1] = { -- face = groundFaceKoord, -- modes = { -- { -- type = "FILL", -- key = "town_concrete.lua" -- } -- } -- } -- result.groundFaces[#result.groundFaces + 1] = { -- face = groundFaceKoord, -- modes = { -- { -- type = "STROKE_OUTER", -- key = "building_paving.lua" -- } -
In der constrction oder wo genau ?
-
* Size: 32 x 32
* Climate: temperate.clima.lua
* Generator: temperate.gen.lua
* Town freq.: 1
* Industry freq.: 1
Saved settings to E:/Steam/userdata/83975160/1066780/local/settings.lua
Game settings
* Date: 2000-01-01
* Difficulty: 0
seedText: cRO0l
active mods:
rob_dhl_clean/1
config dict:
climate: temperate
vehicles: all
nameList: europe
environment: temperate
achievements earnable: 0
init version: 292
map seed text: cRO0l
adding archive res/models/models.zip
asset/dhl_mid.mdl is missing boundingInfo
asset/dhl_pforte.mdl is missing boundingInfo
asset/dhl_street.mdl is missing boundingInfo
asset/dhltest.mdl is missing boundingInfo
ModelRep: 16872.5 ms
placementSamples: 4
placing industry/food_processing_plant.con at 2146.87
adding tag: INPUT_GRAIN
placing industry/farm.con at 184.308
placing industry/farm.con at 1723.09
placing industry/farm.con at 1809.37
placing industry/farm.con at 380.887
placing industry/construction_material.con at 2517.33
adding tag: INPUT_STONE
placing industry/quarry.con at 2113.73
placing industry/tools_factory.con at 1199.85
adding tag: INPUT_PLANKS
placing industry/machines_factory.con at -3809.81
adding tag: INPUT_PLANKS
adding tag: INPUT_STEEL
placing industry/saw_mill.con at 1983.17
adding tag: INPUT_LOGS
placing industry/saw_mill.con at -8541.52
adding tag: INPUT_LOGS
placing industry/forest.con at 191.918
placing industry/forest.con at 154.99
placing industry/forest.con at 598.381
placing industry/forest.con at 1016.18
placing industry/goods_factory.con at -5020.85
adding tag: INPUT_PLASTIC
adding tag: INPUT_STEEL
placing industry/steel_mill.con at 1790.11
adding tag: INPUT_IRON_ORE
adding tag: INPUT_COAL
placing industry/steel_mill.con at -6028.01
adding tag: INPUT_IRON_ORE
adding tag: INPUT_COAL
placing industry/coal_mine.con at -33.051
placing industry/coal_mine.con at 217.49
placing industry/coal_mine.con at -492.191
placing industry/coal_mine.con at 244.078
placing industry/iron_ore_mine.con at 1260.8
placing industry/iron_ore_mine.con at 1009.55
placing industry/iron_ore_mine.con at -503.289
placing industry/iron_ore_mine.con at 1047.98
placing industry/fuel_refinery.con at 1141.63
adding tag: INPUT_OIL
placing industry/chemical_plant.con at -13607.4
adding tag: INPUT_OIL
placing industry/oil_refinery.con at 1565.57
adding tag: INPUT_CRUDE
placing industry/oil_well.con at 1172.7
placing industry/oil_well.con at 2126.28
placing industry/oil_well.con at 5079.48
Towns 'Kreuzbruch' and 'Rechtenstein': connected (ref. time 282.387s)
Towns 'Brunne' and 'Kreuzbruch': connected (ref. time 284.626s)
Towns 'Hünxe' and 'Brunne': connected (ref. time 283.276s)
Towns: 3/3 town connections
Industry 'Kreuzbruch Lebensmittelfabrik': connected
Industry 'Kreuzbruch Bauernhof': connected
Industry 'Brunne Bauernhof': connected
Industry 'Brunne Bauernhof #2': connected
Industry 'Brunne Bauernhof #3': connected
Industry 'Brunne Baumaterialfabrik': connected
Industry 'Brunne Steinbruch': connected
Industry 'Hünxe Werkzeugfabrik': connected
Industry 'Rechtenstein Maschinenfabrik': connected
Industry 'Hünxe Sägewerk': connected
Industry 'Kreuzbruch Sägewerk': connected
Industry 'Brunne Wald': connected
Industry 'Hünxe Wald': connected
Industry 'Kreuzbruch Wald': connected
Industry 'Kreuzbruch Wald #2': connected
Industry 'Brunne Warenfabrik': connected
Industry 'Rechtenstein Stahlwerk': connected
Industry 'Hünxe Stahlwerk': connected
Industry 'Rechtenstein Kohlebergwerk': connected
Industry 'Rechtenstein Kohlebergwerk #2': connected
Industry 'Kreuzbruch Kohlebergwerk': connected
Industry 'Hünxe Kohlebergwerk': connected
Industry 'Rechtenstein Eisenerzbergwerk': connected
Industry 'Brunne Eisenerzbergwerk': connected
Industry 'Rechtenstein Eisenerzbergwerk #2': connected
Industry 'Rechtenstein Eisenerzbergwerk #3': connected
Industry 'Hünxe Treibstoffraffinerie': connected
Industry 'Kreuzbruch Chemiefabrik': connected
Industry 'Hünxe Ölraffinerie': connected
Industry 'Rechtenstein Ölquelle': connected
Industry 'Rechtenstein Ölquelle #2': connected
Industry 'Brunne Ölquelle': connected
Industries: 32/32 connected
InitGame: 12836.6 ms
Create Fields: 236.883 ms
res/textures/models/asset/traffic_light_green.tga: compression request ignored
Initial material index generation: 2879.05 ms
Info log for program terrainTriplanarSpecial:
WARNING: Too many temp register is used in Fragment shader, it may cause slow execution.
File not found: station_new_small.lua
c:\build\tpf2_steam\src\game\transport\street\streettyperep.cpp:226: int __cdecl StreetTypeRep::GetIndexExact(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) const: Assertion `false' failed.
MinidumpCallback: dumpPath "E:/Steam/userdata/83975160/1066780/local/crash_dump/", minidumpId "c616e531-2385-4873-8c27-685b3d4bf4b8", succeeded 1
local time is Wed May 13 10:39:34 2020
error: error: res/scripts/init.lua:64: creating globals by assignment is not allowed (variable was GroundFace2)
Did you forget to add 'local' before your variable?
stack traceback:
[C](-1): ?
[C](-1): error
res/scripts/init.lua(64): __newindex
[string "mods/rob_dhl_clean_1/res/construction/assets/..."](96): ?
res/config/base_config.lua(32): ?
-
also ich arbeite momentan ja noch rein am Modell das kann man dann theoretisch für TPF1 und TPF2 fertig machen. Im Fokus ist aber denke ich erstmal TPF2
-
Es geht weiter... das Mammutprojekt wird mal wieder aus dem ewigen Eis aufgetaut und zum Leben erweckt !
-
Einige der gezeigten Modelle stammen von Svenberlin und Feindbild die mir freundlicherweise erlaubt haben diese für Transportfever 2 umzugestalten
-
bei steam gibt es einen Overlay mod der sowas kann. Such mal im Workshop nach Overlay
-
Viele warten sicherlich schon lange auf den Dortmunder Hbf von mir. Leider wird es noch einige Zeit dauern da es mehrere Hürden gibt diesen funktionsfähig ins Spiel zu bekommen.
Daher wäre meine Frage ob ihr lieber auf einen entgültig fertiggestellten Dortmund Hbf warten wollt oder euch auch erstmal ein noch nicht komplett fertiger Bahnhof als Asset
genügen würde, der dann immer mal geupdatet und auf den neusten Stand gebracht würde ? -
Im Moment habe ich leider wieder mal wenig Zeit und Motivation. Aber ich bleib auf lange Sicht dran. Ob dann nur als Asset oder auch funktionstüchtig. Ich weiß halt nur bei TPF2 nicht wie
das mit gescripteten Bahnhöfen überhaupt ist. Bisher ist da ja nichts veröffentlicht worden !
-
Bis jetzt noch gar nicht ingame. Weder Tpf noch Tpf2

-
niemand ?
-
oh das hab ich übersehen
-
Hast du mods aus TPF1 konvertiert und aktiviert ? Wenn ja dann funktioniert eine davon nicht und du musst sie raus nehmen.
-
Hallo !
Wenn ich das Terrain an mein mesh anpassen möchte, mach ich das in der construction (result.terrainAlignmentLists)
oder in der .mdl (boundingInfo) ?Und wie genau mache ich das ? Kann ich die Koordinaten aus Blender nehmen ?
Also bei einem rechteck wie diesem wären es folgende 4 Koordinaten:
Und müsste man bei mehreren Faces für jedes die Anpassung neu machen ?
-
Mit "passt ungefährt" meinte ich die Maße die ich genommen hatte bevor du die Maße aus der lua hier gepostet hattest
