Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (wandaluciaia, AndrewAMD, 1 invisible), 765 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Failing to write / read file #274917
06/29/09 07:42
06/29/09 07:42
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
This is the first time Im hearing of this error. As the player progresses through the game, the progress is saved in a text file. A client contacted me saying that every time they start the game reads that no progress has been made. What can be the cause of this?

------------------
System Information
------------------
Time of this report: 6/26/2009, 12:45:16
Machine name: AN028339
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_gdr.050301-1519)
Language: English (Regional Setting: English)
System Manufacturer: IBM
System Model: 2889CG7
BIOS: Phoenix FirstBIOS(tm) Notebook Pro Version 2.0 for IBM ThinkPad
Processor: Intel(R) Pentium(R) M processor 1.70GHz
Memory: 502MB RAM
Page File: 512MB used, 716MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 9.0c (4.09.0000.0904)
DX Setup Parameters: Not found
DxDiag Version: 5.03.2600.2180 32bit Unicode

Last edited by capanno; 06/29/09 07:43.
Re: Failing to write / read file [Re: capanno] #274959
06/29/09 12:40
06/29/09 12:40
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Several. My first guess is that you've created that file somewhere in the program folder, and under Vista a user without administration rights has no write access to that folder.

Re: Failing to write / read file [Re: jcl] #274967
06/29/09 13:04
06/29/09 13:04
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
I see. Well the user is using windows XP, and the file is already there, its not created by the game.

Re: Failing to write / read file [Re: capanno] #275121
06/30/09 07:44
06/30/09 07:44
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
This can also happen under XP. Better don't write into the program folder, no matter with which OS.

Of course it can also have other reasons.

Re: Failing to write / read file [Re: jcl] #275141
06/30/09 09:39
06/30/09 09:39
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
So what should my first step be? Find out if the user has admin rights?

Re: Failing to write / read file [Re: capanno] #275186
06/30/09 14:24
06/30/09 14:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The first step is improving your program so that it checks what went wrong. When you open and write into a file, check the return values in case the file could not be accessed. You can also read back what you've written, and compare.

When it is confirmed that the user can not write into the file, let him do some simple tests, f.i. writing with Notepad in a file in the same folder. If that also fails, it's an access right problem. Otherwise, it's some other bug in your script.

Re: Failing to write / read file [Re: jcl] #276975
07/07/09 09:57
07/07/09 09:57
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
Its definitely not a bug in the script. Ive sold over 1000 copies of the game and its the first time this is reported.

Im going to try the write in notepad in the same folder idea.


Moderated by  old_bill, Tobias 

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