Jump to content

Run Time scripts (show off)


Poll  

4 members have voted

  1. 1. Would you use something like this?

    • Yes. (Current from)
      0
    • Yes. (Needs a GUI)
      0
    • Maybe. Just need to test it.
      0
    • No.
      4


Recommended Posts

Posted (edited)

Thread moved to Offtopic with Silent Updates.

 

OG post

Interesting title

Ahoy all, 

Im here to show off my most resent project. Latly, Ive been programing alot of bots and find it to be the biggest pain in the ass is remake a jar after update the programing or to testing  one part in my bots.  So to slove this problem that is such a minor inconvenience and legit takes at most 5 minutes out of my life per script.  I went a head and invested my lunch, test and break times to make my own run time programing language bases off scheme.  So this was not a small under taking (15000 line and 30+ hours) but I think it 100% worth it. After I get It all methodes test because there are 100's of them.  I would like to slap a gui on it that looks like scratch and apply to put it in the SDN. Ill post updates here and if anyone has any suggestions ill take them.

Video

(Also this is a lot kewler than you think it is)

Quote

 

Example of working code.

Quote

(define makepart
  (lambda ()
    (cond
      ((bankopen?)(closebank))
      ((Animation?)(wait))
      ((makeall?)(makeall 7))
      ((not (use? 1785) )(interact 1785))
      (else (interact 567)))))
            
(define bankpart
  (lambda ()
    (if(not (bankopen?))
       (bankopen)
       (and (getitem? 1785 1)(getitem 567 "all") )

(define loop
  (lambda ()
    (if (not (invhas? 567 ))
        (makepart)
        (bankpart))))

 

 

I need suggestions on how to test shit loads of code with out test cases for everthing. 

 

Features

  • Implents 95% of Osbot api
  • Live updates
  • Funtions 
  • Local, globle and private variables
  • Can do any thing lazy-scheme can do.

Todo list

  • test about 700 more methods
  • Gui that looks like scratch
  • implement ansi common lisp 
  • Floats every thing is in longs and ints atm
  • filter, fold, letrec, and bang
  • Loops
  • Classes and Objects
  • Dictionaries
  • Switchs
  • Arrays 
  • Flat recursion
Edited by Nbacon
Posted (edited)

Looks cool man, but we already have ProjectPact with his scriptfactory script.

If you're gonna learn to make scripts for osbot, you might as well learn the proper way, learn java along the way and be able to put it on your resume. Not only that, the overheard for this kinda script ain't worth it for the majority of people who bot to not get banned (personal opinion ofc)

 

but cool idea otherwise

Edited by Protoprize
Posted
39 minutes ago, Nbacon said:

the biggest pain in the ass is remake a jar after update the programing or to testing  one part in my bots.

Set artifact build output directory to osbot\scripts folder, set artifact to build on project build, map ctrl+s to be a build project hotkey, boom 1 second rebuilds.

But either way, interesting stuff, good job.

  • Like 2
  • Heart 1
Posted
14 hours ago, Protoprize said:

Looks cool man, but we already have ProjectPact with his scriptfactory script.

If you're gonna learn to make scripts for osbot, you might as well learn the proper way, learn java along the way and be able to put it on your resume. Not only that, the overheard for this kinda script ain't worth it for the majority of people who bot to not get banned (personal opinion ofc)

 

but cool idea otherwise

Thanks. 

 Functional programming program hits harder then any oo language on a résumé.  (personal opinion ofc)

 

14 hours ago, Camaro said:

Set artifact build output directory to osbot\scripts folder, set artifact to build on project build, map ctrl+s to be a build project hotkey, boom 1 second rebuilds.

But either way, interesting stuff, good job.

Thanks. 

I don't think you understand how many times I rebuild scripts..... but amazing tip nevertheless.

  • Boge 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...