Snowballs fence mod construction

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


  • Hello


    I'm trying to use snowballs fence mod to create some catenary wire. The problem is that I keep getting the following error:


    error: [string "D:/Program Files (x86)/Steam/userdata/82486952/1066780/local/staging_area/norwegian_catenary_adv_1/res/construction/asset/kl_ledning_H.con"]:22: attempt to index field 'kl_ledning_H' (a nil value)

    stack traceback:

    =[C](-1): __index


    I have gone over everything and cannot find anything that might create the problem. If anyone with experience on the matter know the likely cause of this, their help would be greatly appreciated.

  • What is this mod?

    norwegian_catenary_adv_1

  • It's a mod I'm working on that adds Norwegian catenary, that don't get anywhere if this wont work

  • The error says that the variable kl_ledning_H is empty (zero) and therefore the game crashes. This has nothing to do with snowball fences.

    Without seeing the con it would be difficult to say anything more specific, that would just looking into the crystal ball.

    Grüße MaikC


    116494-emd-dda40x-nc-up-png116503-mc-br442-2-png

    Fehler- und Crashreports ausschließlich unter: MaikC - Fahrzeuge und anderes für TPF2 / 2471 TPF2 Modelle and counting.

    Meine Modelle auf Sketchfab anschauen.

  • Here

    This is the con file and the lua config file

    Dateien

    • nca1.zip

      (1,41 kB, 272 Mal heruntergeladen, zuletzt: )
  • Hi, the zip seems to be missing files, and it's really difficult to say what's happening without the complete set of mod files in their correct folders.


    Based on that .con and .lua file, the require statements and references for "fences" appear to be inconsistent/incorrect in several places, and as a result the reference on line 22 of the .con file (fences.fences.kl_ledning_H[1].offset) doesn't actually link to the table that appears to be defined in the .lua file at line 18.

  • There, that should cover it

    Dateien

    • res.zip

      (34,61 kB, 552 Mal heruntergeladen, zuletzt: )