Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial

Posted By: MikeT

Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/14/10 22:16

Hello,

We (my son and I) are going through the T7 tutorial: Outdoor Level Template.

We clicked New Level, Project Wizard
Selected Outdoor Level
We filled in the Project Path and Folder the same as in the Tutorial (except using the correct folder name)

Level opened as in tutorial.
We checked the Project Path and Folder.
The Folder was there, along with its subFolders (Code, etc.)

We Clicked Run then OK

Then we get the error message:

E1512 - Empty Prototype Called in Main

Please Help us before we give up on GameStudio.

Thanks,


MikeT
Posted By: Superku

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/14/10 23:15

If you give up that fast, you should ask yourself if game design is the right thing for you.
Why do you use such an old gamestudio version anyway, 7.36? Where did you get it?
You should update your A7 version, this will fix many issues you may encounter.
Posted By: MikeT

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/15/10 03:39

Hi SuperKu,
Thanks for your fast response.

The Version (as displayed in WED) is really:
Gamestudio Free 7.84 /WED V6.944
It was downloaded 6/2/2010

The 7.36 came from the Help > About on the initial window that opens when the program starts (SED):
SED Version 7.36.0

As mentioned I'm just a beginner.

We are not ready to give up on Game Programming.
However, we are searching for a suitable game developement platform. Any program that gives error message(s) on the initial use gives cause for concern.

If the error can be resolved, with the forum's help, that will indicate two important things:
1. That the program is basically sound.
2. The Forum is responsive.

I am heartened to have received a quick response. Thanks!

BTW: The Computer and OS info is:
Toshiba Laptop: Satellite L305D
CPU: AMD Sempron SI-42 2.1GHz
3.00 GB Ram
Windows 7 Home Premium
ATI Radeon 3100 Graphics

Thanks in advance for you help.


MikeT
Posted By: Asgadir

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/15/10 04:01

to 99% you have forgotten a ';' somewhere. (without the ')
Posted By: MikeT

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/15/10 05:15

Hi Asgadir,

Currently, we are only at end of the 30 second guide:
http://www.opserver.de/wiki/index.php/30_Second_Guide

Since this only involves the Project Wizard, we haven't been doing any coding yet.

Could it be that the Project Wizard is leaving out the ';' ?

BTW: murlok on 5/26/2010 posted a similar question - with 0 relies:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=325328#Post325328


Thanks,

MikeT
Posted By: Lukas

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/15/10 13:55

Did you change something in the script? "Empty Prototype" happens when you define a function prototpye like this:
Code:
void myfunction ();


And then call it without writing the actual function.
Posted By: Slin

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/15/10 14:50

That is a bit strange. I just gave it a try and everything works fine.
When does that error appear?
I thought that the code might be outdated, but that doesn´t seem to be the case (and actually nearly never should, as gamestudio should usually be completely backwards compatible). The only thing I could think of is, that there is some file missing for you, which exists on my system due to updating. But that should give you another error message then.
Posted By: Razoron

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/15/10 15:03

Post your acklog.txt here. To generate it, add the -diag command.
Posted By: Superku

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/15/10 16:15

I've just tried it and it works fine for me, too, although the outdoor example looks and feels horrible, don't expect much.
Make sure to check the following list:

Quote:
* The following files should be installed:
* - "t7.dll" in the "acknex_plugins" folder.
* - "templates" folder in the GStudio7 root folder.
* - "t7" folder in the include folder.
* - "wdlv.dll" in GStudio7 root folder (if you want to use WED).

Posted By: MikeT

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 03:11

Hi Razoron,

Here is the acklog.txt:

Log of A7 Engine 7.84.2 run at Tue Jun 15 22:34:54 2010
elijah on Windows NT/2000/XP version 6.1 Build 7600
Options myproj.c -nx 30 -diag
App: C:\Program Files\GStudio7\acknex.exe in C:\USERS\ELIJAH\DOCUMENTS\GS7\

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened
(c) Conitec - Dieburg - San Diego - www.3dgamestudio.com
A7 Engine - Free Edition V7.84.2 - Apr 17 2010
Development version
Registered to: Free Edition

Mouse found
Speakers (Realtek High Definition Audio) opened
ATI Radeon 3100 Graphics pure T&L device 1ff9 detected
D3D device ATI Radeon 3100 Graphics 1ff9 selected.
Compiling MYPROJ.C - [Esc] to abort..
PATH code\
PATH images\
PATH includes\
PATH maps\
PATH models\
PATH sounds\
PATH textures\
PATH C:\Program Files\GStudio7\templates\t7w_outdoor\..
PATH C:\Program Files\GStudio7\acknex_plugins\
PATH C:\Program Files\GStudio7\code\
PATH C:\Program Files\GStudio7\templates\code\
PATH C:\Program Files\GStudio7\templates\images\
PATH C:\Program Files\GStudio7\templates\includes\
PATH C:\Program Files\GStudio7\templates\maps\
PATH C:\Program Files\GStudio7\templates\models\
PATH C:\Program Files\GStudio7\templates\sounds\
PATH C:\Program Files\GStudio7\templates\textures\
PATH C:\Program Files\GStudio7\templates\xml\.......
anim_reload: function not found
camera_add: function not found
camera_insert: function not found
camera_next: function not found
camera_prev: function not found
camera_remove: function not found
camera_set_ang: function not found
camera_set_target_ent: function not found
camera_set_target_offset: function not found
camera_set_target_vec: function not found
camera_set_vec: function not found
entity_act: function not found
entity_act_vec: function not found
entity_add: function not found
entity_add_cmp: function not found
entity_cmp_act: function not found
entity_cmp_get_int: function not found
entity_cmp_get_var: function not found
entity_cmp_set: function not found
entity_get_int: function not found
entity_get_var: function not found
entity_get_vec: function not found
entity_remove: function not found
entity_set: function not found
entity_set_ptr: function not found
entity_set_str: function not found
entity_set_vec: function not found
project_level_: function not found
project_load: function not found
project_remove: function not found
project_update: function not found... 0.269 sec
Running MYPROJ.C.
2 objects
Main started at 2.377
Error E1512: Empty prototype called in main
def_startup started
Main loop at 4.601...
Normal exit at 4.601
Normal Exit
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,physics,nexus..ok
A7 Engine - Free Edition V7.84.2 - Apr 17 2010
(c) Conitec - Dieburg - San Diego - www.3dgamestudio.com
Registered to: Free Edition
Close window at 4.646

Thanks!


MikeT
Posted By: MikeT

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 03:51

Hi Superku,

I checked and everything in your list is there.

Maybe the acklog.txt will help.

I haven't touched any of the coding generated by the Project Wizard.

Slin: As to when the error occurs:
The Wizard generates the level with terrain and entities fine.

1. I click the run (traffic light) button.
2. A dialog pops us with Engine Options: "myproj.c -nx 30", click ok
3. The information window appear with 'Compiling MYPROJ.C' then '2 objects'. Then the Error E1512 comes up.

I've also tried the build button along with the various build options. No error when building.
The error still occurs only with the run button.

In WED, I also tried the Resourses tab, Script files, MyProj.c > Open.
In SED, trying the Run Current Script, the Test Run or the Debug Run buttons all generated the error.


Thanks to everyone for your help,



MikeT
Posted By: Superku

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 11:09

There is nothing wrong with your (generated) code, the problem is here:

Quote:
PATH C:\Program Files\GStudio7\templates\xml\.......
anim_reload: function not found
[...]
entity_set_vec: function not found
project_level_: function not found
project_load: function not found
project_remove: function not found
project_update: function not found... 0.269 sec


Then there is the following code in your main-function (myProj.c):

Code:
void main()
{
	if(project_load("myProj.xml") == 0)	// load up game from an xml file
	{
		sys_exit("Couldn't load myProj.xml");
	}

	while(project_update() != 0)
	{
		wait(1);
	}
	sys_exit("Normal Exit");
}



Because project_load and project_update are not found, the engine outputs the "Empty prototype called in main" error. I don't use dll functions myself but this sounds as the t7.dll could not be loaded. When you run your script/ project, the white start window lists which dlls have been loaded, f.i.:
acknet.dll opened
ackwii.dll opened
t7.dll opened.
Check if the bold line appears in your start window.
Posted By: MikeT

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 14:39

The white start window:
Mouse Found
Speakers (Realtek...)
ATI Radeon 3100...
Compiling MYPROJ.C - [Esc] to abort.............0.270 sec.
2 objects

Then the E1512 error pops up.

There is no mention of dll's that load.

http://drop.io/04oko54/asset/gstudio-error-jpg
Posted By: Razoron

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 14:48

Are there the following Dlls in the
XX:/Program Files/GStdio7/acknex_plugins/ folder?

-t7.dll
-ackport.dll
-ackwii.dll


Do you have VC++ redistributable correctly installed?
Posted By: Superku

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 15:15

The free version does not support DLLs (EDIT: as engine plug-ins), thus the Project Wizard won't work unless you have the Extra, Com or Pro edition (the templates are being replaced anyway).

You can download the 30-days trial, then you will be able to use the Project Wizard.

EDIT: I could be wrong.
Posted By: Razoron

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 15:50

Originally Posted By: Superku
The free version does not support DLLs, thus the Project Wizard won't work unless you have the Extra, Com or Pro edition (the templates are being replaced anyway).

You can download the 30-days trial, then you will be able to use the Project Wizard.


Wow, that I didn't know yet, sorry.
Posted By: MikeT

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/16/10 23:53

I'm glad to find out what the problem was.

Perhaps a notice might be in order for the tutorial.
(Extra, Com or Pro editions only)


Thanks for everybody's replies.

We will go ahead and try some other tutorials.


MikeT
Posted By: Laurentius

Re: Error Msg: E1512 - Empty Prototype... Beginner on T7 Tutorial - 06/21/10 05:28

Thx Superku!

After spending several hours attempting to get the A7 templates to work, and another hour in the forums, your post explained to me my problem. You saved me hours of additional frustration.

(NOTE TO ACKNET) It does seem to me that if the free version does not support the .dll files, perhaps the free version shouldn't provide a wizard that forces them to be used frown
© 2024 lite-C Forums