Hi all,
I have A7 commercial, and I have built my first little test program. It's a cute little sucker, runs and compiles like a champ.
Now, starting a clean project, trying to re-write and clean up my old code, SED is giving me some just freaking weird crap.
Here's my main script:
#include <acknex.h>
#include <default.c>
function main()
{
PANEL* MainMenu =
{
MainMenu.pos_x = 0;
MainMenu.pos_y = 0;
MainMenu.layer = 1;
MainMenu.bmap = "blue8x8.tga";
MainMenu.flags = OVERLAY | SHOW;
}
////////////////////////////////////////////////////////////////////
/* Initialization */
////////////////////////////////////////////////////////////////////
// PlayerData Player1;
MainMenu.pos_x = 400;
MainMenu.pos_y = 300;
mouse_mode = 1;
video_mode = 7;
level_load("./resources/maps/FPSTest1.wmb");
////////////////////////////////////////////////////////////////////
// Main Loop
////////////////////////////////////////////////////////////////////
while(1)
{
if(key_esc)
break;
wait(1);
}
}
It tells me all of the MainMenu variables are "Keyword Unknown"?
I also had this code broken out into files, one for menus, one called stdafx.h (The Visual Studio habits die hard...) and I was getting some funky errors about the whole business.
The way it used to look was
stdafx.h included acknex.h and default.c and Menusystem.h (my header), which originally tried to declare the following:
typedef struct MenuSystem
{
PANEL* MainMenu;
}MenuSystem;
However, when I did that, it would run, just not work, and I'd get error E1513 when I tried to use the struct.
Does SED have something like Clean & Rebuild That forcibly recompiles all files from scratch or does it just not like multiple files?