Question Locked
0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm working on a browser-based multiplayer game and we're examining possible solutions for page loading times for dial-up users. What I need to know is how I can set the graphics to load from the client's hard drive if a downloadable graphics pack is offered.
4 replies
by isis_immortal Accepted solution
Clarifications
by baron orlando Accepted solution
One way would be to use absolute paths to the image files in the HTML.
img src="file:///c:/YourAppDir/images/xxx.jpg"
It's not pretty, but it's functional. The biggest issue would be that you would need to make sure that everyone stores the image files on the same drive and in the same folder.
by ic-it Accepted solution
substitute %userprofile% for c: ?
img src="file:///%userprofile%/YourAppDir/images/xxx.jpg"
Obviously I know nothing about html, but it is an environment variable.
by baron orlando Accepted solution
Great idea, but I couldn't get any of the windows environment variables to work in the HTML. I don't think the browsers translate the paths properly.
This discussion is closed to new replies.
Trending Hardware posts
Sort by Trending
Question Locked
Setting up a wifi bridge with switch correctly
0 helpful
5 replies
Question Locked
Experiencing Bottleneck with RTX 4060 + i5-12400F - Need Advice
0 helpful
5 replies
Question Locked
Keyboard
0 helpful
3 replies
Question Locked
Core i7 12700KF or Core i7 12700F ?
0 helpful
9 replies
Question Locked
Looking for honest opinions on gaming PC
0 helpful
5 replies