Closed abiosbug closed 3 years ago
Hi,
I adjusted your script as follows, using the O
character as prefix and renaming autoscan
to scan
. This also allows for using the default :Reset
field of the material point scanner
j="\nMat|Stacks" o=j a=" Ore" b="\n" d="♥" e="♡" h="ium" TO=20
:scan-=s s=e :scan=s+:scan f=1728000 :Reset=1 :OL=0 goto2+:OL
:scan-=s s=d :scan=s+:scan g="ite" i=0 :OI=0 :OL=1 :OR=0
:OS=1 tv=0 o=j c=" Crystal" i++ if i>TO then :OL=0 goto9 end goto5-:OS
:OL=0 i/=:OR :OI=0 v=:OV/f*1000 tv+=v o+=b+"① "+(:OM-a-c-g-h)+"|"+v
i/=:OR :OI=1 v=:OV/f*1000 tv+=v o+=b+"② "+(:OM-a-c-g-h)+"|"+v
i/=:OR v=tv at="\nCLass:"+(4+v>10+v>11+v>18+v>26+v>124+v>270)
i/=:OR :scan=s+o+b+"Total Stacks:"+tv+at :OS=0 :Reset=1 goto2+:OL
w="\n !WARNING!" i/=:OR :scan=s+w+"\n\n «TIMEOUT»\n"+w goto2+:OL
:scan=s+w+"\n\n Nothing\n Found\n"+w goto2+:OL
// https://github.com/DerPfandadler/Pfandadler-YOLOL
Device fields:
name | default | device | info |
---|---|---|---|
:scan | "" | textpanel | Display results |
:OL | 0 | scanner | Active |
:OI | 0 | scanner | Index |
:OR | 0 | scanner | ScanResults |
:OM | "" | scanner | Material |
:OV | 0 | scanner | Volume |
:OS | 0 | scanner | Scan |
I'll fork and create a PR later if you don't mind ;-)
Hi,
first off, amazing work on the script, looks really good! I'm just from spending days integrating 3 different navigation systems together and most issues seem to come from various scripts using the same single char global variable names. There's only 26 available and as soon as you try to add your script in complicated yolol setups, you'll be up for a nice debugging session, at least that's how it went for me.
So I was wondering, are you using some kind of pseudo language that converts into yolol via yodk, like yasm? Do you think it would be possible to rewrite the code so it uses 2-char variables, preferably with the same prefix so people have less trouble installing your script?
I've checked the current version and you're already pretty close to max line length, it wont be as easy as adding some characters and be done with it, hence my previous question about a pseudo language.
I've also send you a Discord friend request as I couldn't figure out how to reach you..