Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 8,381 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Creating a relative path #298400
11/14/09 18:19
11/14/09 18:19
Joined: Aug 2009
Posts: 19
D
Dominator Offline OP
Newbie
Dominator  Offline OP
Newbie
D

Joined: Aug 2009
Posts: 19
In the game I am making I have my script in a folder. I want to make a relative path that goes down one level to a background folder.

With the help in the manual I cant figure out how to make the path.

Re: Creating a relative path [Re: Dominator] #298423
11/14/09 22:01
11/14/09 22:01
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
#define PRAGMA_PATH "Sound";

Re: Creating a relative path [Re: Widi] #298445
11/15/09 03:27
11/15/09 03:27
Joined: Nov 2009
Posts: 34
S
Sepiantum Offline
Newbie
Sepiantum  Offline
Newbie
S

Joined: Nov 2009
Posts: 34
you could do something like this:

FILE* fp = file_open("folder\\another folder\\file.txt");

Or something along the lines of that. Just use the escape sequence \\ for a \ to define your path.

Re: Creating a relative path [Re: Sepiantum] #298545
11/15/09 22:26
11/15/09 22:26
Joined: Aug 2009
Posts: 19
D
Dominator Offline OP
Newbie
Dominator  Offline OP
Newbie
D

Joined: Aug 2009
Posts: 19
I want the whole folder to be there not just a single file.
I also tried the first way and it still couldn't find the image.

To clarify I want to create a path to go down one folder level from my main script.

Re: Creating a relative path [Re: Dominator] #298686
11/16/09 22:30
11/16/09 22:30
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

You could try

#define PRAGMA_PATH "..\\Models";


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Creating a relative path [Re: Ottawa] #298952
11/19/09 16:54
11/19/09 16:54
Joined: Aug 2009
Posts: 19
D
Dominator Offline OP
Newbie
Dominator  Offline OP
Newbie
D

Joined: Aug 2009
Posts: 19
Yes, it worked to create it like that.

thank you for the help.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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