Author Topic: New feature!  (Read 49076 times)

0 Members and 1 Guest are viewing this topic.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
New feature!
« on: June 10, 2010, 11:39:46 pm »
Automatic (open) file name completion!

http://laserboy.org/code/LaserBoy_2010_06_10.zip

Plus, more undocumented bugs!  :P %) ;) ^-^

Be on the lookout for a newer, new release soon!

Please test! :D

James.  :)
« Last Edit: June 11, 2010, 03:27:15 am by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #1 on: June 12, 2010, 12:23:08 am »
Newer new version!

This one tells you when you about to write over a file name that already exists and gives you the option to not do that!

http://laserboy.org/code/LaserBoy_2010_06_11.zip

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline no-esc

  • Full Member
  • ***
  • Posts: 146
  • Milliwatts: 5
  • Gender: Male
    • View Profile
Re: New feature!
« Reply #2 on: June 12, 2010, 07:30:49 am »
I like the auto complete feature however... If I have 10 files starting with F  it only selects one.. I cannot type a second letter ... to narrow down the field... I would like to be able to see all F's so to speak and continue entering the file name...

Thanks

LEn
"Acid isnt making a comeback....its never left......." me
"this cutting edge DJ from The mother ship will get you telling other people about him with his thrilling style of deep Funky techno disco house on the acid tip!!" taken from the MOTHER SHIP Daily
-------------------------------------------

Offline no-esc

  • Full Member
  • ***
  • Posts: 146
  • Milliwatts: 5
  • Gender: Male
    • View Profile
Re: New feature!
« Reply #3 on: June 12, 2010, 07:42:17 am »
Also I just crashed it.. I was trying to enhance dots.. held down the p key.. and it crashed..
"Acid isnt making a comeback....its never left......." me
"this cutting edge DJ from The mother ship will get you telling other people about him with his thrilling style of deep Funky techno disco house on the acid tip!!" taken from the MOTHER SHIP Daily
-------------------------------------------

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #4 on: June 12, 2010, 03:16:25 pm »
I don't get it. I have gazillions of files in my ild folder and it works pretty good.

There are some weird things it does, but the idea is that it narrows down the choices as you type (and widens for backspace). It should ignore key input that doesn't lead anywhere. When you type enough to get to one choice, it fills in the whole name and turns yellow. Then all you have to do is hit [Enter] to accept it. You can still backspace and screw it up, that's when it starts taking erroneous letters and stuff.

It's not a perfect model of how to do it in code, because I didn't use a tree structure for the characters in the file name lists. I used some ready made functions that came with Boost; like starts_with(string, prefix) and iends_with(string, suffix).

DUH! I just now figured out how to fix something!  :o

It doesn't fill in the characters that are all common to the remaining choices.

One thing that is a bit strange is when you have files like this:

example_01.ild
example_01a.ild

The only way to disambiguate the first parts of the name are to type the DOT!

Oh well. This is 1981 and we only have 1024 location of static RAM to work with. I do what I can.

As far as crashing goes, that must be your computer. LaserBoy NEVER crashes!

James.  :)
« Last Edit: June 12, 2010, 03:48:49 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: New feature!
« Reply #5 on: June 13, 2010, 09:59:19 pm »
Quote
Oh well. This is 1981 and we only have 1024 location of static RAM to work with. I do what I can.


  Well said. ;)
 
 Remember the good old DOS Editor? You could effectively use it with or without a mouse. How about
coding the up-down arrows to scroll through the directory list and mark the filename that has focus
with a unique color, then hit Enter to open it. Let me guess: the scroll thing would cost thousands
of lines of code...
 
 Auto complete is a nice improvement :) , but if you have many files in a directory, LB cannot show all of
them at once, so I still have to open a real file browser to see what files are available.
« Last Edit: June 13, 2010, 10:05:51 pm by meandean »
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #6 on: June 13, 2010, 10:51:09 pm »
OK.

Actually, I've just gone over some things and removed the vector art rendering where it is not logically needed on the screen. I could write out the file names in multiple columns across the screen..... or something....

I have written a no-mouse windows widget set for the ANSI Color Terminal! That was my first job as a professional. When I worked at VHT, I wrote the only part of the application that anyone could see: the terminal application that controlled the whole thing!

It is a mess of code, but it's not that insane.

I'm working on LB right now. I have changed a lot of stuff about wave output, looking for those little bugs!

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: New feature!
« Reply #7 on: June 13, 2010, 11:44:48 pm »
 Careful with that auto complete thing- it is case sensitive (a concept that is foreign to us WIntel folks)! :o
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #8 on: June 14, 2010, 12:50:50 am »
Yea, I know about that. There is a non case sensitive version of starts_with and ends_with. I need to write the macro code that sets that crap at compile time.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #9 on: June 14, 2010, 02:13:33 am »
Quote
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Well............

That's a new one for the books.  :o :P %) ??? :-\ :-[ :( >:( 8)

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #10 on: June 14, 2010, 06:04:54 pm »
Woooooooooo Hooooooooooooo !!!!! ;D ;D ;D ;D ;D ;D ;D ;D

I think I'm finally starting to get this whole laser code thing!

http://laserboy.org/code/LaserBoy_2010_06_14.zip

I believe I have pretty much perfected my method of accounting for every freakin' sample in the entire wave.

This version also knows that a Windows machine is not case sensitive when it comes to file names.

Enjoy!

James.  :)

PS. If you uploaded this before you read this PS, get it again!

I decided a good way to help prevent keyboard flubs is to not accept [Any] key to go on from a call to wait_4_key(). So now, when LB gives you some feedback, the only way past it is to press the [Esc] key!


« Last Edit: June 14, 2010, 06:51:15 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: New feature!
« Reply #11 on: June 14, 2010, 09:29:47 pm »
 Much better! :)
 
 Just one thing- for wave output you might want to set signal inversion as the factory default, (the LB amp is an inverter) so that it will work in most cases RIGHT out of the chute (Apply Color Rescales should probably be off).
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #12 on: June 14, 2010, 09:43:18 pm »
I'm glad you like it!

I like it a lot better too! ;D

If there are no rescale names set (or if the files don't exists) almost no time is spent getting over it.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: New feature!
« Reply #13 on: June 14, 2010, 10:04:19 pm »
  Spoke too soon... If I render in.ild with unoptimized output of each frame once selected, it still optimizes it. :o
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: New feature!
« Reply #14 on: June 14, 2010, 11:35:48 pm »
Hmmmmmmmmmmmm.

I'll figure it out.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal