Newbie question

Posted By: shadowd1

Newbie question - 02/12/08 17:49

OK I apologize in advance for this newbie question.

When doing the liteC workshops, if I run the code form the workshop it runs fine. However, if I type the code in I get a "Main Script not found - check Preferences" error.
I have checked the preferences and the location of my include files are right.

I have gone through the sed help file and couldn't find the answer.

Has anyone experienced this and what do I do to fix it?

Thanks in advance.
Posted By: dblade

Re: Newbie question - 02/12/08 21:44

You had to look at "Options" -> "Preferences"
then hit the enviroment card and mark "use current file for test run".

Another way is to look at the engine card and set your script as the main script. ["options" -> "preferences" -> "engine" ]
Posted By: shadowd1

Re: Newbie question - 02/14/08 12:17

that box is checked. Or did you mean to uncheck that box? I went through the manual and didn't see if there was a certain folder the files are supposed to be in. I have the folder set to the include files correctly.
Posted By: Vadim647

Re: Newbie question - 02/14/08 17:15

Have you saved your script?
If not, it wouldn't work.
It must have "*.c" filename if you own free liteC
Posted By: Espér

Re: Newbie question - 03/14/08 14:52

Ok.. i got the same problem.. now i fixed it.. but if i make workshop_2 Variables.. and change
c = a + b;

to
c = a - b;

It won´t work.. I saved the script... After 3 failed tries.. i saved the script closed it.. after loading it again.. the code is
c = a + b;
again..

it hasn´t saved it..

What´s wrong???
Posted By: Trooper119

Re: Newbie question - 03/14/08 16:07

There are several different possibilities, I'll list all I can think of.
1. Your not saving your file in the right place, hit save as, and save it manually to where you want.
2. Wherever your running it from is the wrong file, check either WED or SED (wherever your running it from), and find where it is running the script from, once again, manually set it to the right folder that you have "save as"ed
3. Your opening the wrong file, I'm guessing somehow you've duplicated the files to have very similar code but one it outdated, the other is not. Find them both (hint hit save as, wherever it brings you is where your saving your file) the other one is wherever you've been selecting it from. Delete one so you only have 1 available, if you want more then one copy, save it as a backup and put it in an out of the way place.
4. Besides restarting your computer to get rid of any temporary files that might be screwy I'd suggest going through the list 1 more time to make sure you've gotten it all.
Posted By: Espér

Re: Newbie question - 03/14/08 16:37

ok.. fixed it.. just reinstalled the whole programm.. no it works ^^.. And i´m learning YEAH...
© 2024 lite-C Forums