Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
BUG with file_dialog - (solved) #422384
05/08/13 17:54
05/08/13 17:54
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
hello friends!
I believe that I am facing an BUG with the function file_dialog
SAMPLE:

Code:
char* TEXT_name = file_dialog("Load Terrain Texture 1 ","*.tga;*.bmp;*.pcx;*.dds");



this function works correctly, but she is preventing the operation of all SAVING functions of the engine.
Sample:

game_save, file_open_write, And Others.

Could anyone help me?

PS: this problem only happens if I select some file

SAMPLE TEST
Code:
function main()
{
	//NO SAVE
	char* TEXT_name = file_dialog("Load Terrain Texture 1 ","*.tga;*.bmp;*.pcx;*.dds");	
	wait(1);
	game_save("terr", 1, SV_INFO); //ITS NO WORK
}



Code:
function main()
{
	//SAVE
	game_save("terr", 1, SV_INFO); //ITS WORK
}


Last edited by NeoNeper; 05/08/13 21:01.

Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: BUG with file_dialog [Re: NeoNeper] #422388
05/08/13 19:58
05/08/13 19:58
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
just found out the reason.
when I make use of the function (file_dialog) and and I select a file, the directory of (save), becomes the directory of the selected file. Why??


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: BUG with file_dialog [Re: NeoNeper] #422390
05/08/13 20:46
05/08/13 20:46
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
I don't know why it does that, but you can reset it with

SetCurrentDirectory(_chr(work_dir));


POTATO-MAN saves the day! - Random
Re: BUG with file_dialog [Re: Kartoffel] #422392
05/08/13 21:00
05/08/13 21:00
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
(^.^) Its Work Kartoffel. Tanks man!


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________

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

Gamestudio download | 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