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
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 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
add_folders() not working 100%? #228764
09/22/08 09:55
09/22/08 09:55
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Hi Everyone,

If i have missed something previously posted or discussed
please post the links.

I've just noticed that add_folder() seems to not work 100%.

I have:
Code:
add_folder("D:\\VISUAL STUDIO PROJECTS\\$(SolutionName)\\images\\");
	add_folder("D:\\VISUAL STUDIO PROJECTS\\$(SolutionName)\\maps\\");
	add_folder("D:\\VISUAL STUDIO PROJECTS\\$(SolutionName)\\models\\");


and when i load any images:
mCursor = bmap_create("arrowblue.pcx");

this works fine without having to use

"..\\arrowblue.pcx"

But loading LEVEL or ENTITY seems to need the path?

"..\\maps\\ProjectTest.wmb"
"..\\models\\cbabe.mdl"

This does defeat the object of add_folder() ??

Has anyone else noticed this?


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: add_folders() not working 100%? [Re: pararealist] #228775
09/22/08 13:57
09/22/08 13:57
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Hmm, neither is "$(SolutionName)" a valid folder, nor is "..\\maps\\ProjectTest.wmb" a valid file name.

I suppose you were confusing Visual Studio macros with path names? Those macros are for Visual Studio only and won't work in other programs.

Re: add_folders() not working 100%? [Re: jcl] #228816
09/22/08 19:59
09/22/08 19:59
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
"$(SolutionName)" is my visual studio environment variable and works
and "..\\maps\\ProjectTest.wmb" works too, so how can they not be valid?

Its only when i remove the ..\\maps\\ it does not work, yet the other folder (images) work without path.
Strange.

OK I set the proper path:
add_folder("D:\\VISUAL STUDIO PROJECTS\\GAMEA7VC\\images\\");
etc...
and all works as it should.



Last edited by pararealist; 09/22/08 20:55.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.

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