ID:838186
 
(See the best response by DarkCampainger.)
Code:
openNotes() //opens latest dev notes in popup window
var/curNotes = file2text(updateNotes)
var/devNotes = {"
<html>
<head>
<style>
body{
background-color: '#ffffff';
text-color: '#000000';
font-family: Arial
}
</style>
</head>

<body>

<table width=100% border=0>
<tr>
<td>
[curNotes]</td>
</tr>
</table>

</body>
</html>
"}



usr << sound(snd_mfdOpen, channel=7)
winshow(src,"noteswin",1) //opens the popup window
usr << browse(devNotes, "window=noteswin.notesOutput") //puts current notes in main window


//compile list of update note files
var/files = flist("notes/")
var/numFiles = length(files)
winset(src, "noteswin.pvsNotes", "cells = 0x[numFiles]") //set grid
usr << output("<b>Previous Update Notes</b>", "pvsNotes:1,1") //set header for pvsNotes grid

//list previous notes in grid
for(var/i = 1 to numFiles)
usr << output("<a href='?[files[i]]'>[files[i]]</a>", "pvsNotes:1,[i + 1]")
i++
//^^EOV


Problem description:
I have a verb that opens a window and displays the latest version of developer notes for my testers to read. Next to the main window is a grid ("pvsNotes") that displays links to the previous note files so they can review those too if they click on a link. The problem is, this works fine when I compile and run it on my local dev machine, but when I upload it the links don't show up. It's almost like the previous note files aren't being recognized and uploaded. Maybe the single-quotes included in the final output statement aren't being properly translated and sent to the server?

Why would this work on my local machine and not on the BYOND server? Is this a bug, or did I miss something in my code?
Are the note files actually being included with the host files? (you can open up the ZIP to check what's actually inside it)

You'll need to include their directory under the "Additional Files" package option if you don't reference them specifically in the code (with single quotes).
I don't see them in the ZIP. I thought I had included them in the code (with single quotes):

usr << output("<a href='?[files[i]]'>[files[i]]</a>", "pvsNotes:1,[i + 1]")


Did I miss something? Is there some kind of escaped character I need to put in front of the single quotes to make sure they're read literally? That's why I can't tell if this is a bug. AFAIK, I already included the single quotes, which is why the links show up on my local machine?
Best response
You have to specifically reference a file by name in actual single quotes (yours are in a text string) to have it automatically included in the RSC (which isn't what you actually want to do anyways, you need the files to exist on the file system to use flist())

Add the notes/ directory to your package's additional files and it should work.
Ahh. Now I understand.

Adding the "notes/" directory fixed it.

Thanks for the assistance.