What does ERRNO #295.0 mean?

Posted By: Uhrwerk

What does ERRNO #295.0 mean? - 02/21/13 00:41

Hello Mr. Lotter,

I'm wondering what ERRNO #295.0 means. I'm trying to make a startup window definition, but regardless of my attempts it fails with this error. The manual says that this class of errors designates syntax or file format errors. But that is not really of any help. (Btw. why this cryptic error message instead of a simple "syntax error in file xyz in line x"?)

The strange thing is that the error occurs independently from the content of the correspoding .wdl file. Including one of the manual's samples causes this error. Even with the simplest of all cases
Code:
WINDOW WINSTART
{
}

the error appears.
When staring the publishing process from the command line with WED instead it shows "ERRNO #288.289" but that is not very helpful either.
Posted By: jcl

Re: What does ERRNO #295.0 mean? - 02/21/13 09:56

ERRNO just means an error with the window definition. There is no info what the particular numbers mean.

The starter window compiler was written 15 years ago, that's why its error display might be not really state of the art today. On the other hand, the possibility to make errors in a starter window definition is somewhat limited. When the error is independent of the content, then you likely won't solve it by fixing the content - something else is wrong, for instance compiling the wrong file.

You can call the starter window compiler, wdfc.exe, also directly from the command line (assuming your starter window definition is "mystart.wdl"):

wdfc -smystart.wdl -omystart.wdf -t -ex -run
Posted By: Uhrwerk

Re: What does ERRNO #295.0 mean? - 02/21/13 14:05

When I try that it gives me "Error has occurred: ERRNO #288.289", exactly the same as from the commandline with WED. I have tried
Code:
WINDOW WINSTART
{
}

as the content of the file main.wdl and the command line was
Code:
C:\Users\My User Name\Desktop\test>"D:\Program Files (x86)\GStudio8\wdfc" -smain.wdl -omain.wdf -t -ex -run

Posted By: FBL

Re: What does ERRNO #295.0 mean? - 02/21/13 14:58

Code:
window winstart
{
        title "...";
        size 370,297;
        mode image;

        bg_color rgb(0,0,0);
        bg_pattern <logo.pcx>,opaque;
}



Worked for me
Posted By: Uhrwerk

Re: What does ERRNO #295.0 mean? - 02/21/13 15:05

Doesn't make any difference for me. :-(
Posted By: jcl

Re: What does ERRNO #295.0 mean? - 02/22/13 08:15

I don't think that it is difficult to write a correct starter window definition. So it seems that your problem has some other reason, maybe related to your Gamestudio installation or to your folder path. Have you tried a fresh installation on a different PC, or running it from a different folder?
Posted By: rojart

Re: What does ERRNO #295.0 mean? - 02/22/13 12:09

Originally Posted By: Uhrwerk
When I try that it gives me "Error has occurred: ERRNO #288.289", exactly the same as from the commandline with WED. I have tried
Code:
WINDOW WINSTART
{
}

as the content of the file main.wdl and the command line was
Code:
C:\Users\My User Name\Desktop\test>"D:\Program Files (x86)\GStudio8\wdfc" -smain.wdl -omain.wdf -t -ex -run


I can confirm the same error message if I use code above, but you need use as minimum MODE STANDARD; see below and you are fine.

Code:
WINDOW WINSTART
{
 MODE STANDARD;  // always required
}


from the manual:

Quote:
MODE style;
The window mode (always required within the WINDOW definition) . Style can be either STANDARD, IMAGE, FULLSCREEN, or USE_OLDSTYLE.
Posted By: Uhrwerk

Re: What does ERRNO #295.0 mean? - 02/22/13 15:59

Ok, after a reinstallation I got this to work at least partially. This is pretty crazy as I have never tampered in any way with my installation folder.

@Rojart: Thanks, you're right, the mode keyword has to be there.

@jcl: Could you please update the manual, because
Originally Posted By: Manual
WINDOW WINSTART { ... } [...] If the brackets are empty, no start window will be displayed.
is wrong. The brackets must not be empty.

The generation of a .wdf file unfortunately only works from the command line for me. When publishing from SED I still get the same error messages.
Posted By: jcl

Re: What does ERRNO #295.0 mean? - 02/22/13 16:12

What are you publishing from SED? The .WDL file, or the .c script?
Posted By: Uhrwerk

Re: What does ERRNO #295.0 mean? - 02/22/13 16:41

I was publishing the .wdl file.

EDIT: I just tried publishing the .c file with the same result. The main .c file is named "main.c". The .wdl file is named "main.wdl". The sed project is named "main.sedprj". The error message in the publishing results window said "wdfc.exe: No starter window definition found!".
Posted By: Dico

Re: What does ERRNO #295.0 mean? - 02/22/13 22:04

i think you need to compile wdl first with wdfc.exe then compile your .c file with checked starter option
© 2024 lite-C Forums