Garry's Mod

Garry's Mod

[LVS] Star Wars UT-AT
 This topic has been pinned, so it's probably important
Cincorax  [developer] 5 Feb, 2023 @ 12:21pm
[Bugs] Please post all Bugs here!
I propably broke everthing, so just let me know what I broke this time.
Bugs:
- Exit-Position's are broken cause of some incompability of another addon. I don't know which one.
Last edited by Cincorax; 7 Feb, 2023 @ 5:42am
< >
Showing 1-12 of 12 comments
Eragon 5 Feb, 2023 @ 8:20pm 
cursor is not where the cannons are pointing or shooting at for spot 1. They are pointing upwards, not allowing for accurate aiming
Cincorax  [developer] 5 Feb, 2023 @ 11:26pm 
Have you started the engine? You can start the engine with R and they should change their Angle and be accurate afterwards.
ribarbo 7 Feb, 2023 @ 1:41am 
i cant enbel the ai is this a me prombelom or a addon problom
Cincorax  [developer] 7 Feb, 2023 @ 5:40am 
AI is disabled. Forgot to write it in the description. I haven't programed an AI yet and I can't use the build in AI cause my Code works a bit different than the standart.
Last edited by Cincorax; 7 Feb, 2023 @ 5:40am
ItsFives 19 Feb, 2023 @ 9:59pm 
Been getting this error when ever I spawn it in

lua/entities/svenmans_ut-at_lvs/shared.lua:307: attempt to call method 'InitUnderTurret' (a nil value)
Cincorax  [developer] 21 Feb, 2023 @ 2:13am 
Does it happen, when you spawn the big or the small one or both?
Have you tried to deactivate the other addons to check for incompatibility?
If you could check that for me it help me to understand and fix this bug for you and everone else.
Don't ask 27 Apr, 2023 @ 4:21pm 
The Underturret doesn't work properly since in the shared.lua (line 307) you wrote the name Underturret.lua instead of the Uturret.lua file. Easy to fix, just to let you know.

Und in der Tat, es geht ab wie ein Zäpfchen! :*
Don't ask 27 Apr, 2023 @ 4:23pm 
That is also the bug the other guy mentioned before btw
Cincorax  [developer] 28 Apr, 2023 @ 2:00am 
Vielen Dank für deine Hilfe! Ich konnte den Fehler finden und beheben! Update kommt im Laufe des Tages.

Ich hab's mir nochmal angeschaut und herausgefunden warum ich den Fehler nie hatte. Ich hab in der "init.lua" vergessen uturret.lua per AddCSLuaFile() an den Server zu schicken. Das hat dazu geführt, das der Server die Datei nicht finden konnte und hat deshalb eine Fehlermeldung ausgespuckt. Ich habe bisher nur im Singleplayer getestet. Dort wird der Befehl nicht benötigt, da es keine Serverkommunikation gibt und demnach auch kein Fehler. Als ich dann ein Multiplayer-Server gehostet habe ist auch bei mir der Fehler aufgetreten. Das war tatsächlich ein easy fix und wäre nie enstanden, wenn ich nicht blind gewesen wäre oder beim programmieren aufgepasst hätte. Jetzt bin ich schlauer für die Zukunft.

Der Code in Zeile 307 allerdings ist eine Referenz auf die Methode InitUnderTurret(), welche sich in uturret.lua befindet und referiert nicht die lua-datei selbst. Das ich die lua und die Methoden ähnlich benannt habe ist eher Zufall. Allerdings hast du mich damit zur Erkenntnis gebracht, dass wahrscheinlich die uturret.lua entweder falsch oder gar nicht geladen wird und dadurch den Fehler auslöst. Also Danke/Respekt an dich dafür.

Anderer Menschen Code zu durchsuchen ist der erste Schritt selber welchen zu schreiben. Ich für meinen Teil habe programmieren hauptsächlich durch abschreiben und ausprobieren gelernt. Ich hoffe also sehr, dass ich eines Tages ein cooles Addon von dir sehe!

Was mich noch verwirrt ist wie du es gefixt hast. Eigentlich sollte das ganze nicht funktionierten, wenn der Name von InitUnderTurret zu irgendwas anderem geändert wird. Es sollte ein Fehler ausspucken und mehr nicht. Bei dir funktioniert es aber scheinbar trotzdem. Wie hast du das geschafft?
Last edited by Cincorax; 28 Apr, 2023 @ 2:37am
Don't ask 28 Apr, 2023 @ 3:58am 
Ganz ehrlich, frag mich nicht xd
Ich bin diejenige, die dafür zuständig ist auf dem Server Fahrzeug und Waffenwerte anzuwenden also nicht wirklich dev ^^
Kann auch sein, dass ich es falsch in Erinnerung habe, wie ich das gefixt habe. I guess mehr lucky als Verstand ^-^
Aber freut mich dir geholfen zu haben!
Denizus 13 Jun, 2024 @ 12:43pm 
We tried to use this addon in a server. But it had crashed some of our player's games. Can it be fixed?
Cincorax  [developer] 13 Jun, 2024 @ 2:10pm 
I am sure it can, but you will have to be a bit more specific about it. I need a error code or instructions to reproduce it in order for me to understand what is happening and why.
< >
Showing 1-12 of 12 comments
Per page: 1530 50