Page MenuHomeFeedback Tracker

htmlLoad requires filepatching to read file inside pbo
Assigned, WishlistPublic

Description

Cannot load .html files that reside in .pbo using htmlLoad command unless filepatching is enabled on both server and client

example @mod can be downloaded from a zip file here:
https://copy.com/Y3ELvk1H1fFVquGM

server settings:
allowedFilePatching = 0;
allowedLoadFileExtensions[] = {"html"};
allowedPreprocessFileExtensions[] = {"sqf","html"};
allowedHTMLLoadExtensions[] = {"html","txt"};

Details

Legacy ID
3595109932
Severity
None
Resolution
Open
Reproducibility
Have Not Tried
Category
Scripting
Steps To Reproduce

//Doesn't work
createDialog "html_issue_dialog"; ((findDisplay 70000) displayCtrl 71000) htmlLoad "html\changelog.html"
createDialog "html_issue_dialog"; ((findDisplay 70000) displayCtrl 71000) htmlLoad "\html\changelog.html"

//Works
createDialog "html_issue_dialog"; ((findDisplay 70000) displayCtrl 71000) htmlLoad "https://community.bistudio.com"

//Works with filepatching enabled
createDialog "html_issue_dialog"; ((findDisplay 70000) displayCtrl 71000) htmlLoad "html\changelog.html"

Event Timeline

raymix edited Steps To Reproduce. (Show Details)Oct 12 2015, 8:59 PM
raymix set Category to Scripting.
raymix set Reproducibility to Have Not Tried.
raymix set Severity to None.
raymix set Resolution to Open.
raymix set Legacy ID to 3595109932.May 8 2016, 12:56 PM
Adam added a comment.Oct 15 2015, 8:35 AM

Fixed on devbranch.