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
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 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
path "dirname"; #204651
04/30/08 16:03
04/30/08 16:03
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hey Guys.

As the topic name says, I'm searching for the lite-c path function.
I created in the Project Dir some dir's for models, bmps etc.
looks like this:

#include <acknex.h>
#include <default.c>


path "data\\model\\chars";
path "data\\model\\env";
path "data\\model\\plants";
path "data\\bmp";

that's the top of my main lite-c-script.
but when I fire up the engine, it says " path is an undeclared identifier".
what's wrong? I searched for it in the lite-c manual but I found this command only for this purpose. \:o

greetz

Re: path "dirname"; [Re: Roxas] #204656
04/30/08 16:22
04/30/08 16:22
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
lite-c doesnt have the "path"

look for PRAGMA_PATH in the manual.

or use a wdl file with same name as your lite-c file, and write "only" paths in it.


3333333333
Re: path "dirname"; [Re: Quad] #204727
05/01/08 12:12
05/01/08 12:12
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Pragma_path does not work somehow oO
the engine didn't find the mdl's and bmp's when i use pragma path

I can't find it in the manual either.
is this right?
-> #include PRAGMA_PATH "data\\model"


I also tried it with add_folder. It works with the models but it can't find the bmaps oO. what am I doing wrong?


and I tried the thing with the path.wdl and added only path's.
but he can't open the path.wdl
what's the right way to include a wdl file into a lite-c script?

greetz

Re: path "dirname"; [Re: Roxas] #204729
05/01/08 12:39
05/01/08 12:39
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
its under #define in the manual

it should be

#define PRAGMA_PATH "data\\model"

you can define more than 1 pragma_path s.


3333333333
Re: path "dirname"; [Re: Quad] #205727
05/08/08 10:02
05/08/08 10:02
Joined: Feb 2006
Posts: 77
Schwäbisch Gmünd (nähe Stuttga...
M
maglat Offline
Junior Member
maglat  Offline
Junior Member
M

Joined: Feb 2006
Posts: 77
Schwäbisch Gmünd (nähe Stuttga...
 Originally Posted By: Quadraxas
its under #define in the manual

it should be

#define PRAGMA_PATH "data\\model"

you can define more than 1 pragma_path s.


That works great. Thank you.


http://visit-ben.net
Com A7.82
current "big" Project : Undead Defender Adventure
Re: path "dirname"; [Re: maglat] #206196
05/11/08 23:19
05/11/08 23:19
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
 Quote:
what's the right way to include a wdl file into a lite-c script?


Ok say your lite-c script is called hello.c and you want to add paths to resources or a plugin directory.

Just create a file in the same folder as hello.c named hello.wdl
Once you execute the hello.c script, the engine will look for and execute hello.wdl automatically. Therefore there is no need to put #include <hello.wdl> in you hello.c file.

So write all your paths and plugin directories in hello.wdl and the engine will automatically load them.


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