Scrap Mechanic

Scrap Mechanic

Programmable Processor
wingcomstriker405  [developer] 20 Jan, 2020 @ 5:27am
Suggestion
Here you can post your ideas on how to make the mod better :)
General Suggestions / Ideas:
- program arguments
Last edited by wingcomstriker405; 17 Jan, 2021 @ 6:19am
< >
Showing 1-15 of 43 comments
DUCKFACE 20 Jan, 2020 @ 5:41am 
sound? like just a beeper like old dos machines came with, so its simple?
wingcomstriker405  [developer] 20 Jan, 2020 @ 7:26am 
Originally posted by DUCKNUCKEM:
sound? like just a beeper like old dos machines came with, so its simple?
i will see if i can find a fitting sound :) (now on my todo list)
DUCKFACE 20 Jan, 2020 @ 9:06am 
okay! also im very sorry for giving you so much work XD
wingcomstriker405  [developer] 20 Jan, 2020 @ 9:44am 
It's really nice to get feedback and inspiration from other people so keep it up :steamhappy:
DUCKFACE 20 Jan, 2020 @ 10:02am 
okay ill think of more stuff to make you do XD
Ryan T 20 Jan, 2020 @ 5:32pm 
can you add sometihg like floppy disks where you can save programs on to it and load it on another computer?
wingcomstriker405  [developer] 20 Jan, 2020 @ 9:32pm 
Originally posted by mteeninga:
can you add sometihg like floppy disks where you can save programs on to it and load it on another computer?
Yesterday I have planned a system but I have to see if it works
Ryan T 21 Jan, 2020 @ 12:32pm 
i have more sugestions.1 can you add the ablity to store text.2 can you make a print command to print stuff to the console and 3 can you make programs able to receve arguments. for example for the first sugestion to store text you write:

store text $1 "hello"

to store numbers you would write:

store $1 1
or
store $1 ACC
to store from the accumulator

to print stuff to console you write :

print "hello"
to print text,

print 1
to print a number,

print $1
to print a memory address or

print ACC
to print the accumulator

for the arguments if i write in the console "test Hello" and in the test program there was:

store text $1 ARG

then $1 would have Hello in it

you could also do
print ARG
to print the arguments.

sorry for my long comment but i hope you like my suggestions

-Ryan





Last edited by Ryan T; 21 Jan, 2020 @ 12:51pm
wingcomstriker405  [developer] 21 Jan, 2020 @ 12:58pm 
very nice ideas! i have tested a prototype for a high lvl language where you were able to give arguments to the program. how would you suggest to call a program with arguments (in this language)? btw im thinking about adding more registeres and changing commands so that you can define more stuff so its easier to program stuff
Ryan T 21 Jan, 2020 @ 1:08pm 
if by call you mean to run it the you type the name then space then each argument followed by a space

example

Calculator 10 X 5
>50

Calculator 10 X 5
[program ] [1][2][3]

in the program

store text $1 ARG
would get 10

store text $1 ARG[0]
would get "10"

store text $1 ARG[1]
would get "X"

store text $1 ARG[0]
would get "5"

also store $1 ARG[0]
would get 10 as a number

store $1 ARG[1]
since X is not a number it would get either NaN or 0
Last edited by Ryan T; 21 Jan, 2020 @ 1:09pm
wingcomstriker405  [developer] 21 Jan, 2020 @ 1:13pm 
ok ill try to design a good way to implement it :) (most likely will tend to 0 when you want to convert a string that is not a number to a number)
Ryan T 21 Jan, 2020 @ 1:22pm 
also when is the next update to the mod?
wingcomstriker405  [developer] 21 Jan, 2020 @ 1:28pm 
today i released a quick fix and than ill work on the next update wich will most likely include io blocks and probably storage blocks. i hope that i can finish the update thursday or friday :)
Ryan T 21 Jan, 2020 @ 3:28pm 
another sugestion here. can you add if statmens and for loops?
example:

store $1 0

if $1 == 0
store $1 1
print $1
end

print "end"

would print
>1
>end


to use for loops:

for $1 = 1; $1 <= 5;add 1
print $1
end

print "end"

would print

>1
>2
>3
>4
>5
>end

wingcomstriker405  [developer] 21 Jan, 2020 @ 9:42pm 
I think that it fits more with the higher level language :)
< >
Showing 1-15 of 43 comments
Per page: 1530 50