philmasterplus
Active member
- KoLmafia revision: r20662
Code:
kolmafia.jar
relay/
relay_100familiars.js My relay script (executed by KoLmafia, works fine)
100familiars/
style.css CSS for the relay UI (loads fine)
100familiars.js JS for the relay UI (loads fine)
images/
sort_asc.png Image for the relay UI (not loading)
sort_desc.png Image for the relay UI (not loading)
In the relay browser, my relay script can load CSS and JS files like this:
HTML:
<script src="/100familiars/100familiars.js"></script>
<link rel="stylesheet" href="/100familiars/style.css" />
However, the images fail to load:
HTML:
<img src="/100familiars/images/sort_asc.png" /><!-- image fails to load -->
I tried moving the images to other directories, and it seems that images only work if they are placed inside the
images/
directory under the KoLmafia root.
Code:
kolmafia.jar
images/
100familiars/
sort_asc.png Accessible via /images/100familiars/sort_asc.png
sort_desc.png Accessible via /images/100familiars/sort_desc.png
This is problematic, however, because the
cache clear
command deletes all files under images/
. (I learned this from this post and verified it myself).I tested all other directories allowed under the current SVN spec:
ccs/
, data/
, planting/
, relay/
, scripts/
. However, it appears that only images/
allows custom images.So I am stuck between:
- Placing my images under
images/
, and telling my users never to runcache clear
- ...or not using images at all
Last edited: