Garry's Mod

Garry's Mod

gTASM - gTerminal programming language
 Tämä aihe on kiinnitetty, joten se on todennäköisesti tärkeä
Chupacabr  [kehittäjä] 8.1.2022 klo 3.54
Problems
Here you can write your problem that you encountered while working with gTASM
< >
Näytetään 1-15 / 41 kommentista
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
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.
Viimeisin muokkaaja on BuoYancY_dabl; 10.1.2022 klo 2.08
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.
Viimeisin muokkaaja on BuoYancY_dabl; 10.1.2022 klo 2.07
Chupacabr  [kehittäjä] 10.1.2022 klo 3.14 
BuoYancY_dabl lähetti viestin:
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  [kehittäjä] 10.1.2022 klo 3.15 
BuoYancY_dabl lähetti viestin:
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  [kehittäjä] 10.1.2022 klo 3.16 
BuoYancY_dabl lähetti viestin:
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
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  [kehittäjä] 10.1.2022 klo 4.08 
BuoYancY_dabl lähetti viestin:
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
Viimeisin muokkaaja on Chupacabr; 10.1.2022 klo 4.16
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  [kehittäjä] 10.1.2022 klo 11.15 
BuoYancY_dabl lähetti viestin:
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
Viimeisin muokkaaja on Chupacabr; 10.1.2022 klo 11.16
how to insert a disk in gterminal?
leopoldslikk795 lähetti viestin:
how to insert a disk in gterminal?
Put disk near gTerminal and type command :disk id.
В описании пользования командой dbrem сказано, что она вставляет значение вместо того, чтобы убирать его, а так же показательные аргументы не правильны
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.
Rocco lähetti viestin:
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.
< >
Näytetään 1-15 / 41 kommentista
Sivua kohden: 1530 50