Garry's Mod

Garry's Mod

gTASM - gTerminal programming language
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Chupacabr  [udvikler] 8. jan. 2022 kl. 3:54
Problems
Here you can write your problem that you encountered while working with gTASM
< >
Viser 1-15 af 41 kommentarer
BuoYancY_dabl 10. jan. 2022 kl. 1:45 
When too much digits after point was a problem? Trying cmp what outputet compare to 1
OUTPUT = 0.16666666666667
[93]ERROR: LM:there are a lot of digits after the decimal point!(>10) - stop script
BuoYancY_dabl 10. jan. 2022 kl. 1:51 
And i dont know why and how, but somehow:
db arr
mov arr[1], 6 - 1 + 1
print arr[1]

OUTPUT is somehow 4??
But, if i do this
mov arr[1], 6 - 1
mov arr[1], arr[1] + 1

OUTPUT will be 6
UPD: i think i found possible problem here. Its maybe + operator calculates first before - . But they should equal no matter how to put them.
Sidst redigeret af BuoYancY_dabl; 10. jan. 2022 kl. 2:08
BuoYancY_dabl 10. jan. 2022 kl. 1:54 
And last error. Seems code editor aplies to use of hot keys (ctrl + q = closes editor) saving hotkey (ctrl + s should equal save but its not) throwing lua error of gmod. Here is a log:

[gTASM - gTerminal programming language] lua/gterminal/cl_luapad_editor.lua:810: attempt to call field 'SaveScript' (a nil value)
1. _OnKeyCodeTyped - lua/gterminal/cl_luapad_editor.lua:810
2. unknown - lua/gterminal/cl_luapad_editor.lua:48

Still i dont think the mod is whacky, its too cool use it anyways but all those problems sometimes rage me out cuz you dont even know what is the problem: in me or in programing language.
Sidst redigeret af BuoYancY_dabl; 10. jan. 2022 kl. 2:07
Chupacabr  [udvikler] 10. jan. 2022 kl. 3:14 
Oprindeligt skrevet af BuoYancY_dabl:
When too much digits after point was a problem? Trying cmp what outputet compare to 1
OUTPUT = 0.16666666666667
[93]ERROR: LM:there are a lot of digits after the decimal point!(>10) - stop script
I've put a fuse on about this for now, I'd rather just trim such numbers.
Chupacabr  [udvikler] 10. jan. 2022 kl. 3:15 
Oprindeligt skrevet af BuoYancY_dabl:
And i dont know why and how, but somehow:
db arr
mov arr[1], 6 - 1 + 1
print arr[1]

OUTPUT is somehow 4??
But, if i do this
mov arr[1], 6 - 1
mov arr[1], arr[1] + 1

OUTPUT will be 6
UPD: i think i found possible problem here. Its maybe + operator calculates first before - . But they should equal no matter how to put them.
sorry, dumb math module
Chupacabr  [udvikler] 10. jan. 2022 kl. 3:16 
Oprindeligt skrevet af BuoYancY_dabl:
And last error. Seems code editor aplies to use of hot keys (ctrl + q = closes editor) saving hotkey (ctrl + s should equal save but its not) throwing lua error of gmod. Here is a log:

[gTASM - gTerminal programming language] lua/gterminal/cl_luapad_editor.lua:810: attempt to call field 'SaveScript' (a nil value)
1. _OnKeyCodeTyped - lua/gterminal/cl_luapad_editor.lua:810
2. unknown - lua/gterminal/cl_luapad_editor.lua:48

Still i dont think the mod is whacky, its too cool use it anyways but all those problems sometimes rage me out cuz you dont even know what is the problem: in me or in programing language.
next update
BuoYancY_dabl 10. jan. 2022 kl. 3:54 
I dont test it a bit more, but
fill "#", 2, 1 throws an lua error due to "#" character. Is it same for every special characters?
Chupacabr  [udvikler] 10. jan. 2022 kl. 4:08 
Oprindeligt skrevet af BuoYancY_dabl:
I dont test it a bit more, but
fill "#", 2, 1 throws an lua error due to "#" character. Is it same for every special characters?
# - symbol for comments I'll make an escape character for it
Sidst redigeret af Chupacabr; 10. jan. 2022 kl. 4:16
BuoYancY_dabl 10. jan. 2022 kl. 11:13 
db temp,1,2
db arr,3,4
mov arr[temp[1]], 5

throws an LM error. Problem in verifying only temp table with no argument inside arr table.
Chupacabr  [udvikler] 10. jan. 2022 kl. 11:15 
Oprindeligt skrevet af BuoYancY_dabl:
db temp,1,2
db arr,3,4
mov arr[temp[1]], 5

throws an LM error. Problem in verifying only temp table with no argument inside arr table.
for such situations, use

mov arr[temp;1]5
Sidst redigeret af Chupacabr; 10. jan. 2022 kl. 11:16
leopoldslikk795 22. jan. 2022 kl. 10:21 
how to insert a disk in gterminal?
BuoYancY_dabl 22. jan. 2022 kl. 12:15 
Oprindeligt skrevet af leopoldslikk795:
how to insert a disk in gterminal?
Put disk near gTerminal and type command :disk id.
BuoYancY_dabl 1. feb. 2022 kl. 7:46 
В описании пользования командой dbrem сказано, что она вставляет значение вместо того, чтобы убирать его, а так же показательные аргументы не правильны
Rockit208 7. feb. 2022 kl. 15:33 
Using the command "setpass" will not function normally, the terminal will think you are using the command "set" for the wire i/o device instead.
BuoYancY_dabl 10. feb. 2022 kl. 3:54 
Oprindeligt skrevet af Rocco:
Using the command "setpass" will not function normally, the terminal will think you are using the command "set" for the wire i/o device instead.
Why not? As we know pl is sensitive to register, it can define db and dbrem.
< >
Viser 1-15 af 41 kommentarer
Per side: 1530 50