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?
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).