Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, 7th_zorro, AndrewAMD), 1,081 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Browser für Player errichten #284967
08/16/09 10:42
08/16/09 10:42
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
Wer kann mir beim errichten eines File-Browsers helfen.Ich brauche einen File-Browser mit dem man Musikdateien öffnen kann.

Wer kennt sich damit aus?


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: Browser für Player errichten [Re: atari98] #284974
08/16/09 12:01
08/16/09 12:01
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline
Member
Martek  Offline
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Ich weiß nicht genau wie es geht, aber du brauchst dazu aufjedenfall die windows.h.

Die musst du includen, also #include <windows.h>

Mfg, Martek


3D Gamestudio A7 Extra
Re: Browser für Player errichten [Re: Martek] #285108
08/17/09 07:40
08/17/09 07:40
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
Quote:
Ich weiß nicht genau wie es geht, aber du brauchst dazu aufjedenfall die windows.h.

Die musst du includen, also #include <windows.h>

Mfg, Martek


Davon hab ich wirklich keine Ahnung


.Ich mache nämlich das Projekt zusammen mit "theClown".
Selbst der als fortgeschreittener User hat davon keine Ahnung.
Kann mir keiner helfen


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: Browser für Player errichten [Re: atari98] #285125
08/17/09 10:02
08/17/09 10:02
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Meine Frage: was willst du genau?
Willst du einen windows-dateien-öffnen dialog mit lite-C nutzen können und die dort ausgewählte datei (nur musik dateien erlaubt) dann über die A7 engine wiedergeben oder ähnliches?

Re: Browser für Player errichten [Re: Xarthor] #285346
08/18/09 08:20
08/18/09 08:20
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
Originally Posted By: Xarthor
Meine Frage: was willst du genau?
Willst du einen windows-dateien-öffnen dialog mit lite-C nutzen können und die dort ausgewählte datei (nur musik dateien erlaubt) dann über die A7 engine wiedergeben oder ähnliches?



Genau,so.Aber das mit den Wiedergeben grieg ich selber auf die Reihe.Ich brauche jetzt nur einen File-Browser, also ein Dialog soll erscheinen mit dem ich Windows Dateinen öffnen kann und dann über Engine wiedergeben kann.


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: Browser für Player errichten [Re: atari98] #285380
08/18/09 10:44
08/18/09 10:44
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Habe hier meinen Code zum Laden einer Entity:

Code:
STRING* OB_E_NAME_STR = "#30";

OPENFILENAME my_file;
char buf[256];
FillMemory (&my_file,sizeof(my_file),0);
FillMemory (buf,256,0);
my_file.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST;
my_file.lStructSize = sizeof(my_file);
my_file.hwndOwner = hWnd;	
my_file.lpstrFilter = "Modelle (*.mdl)\0*.mdl\0Bitmaps (*.tga; *.bmp)\0*.tga;*.bmp\0\0";
my_file.lpstrInitialDir = _chr(OB_E_PFAD_STR);
my_file.lpstrFile = buf;
my_file.nMaxFile = 255;	
my_file.lpstrTitle = "Entity laden:";
		
while (key_any)   wait(1);
		
if (GetOpenFileName(&my_file))
{
	str_cpy (OB_E_NAME_STR,my_file.lpstrFile);
}



Re: Browser für Player errichten [Re: Widi] #285576
08/19/09 06:45
08/19/09 06:45
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
Originally Posted By: Widi
Habe hier meinen Code zum Laden einer Entity:

Code:
STRING* OB_E_NAME_STR = "#30";

OPENFILENAME my_file;
char buf[256];
FillMemory (&my_file,sizeof(my_file),0);
FillMemory (buf,256,0);
my_file.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST;
my_file.lStructSize = sizeof(my_file);
my_file.hwndOwner = hWnd;	
my_file.lpstrFilter = "Modelle (*.mdl)\0*.mdl\0Bitmaps (*.tga; *.bmp)\0*.tga;*.bmp\0\0";
my_file.lpstrInitialDir = _chr(OB_E_PFAD_STR);
my_file.lpstrFile = buf;
my_file.nMaxFile = 255;	
my_file.lpstrTitle = "Entity laden:";
		
while (key_any)   wait(1);
		
if (GetOpenFileName(&my_file))
{
	str_cpy (OB_E_NAME_STR,my_file.lpstrFile);
}




Muss ich den in die functiion main mit einbauen oder in irgend nen Loop oder muss ich den einfach nur so reinstelln


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: Browser für Player errichten [Re: atari98] #285604
08/19/09 09:56
08/19/09 09:56
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
in eine funktion ^^

Code:
SOUND* playme;

function call_music()
{
	OPENFILENAME my_file;
	char buf[256];
	FillMemory (&my_file,sizeof(my_file),0);
	FillMemory (buf,256,0);
	my_file.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST;
	my_file.lStructSize = sizeof(my_file);
	my_file.hwndOwner = hWnd;	
	my_file.lpstrFilter = "Musicfiles (*.mp3; *.wav; *.mid; *.ogg)	\0*.mp3;*.ogg;*.wav;*.mid\0\0";
	my_file.lpstrInitialDir = _chr(OB_E_PFAD_STR);
	my_file.lpstrFile = buf;
	my_file.nMaxFile = 255;	
	my_file.lpstrTitle = "Load Musicfile:";
		
	while (key_any)   wait(1);
		
	if (GetOpenFileName(&my_file))
	{
	str_cpy (OB_E_NAME_STR,my_file.lpstrFile);
	// add here the things to play the music. OB_E_NAME_STR is the name of the file. Example:
	// playme = snd_create(OB_E_NAME_STR); shandle = snd_play(...);
	}
}




Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Browser für Player errichten [Re: Espér] #286058
08/22/09 18:56
08/22/09 18:56
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
Äh stimmt das so??


Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////

var slider = 100;
//////////////////////////////

function quit_program()
{
  while (key_any) { wait (1); }
  sys_exit(NULL);
}


SOUND* playme;

function call_music()
{
	OPENFILENAME my_file;
	char buf[256];
	FillMemory (&my_file,sizeof(my_file),0);
	FillMemory (buf,256,0);
	my_file.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST;
	my_file.lStructSize = sizeof(my_file);
	my_file.hwndOwner = hWnd;	
	my_file.lpstrFilter = "Musicfiles (*.mp3; *.wav; *.mid; *.ogg)	\0*.mp3;*.ogg;*.wav;*.mid\0\0";
	my_file.lpstrInitialDir = _chr(OB_E_PFAD_STR);
	my_file.lpstrFile = buf;
	my_file.nMaxFile = 255;	
	my_file.lpstrTitle = "Load Musicfile:";
		
	while (key_any)   wait(1);
		
	if (GetOpenFileName(&my_file))
	{
	str_cpy (OB_E_NAME_STR,my_file.lpstrFile);
	// add here the things to play the music. OB_E_NAME_STR is the name of the file. Example:
	// playme = snd_create(OB_E_NAME_STR); shandle = snd_play(...);
	}
}



BMAP* hhhhh = "play.tga";
PANEL* Play =
{
bmap = hhhhh;
flags = SHOW;
}


BMAP* hhhh = "stop.tga";
PANEL* stop =
{
bmap = hhhh;
flags = SHOW;
}

BMAP* hhh = "pause.tga";
PANEL* pause =
{
bmap = hhh;
flags = SHOW;
}

BMAP* hh = "vor.tga";
PANEL* vor =
{
bmap = hh;
flags = SHOW;
}

BMAP* h = "rueck.tga";
PANEL* rueck =
{
bmap = h;
flags = SHOW;
}

BMAP* gg = "Obereleiste.tga";
PANEL* rueckggg =
{
bmap = gg;
flags = SHOW;
}
BMAP* ggfgg = "Obereleiste.tga";
PANEL* leiste =
{
bmap = ggfgg;
flags = SHOW;
}

PANEL* Sliderbutton =
{
flags = SHOW;
button(2,1, "1o.tga", "1.tga", "1o.tga",quit_program, NULL, NULL); 
}


PANEL* Sliderbutton2 =
{
button(2,0, "2o.tga", "2.tga", "2o.tga",quit_program, NULL, NULL); 
flags = SHOW;
}


PANEL* Sliderbutton3 =
{
button(2,0, "3o.tga", "3.tga", "3o.tga",quit_program, NULL, NULL); 
flags = SHOW;
}

PANEL* slider =
{
	pos_x = 600;
	pos_y = 470;
   bmap = "Slider02.tga";
   hslider(22,6,45,"Sliderbutton.tga",6,10, slider); 
   flags = OVERLAY | VISIBLE;
}




function main()
{
  vec_set(screen_size,vector(800,800,0));
  vec_set(sky_color,vector(255,255,255)); // dark blue
  vec_set(camera.x,vector(-250,0,50));
  vec_set(camera.pan,vector(0,-15,0));
  mouse_mode = 2;
  while (1)
	{
		mouse_pos.x = mouse_cursor.x;
		mouse_pos.y = mouse_cursor.y;
		wait (1);
	
	
	
  Play.pos_x = 330; // gewünschte Position
  Play.pos_y = 480;

  stop.pos_x = 210; // gewünschte Position
  stop.pos_y = 490;

  pause.pos_x = 490; // gewünschte Position
  pause.pos_y = 494;

  vor.pos_x = 610; // gewünschte Position
  vor.pos_y = 494;


  rueck.pos_x = 90; // gewünschte Position
  rueck.pos_y = 490;
  
  slider.pos_x = 590; // gewünschte Position
  slider.pos_y = 450;
  
  
  Sliderbutton.pos_x = 0; // gewünschte Position
  Sliderbutton.pos_y = 1;
  
  Sliderbutton2.pos_x = 90; // gewünschte Position
  Sliderbutton2.pos_y = 2;

  Sliderbutton3.pos_x = 140; // gewünschte Position
  Sliderbutton3.pos_y = 2.9 ;
 
  leiste.pos_x = 0; // gewünschte Position
  leiste.pos_y = 420;
 
 }
 
}




Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: Browser für Player errichten [Re: atari98] #286296
08/24/09 13:28
08/24/09 13:28
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
Originally Posted By: atari98
Äh stimmt das so??


Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////

var slider = 100;
//////////////////////////////

function quit_program()
{
  while (key_any) { wait (1); }
  sys_exit(NULL);
}


SOUND* playme;

function call_music()
{
	OPENFILENAME my_file;
	char buf[256];
	FillMemory (&my_file,sizeof(my_file),0);
	FillMemory (buf,256,0);
	my_file.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST;
	my_file.lStructSize = sizeof(my_file);
	my_file.hwndOwner = hWnd;	
	my_file.lpstrFilter = "Musicfiles (*.mp3; *.wav; *.mid; *.ogg)	\0*.mp3;*.ogg;*.wav;*.mid\0\0";
	my_file.lpstrInitialDir = _chr(OB_E_PFAD_STR);
	my_file.lpstrFile = buf;
	my_file.nMaxFile = 255;	
	my_file.lpstrTitle = "Load Musicfile:";
		
	while (key_any)   wait(1);
		
	if (GetOpenFileName(&my_file))
	{
	str_cpy (OB_E_NAME_STR,my_file.lpstrFile);
	// add here the things to play the music. OB_E_NAME_STR is the name of the file. Example:
	// playme = snd_create(OB_E_NAME_STR); shandle = snd_play(...);
	}
}



BMAP* hhhhh = "play.tga";
PANEL* Play =
{
bmap = hhhhh;
flags = SHOW;
}


BMAP* hhhh = "stop.tga";
PANEL* stop =
{
bmap = hhhh;
flags = SHOW;
}

BMAP* hhh = "pause.tga";
PANEL* pause =
{
bmap = hhh;
flags = SHOW;
}

BMAP* hh = "vor.tga";
PANEL* vor =
{
bmap = hh;
flags = SHOW;
}

BMAP* h = "rueck.tga";
PANEL* rueck =
{
bmap = h;
flags = SHOW;
}

BMAP* gg = "Obereleiste.tga";
PANEL* rueckggg =
{
bmap = gg;
flags = SHOW;
}
BMAP* ggfgg = "Obereleiste.tga";
PANEL* leiste =
{
bmap = ggfgg;
flags = SHOW;
}

PANEL* Sliderbutton =
{
flags = SHOW;
button(2,1, "1o.tga", "1.tga", "1o.tga",quit_program, NULL, NULL); 
}


PANEL* Sliderbutton2 =
{
button(2,0, "2o.tga", "2.tga", "2o.tga",quit_program, NULL, NULL); 
flags = SHOW;
}


PANEL* Sliderbutton3 =
{
button(2,0, "3o.tga", "3.tga", "3o.tga",quit_program, NULL, NULL); 
flags = SHOW;
}

PANEL* slider =
{
	pos_x = 600;
	pos_y = 470;
   bmap = "Slider02.tga";
   hslider(22,6,45,"Sliderbutton.tga",6,10, slider); 
   flags = OVERLAY | VISIBLE;
}




function main()
{
  vec_set(screen_size,vector(800,800,0));
  vec_set(sky_color,vector(255,255,255)); // dark blue
  vec_set(camera.x,vector(-250,0,50));
  vec_set(camera.pan,vector(0,-15,0));
  mouse_mode = 2;
  while (1)
	{
		mouse_pos.x = mouse_cursor.x;
		mouse_pos.y = mouse_cursor.y;
		wait (1);
	
	
	
  Play.pos_x = 330; // gewünschte Position
  Play.pos_y = 480;

  stop.pos_x = 210; // gewünschte Position
  stop.pos_y = 490;

  pause.pos_x = 490; // gewünschte Position
  pause.pos_y = 494;

  vor.pos_x = 610; // gewünschte Position
  vor.pos_y = 494;


  rueck.pos_x = 90; // gewünschte Position
  rueck.pos_y = 490;
  
  slider.pos_x = 590; // gewünschte Position
  slider.pos_y = 450;
  
  
  Sliderbutton.pos_x = 0; // gewünschte Position
  Sliderbutton.pos_y = 1;
  
  Sliderbutton2.pos_x = 90; // gewünschte Position
  Sliderbutton2.pos_y = 2;

  Sliderbutton3.pos_x = 140; // gewünschte Position
  Sliderbutton3.pos_y = 2.9 ;
 
  leiste.pos_x = 0; // gewünschte Position
  leiste.pos_y = 420;
 
 }
 
}




Warum funktioniert das nicht?


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1