Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Remove File Path? #203577
04/22/08 20:47
04/22/08 20:47
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Is there anyway to remove a path after adding it like so?

add_folder("%EXE_DIR%\\work\\Levels");
add_folder("%EXE_DIR%\\work\\Levels\\Dyna Greens");
add_folder("%EXE_DIR%\\work\\Levels\\Dyna Greens\\Lightmaps");
add_folder("%EXE_DIR%\\work\\Levels\\Dyna Greens\\Materials");

I need this since I have many levels, and would easily go over the path limit if there is no way to remove file paths. I basically want to manage what file paths I have according to which level I'm using.

Also, is there anyway to have a script exclusive to the level your loading? I like how you can do this when loading out of WED or SED(set thru map properties in WED), but I can't seem to find a way to do it in game(cannot add includes in functions and remove them). And level_load doesn't take the levels script into account.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Remove File Path? [Re: William] #217238
07/22/08 07:09
07/22/08 07:09
Joined: Jun 2008
Posts: 91
C
Coisox Offline
Junior Member
Coisox  Offline
Junior Member
C

Joined: Jun 2008
Posts: 91
How to use that syntax? I'm using Lite-C Free.

I tried placing it at the first line of my main(). I also tried to place at my global variables. But when running the game, "Invalid pointer..."

Oh, fyi, I use it to point to my HighScore.txt. Maybe the syntax only for bmp and models but not .txt?

Re: Remove File Path? [Re: Coisox] #217273
07/22/08 12:36
07/22/08 12:36
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
The manual says that theoretically you can have up to 32 paths, but its not wise because of how long it takes to search through all of them.

Is this per script file? Or is it the total through-out the project. If it is per script file then you could use several .wdl files and include them into the main script.

To destroy the buffer of the add_folder function you can use the add_new function.

"Removes all file buffers and the resource and folder path, and cancels all previous add_buffer, add_folder, and add_resource calls."

Hope it helps.

Last edited by DJBMASTER; 07/22/08 12:37.

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