[WIP] Furnace in LUA

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

[WIP] Furnace in LUA

by lkjoel » Sun Apr 22, 2012 04:17

Ok, this is ridiculous. The furnace was implemented in C++ while it could have been easily made in LUA. So I'm spending a bit of time porting it over, and then it will be very easy to tweak ;)
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36

by LolManKuba » Sun Apr 22, 2012 15:26

Would it be like in Minecraft like when your cooking something it like turns on and gives a bit of light? And will it show you how much power the coal ect. has left?
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Sun Apr 22, 2012 16:09

Hmm. .. lkjoel, feel like expanding that furnace to, say, five states?

  • Empty/out of fuel (the standard furnace texture)
  • Fueled but idle (same thing but with some kind of "generic" fuel loaded into the bottom slot)
  • Fueled and cooking: full, 2/3 and 1/3 fuel remaining, relative to the largest quantity possible of the fuel being used.

I'll make the necessary textures using data from my existing packs.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Sun Apr 22, 2012 16:12

@LolManKuba, yeah, that's what I was thinking.
@VanessaE, Interesting idea... I'll try to do that too.
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Sun Apr 22, 2012 16:35

I should point out that what I envision for the three "active" states is the fire underneath burning at various intensities, and emitting a corresponding amount of light (which is a gradient drawn on the fireplace's front in my case; I've no opinion one way or another whether it should produce actual light in the game :-) ).

EDIT: expand suggestion to nine states: empty, four fueled-but-idle states (full, 3/4, 1/2, 1/4), and four fueled-and-cooking states (same levels). When the item to be smelted/cooked runs out, the furnace should switch from whatever fueled-and-cooking image is being used at that moment to the corresponding fueled-but-idle image, and vice-versa when new raw items are added. When fuel is added, removed, or burned, the displayed image should change to reflect the new state.
Last edited by VanessaE on Sun Apr 22, 2012 17:09, edited 1 time in total.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Sun Apr 22, 2012 17:09

So nine states?
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Sun Apr 22, 2012 17:10

Yep! :-)
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36

by LolManKuba » Sun Apr 22, 2012 17:11

lkjoel you're almost at your 400th post.
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Sun Apr 22, 2012 18:47

almost ;)
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Sun Apr 22, 2012 19:08

yep.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

Roflo
Member
 
Posts: 51
Joined: Sun Nov 06, 2011 16:31

by Roflo » Sun Apr 22, 2012 20:49

Some time ago, there was a luafurnace in experimental mod:

https://github.com/celeron55/minetest/commits/master/games/minimal/mods/experimental/init.lua

If you look at the current version, there's still a commented block.
And if you look at old versions, seems like c55 wanted to give it a shot some time ago:

https://github.com/celeron55/minetest/blob/103d4793f00b2dd592739f686e90370c2d8953a3/data/mods/experimental/init.lua
Last edited by Roflo on Sun Apr 22, 2012 20:54, edited 1 time in total.
Unless otherwise specified: I use linux and run (and compile) the latest dev.
 

Nemo08
Member
 
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Sun Apr 22, 2012 20:56

Roflo wrote:Some time ago, there was a luafurnace in experimental mod:

https://github.com/celeron55/minetest/commits/master/games/minimal/mods/experimental/init.lua

luafurnace with getting recipes was removed then itemdef patch was merged. but celeron promises think about, we remember this!! ^^

P.S.
kahrl:
Shortcomings

It's currently not possible to retrieve the result of a crafting operation from Lua. Therefore you can't rewrite the current furnaces in Lua.

from wiki
Last edited by Nemo08 on Sun Apr 22, 2012 21:00, edited 1 time in total.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 69 guests

cron