![]() |
loadimage or a way to get the images from scriptfiles?
I am currently working on a mini map that is drawn based on the tiles in the level and have made use of the saveimage function to save the mini map file...
However, I cannot seem to find a way to load that image back... Is this simply not possible or am I missing something? any help would be appreciated thank you in advance :) |
By saveimage function, do you mean you save it as a image file? .png, .gif etc?
Or you save the minimap data for each level to files and it isn't loading those files? ;O More info would be nice :o |
I am using
NPC Code: to save a .png file and would like to reload that png file if it is there |
saveimage('filename.png');
|
The problem is not saving the image I am doing that just fine.
If you need to see the exact code... NPC Code: the previously shown was just to give an example of what I was doing... |
Substring player.level.name instead of player.level ^^
|
Well thank you for that correction however I still cannot load the image back o_O
Is there a function for loading .png files from the player? |
Quote:
And, from what I see it, you're doing this clientside, right? |
Would it not be better to have a serverside script doing this, and updating an image file, which is just shown on clientside?
|
Quote:
So I am assuming there is no way to get the image back afterwards? |
Hmmm it's bugged on windows I think, it's saving it but not adding it to the file list.
It should however work fine on Linux and Mac. |
Well I may be misunderstanding you but it is adding the file to scriptfiles but I cannot find a way to access it or check to see if it is there so I can redisplay? :confused:
|
Quote:
Quote:
|
I've checked it, it's not working correcty on Mac/Linux either, will fix it with the next Graal version.
|
Thanks a lot stefan I look forward to updating my mini map system :)
|
Just use clearall() and drawimage() in the drawing panel.
|
Stefan I would like it if you could make the adding to the file list an optional feature with a boolean parameter in saveimage().
This is because I wish to make a script for people to convert images from gif to png using the drawing panel. |
| All times are GMT +2. The time now is 10:22 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.