SRL Archive - OSR Help

ScriptPath: Not showing correct location?


Press Play

2013-01-17 21:26:30

I'm was running a test for my Auto-Updater that I'm implementing into one of my old scripts, when I came across this. All the default paths are correct except for ScriptPath. Help?


tehq

2013-01-17 21:57:43

C:\Simba\Scripts\

Press Play

2013-01-17 22:27:55

From: tehq
C:\Simba\Scripts\


That's what my test program should output, but it doesn't. I've tried changing up a few things, and it won't change. My point is that I can have my Auto-Updater save the new script in the user's default path, eg:
CreateFile(ScriptPath+'Script'+LatestVer+'.simba')

Justin

2013-01-17 22:29:16

Submit a bug report on: http://bugs.villavu.com

Press Play

2013-01-17 22:36:39

From: Justin
Submit a bug report on: http://bugs.villavu.com


Yeah, probably the best I guess. Will do. Cheers.

riwu

2013-01-18 00:14:31

It's not a bug.
From the title you simba is 'untitled' which i assume it means you haven't save the file to anywhere.
Since you haven't save the file, it would return the folder containing simba.exe.

The script path in your screenshot is simply a default path for opening/saving scripts etc.
Just try saving the script to somewhere and ScriptPath would work ;)

Press Play

2013-01-18 01:29:34

From: riwu
It's not a bug.
From the title you simba is 'untitled' which i assume it means you haven't save the file to anywhere.
Since you haven't save the file, it would return the folder containing simba.exe.

The script path in your screenshot is simply a default path for opening/saving scripts etc.
Just try saving the script to somewhere and ScriptPath would work ;)


Ahhhh, I didn't think it was a bug… Which was why I posted it here. I'm not even going to test it - I believe you :p