local version = "1.0" local url = "" --Update URL img = paintutils.loadImage("/background.nfp") -- Background Image --function init() --end paintutils.drawImage(img, 1, 1)
paintutils.drawImage not working
#1
Posted 15 March 2014 - 09:21 PM
#2
Posted 15 March 2014 - 10:53 PM
#3
Posted 16 March 2014 - 12:02 AM
#4
Posted 16 March 2014 - 02:11 AM
CometWolf, on 15 March 2014 - 10:53 PM, said:
Edited by theoriginalbit, 16 March 2014 - 02:16 AM.
#5
Posted 22 March 2014 - 11:55 PM
#6
Posted 23 March 2014 - 01:28 AM
#7
Posted 23 March 2014 - 01:34 AM
#8
Posted 23 March 2014 - 01:57 AM
Dayrider10, on 23 March 2014 - 01:34 AM, said:
Last time someone had an issue with paintutils images, i suggested the following
CometWolf, on 14 March 2014 - 07:29 AM, said:
local paintutils = setmetatable( { loadImage = function(path) assert(fs.exists(path),"Attempted to load non-existent image file "..path) local image = _G.paintutils.loadImage(path) assert(image,"Attempted to load non image file "..path) return image end }, { __index = _G.paintutils } )
#9
Posted 23 March 2014 - 02:15 AM
CometWolf, on 23 March 2014 - 01:57 AM, said:
Dayrider10, on 23 March 2014 - 01:34 AM, said:
Last time someone had an issue with paintutils images, i suggested the following
CometWolf, on 14 March 2014 - 07:29 AM, said:
local paintutils = setmetatable( { loadImage = function(path) assert(fs.exists(path),"Attempted to load non-existent image file "..path) local image = _G.paintutils.loadImage(path) assert(image,"Attempted to load non image file "..path) return image end }, { __index = _G.paintutils } )
Thanks for letting me know. I thought it was better to do that. Maybe I will have to change my code to fix that up. Thanks. As for this I can't really tell you. Try to make the file a normal paint file with the default paint instead of .nfp. Like this
bgimg = paintutils.loadImage("background") paintutils.drawImage(bgimg ,1 ,1)
#10
Posted 29 March 2014 - 12:05 AM
CometWolf, on 23 March 2014 - 01:57 AM, said:
Dayrider10, on 23 March 2014 - 01:34 AM, said:
Last time someone had an issue with paintutils images, i suggested the following
CometWolf, on 14 March 2014 - 07:29 AM, said:
local paintutils = setmetatable( { loadImage = function(path) assert(fs.exists(path),"Attempted to load non-existent image file "..path) local image = _G.paintutils.loadImage(path) assert(image,"Attempted to load non image file "..path) return image end }, { __index = _G.paintutils } )
local paintutils = setmetatable( { loadImage = function(path) assert(fs.exists(path), "Attempted to load non-existent image file"..path) local image = _G.paintutils.loadImage(path) assert(image,"Attempted to load non image file"..path) return image end }, { __index = _G.paintutils } ) local version = "1.0 BETA" local updateUrl = "" local img = paintutils.loadImage("test") function init() paintutils.drawImage(img, 1, 1) end init()
#11
Posted 29 March 2014 - 12:25 AM
Edited by CometWolf, 29 March 2014 - 12:27 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users