Author Topic: CopyProg  (Read 28741 times)

0 Members and 2 Guests are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
CopyProg
« on: January 29, 2011, 02:53:08 pm »
So, again, I have a neat/random program that I want to add to BatLib, now. It was an idea from TIBD for me to make an opcode to copy programs to a string and it was a whole separate idea for me to copy a string to a program. However, this time, the request was to make it copy programs out of archive! So, I got my brain together, planned it out, and now I have this wicked and powerful program... in 123 bytes.

So here are some cool points to keep in mind:
-This is not limited to copying programs
-It can copy from archive or RAM
-It is not limited to copying to programs

The uses of this?  :
-Copy a picture to an appvar or program to make custom pictures
-Copy programs from archive for temp use in games
-Storing things to strings to play with

I hope this proves useful to people! Oh, and as always, opcode included :P

EDIT: Newer version: http://ourl.ca/8987/316378

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: CopyProg
« Reply #1 on: January 29, 2011, 02:54:48 pm »
Wow omg this sounds like XCopy on steroids O.O

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: CopyProg
« Reply #2 on: January 29, 2011, 02:58:37 pm »
in 123 bytes, too :D
Small enough for an opcode, big enough to be cool!
* Xeda112358 goes to see what XCopy is

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: CopyProg
« Reply #3 on: January 29, 2011, 03:00:54 pm »
Its a utility to copy programs from the archive into Ram as a temp program, and to delete the temp program.  But yours has like 100% more features O.O

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: CopyProg
« Reply #4 on: January 29, 2011, 03:01:25 pm »
amazing!  BatLib's gonna be amazing with all this stuff in it!  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: CopyProg
« Reply #5 on: January 29, 2011, 03:02:21 pm »
Yeah, I just checked it out! Wow, I feel really good about this one! I am almost positive of what my next command for BatLib will be!

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: CopyProg
« Reply #6 on: January 29, 2011, 03:03:47 pm »
do you want this in BatLib subforum btw?  unless you're planning on releasing it as a independant program?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: CopyProg
« Reply #7 on: January 29, 2011, 03:05:16 pm »
Oh, I plan to release it as an independent program. I just didn't expect it to work out so well. Should I make a downloads thing?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: CopyProg
« Reply #8 on: January 29, 2011, 05:33:13 pm »
Xeda, that looks pretty awezume!

http://pastebin.com/7JzQngLc

I used Assemblex for this. Do you recognize it?

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: CopyProg
« Reply #9 on: January 29, 2011, 05:34:55 pm »
That's awesome!  However, with that in mind, I think that it's a good thing that you changed the name from "SpriteLib" to something else :angel:

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: CopyProg
« Reply #10 on: January 29, 2011, 06:11:53 pm »
SpriteLib was named BatLib a month ago...?

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: CopyProg
« Reply #11 on: January 29, 2011, 07:06:33 pm »
Oh, I know that, it's just that this is another example of something that's not "Sprites" :D

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: CopyProg
« Reply #12 on: January 29, 2011, 07:17:41 pm »
Xeda, that looks pretty awezume!

http://pastebin.com/7JzQngLc

I used Assemblex for this. Do you recognize it?

Hum.


I consider BatLib way way cooler.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: CopyProg
« Reply #13 on: January 29, 2011, 07:23:58 pm »
:P Yeah... Originally it was called FontEdit, then I got to command 13 which was for tilemaps and I decided to rename it SpriteLib. Then it got to about command 42 before I changed it to BatLib. It is still centered around graphics and math, but the math part is only starting to make its presence known.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: CopyProg
« Reply #14 on: January 31, 2011, 02:11:06 pm »
LoliB or LoliLib would be awesome, too. It contains the words Loli and lib. :P

j/k I think right now it's fine. Plus I doubt with loli in the name it would meet ticalc.org guidelines about adult content. :P