[Logo] VUE Users Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Login] Login 
If this is your first visit to the new VUE forums, you can login using the same username and password you currently use on VUE's website. If you need an account, please create one through VUE's website. If you have problems, please contact us via the contact form on http://vue.tufts.edu
relative paths to resources in .vue files  XML
Forum Index » Wish List
Author Message
kewapo KW


Joined: 08/08/2008 11:36:13
Messages: 26
Offline

I think it is an error to register absolute path to resources.
People usually copy and share the .vue map and all its directory between computers and hard disks, and the letter of the unit may change.

And its important that VUE can make HTML and other formats of all the maps with all its resources in an relative way. In the 3.2.2 version this is not posible in an easy way (look at https://vue-forums.uit.tufts.edu/posts/list/1258.page).

This message was edited 1 time. Last update was at 05/14/2014 08:53:34

Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

This is why we have VPKs so resources will get packaged with the map and paths will be relative within the zip file.
kewapo KW


Joined: 08/08/2008 11:36:13
Messages: 26
Offline

But the problem is when you have to share your maps with people without the software, or if you want to construct a web site with the maps in the html format.

What is the correct way to do this?
Jan Wunderlich


Joined: 10/05/2011 12:20:49
Messages: 10
Offline

But the problem is when you have to share your maps with people without the software, or if you want to construct a web site with the maps in the html format.

What is the correct way to do this?


I have the same problem. I want to share maps in their html format, so I can upload them to a server and point others to them.

Unfortunately, while the package-files (.vpk) works fine for porting maps to open them with VUE somewhere else, the links to the resources are "absolute" in the generated html-code.

There is a quick and comfortable workaround for this, though:
  • Open the .html file in some editor like the native Windows "Editor", Notepad+ or PSPad.
  • Find the link to your first resource (e.g. href="c:\users\UserName\foo\bar\Filename_Of_The_Resource_File.xxx" )
  • Find all instances of the absolute filepath (marked red above plus the leading quotation marks) and replace it with only the leading quotation marks["]

  • This will remove all absolute path information from the entire file, leaving only the filenames and the necessary quotation marks (example: href="FileName.xxx" )

    This message was edited 1 time. Last update was at 08/13/2014 05:05:00

     
    Forum Index » Wish List
    Go to:   
    Powered by JForum 2.1.8 © JForum Team