Garry's Mod

Garry's Mod

gTASM - gTerminal programming language
 This topic has been pinned, so it's probably important
Chupacabr  [developer] 1 Dec, 2021 @ 9:31am
HOW TO USE ADDON
Here will be a description of all the features of the addon

Redactor
To write scripts, you will need computer with personaltsm os.
To open the editor, enter the command:
:f dr name
A graphic editor will open for you and you can already start writing code. Let's start with a simple:
csd 1 print 'hello noob'
Press a button, saving this file.
Execute script
Now, to run the code, enter the command:
:tasm name
Your code will start, or it will not start because of an error in the code. If there is an error, you will see a red inscription on the screen.
If your code is looped, then you can stop it with the command
:tasm stop
Saving file
To save the file, we will need a disk.
It can be spawned from the entity list menu. We bring the disk closer to the computer and enter the command:
:disk id - insert disk :disk dl - list of files :disk dd - download file from disk :disk ad - upload a file :disk ed - eject disk
Upload a file and eject disk - disk with your file. Save your disk with duplicate.
Using Wire commands
The addon is equipped with a small functionality with Wire. It can receive and send information via I/O devices. On personaltsm OS, it is already equipped with device capture command :claim.
Command for using wire in gTASM:
WGI mem,"A"/"B" - get value from device WSO mem/num/string,"A"/"B" - set value for device
Wire-cord
The cord is needed to connect two computers and transfer information between each other. Special computers are needed to connect the cords, they will be marked as (CORD).
We bring the cords to the backs of the computers and they will connect themselves. If you need to disable them, just push E on them.
there is a command in the system to check the connection of the wire. :cord :cord set value -send to another comp commands in gTASM: CORDINP mem - cord => mem CORDOUT mem - mem => cord
Last edited by Chupacabr; 7 Jan, 2022 @ 4:59am
< >
Showing 1-2 of 2 comments
RomaSysRq 27 Mar, 2023 @ 4:38am 
This is very outdated.
7H3_HuN73R-03 5 Apr, 2024 @ 10:25am 
indeed
< >
Showing 1-2 of 2 comments
Per page: 1530 50