Community Forum

Trafic

Forum Overview >> Scripting

CategoryScripting
Created25.01.2021 08:22


Ekkehard Kohfeld (EKohfeld) 25.01.2021 08:22
Google translator sorry.
Is it possible to switch on the rotating beacon on Trafic vehicles?

Bilbo Beutlin (BBeutlin) 25.01.2021 14:21
Standard beacon lights are not supported in traffic vehicles.
But should be possible to create a permanent beacon light directly in i3d by usage of shaders like rotate and light shaders.

Ekkehard Kohfeld (EKohfeld) 25.01.2021 17:47
Sorry Google translator

I've already done that, but I have to
then do extra with each one if all-round lights are already there, simply switching them on would be easier, then keep it up but thanks for the quick reply.

Ekkehard Kohfeld (EKohfeld) 27.01.2021 13:04
Sorry Google translator
I still have a question how many vehicles can you use
build into the mapDE_trafficSystem.xml there is probably a limit somewhere, maybe someone knows that and I don't have to wonder why some vehicles don't appear or at one point on the map that is a bit frustrating that you don't know it goes or goes it not.

Bilbo Beutlin (BBeutlin) 27.01.2021 18:31
Quite sure there's a limit for traffic vehicles, alone for performance reasons.
But I don't know the exact number. Anyway, it's easy to try out.

Ekkehard Kohfeld (EKohfeld) 28.01.2021 13:47
Soryy Googel translator
It is not easy to try.
The vehicles come randomly how can you tell whether all of them are installed and I don't have problems with the performance. I play a 4-fold map with currently 103 traffic vehicles alone
Ships, planes and hot air balloons are not yet counted and
everyone is fine, it is really living on the map.

Bilbo Beutlin (BBeutlin) 28.01.2021 20:16
For test you make a number of eg. white cars and ONE red car at bottom. Now insert new white cars always at top of the list.
Certainly you'll have to wait a while. If the red car doesn't appear anymore, you know the limit. ;)

Ekkehard Kohfeld (EKohfeld) 29.01.2021 07:39
Why does the programmer not know the limit?
Doesn't know what he's doing :-(
What a great help.

Bilbo Beutlin (BBeutlin) 29.01.2021 08:41
1. It is not documented anywhere.
2. It is completely unimportant.

An average map has perhaps upto 10 traffic vehicles, the most maps significantly less.
Using much more cars is not wise. These eat resources and slow-down performance.
Also the splines have limits for active vehicles. The amount is calculated by the game depending on system and settings.

Each traffic vehicle active on map is script controlled. It needs nearly similar resources like an active ai helper.

Ekkehard Kohfeld (EKohfeld) 29.01.2021 09:13
Sorry Google translator
On my 4x map there are over 100 vehicles with 5 scripts installed and there is life on the map, ships, trains and airplanes and everything works without the PC stopping.
And yes for me it is important that other things also move
Otherwise I can leave any landscape behind because that is part of it. But apparently I can't expect any support here, a shame. :-(

Bilbo Beutlin (BBeutlin) 29.01.2021 09:26
In case you haven't noticed, this is a user forum - and people can only share what is documented or what they have found out themselves.
Modding is mostly your own research.

If that's not enough for you, you want to know more, email Giants.

Ekkehard Kohfeld (EKohfeld) 29.01.2021 09:39
Google translator
"In case you haven't noticed, this is a user forum"
But you can tell from their extremely happy and helpful comments :-(

Bilbo Beutlin (BBeutlin) 29.01.2021 09:48
Spamming and trolling is not welcome here. Talk to your hairdresser.

Ekkehard Kohfeld (EKohfeld) 29.01.2021 10:07
"Spam and trolling are not allowed here. Talk to your hairdresser"

Then why are they doing it? :-)
Because her comments had nothing to do with real help.

Ekkehard Kohfeld (EKohfeld) 29.01.2021 10:34
"For testing, make a series of e.g. white cars and ONE red car below. Now always add new white cars to the top of the list."

What a great idea, who tells the random number generator to be off?

Bilbo Beutlin (BBeutlin) 29.01.2021 20:01
You don't seem to have much of an idea.
Control it with the attribute 'probability' - make it huge for the test car, very little for the 'dummy' cars.
Pay attention that the sum of all probability is 1.000.
Also always check the game log. I'd guess errors occur if a limit is exceeded.

Ekkehard Kohfeld (EKohfeld) 01.02.2021 08:25
Google translator

What does your answer have to do with my question? :-(
Entirely on the subject.
And no, that makes no mistakes.

Bilbo Beutlin (BBeutlin) 01.02.2021 21:11
Honestly - it's better you forget about modding if you don't understand it at all.

The attribute 'probability' determines the chance or frequency how often a vehicle appears.

Ekkehard Kohfeld (EKohfeld) 02.02.2021 10:15
"The 'probability' attribute determines the probability or frequency with which a vehicle will appear."

That's right, but that's old hat and I didn't ask that, completely ignored my question and I've been modding successfully since LS 09.

Bilbo Beutlin (BBeutlin) 02.02.2021 18:08
You have asked how to test a limit - I have answered.
You have asked how to avoid a very random appearance - I have answered.

So what should I have ignored?

Ekkehard Kohfeld (EKohfeld) 03.02.2021 08:09
Deutsch

"Sie haben gefragt, wie Sie ein Limit testen sollen - ich habe geantwortet."

Nein habe ich nicht,ich habe nach dem Limit in den Scripten gefragt.

"Sie haben gefragt, wie Sie ein sehr zufälliges Auftreten vermeiden können - ich habe geantwortet."

Nein habe nichts dergleichen gefragt haben sie Leseprobleme?

Googel

"You asked how to test a limit - I answered."

No, I didn't, I asked about the limit in the scripts.

"You asked how you can avoid a very accidental occurrence - I answered."

No, I didn't ask anything like that. Do you have reading problems?


Bilbo Beutlin (BBeutlin) 03.02.2021 09:10
Ok, weil du offenbar begriffsstutzig bist und auch kein Englisch verstehst, hier AUSNAHMSWEISE mal in Deutsch:

Ich hab dir klipp und klar gesagt, es gibt keine Dokumentation über dieses Thema. Und alles was nicht dokumentiert ist, muss man ggf. selbst herausfinden. Diese Recherche macht den grössten Teil der Modding-Arbeit aus. Wenn dir das nicht gefällt, solltest du mit Modding aufhören.

Ich habe dir einen Vorschlag gemacht, wie du ein mögl. Limit leicht selbst testen kannst.
Dazu der Hinweis, wie du das Testfahrzeug häufiger im Spiel hast um lange Wartezeiten zu vermeiden. Das kapierst du aber offenbar auch nicht.
Wenn du zB beim Testfahrzeug 'probability' auf 0.9 setzt, für die Dummy-Cars zusammen auf 0.1, dann ist nur jedes zehnte gespawnte Fahrzeug ein Dummy (im statistischen Durchschnitt).
Das ist die Antwort auf deine Frage: "who tells the random number generator to be off? "

Im übrigen solltest du den Übersetzer wechseln. Google Translator ist lausig um Zusammenhänge zu übersetzen. Versuch es mit https://www.deepl.com/translator

Ekkehard Kohfeld (EKohfeld) 03.02.2021 14:15
"Ich hab dir klipp und klar gesagt, es gibt keine Dokumentation über dieses Thema. Und alles was nicht dokumentiert ist, muss man ggf. selbst herausfinden. Diese Recherche macht den grössten Teil der Modding-Arbeit aus. Wenn dir das nicht gefällt, solltest du mit Modding aufhören."

Richtig und dann hast du mir ständig Sachen erklärt die ich gar nicht wissen wolle und die ich auch gar nicht gefragt habe,völlig am Thema vorbei.

"Ich habe dir einen Vorschlag gemacht, wie du ein mögl. Limit leicht selbst testen kannst."

Das wahr aber nicht meine Frage und funktionieren tut das auch nicht wenn du keine Ahnung hast halte dich doch einfach geschlossen
und gib nicht über all deinen Sempf da zu.

Und alle andere was du von die gibst ist ein völlig alter Hut.

"Das ist die Antwort auf deine Frage: "who tells the random number generator to be off? ""

Das ist aber nicht abschalten.

Ich wolle einfach nur wissen wie viel Fahrzeuge ich da einbauen kann und sonst nicht wenn du das nicht weißt halt dich
doch einfach geschlossen die anderen Sachen wolle ich nicht wissen den die weiß ich schon
den die sind ja nicht neu.

Bilbo Beutlin (BBeutlin) 03.02.2021 22:30
Jetzt werd hier bloss nicht pampig! Meine Geduld ist am Ende.

Nach dem ich dir gesagt habe, es wäre leicht auszutesten, hast du behauptet, es wäre nicht leicht. Also habe ich gezeigt, wie einfach es ist.
Der Zufallsgenerator lässt sich nicht abschalten ohne Eingriff in den LUA code - aber weil der nicht dokumentiert/bekannt ist, entfällt das und man muss einen Workaround machen.

Mit deiner selbstgelobten Modding-Praxis hättest du das alles wissen müssen.

Rechne nicht mit weiterem Support hier bei deiner Umgangsweise. Geh ins allgemeine Forum https://forum.giants-software.com - da hast du auch keine Probleme mit Englisch.

Ekkehard Kohfeld (EKohfeld) 04.02.2021 07:29
"Jetzt werd hier bloss nicht pampig! Meine Geduld ist am Ende."

Ist das eine Drohung oder ein Versprechen?
Und wer zuerst pamppig geworden ist kann man unschwer erkennen.

"Mit deiner selbstgelobten Modding-Praxis hättest du das alles wissen müssen."

Weiß ich auch deshalb habe ich da auch gar nicht nach gefragt sondern ganz was anderes.

"Rechne nicht mit weiterem Support hier bei deiner Umgangsweise."

Welchen Support?:-(

Ekkehard Kohfeld (EKohfeld) 16.02.2021 16:25
Ach übrigens wie bekommen das eigentlich CoursePlay und AutoDrive hin das die die Rundumleuchte einschalten können?
Können die Hellsehen?

Bilbo Beutlin (BBeutlin) 16.02.2021 17:21
Toller Einwand. Schonmal auf den Gedanken gekommen, dass CP/AD normale vehicles mit Standard-Scripten benutzen?
Jedenfalls werden KI traffic vehicle nicht von der zuständigen "lights.lua" unterstützt.

Ekkehard Kohfeld (EKohfeld) 17.02.2021 06:50
Was bitte ist ein "lights.lua"
Hast du einen andern LS?
Du solltest keinen Support geben wenn du keine Ahnung hast.
Aber gut das es Leute gibt die mehr Ahnung haben wie du den inzwischen gehen meine Rundumleuchten.
Ach übrigen sind auch Standard-Scripte in den Fahrzeugen den das sind keine aderen Fahrzeuge wie im LS selber.


Bilbo Beutlin (BBeutlin) 17.02.2021 10:29
Und wenn DU Ahnung hättest, wüsstest du wozu das Script "lights.lua" gebraucht wird und was es bewirkt.
https://gdn.giants-software.com/documentation_scripting_fs19.php?version=script&category=32&class=368
Dieses Script steuert alle Beleuchtungen an den normalen Fahrzeugen.

Also halt die Füsse still und spiel hier nicht den Profi. Dein Wissen hält sich offenbar in ziemlich überschaubaren Grenzen.

Ekkehard Kohfeld (EKohfeld) 17.02.2021 10:57
"Also halt die Füsse still und spiel hier nicht den Profi."

Ich muß hier nichts spielen:-)))
Ich habe auch nicht behauptet das ich das besser kann das hast du mir unterstellt,
sonst hätte ich bestimmt nicht gefragt.

"Dein Wissen hält sich offenbar in ziemlich überschaubaren Grenzen."

Und dein,s erreicht diese Grenzen nicht mal:-)))))))
Am besten kannst du stänkern.

Was soll ich übrigens mit dem Link?
Habe doch geschrieben das es geht da wahr jemand schlauer wie du:-)


Note: Log in to post. Create a new account here.