if all i want is a crash in main.. yes ^^

Click to reveal.. ("main.c")

Code:
//=================================================================================================================================
//                                                                                                                               //
//                                                     DAS MAINSCRIPT                                                            //
//                                                     ^^^^^^^^^^^^^^                                                            //
//                                                                                                                               //
//=================================================================================================================================
//                                                                                                                               //
//                                          EINBINDEN DER UNTERORDNER UND SCRIPTS                                                //
//                                          """""""""""""""""""""""""""""""""""""                                                //
//                                                                                                                               //
//=================================================================================================================================
#define PRAGMA_PATH "Graphics\Characters"
#define PRAGMA_PATH "Graphics\Battlebacks"
#define PRAGMA_PATH "Data\Levels"


#include <acknex.h>
#include <default.c>

#include "game_bitmaps.c"
#include "game_structs.c"

//=================================================================================================================================
//                                                                                                                               //
//                                                       FUNKTIONEN                                                              //
//                                                       """"""""""                                                              //
//                                                                                                                               //
//=================================================================================================================================


//=================================================================================================================================
//                                                                                                                               //
//                                                        AKTIONEN                                                               //
//                                                        """"""""                                                               //
//                                                                                                                               //
//=================================================================================================================================
action debugging()
{
	wait(1);
	while(1)
	{
		my.pan  += random(3)*time_step;
		my.tilt += random(3)*time_step;
		my.roll += random(3)*time_step;
		wait(1);
	}
}

//=================================================================================================================================
//                                                                                                                               //
//                                                     DAS MAINSCRIPT                                                            //
//                                                     """"""""""""""                                                            //
//                                                                                                                               //
//=================================================================================================================================
function main()
{
	fps_max = 60;
	d3d_antialias = 9;
	video_set(1024,768,32,0);
	video_window(vector(10,10,NULL),NULL,48,"@-´-,-´-,-´-,-  NEVERTOLD  -,-`-,-`-,-`-@");
	screen_color.red   = 0;
	screen_color.green = 0;
	screen_color.blue  = 0;
	sky_color.red   = 0;
	sky_color.green = 0;
	sky_color.blue  = 0;
	level_load("leer.wmb");
	wait(3);
	
	vec_set(camera.x, vector(0,-250,500));
	vec_set(camera.pan, vector(90,-50,0));
	
	
	PANEL* mainpan = pan_create("pos_x=300; pos_y=150; bmap = testobjekt; flags = SHOW;", -1);
	
	//=================================================================================================================================
	//	error("str_cpy(mypanmap.name, Gegner_Weisser_Drachenreiter_stehen.png);"); //////////
	//	str_cpy(mypanmap.name, "Weisser_Drachenreiter_1+4.tga");
	//	
	//	error("mypanmap.bitmap = bmap_create(mypanmap.name);"); /////////////////////////////
	//	mypanmap.bitmap = "Gegner_Weisser_Drachenreiter_stehen.png";
	//	
	//	error("PANEL* testerpanel erstellen"); //////////////////////////////////////////////
	//	pan_create("pos_x=300; pos_y=150; bmap = mypanmap.bitmap; flags = SHOW;", -10);
	//	
	//	error(mypanmap.name); ///////////////////////////////////////////////////////////////
	mypanmap.name = str_create( mainpan->bmap->link.name );
	(mypanmap.name->chars)[str_len(mypanmap.name)-4] = 46;
	
	mypanmap.bitmap = mainpan.bmap;
	
	error(mypanmap.name);

	//=================================================================================================================================
	
	
	
	pan_create("bmap = testobjekt; flags = SHOW;", -10);
	ent_create("Weisser_Drachenreiter_1+4.tga", vector(0,0,0), debugging);
}


Click to reveal.. ("game_structs.c")

Code:
//=================================================================================================================================
//                                                                                                                               //
//                                                     DIE STRUCKTUREN                                                           //
//                                                     ^^^^^^^^^^^^^^^                                                           //
//                                                                                                                               //
//=================================================================================================================================
//=================================================================================================================================
//                                                                                                                               //
//                                                      STRUCKTUREN                                                              //
//                                                      """""""""""                                                              //
//                                                                                                                               //
//=================================================================================================================================
typedef struct 
{
	STRING* name;
	BMAP* bitmap;
} PANELMAP;


//=================================================================================================================================
//                                                                                                                               //
//                                                  STRUCKTURENPOINTER                                                           //
//                                                  """"""""""""""""""                                                           //
//                                                                                                                               //
//=================================================================================================================================
PANELMAP* mypanmap;

//=================================================================================================================================
//                                                                                                                               //
//                                                  STRUCKTURENFUNKTION                                                          //
//                                                  """""""""""""""""""                                                          //
//                                                                                                                               //
//=================================================================================================================================
PANELMAP* panelmapSetup(PANELMAP* inpanel)
{
	str_cpy(inpanel.name, "test");
	inpanel.bitmap = bmap_create(testobjekt);
}

//=================================================================================================================================
//                                                                                                                               //
//                                                   STRUCKTURENMEMORY                                                           //
//                                                   """""""""""""""""                                                           //
//                                                                                                                               //
//=================================================================================================================================
mypanmap = malloc(sizeof(PANELMAP));
panelmapSetup(mypanmap);


Click to reveal.. ("game_bitmaps.c")

Code:
//=================================================================================================================================
//                                                                                                                               //
//                                                       DIE BITMAPS                                                             //
//                                                       ^^^^^^^^^^^                                                             //
//                                                                                                                               //
//=================================================================================================================================
//=================================================================================================================================
BMAP* testobjekt = "Mountainroad.png";



That´re the codes..


i think i´ll do it like i said..
creating entitys.. and use their Skills and Strings for the panelbase

Last edited by Espér; 07/08/09 15:25.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<