Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,499 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
One question #302914
12/23/09 15:14
12/23/09 15:14
Joined: Aug 2009
Posts: 9
RUSSIA
A
AlexTGM Offline OP
Newbie
AlexTGM  Offline OP
Newbie
A

Joined: Aug 2009
Posts: 9
RUSSIA
Hi all!!!
I wouldlike to ask you one question:
When I compile script which should open a file(or create this file) and write a string I see that nothing happens mad.
Code:
var filehandle;
filehandle = file_open_write("test.txt");
file_str_write(filehandle,"a,Test");
file_close (filehandle);


Or I don't understand correct the meaning of this programm?
I hope you will answer me soon!!!
And one another question: don't someone gave a good highscore script?
P.S. Sorry for my bad English...
P.P.S. I use trial version of 7.82 and 7.80.1


Last edited by AlexTGM; 12/23/09 15:15.
Re: One question [Re: AlexTGM] #302922
12/23/09 16:53
12/23/09 16:53
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
are you using windows vista or 7 and is your project currently located on c:\program files\... ?
then vista probably denies access to that folder, and 3dgs can not create the file. it might even crash when trying to do so in a published version.

Re: One question [Re: SchokoKeks] #302937
12/23/09 19:26
12/23/09 19:26
Joined: Aug 2009
Posts: 9
RUSSIA
A
AlexTGM Offline OP
Newbie
AlexTGM  Offline OP
Newbie
A

Joined: Aug 2009
Posts: 9
RUSSIA
I'm using Windows 7(not cracked + x64). Also I installed 3DGS in c:\program files(x86)\...
Please, help me... What can I do?

Re: One question [Re: AlexTGM] #302950
12/23/09 21:06
12/23/09 21:06
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
From the Manual:
Quote:
A path can be given with the file name. Otherwise the file is opened in the work folder.


Try to create and save a file manually in your 3DGS work folder. If you can't, you don't have enough permission to use that folder. Otherwise i don't know...

Re: One question [Re: Aku_Aku] #302996
12/24/09 12:01
12/24/09 12:01
Joined: Aug 2009
Posts: 9
RUSSIA
A
AlexTGM Offline OP
Newbie
AlexTGM  Offline OP
Newbie
A

Joined: Aug 2009
Posts: 9
RUSSIA
I don't understand you... I try to create a file in folder with a script, and I can create a file manually in it... Maybe I should give a path in the script for file? Or reinstall this programm in c:\Program Files\... .Without (x86)???

Re: One question [Re: AlexTGM] #303002
12/24/09 12:58
12/24/09 12:58
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
no, it does not matter if the application is in program files with or without (x86). you can only save data in the "user" folder for the current user or onto other drives (not recommended), so when calling file_open_write you have to give a path to the user folder. you probably need a windows API function to get the path of the user folder, sorry but I can't help you with that.

Re: One question [Re: SchokoKeks] #303005
12/24/09 13:15
12/24/09 13:15
Joined: Aug 2009
Posts: 9
RUSSIA
A
AlexTGM Offline OP
Newbie
AlexTGM  Offline OP
Newbie
A

Joined: Aug 2009
Posts: 9
RUSSIA
Oh... Where a file saves at defaults?

Re: One question [Re: AlexTGM] #303055
12/24/09 22:04
12/24/09 22:04
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
when you give no path, it saves in the folder where the main script is that you've run.
on windows XP the program has access there, but on vista or 7 it doesn't if the script is somewhere on drive C:

Re: One question [Re: SchokoKeks] #303057
12/24/09 22:27
12/24/09 22:27
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Originally Posted By: SchokoKeks
when you give no path, it saves in the folder where the main script is that you've run.
on windows XP the program has access there, but on vista or 7 it doesn't if the script is somewhere on drive C:


not really, because your profiles are also saved on C wink

but not in the program folder wink

Re: One question [Re: Rei_Ayanami] #303066
12/24/09 23:05
12/24/09 23:05
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Your code looks fine, so it might be really because of missing permissions in Vista/Windows 7 (I still don't know how to turn this off, it even denies acces when I try to acess it as an administrator mad ). But the strange thing is: If your script is in C:\programm files (or program files(x86) or whatever), how have you been able to create your script there in the first place?


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