Signup Now
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28
  1. #11
    Free User
    Join Date
    Mar 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0
    I have the same problem, even with the v2.0.0,

    Using Windows 8.1

  2. #12
    Free User
    Join Date
    Oct 2014
    Posts
    29
    Reputation
    10
    Rep Power
    0
    Me too .. windbot crashes whenever this HUD is enabled, even with the old version you gave to us.
    Is there any fix for this situation?
    I really would appreciate (and even pay for it!) a working PM HUD script.

  3. #13
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Pitoquinha View Post
    Me too .. windbot crashes whenever this HUD is enabled, even with the old version you gave to us.
    Is there any fix for this situation?
    I really would appreciate (and even pay for it!) a working PM HUD script.
    Quote Originally Posted by leleog View Post
    I have the same problem, even with the v2.0.0,

    Using Windows 8.1

    Not that I don't want to do a working version, I can't recreate the error, it works good for me. I was talking with Lucas about it and he'll be checking future crash reports for this so I can find the bug, just make sure you use this hud again tomorrow and send the picture of your crash reports.

  4. #14
    Free User
    Join Date
    Oct 2014
    Posts
    29
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Leonardo View Post
    Not that I don't want to do a working version, I can't recreate the error, it works good for me. I was talking with Lucas about it and he'll be checking future crash reports for this so I can find the bug, just make sure you use this hud again tomorrow and send the picture of your crash reports.
    Where is the crash reports located? Is there a log or something I could check?
    Because the bot doesnt shows up any alert box or anything, it just completely closes.

  5. #15
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by Pitoquinha View Post
    Where is the crash reports located? Is there a log or something I could check?
    Because the bot doesnt shows up any alert box or anything, it just completely closes.
    windbot folder
    Helped you? REP+

  6. #16
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Pitoquinha View Post
    Where is the crash reports located? Is there a log or something I could check?
    Because the bot doesnt shows up any alert box or anything, it just completely closes.
    The crashes are sent to Lucas if there are any, but only if they appear in the screen I guess.

  7. #17
    Free User downloadkct's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    1,166
    Reputation
    25
    Rep Power
    23
    Its not crashing for me but if i keep the bot running ANY script with this PMhud it will suddenly close itself without any kind of crash. Died twice because i didnt notice the windbot wasnt running anymore. Deleting this hud made it stop
    Old 'n Proud Neobot-Elfbot and blackd user

  8. #18
    Free User
    Join Date
    Oct 2014
    Posts
    29
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by downloadkct View Post
    Its not crashing for me but if i keep the bot running ANY script with this PMhud it will suddenly close itself without any kind of crash. Died twice because i didnt notice the windbot wasnt running anymore. Deleting this hud made it stop
    Yep, thats exactly what happens .. the bot simply closes.

  9. #19
    Free User downloadkct's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    1,166
    Reputation
    25
    Rep Power
    23
    I saw it happening
    Someone sent me a message then the PMHUD was partially black and totally to the right (like a giant message) and 2 seconds later the entire windbot wasnt responding, then it closed itself with no crashes. Maybe decreasing the Length = 60 to 20~30 will solve the problem (decreasing to 20~30 will make the message unreadable but atleast we will know someone sent a message when we wasnt looking)


    Edit:

    SEEMS to be working, didnt test it long enough but i tested some spam and stuff:

    Code:
    init start
    
    	-- VERSION 2.2.0a --
    
    	local Config = {
    		Sent = false,
    		Received = true,
    		MaxLines = 5,
    		Scroll = false,
    		Length = 20,
    	}
    
    	-- DO NOT EDIT BELOW THIS LINE --
    
    	PrivateMessages = PrivateMessages or {}
    
    	local HUD = {
    		Restart = -1,
    		Start = 1,
    		End = Config.MaxLines,
    		strStart = 1,
    		strEnd = 60,
    		strMax = 60,
    		Position = {$worldwin.right + 3, $worldwin.bottom - (Config.MaxLines * 16)},
    		Auxiliar = {0, 0},
    		ColumnWidth = {125, 12},
    		Moving = false,
    		Blue = {0.0, color(36, 68, 105, 20), 0.23, color(39, 73, 114, 20), 0.76, color(21, 39, 60, 20)},
    		Black = {0.0, color(75, 75, 75, 20), 0.23, color(45, 45, 45, 20), 0.76, color(19, 19, 19, 20)},
    		Orange = {0.0, color(145, 95, 0, 20), 0.23, color(158, 104, 0, 20), 0.76, color(84, 55, 0, 20)},
    		Green = {0.0, color(65, 96, 12, 20), 0.23, color(67, 99, 13, 20), 0.76, color(36, 52, 6, 20)},
    		Red = {0.0, color(90, 12, 15, 20), 0.23, color(98, 13, 17, 20), 0.76, color(52, 6, 9, 20)},
    	}
    
    	local tempPos = $chardb:getvalue('AWE.PM', 'POSITION')
    
    	if tempPos then
    		tempPos = tempPos:explode(":")
    		HUD.Position = {tonumber(tempPos[1]), tonumber(tempPos[2])}
    	end
    
    	filterinput(true, true, true, Config.Scroll) setfillstyle('gradient', 'linear', 2, 0, 0, 0, 14) setfontstyle('Tahoma', 8, 50, 0xFFFFFF, 1, color(0, 0, 0, 50))
    
        function inputevents(e)
            if e.type == IEVENT_RMOUSEDOWN or e.type == IEVENT_MMOUSEDOWN then
                HUD.Moving, HUD.Auxiliar = true, {$cursor.x - HUD.Position[1], $cursor.y - HUD.Position[2]}
            elseif e.type == IEVENT_RMOUSEUP or e.type == IEVENT_MMOUSEUP then
                HUD.Moving = false
            elseif e.type == IEVENT_MOUSEWHEEL then
    			if iskeypressed(0x12) then
    				if e.value2 < 0 then
    					HUD.strStart, HUD.strEnd = HUD.strStart - 1, HUD.strEnd - 1
    				elseif e.value2 > 0 then
    					HUD.strStart, HUD.strEnd = HUD.strStart + 1, HUD.End + 1
    				end
    				if HUD.strStart > HUD.strMax then
    					HUD.strStart, HUD.strEnd = 1, 30
    				end
    			else
    				if #PrivateMessages > Config.MaxLines then
    					if e.value2 < 0 then
    						if HUD.Start <= #PrivateMessages - Config.MaxLines then
    							HUD.Start, HUD.End = HUD.Start + 1, HUD.End + 1
    						end
    					elseif e.value2 > 0 then
    						if HUD.End > Config.MaxLines then
    							HUD.Start, HUD.End = HUD.Start - 1, HUD.End - 1
    						end
    					end
    				end
    			end
    	    elseif e.type == IEVENT_LMOUSEUP then
    			if e.elementid == HUD.Restart then
    				PrivateMessages = {}
    			end
    		end
    	end
    
    	local function displaytext(text, x, y, c)
    		addgradcolors(unpack(c))
    		local w, h = measurestring(text)
    		HUD.ColumnWidth[1], HUD.ColumnWidth[2] = math.max(HUD.ColumnWidth[1], w or 0), math.max(HUD.ColumnWidth[2], h or 0)
    		local t = drawroundrect(x, y, HUD.ColumnWidth[1] + 7, HUD.ColumnWidth[2], 2, 2)
    		drawtext(text, x + 2, y + math.floor(HUD.ColumnWidth[2] / 4) - 2.4)
    		return t
    	end
    
    init end
    
    if HUD.Moving then
        auto(10)
        HUD.Position = {$cursor.x - HUD.Auxiliar[1], $cursor.y - HUD.Auxiliar[2]}
    	$chardb:setvalue('AWE.PM', 'POSITION', table.concat(HUD.Position, ':'))
    end
    
    foreach newmessage m do
    	if m.channel:lower() ~= 'npcs' and (Config.Sent and m.type == MSG_SENT) or (Config.Received and m.type == MSG_PVT) then
    		table.insert(PrivateMessages, {text = string.format("%s %s [%s]: %s", os.date('%H:%M'), m.sender, m.level, m.content), color = m.type == MSG_PVT and HUD.Orange or HUD.Black})
    	end
    end
    
    local x, y, w, h = 0, 0, 0, 0
    
    displaytext(" Private Messages:", x, y, HUD.Blue)
    addgradcolors(unpack(#PrivateMessages > 0 and HUD.Green or HUD.Red))
    
    w, h = measurestring("RESET")
    HUD.ColumnWidth[1] = math.max(HUD.ColumnWidth[1], w)
    HUD.Restart = drawroundrect(x - w + HUD.ColumnWidth[1], y, w + 7, h, 2, 2)
    
    drawtext("RESET", 5 + x - w + HUD.ColumnWidth[1], y + math.floor(h / 4) - 2.4)
    
    y = y + 20
    
    for i = HUD.Start, HUD.End do
    	if PrivateMessages[i] then
    		local msg = PrivateMessages[i].text
    		local h, j = math.max(1, HUD.strStart), math.max(msg:len(), HUD.strEnd)
    		HUD.strMax = math.max(HUD.strMax, msg:len())
    		if h == 2 then
    			msg = "." .. msg:sub(h, j)
    		elseif h == 3 then
    			msg = ".." .. msg:sub(h, j)
    		elseif h >= 4 then
    			msg = "..." .. msg:sub(h, j)
    		else
    			msg = msg:sub(h, j)
    		end
    		displaytext(msg:fit(Config.Length or 60), x, y, PrivateMessages[i].color)
    
    		y = y + 16
    	end
    end
    
    setposition(HUD.Position[1], HUD.Position[2])
    Last edited by downloadkct; 01-22-2016 at 09:27 PM.
    Old 'n Proud Neobot-Elfbot and blackd user

  10. #20
    Free User zoxovsky's Avatar
    Join Date
    Aug 2014
    Posts
    49
    Reputation
    2
    Rep Power
    0
    Quote Originally Posted by downloadkct View Post
    I saw it happening
    Someone sent me a message then the PMHUD was partially black and totally to the right (like a giant message) and 2 seconds later the entire windbot wasnt responding, then it closed itself with no crashes. Maybe decreasing the Length = 60 to 20~30 will solve the problem (decreasing to 20~30 will make the message unreadable but atleast we will know someone sent a message when we wasnt looking)


    Edit:

    SEEMS to be working, didnt test it long enough but i tested some spam and stuff:

    Code:
    init start
    
    	-- VERSION 2.2.0a --
    
    	local Config = {
    		Sent = false,
    		Received = true,
    		MaxLines = 5,
    		Scroll = false,
    		Length = 20,
    	}
    
    	-- DO NOT EDIT BELOW THIS LINE --
    
    	PrivateMessages = PrivateMessages or {}
    
    	local HUD = {
    		Restart = -1,
    		Start = 1,
    		End = Config.MaxLines,
    		strStart = 1,
    		strEnd = 60,
    		strMax = 60,
    		Position = {$worldwin.right + 3, $worldwin.bottom - (Config.MaxLines * 16)},
    		Auxiliar = {0, 0},
    		ColumnWidth = {125, 12},
    		Moving = false,
    		Blue = {0.0, color(36, 68, 105, 20), 0.23, color(39, 73, 114, 20), 0.76, color(21, 39, 60, 20)},
    		Black = {0.0, color(75, 75, 75, 20), 0.23, color(45, 45, 45, 20), 0.76, color(19, 19, 19, 20)},
    		Orange = {0.0, color(145, 95, 0, 20), 0.23, color(158, 104, 0, 20), 0.76, color(84, 55, 0, 20)},
    		Green = {0.0, color(65, 96, 12, 20), 0.23, color(67, 99, 13, 20), 0.76, color(36, 52, 6, 20)},
    		Red = {0.0, color(90, 12, 15, 20), 0.23, color(98, 13, 17, 20), 0.76, color(52, 6, 9, 20)},
    	}
    
    	local tempPos = $chardb:getvalue('AWE.PM', 'POSITION')
    
    	if tempPos then
    		tempPos = tempPos:explode(":")
    		HUD.Position = {tonumber(tempPos[1]), tonumber(tempPos[2])}
    	end
    
    	filterinput(true, true, true, Config.Scroll) setfillstyle('gradient', 'linear', 2, 0, 0, 0, 14) setfontstyle('Tahoma', 8, 50, 0xFFFFFF, 1, color(0, 0, 0, 50))
    
        function inputevents(e)
            if e.type == IEVENT_RMOUSEDOWN or e.type == IEVENT_MMOUSEDOWN then
                HUD.Moving, HUD.Auxiliar = true, {$cursor.x - HUD.Position[1], $cursor.y - HUD.Position[2]}
            elseif e.type == IEVENT_RMOUSEUP or e.type == IEVENT_MMOUSEUP then
                HUD.Moving = false
            elseif e.type == IEVENT_MOUSEWHEEL then
    			if iskeypressed(0x12) then
    				if e.value2 < 0 then
    					HUD.strStart, HUD.strEnd = HUD.strStart - 1, HUD.strEnd - 1
    				elseif e.value2 > 0 then
    					HUD.strStart, HUD.strEnd = HUD.strStart + 1, HUD.End + 1
    				end
    				if HUD.strStart > HUD.strMax then
    					HUD.strStart, HUD.strEnd = 1, 30
    				end
    			else
    				if #PrivateMessages > Config.MaxLines then
    					if e.value2 < 0 then
    						if HUD.Start <= #PrivateMessages - Config.MaxLines then
    							HUD.Start, HUD.End = HUD.Start + 1, HUD.End + 1
    						end
    					elseif e.value2 > 0 then
    						if HUD.End > Config.MaxLines then
    							HUD.Start, HUD.End = HUD.Start - 1, HUD.End - 1
    						end
    					end
    				end
    			end
    	    elseif e.type == IEVENT_LMOUSEUP then
    			if e.elementid == HUD.Restart then
    				PrivateMessages = {}
    			end
    		end
    	end
    
    	local function displaytext(text, x, y, c)
    		addgradcolors(unpack(c))
    		local w, h = measurestring(text)
    		HUD.ColumnWidth[1], HUD.ColumnWidth[2] = math.max(HUD.ColumnWidth[1], w or 0), math.max(HUD.ColumnWidth[2], h or 0)
    		local t = drawroundrect(x, y, HUD.ColumnWidth[1] + 7, HUD.ColumnWidth[2], 2, 2)
    		drawtext(text, x + 2, y + math.floor(HUD.ColumnWidth[2] / 4) - 2.4)
    		return t
    	end
    
    init end
    
    if HUD.Moving then
        auto(10)
        HUD.Position = {$cursor.x - HUD.Auxiliar[1], $cursor.y - HUD.Auxiliar[2]}
    	$chardb:setvalue('AWE.PM', 'POSITION', table.concat(HUD.Position, ':'))
    end
    
    foreach newmessage m do
    	if m.channel:lower() ~= 'npcs' and (Config.Sent and m.type == MSG_SENT) or (Config.Received and m.type == MSG_PVT) then
    		table.insert(PrivateMessages, {text = string.format("%s %s [%s]: %s", os.date('%H:%M'), m.sender, m.level, m.content), color = m.type == MSG_PVT and HUD.Orange or HUD.Black})
    	end
    end
    
    local x, y, w, h = 0, 0, 0, 0
    
    displaytext(" Private Messages:", x, y, HUD.Blue)
    addgradcolors(unpack(#PrivateMessages > 0 and HUD.Green or HUD.Red))
    
    w, h = measurestring("RESET")
    HUD.ColumnWidth[1] = math.max(HUD.ColumnWidth[1], w)
    HUD.Restart = drawroundrect(x - w + HUD.ColumnWidth[1], y, w + 7, h, 2, 2)
    
    drawtext("RESET", 5 + x - w + HUD.ColumnWidth[1], y + math.floor(h / 4) - 2.4)
    
    y = y + 20
    
    for i = HUD.Start, HUD.End do
    	if PrivateMessages[i] then
    		local msg = PrivateMessages[i].text
    		local h, j = math.max(1, HUD.strStart), math.max(msg:len(), HUD.strEnd)
    		HUD.strMax = math.max(HUD.strMax, msg:len())
    		if h == 2 then
    			msg = "." .. msg:sub(h, j)
    		elseif h == 3 then
    			msg = ".." .. msg:sub(h, j)
    		elseif h >= 4 then
    			msg = "..." .. msg:sub(h, j)
    		else
    			msg = msg:sub(h, j)
    		end
    		displaytext(msg:fit(Config.Length or 60), x, y, PrivateMessages[i].color)
    
    		y = y + 16
    	end
    end
    
    setposition(HUD.Position[1], HUD.Position[2])
    Work good, but its possible to make it automatic scrool when is 6+msgs?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •