Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 938 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
File's Manipulation Function Problem !!! #85156
08/08/06 16:52
08/08/06 16:52
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Hi Conitec...

I have a A6 6.40.5 Commercial Edition ....

While I was working on my game using perfect terminology name rule
I have a parameter with more than 30 characters ...
and it works fine with any function ...

but just when I call any function about file manipulation it leads to an error the error is E355 startup failure .... and the message is "Paramete Unknown"

I take long time to know what is the reason for that problem
so did you have any thing about that to tell....

Best Regards....
Mysterious

Re: File's Manipulation Function Problem !!! [Re: Mysterious] #85157
08/10/06 06:43
08/10/06 06:43
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Hi agian ....

I can't figure out why there is no any answer about my questions ...

is my questions not clear for you or something like that .. or what ???

Mysterious

Re: File's Manipulation Function Problem !!! [Re: Mysterious] #85158
08/10/06 08:48
08/10/06 08:48
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Well I personaly don't quite get it.
You have a parameter of a function which is 30 characters long?
- Is it a string?
- Could you post a little bit of code?

Re: File's Manipulation Function Problem !!! [Re: Xarthor] #85159
08/10/06 11:55
08/10/06 11:55
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
ok no problem...


Code:
 

string My_Game_GUI_Write_User_Name_into_the_temp_File_STR;
function my_function()
{
str_CPY(My_Game_GUI_Write_User_Name_into_the_temp_File,"Mysterious");
var my_file_handler;
my_file_handler = file_open_write("temp_file.txt");
file_open_write(my_file);
file_str_write(my_file,My_Game_GUI_Write_User_Name_into_the_temp_File);
file_close(my_file);
}




of course you may say that I can make it less than 30 characters but actually this is not the point ...
in my game there is many variables or strings that must be more than 30 chars

and the main question is why something like that should happened
I feel more comfortable when I use name for variables which is really describe why I use this variable ...

I hope you got my point ...
and I am waiting for your help

best regards
Mysterious

Re: File's Manipulation Function Problem !!! [Re: Mysterious] #85160
08/10/06 12:07
08/10/06 12:07
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
"A name may consist of up to 30 letters."

Manual -> C-Script -> Syntax. Hope this helps.

Re: File's Manipulation Function Problem !!! [Re: jcl] #85161
08/10/06 17:36
08/10/06 17:36
Joined: Sep 2005
Posts: 159
The Netherlands
D
Dutchie666 Offline
Member
Dutchie666  Offline
Member
D

Joined: Sep 2005
Posts: 159
The Netherlands
and another thing:

string My_Game_GUI_Write_User_Name_into_the_temp_File_STR;
function my_function()
{
str_CPY(My_Game_GUI_Write_User_Name_into_the_temp_File,"Mysterious");
var my_file_handler;
my_file_handler = file_open_write("temp_file.txt");
file_open_write(my_file);
file_str_write(my_file,My_Game_GUI_Write_User_Name_into_the_temp_File);
file_close(my_file);
}

Re: File's Manipulation Function Problem !!! [Re: Dutchie666] #85162
08/10/06 18:05
08/10/06 18:05
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Well I'm working with GameStudio for nearly 5 years now and have never ever needed such long names.
You should really consider how to abbreviate your object names.

Re: File's Manipulation Function Problem !!! [Re: Xarthor] #85163
08/10/06 20:20
08/10/06 20:20
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
The longest name I have for something is about 24 or so characters and it's a function. I otherwise don't know how to shorten it (from three long words). As a general rule, try shortening everything to no more than 20 characters whenever possible. Only exceed it if you don't seem to have any other method for shortening it.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: File's Manipulation Function Problem !!! [Re: ulillillia] #85164
08/12/06 11:05
08/12/06 11:05
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
first ... thanks for answers..all of you

second ... ok maybe I have to make some shortening there.....

but the big problem is when I declare a function it doesn't make any problem
only when use file's manipulation or even predefined functions it makes that problem ...

anyway ... could you tell me why this Limit and only with predefined function??

waiting for answers....

Mysterious


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