Author Topic: BASIC ReCode v2.00  (Read 54509 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BASIC ReCode v2.00
« Reply #75 on: April 17, 2011, 01:28:35 pm »
Ah, okay :D I will explain this one to others who haven't used the trick before... In ReCode, you can pass string arguments, but they are ended by a newline, not an end quote. So, if you want to use dim(52 in ReCode to display a sprite, instead of doing dim(52,"3C4281818181423C",8,0,0,0:
Code: [Select]
:dim(40      ;to start the ReCode block
:dim(52,3C4281818181423C
:8,0,0,0
:DispGraph
:Stop

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BASIC ReCode v2.00
« Reply #76 on: April 17, 2011, 01:29:30 pm »
I would call it half a trick and half a bug :P I'd rather have Recode Stings working properly :P

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BASIC ReCode v2.00
« Reply #77 on: April 17, 2011, 01:31:54 pm »
Well I included it that way because I wanted people to be able to use tokens like " and → for data :P If you were to use dim(53 or Disp, you might want to use tokens :P I did purposefully make it so that you need a newline to end it :)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BASIC ReCode v2.00
« Reply #78 on: April 17, 2011, 01:32:30 pm »
Well I included it that way because I wanted people to be able to use tokens like " and → for data :P If you were to use dim(53 or Disp, you might want to use tokens :P I did purposefully make it so that you need a newline to end it :)

Then it'll be left like this? Cool enough :) Maybe include that in the next readme.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BASIC ReCode v2.00
« Reply #79 on: April 17, 2011, 01:33:40 pm »
There is another method I included that is buggy, though :/

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: BASIC ReCode v2.00
« Reply #80 on: April 18, 2011, 05:46:14 pm »
Seeing as I let you use the Correlation idea for creating a backup of data when library compatability is needed, perhaps I can borrow this idea? :D :D

Basic ReCode gave me the idea to create "Correlation IF"--taking over program reading to speed up the process of moving Correlific Mode sprites from one X/Y coordinate to another one
« Last Edit: April 18, 2011, 05:46:37 pm by Hot_Dog »

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BASIC ReCode v2.00
« Reply #81 on: April 18, 2011, 08:20:28 pm »
Sure, that is fine with me :) I am sure there will be plenty of happy programmers if you do that :)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: BASIC ReCode v2.00
« Reply #82 on: April 18, 2011, 08:44:20 pm »
Sure, that is fine with me :) I am sure there will be plenty of happy programmers if you do that :)

True dat ;D

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BASIC ReCode v2.00
« Reply #83 on: April 19, 2011, 06:56:31 am »
Is this anything about mixing Libraries?

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BASIC ReCode v2.00
« Reply #84 on: April 19, 2011, 09:17:02 am »
No, Hot_Dog seems to want to have fun making his own programming language :) It isn't about mixing libraries :P

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BASIC ReCode v2.00
« Reply #85 on: April 19, 2011, 09:18:40 am »
No, Hot_Dog seems to want to have fun making his own programming language :) It isn't about mixing libraries :P

Thanks, I really didn't understand what he meant.

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: BASIC ReCode v2.00
« Reply #86 on: June 19, 2011, 12:01:42 pm »
Am I correct to assume that Grammer will replace recode in batlib?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BASIC ReCode v2.00
« Reply #87 on: June 19, 2011, 12:14:24 pm »
Am I correct to assume that Grammer will replace recode in batlib?

I'd vote in favour, indeed, Grammer as the new language.

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: BASIC ReCode v2.00
« Reply #88 on: June 19, 2011, 12:19:58 pm »
I agree, I would definitely like to see grammer with Batlib

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BASIC ReCode v2.00
« Reply #89 on: July 18, 2011, 02:34:31 pm »
I was wondering what others would think about that idea... So once I get BatLib all converted I can just insert Grammer in there :) Grammer is simply a whole lot safer (as safe as BASIC) and has more advanced features. I'll see what I can do in  the next few months :D