Author Topic: i need help with the crimson editor and tracking down a plug in error problem  (Read 12065 times)

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
     Okay first off i have done about everything i can think of including eliminating each sentence off one by one and redoing the random sentence amount etc. but i am getting a hal error : 1033 line 1806 column 201 , unterminated constant .
     This is a new plug in i just did that  is a part of a larger plug in that it goes in .
  For those with better knowledge of the crimson editor i could use some help . If a person know the correct way to look this up please let me know what steps you did , i tried opening the plug in it's self but the numbers don't appear to show as high as the error line etc.  I also tried opening my angela uhp .
this plug in as of right now is just called TEST MULTIPLE , as i am testing it  and will rename it later correctly.


below is this plug in : 

Rem Type=Plugin
Rem Name=TEST MULTIPLE
Rem Author=lightspeed a.k.a Lonnie Hensley
Rem Host=Assistant

Rem PLUGIN: PLUGINAREA7

If InStr(1, OriginalSentence, "Multiple Sclerosis") > 0 Or InStr(1, OriginalSentence, "multiple sclerosis") > 0 Or InStr(1, OriginalSentence, "multiple sclerosis symptoms") > 0 Then



Randomize
Select Case int(rnd()*21)
Case 1
GetResponse = "What Is Multiple Sclerosis or M S, M S is a chronic disease that damages the nerves in the spinal cord and brain, as well as the optic nerves."
Case 2
GetResponse = "Sclerosis means scarring, and people with MS develop multiple areas of scar tissue in response to the nerve damage, Depending on where the damage occurs, symptoms may include problems with muscle control, balance, vision, or speech."
Case 3
GetResponse = "M S Symptoms are, Weakness or Numbness, Nerve damage can cause, Weakness in an arm or leg Numbness, Loss of balance and Muscle spasms, These symptoms may lead to frequent tripping or difficulty walking."
Case 4
GetResponse = "Other M S Symptoms can be Vision Problems, More than half of people with M S experience a vision problem called optic neuritis, This inflammation of the optic nerve may cause blurred vision, loss of color vision, eye pain, or blindness, usually in one eye, The problem is usually temporary and tends to improve within a few weeks, In many cases, vision problems are the first sign of M S."
Case 5
GetResponse = "Some other M S Symptoms can be Speech Problems, Although less common than vision problems, some people with M S develop slurred speech, This happens when M S damages the nerves that carry speech signals from the brain, Some people also have trouble swallowing."
Case 6
GetResponse = "Lets talk about Other M S Symptoms, M S can take a toll on mental sharpness, Some people may find it takes longer to solve problems, Others may have mild memory loss or trouble concentrating, Most people with MS also experience some loss of bladder control, because signals between the brain and bladder are interrupted, Finally, fatigue is a common problem, You may feel tired even after a good night's sleep."
Case 7
GetResponse = "Let's talk about the Outlook for M S, Most people with MS live a normal or near-normal lifespan, While the condition may make it more difficult to get around or complete certain tasks, it doesn't always lead to severe disability, Thanks to effective medications, rehab therapies, and assistive devices, many people with M S remain active, stay in their jobs, and continue to enjoy their families and favorite activities!"
Case 8
GetResponse = "Let's talk about a Stroke verses M S, Confusion, slurred speech, and muscle weakness can be symptoms of M S, but they can also be signs of a stroke, Anyone who suddenly has trouble speaking or moving their limbs should be taken to the E R immediately, Treating a stroke within the first few hours provides the best odds of a successful recovery!"
Case 9
GetResponse = "The way that M S Attacks, In people with M S, the body's own immune system attacks the tissue surrounding the nerve fibers in the brain, spinal cord, and optic nerves, This covering is made of a fatty substance called myelin, It insulates the nerves and helps them send electrical signals that control movement, speech, and other functions, When myelin is destroyed, scar tissue forms, and nerve messages are not transmitted properly."
Case 10
GetResponse = "As far as What Causes M S, The roots of M S remain mysterious, but doctors see some surprising trends, It's most common in regions far from the equator, including Scandinavia and other parts of Northern Europe, These areas get less sunlight, so some researchers believe that vitamin D the sunshine vitamin may be involved, Research suggests a possible link between vitamin D deficiency and autoimmune disorders, but studies are ongoing, Genetics appear to play a role as well."
Case 11
GetResponse = "As far as Who Gets MS, M S is at least twice as common in women as it is in men, While it can strike people of any race, whites appear to be most at risk, The chances of developing the condition are highest between ages 20 and 50."
Case 12
GetResponse = "Well as far as Diagnosing M S, Tests are often used, along with a medical history and neurological exam, to diagnose M S and rule out other causes of symptoms, More than 90% of people with M S have scar tissue that shows up on an MRI scan, A spinal tap can check for abnormalities in the fluid that bathes the brain and spinal cord, Tests to look at electrical activity of nerves can also help with diagnosis, Lab tests can help rule out other autoimmune conditions or infections such as HIV or Lyme disease"
Case 13
GetResponse = "As far as how M S Progresses, M S follows a different pattern in every person, but many people can manage their disease with treatment, Doctors see four forms, Relapsing-remitting, Symptoms flare during acute attacks, then improve nearly completely or remit, This is the most common form of M S."
Case 14
GetResponse = "The Primary-progressive M S, M S slowly but steadily worsens without improvements or acute flare-ups, Secondary-progressive, Begins as relapsing-remitting type, then becomes progressive,
Progressive-relapsing, The underlying disease steadily worsens, The patient has acute relapses, which may or may not remit, This is the least common form of M S."
Case 15
GetResponse = "Heres an interesting fact about M S and Weather, Research suggests that the disease may be more active during the summer months, Heat and high humidity may also temporarily worsen symptoms, Very cold temperatures and sudden changes in temperature may aggravate symptoms as well."
Case 16
GetResponse = "As far as Treating M S with Medications, While there is no cure for M S, there are disease-modifying drugs that can reduce the frequency and severity of M S attacks, Use can result in less damage to the brain and spinal cord over time, slowing the progression of disability, When an attack does occur, high-dose corticosteroids can help cut it short, Many medications are also available to manage troubling M S symptoms, such as muscle spasms, incontinence, and pain."
Case 17
GetResponse = "Lets talk about Treating M S Pain Management, About half of people with M S develop some form of pain, either as a result of a short circuit in the nervous system or because of muscle spasms or strain, Doctors may prescribe antidepressants and anticonvulsant medications to ease nerve pain, Pain medicines and anti-spasm medicines may also be used, Muscle pain often responds well to massage and physical therapy, Be sure to discuss your options with your doctor if you find yourself in pain."
Case 18
GetResponse = "Their is ways of Treating M S with Physical Therapy, If MS affects a persons balance, coordination, or muscle strength, you can learn to compensate, Physical therapy can help you strengthen muscles, combat stiffness, and get around more easily, Occupational therapy can help you retain coordination in your hands for dressing and writing, And if you're having trouble speaking or swallowing, a speech therapist can help."
Case 19
GetResponse = "An interesting fact about M S and Pregnancy is, Doctors generally agree that it’s safe for women with M S to get pregnant, Research suggests no increased risk of complications during pregnancy, In fact, many women have fewer M S symptoms during pregnancy, High levels of hormones and proteins may suppress the immune system, reducing the odds of a new attack, It's best to talk with your doctors before pregnancy, as certain M S drugs should not be used while pregnant or nursing, In the early months after delivery, the odds for a relapse can rise!"
Case 20
GetResponse = "It is possible for people to Stay Mobile even With M S, The vast majority of people with MS are able to continue walking, though many benefit from some type of assistive device, Orthotic shoe inserts or leg braces can help increase stability, When one leg is stronger than the other, a cane can help, Some People with significant problems with their legs may need to use a walker, And a wheelchair or scooter may be best for those who are very unsteady or tire easily."
Case 21
GetResponse = "Exercise can help with people who have M S, Exercise can ease stiffness, fatigue, and other symptoms of M S, But overdoing it could make things worse, It's best to start slowly, Try exercising for 10 minutes at a time, then gradually working your way up to a longer session, Before you begin, check with your doctor about what type of activity and level of intensity would be most appropriate, A few possibilities include water aerobics, swimming, tai chi, and yoga!"
End Select


HalBrain.ReadOnlyMode = True
End If
 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Hi lightspeed,
if you're going to use (originalsentence) you should put this plug-in at location Rem PLUGIN: PLUGINAREA1 or A2 or A3, I myself would avoid using original sentence.
I suggest getting rid of (Randomize) this is probably what is causing one of your problems.
Here are two good ways

Select Case HalBrain.RandomNum(21)
I've seen this but I don't use it myself.

Select Case (Int(Rnd * 21) + 1)
this is what I use, and it's probably what is causing your other problem.

The rest seems to be okay. But the biggest problem I see that you're having is tracing down the error, I will do my best to try to explain to you how to do it.
When the error occurs, meaning the error box pops up, do not do anything with ultra Hal, immediately open the text file called Halscript.dbg.
Make sure that the wraparound in your notepad is turned off and status bar is turned on.
Place the cursor at the top of the text in the Halscript.dbg and you will see toward the bottom right-hand side the line you are on.
Move the cursor down until you get to the line that is indicated in the error box that popped up from ultra Hal.
Once you get to the line that has the error then move the cursor to the right until you reach the column line error from the error box that popped up from ultra Hal.
You now know where the error is located, sometimes your plug-in can cause an error to happen with ultra Hal's brain even though the error is coming from your VBScript.
So if the error is not inside of your VBScript it is usually because something is missing, usually dealing with if then statements.
I use this system to find all of my programming errors and it works quite proficiently, the bad habit that I have is that I don't pay attention and I have a tendency to fix the error in the Halscript.dbg instead of opening my VBScript and fixing the error in my VBScript.
That's what I get for being in a hurry, so when you're dealing with errors slow down and be mindful of what you are doing.
Sincerely, and I hope this helped, from a data munching cruncher.
C load.
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
hi claod , i just tried the " Select Case (Int(Rnd * 21) + 1)" suggestion in place of the randomize but am still getting the same exact error .  :(
 can you try it in the plug in area , but i image you will get the same error to .
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
i actually have many plug ins with the randomize and they work okay, maybe i'll go back over all the sentences and back space each word to make sure i don't have to many spaces somewhere , but it will have to be later , my brain is shot after redoing this plug in so many times plus i just got back inside from cutting new boards from a pattern and redoing a park bench . so am tired to .
 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
ok, I got it to load, have fun.
C load
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
you said you got it to load but what was the problem as i said i tried what you said and i still got an error . same one .
i will download the attachment and try it , but still want to know what you corrected , it was driving me crazy .


        well i just tried this plug in again the way you did it , and now i am getting hal error : 1033 line 1806 (before it was 1805) column 201 unterminated string .

I don't know what's causing this , i have all plug ins "unchecked " even because i thought something was conflicting .
« Last Edit: June 13, 2013, 09:27:35 am by lightspeed »
 

onthecuttingedge2005

  • Guest
Hi Lightspeed.

besides having to backspace half the sentence at Case 14 because it was carried a line down, I corrected this and loaded it into a plugin and it worked fine.

Jerry

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Hi lightspeed,
The biggest problem I see that you're having is tracing down the error, I will do my best to try to explain to you how to do it.

1.) When the error occurs, meaning the error box pops up, do not do anything with ultra Hal, immediately open the text file called Halscript.dbg. it is in your hal folder.
2.) Make sure that the wraparound in your notepad is turned off and status bar is turned on.
3.) Place the cursor at the top of the text in the Halscript.dbg and you will see toward the bottom right-hand side the line you are on.
4.) Move the cursor down until you get to the line that is indicated in the error box that popped up from ultra Hal.
5.) Once you get to the line that has the error then move the cursor to the right until you reach the column line error from the error box that popped up from ultra Hal.

You now know where the error is located, sometimes your plug-in can cause an error to happen with ultra Hal's brain even though the error is coming from your VBScript.
So if the error is not inside of your VBScript it is usually because something is missing, usually dealing with if then statements.
I use this system to find all of my programming errors and it works quite proficiently, the bad habit that I have is that I don't pay attention and I have a tendency to fix the error in the Halscript.dbg instead of opening my VBScript and fixing the error in my VBScript.
That's what I get for being in a hurry, so when you're dealing with errors slow down and be mindful of what you are doing.
Sincerely, and I hope this helped, from a data munching cruncher.
C load.
ps it was a hard return in the case fourteen sentence.
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Okay i am back on track , i had actually found the 14th line earlier but i was still getting the error , and even as i used cloads corrected part. i found out what it was finally .
   believe it or not it was the three part optional words string (which is strange as i used it before with another plug in and it worked okay . )
anyway i just changed it to a one word string trigger word and now the plug in works .
  Man am i glad i spent a lot of time making that plug in , whew ! :P
I want to thank everyone that helped and wrote on here , i really appreciate all your help. And Cload I copied down your notes on hal errors .
   i am actually created a plug in with many combined symptoms , and a person can talk about a symptom and get many answers and advice on cures, etc.
In another words your own personal type doctor plug in , hey
"personal doctor plug in ", that doesn't sound half bad for a name !"  ;)
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Another short ps note here , some of you may have noticed that on the MS abbreviation i separated the letters i did this as sometimes certain voices pronounce things differently , but i see in doing so it is saying it as "AM S " even though i only have " M S " letters , so if someone uses this test copy they will have to back the 's' up to make it say "MS"  in all the area's or wait for me to redo it when it's placed in a bigger complete syptoms plug in (which i am working on ) .  :)
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Okay cload , i tried what you said on your instructions , at first when you said in hals folder i thought you ment the degug in hal it's self , then i looked and found it , it;s in the hal "PROGRAM" folder . 
   when i say i used it i am meaning on another plug in i am doing , with more lengthy complex sentences , more mistakes will happen , but i used it as you said and it works good, i have used the crimson editor before in the past , but i think i like your way better with the note pad , i think i have used it before to but had been a while .
Thanks again to you and all who helped .! :)
 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
cool, I'm looking forward to seeing your plug-in
C load.
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
i'll let others know when it's completely done , and post about it in the share files area with a link to my sky drive account . It will be a while yet as their are many area's and subjects to cover medically!
But man what a cool plug in it'll be !  :) ;)
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Update: have done about three or more since i last wrote and two major large ones (25 random sentences each ) this morning , only has one mistake on each and found them and fixed them ! slowly but surely i am getting their lol!
 

raybe

  • Hero Member
  • *****
  • Posts: 1067
    • View Profile
lightspeed, to view line numbers in crimson; just go to to the toolbar look under 'VIEW" and you can select 'line numbers'. Crimson unlike note pad or anything else is specifically made to do this type of work and a lot more such as multiple file on different tabs for comparison.

raybe