Author Topic: Out of interest...  (Read 25109 times)

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Out of interest...
« on: June 23, 2005, 06:29:22 AM »
Is there a BNF or EBNF of the DNA language anywhere?
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Out of interest...
« Reply #1 on: June 23, 2005, 12:02:35 PM »
We barely have a help menu  :lol:

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Out of interest...
« Reply #2 on: June 23, 2005, 12:21:09 PM »
Aww come on!  :(

I put hours and hours into that bloody help menu then you went and added a whole bunch of new commands.  <_<
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Out of interest...
« Reply #3 on: June 23, 2005, 12:26:58 PM »
And it's much appreciated!

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Out of interest...
« Reply #4 on: June 23, 2005, 12:28:53 PM »
I suppose you all want me to put the new stuff in there as well now?

Go on admit it!

I know you want to.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Out of interest...
« Reply #5 on: June 23, 2005, 12:30:29 PM »
:blueblob:

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Out of interest...
« Reply #6 on: June 23, 2005, 12:48:29 PM »
Quote
:blueblob:

Right!

and  :boing:  :sad2: too
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Out of interest...
« Reply #7 on: June 23, 2005, 01:21:39 PM »
Lmao I am guessing the answer is no then.
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Out of interest...
« Reply #8 on: June 23, 2005, 01:44:03 PM »
Good guess!  :D

Have you checked out our WIKI

There are some pretty good help articles in there and Num is gradually porting everything onto the official DarwinBots website.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Out of interest...
« Reply #9 on: June 23, 2005, 05:43:05 PM »
Could we just load an external txt file into the help file? I'm guessing here but since we can load dna and view it, we should be able to do the same for the help.

Endy B)

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Out of interest...
« Reply #10 on: June 23, 2005, 05:45:28 PM »
When I am done with exams etc. I will have a stab at writing a list of all the DNA commands and variables and examples, post it up, let people look it over and comment then redo it. Lather, rinse, repeat and a rather good help file should be made.
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Out of interest...
« Reply #11 on: June 23, 2005, 05:56:00 PM »
Go ahead and do it via the wiki at Darwinbots.com.  That should become the Main help compendium.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Out of interest...
« Reply #12 on: June 24, 2005, 08:42:12 AM »
Quote
Could we just load an external txt file into the help file? I'm guessing here but since we can load dna and view it, we should be able to do the same for the help.

It could be set up that way but you would have to be incredibly careful to get all the formatting just so.
When you display into a scrolling textbox like the one we use for the help file, you have to use all sorts of weird and wonderful formatting controls to keep the line spacings and lengths right. (well not that many format controls really)

Here is a small chunk of the code that generates the help file.

Code: [Select]
   Help.text = ""
    Help.text = Help.text + vbTab + vbTab + vbTab + vbTab + "DarwinBots V2.32beta DNA" + vbCrLf
    Help.text = Help.text + "" + vbCrLf
    Help.text = Help.text + vbTab + "This is a very brief listing of all the DNA commands and how they work" + vbCrLf
    Help.text = Help.text + vbTab + "Just to keep it interesting it is told from a robot's eye view. HeHe!" + vbCrLf
    Help.text = Help.text + "" + vbCrLf
    Help.text = Help.text + "First here is a reminder of the mathematical operators" + vbCrLf
    Help.text = Help.text + "These can only be used in the Action step of the DNA. (after START)" + vbCrLf
    Help.text = Help.text + "" + vbCrLf
    Help.text = Help.text + "add" + vbTab + "-----" + vbTab + "Adds the top two values on the stack and leaves the result on the stack" + vbCrLf
    Help.text = Help.text + vbTab + vbTab + "The original two numbers are removed." + vbCrLf
    Help.text = Help.text + vbTab + "Syntax." + vbTab + "(15 25 add) will add 15 to 25 and leave 40 on the stack" + vbCrLf
    Help.text = Help.text + "" + vbCrLf
    
    Help.text = Help.text + "sub" + vbTab + "-----" + vbTab + "Subtracts the top value on the stack from the second value on the stack." + vbCrLf
    Help.text = Help.text + vbTab + vbTab + "The result is left on the stack and the original two numbers are removed." + vbCrLf
    Help.text = Help.text + vbTab + "Syntax." + vbTab + "(15 25 sub) will subtract 25 from 15 and leave -10 on the stack" + vbCrLf
    Help.text = Help.text + "" + vbCrLf

Please remember that this file is about 300 lines long and growing all the time.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Out of interest...
« Reply #13 on: June 24, 2005, 08:46:06 AM »
Would it not be easier to make an HTML help file and then use a browser component and navigate to the help file? It would be easier to do the formatting with tables etc. You could also have the possibility of linking to an online help file which could be changed frequently. But if they didn't want to have to connect to the internet the local file could be used. Or something like that anyway.
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Out of interest...
« Reply #14 on: June 24, 2005, 08:58:50 AM »
Quite possibly so. I just haven't had time to play with it.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D