GetPath(5) Problem

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

GetPath(5) Problem

Postby Softstar » Mon Dec 31, 2007 11:10 pm

Hello,

I'm trying to make a video play after a set amount of time, so I looked up how to launch a video or sound from vscript. I put the GetPath(5) in the code like it says to, but it always gives me an error, so when I type the full path to the file (e.g. C:\Program Files\Adventure Maker v4.4.0\Projects\ProjectName\External\test.avi") it works. I know that this won't work in a compiled game, so I was wondering what other way I could do this to get it to work, since I'm assuming after trial and error that the GetPath(5) command is not working.

So far;

WORKS:
Code: Select all
PlayVideo "C:\Program Files\Adventure Maker v4.4.0\Projects\ProjectName\External\test.avi", 0, 0, 640, 480, False


DOESN'T WORK (Automation Error, Unspecified Error):
Code: Select all
PlayVideo GetPath(5) + "test.avi", 0, 0, 640, 480, False


And I've already put the code that the documentation said to in the global procedures so PlayVideo and PlaySound commands will work.

Thanks in advance

P.S. I should add that I am putting the code that I put in the code boxes (above) in the code space for the CreateTimedEvent command and I am using double quotes where applicable.
Softstar
Junior Member
 
Posts: 11
Joined: Wed Dec 26, 2007 11:46 pm

Postby Mystery » Tue Jan 01, 2008 3:33 am

Hi Softstar,

There is indeed a mistake in the Help Files, the external folder is path 2.
Change the number (2 instead of 5), then it should work :)
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron