Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
I am I blind or is LiteC? #251095
02/11/09 15:59
02/11/09 15:59
Joined: May 2008
Posts: 10
UK
C
cjm Offline OP
Newbie
cjm  Offline OP
Newbie
C

Joined: May 2008
Posts: 10
UK
Is it beginners 'blindness' or does LiteC ignore any #include if the include filename contains an underscore '_'?

Re: I am I blind or is LiteC? [Re: cjm] #251096
02/11/09 16:05
02/11/09 16:05
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
From the manual:
Topic: #include
Section: Remarks
Content:
Quote:

Script names must not be longer than 15 characters and must not contain spaces or nonstandard characters.


Looks like the underscore is an "nonstandard character".

Re: I am I blind or is LiteC? [Re: Xarthor] #251099
02/11/09 16:17
02/11/09 16:17
Joined: May 2008
Posts: 10
UK
C
cjm Offline OP
Newbie
cjm  Offline OP
Newbie
C

Joined: May 2008
Posts: 10
UK
Thanks for that, Rule 1 read the manual!

I would though have expected a compiler error/warning.
What happens is you get errors about undefined variables/functions it seems the include file is just ignored.

Re: I am I blind or is LiteC? [Re: cjm] #251108
02/11/09 16:56
02/11/09 16:56
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
For me, it works with underscores. Maybe you use the wrong syntax or sth like that?

Re: I am I blind or is LiteC? [Re: Lukas] #251137
02/11/09 18:24
02/11/09 18:24
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
With the underscores it works...

Re: I am I blind or is LiteC? [Re: Widi] #251172
02/11/09 20:49
02/11/09 20:49
Joined: May 2008
Posts: 10
UK
C
cjm Offline OP
Newbie
cjm  Offline OP
Newbie
C

Joined: May 2008
Posts: 10
UK
I was using underscores with a file name exceeding 15 chars!

Ok I didn't read the manual and assumed a legal Windows filename was legal, but a thumbs down from the compiler would have been helpful.

Re: I am I blind or is LiteC? [Re: cjm] #251222
02/12/09 05:59
02/12/09 05:59
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
You can use more then 15 characters in the name,
BUT the first 15 must be unique, otherwise the first
matching file will be used.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: I am I blind or is LiteC? [Re: EvilSOB] #251393
02/12/09 20:41
02/12/09 20:41
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Many engine functions have just a 15 chars buffer, so it is recommented not to use file names longer than 15 chars.


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