Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 25th Nov 2012 08:28 Edited at: 25th Nov 2012 08:29
Hey guys,

So here is my problem. When I do my code like this...


it tells me that the path could not be found. The debugger also shows the variable "current_path$" to be blank. If I do this though...



then it works! What gives? Is it maybe that the command "set dir" is starting before the variable "current_path$" has been filled? Thanks for any help

The fastfood zombie killer
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 25th Nov 2012 13:11 Edited at: 25th Nov 2012 13:11
directory(i) what is that?

[http://forum.thegamecreators.com/?m=forum_view&t=201709&b=5]Advanced Updater[/href] for your games!
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 25th Nov 2012 13:47 Edited at: 25th Nov 2012 13:49
I made an array named directory to store the path that has been followed to make it easier to traverse.

say i went to "media/people/cashiers"
it would store it as so...

directory(0) = "media"
directory(1) = "people"
directory(2) = "cashiers"

directory_counter holds the value of the last stored folder, so the array follows the path all the way to it

The fastfood zombie killer
Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 25th Nov 2012 15:42
Well I'm not sure it is the issue you have at the moment, but shouldn't you be adding the slashes in whilst concatenating the directories? Otherwise you'd end up with "mediapeoplecashiers".

As for the problem that is magically resolved by forcing a pause, I'm afraid I'm not sure how to help with out some usable code to test with.


Previously TEH_CODERER.
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 25th Nov 2012 20:50
the slashes are in there, i forgot to add them. I was just curious. I can live with the fraction of a second delay

The fastfood zombie killer

Login to post a reply

Server time is: 2026-07-11 14:52:39
Your offset time is: 2026-07-11 14:52:39