Mudlet 3.0.0-alpha

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-alpha

Post by Vadi »

Normal quotes got converted to smart quotes by the editor, that's why it didn't work “ isn't the same as ". Thanks for the heads up.

If you can come up with something good, I could put a screenshot up for 3.0 final release to show people what is possible.

User avatar
Akaya
Posts: 414
Joined: Thu Apr 19, 2012 1:36 am

Re: Mudlet 3.0.0-alpha

Post by Akaya »

Already working on it ;)

azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Re: Mudlet 3.0.0-alpha

Post by azure_glass »

Hi!

Big thanks to all involved in project Mudlet :)


Something is wrong with "setValue()" i have rose of winds with on 2.1 is working fine but on 3.0 value is refreshing properly when i do "alt+tab". Rest of the code is working normal. (Win 7)
Code: [show] | [select all] lua
function RozaWiatrow()

NW:setValue(1,1)
N:setValue(1,1)
NE:setValue(1,1)
W:setValue(1,1)
E:setValue(1,1)
SW:setValue(1,1)
S:setValue(1,1)
E:setValue(1,1)
D:setValue(1,1)
U:setValue(1,1)



if table.contains(gmcp.room.info.exits, "wschod") then 
   E:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "wschod")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[E]") 
else
   E:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "polnocny-wschod") then 
   NE:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "polnocny-wschod")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[NE]") 
else
   NE:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "poludniowy-wschod") then 
   SE:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "poludniowy-wschod")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[SE]") 
else
   SE:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "poludnie") then 
   S:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "poludnie")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[S]") 
else
   S:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "polnoc") then 
   N:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "polnoc")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[N]") 
else
   N:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "poludniowy-zachod") then 
   SW:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "poludniowy-zachod")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[SW]") 
else
   SW:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "zachod") then 
   W:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "zachod")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[W]") 
else
   W:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "polnocny-zachod") then 
   NW:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "polnocny-zachod")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[NW]") 
else
   NW:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "gora") then 
   U:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "gora")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[U]") 
else
   U:setValue(1,1)
end

if table.contains(gmcp.room.info.exits, "dol") then 
   D:setValue(0,1)
   PodmienianieTabelWyjsc = table.index_of(gmcp.room.info.exits, "dol")
   table.remove(gmcp.room.info.exits, PodmienianieTabelWyjsc)  
   table.insert(gmcp.room.info.exits, "[D]") 
else
   D:setValue(1,1)
end

--PrawyZasobnik



deleteLine()

GMCPWyjsciaTable = table.concat(gmcp.room.info.exits, ", ")

myTableSize = #gmcp.room.info.exits

cecho("\n<yellow>[= "..myTableSize.." =] "..GMCPWyjsciaTable)



end
English is not my native language. If you don't understand what im writing ask. :)
Ubuntu 17.04, Mudlet 3.1

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-alpha

Post by Vadi »

Sorry, what is happening with the gauge?

azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Re: Mudlet 3.0.0-alpha

Post by azure_glass »

Nothing at all

when i go to location gauge is not refreshing
i must especially look for exits to change state of gauge (not always work) or do alt+tab to refresh state of gauge
English is not my native language. If you don't understand what im writing ask. :)
Ubuntu 17.04, Mudlet 3.1

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-alpha

Post by Vadi »

Post all of the gauges, that script you pasted doesn't create them - can't really test.

azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Re: Mudlet 3.0.0-alpha

Post by azure_glass »

Code: [show] | [select all] lua
CalkowityZasobnik = Geyser.Container:new({
    name = "CalkowityZasobnik",
       x = 0,
       y = -60,
   width = "100%",
  height = 60,
   color = "orange",
})



-----------------------------------------------------------------
--                         Prawy Zasobnik
-----------------------------------------------------------------

PrawyZasobnik = Geyser.Container:new({
    name = "PrawyZasobnik",
       x = 0,
       y = 0,
   width = "100px",
  height = 60,
color = "red"
}, CalkowityZasobnik)




-----------------------------------------------------------------
--                         I Linijka Kierunkow
-----------------------------------------------------------------
ILinijkaKierunkow = Geyser.Container:new({
    name = "ILinijkaKierunkow",
       x = 0,
       y = 0,
   width = "80px",
  height = 20,
}, PrawyZasobnik)



    NW = Geyser.Gauge:new({
         name = "NW",
            x = 0,
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, ILinijkaKierunkow)


    N = Geyser.Gauge:new({
         name = "N",
            x = "20px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, ILinijkaKierunkow)



    NE = Geyser.Gauge:new({
      name = "NE",
            x = "40px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, ILinijkaKierunkow)


    U = Geyser.Gauge:new({
      name = "U",
            x = "60px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, ILinijkaKierunkow)

-----------------------------------------------------------------
--                         II Linijka Kierunkow
-----------------------------------------------------------------

IILinijkaKierunkow = Geyser.Container:new({
    name = "IILinijkaKierunkow",
       x = 0,
       y = 20,
   width = "80px",
  height = 20,
}, PrawyZasobnik)


    W = Geyser.Gauge:new({
         name = "W",
            x = 0,
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, IILinijkaKierunkow)


    X = Geyser.Gauge:new({
         name = "X",
            x = "20px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, IILinijkaKierunkow)



    E = Geyser.Gauge:new({
      name = "E",
            x = "40px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, IILinijkaKierunkow)


    Spacja2 = Geyser.Gauge:new({
      name = "Spacja1",
            x = "60px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
      message = " ",
    }, IILinijkaKierunkow)


-----------------------------------------------------------------
--                         III Linijka Kierunkow
-----------------------------------------------------------------



IIILinijkaKierunkow = Geyser.Container:new({
    name = "IIILinijkaKierunkow",
       x = 0,
       y = 40,
   width = "100%",
  height = 20,
}, PrawyZasobnik)


    SW = Geyser.Gauge:new({
         name = "SW",
            x = 0,
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, IIILinijkaKierunkow)


    S = Geyser.Gauge:new({
         name = "S",
            x = "20px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, IIILinijkaKierunkow)



    SE = Geyser.Gauge:new({
      name = "SE",
            x = "40px",
            y = 0,
        width = "18px",
       height = "18px",
      fgColor = "red",
        color = "black",
    }, IIILinijkaKierunkow)



    D = Geyser.Gauge:new({
      name = "D",
            x = "60px",
            y = 0,
        width = "18px",
       height = "18px",	
      fgColor = "red",
        color = "black",
    }, IIILinijkaKierunkow)
English is not my native language. If you don't understand what im writing ask. :)
Ubuntu 17.04, Mudlet 3.1

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-alpha

Post by Vadi »

Both 2.1 and 3.0.0-alpha have the same effect. You do know that Geyser.Gauge does not have an 'fgColor' parameter, only 'color'? See http://www.mudlet.org/geyser/files/geys ... yser.Gauge.

If you want to toggle colours, create labels and hide/show them, much more straightforward than having gauges and setting them to values.

Cail
Posts: 7
Joined: Wed Sep 24, 2014 10:38 pm

Re: Mudlet 3.0.0-alpha

Post by Cail »

The link for download seems to be down. Just thought I'd let you know in case you weren't aware.

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-alpha

Post by Vadi »

I'm not aware. Which link? I have just tried them all as you haven't specified and they all worked.

Post Reply