[ALPHA] Crafter

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

[ALPHA] Crafter

by Oil_boi » Post

I have been live streaming building this game and I am having a lot of fun. This game is built from scratch with a bunch of assets from Mineclone 2

This is designed to run on 5.3.0-DEV

GAME

CLIENT MOD

DISCORD CHANNEL

This is too difficult to keep up to date! If you want to see changes in action go to my youtube channel:
YOUTUBE


Here's a screenshot with a little bit of everything thrown into it
Image

License: GPL 3
Attachments
this.png
this.png (976.76 KiB) Viewed 2646 times
Last edited by Oil_boi on Fri May 29, 2020 14:24, edited 9 times in total.
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

An update: I have added basic redstone

https://youtu.be/oINwxV8fl-E

Also there is a much better Item collection magnet in place now

https://youtu.be/Vnh6HK34qBM
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

An update, there are quite a few changes to the game. You can see them here:

Todo List: https://github.com/oilboi/Crafter/blob/master/todo.txt

Youtube Channel: https://www.youtube.com/channel/UCgc3zP ... yiy6WNFFPw
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

Guys, I just had a MASSIVE breakthrough with redstone. Now instead of using localized map-based attempts to create correct power source distribution it 100% CORRECTLY routes power through the dust EFFICIENTLY with multiple power sources.

A video: https://youtu.be/3gXpGMigOzU

Even something this size is instant:
Image


The solution was:
  • Index all dust and power sources into a table
  • Make a globalstep that waits on the table to be filled
  • Create a temporary table that indexes through each node of dust at level 0
  • Index through each power source and pathfind outwards to lower level dust
  • Decode the indexed and calculated tables into vectors and then set all the nodes
  • Clear index table and wait again for new table
If you want to look at the code: https://github.com/oilboi/Crafter/blob/ ... e/init.lua
Attachments
screenshot_20200318_104210.png
screenshot_20200318_104210.png (806.83 KiB) Viewed 2646 times
This account is no longer active

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [ALPHA] Crafter

by TumeniNodes » Post

Would be so nice to have a little "thumbs up" button here, I feel silly just posting to say... "Nice!"
A Wonderful World

User avatar
pampogokiraly
Member
Posts: 293
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [ALPHA] Crafter

by pampogokiraly » Post

TumeniNodes wrote:Would be so nice to have a little "thumbs up" button here, I feel silly just posting to say... "Nice!"
We had a discussion about this here: +1 button
All praise the Bacon God! The one and only god in MineTest

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [ALPHA] Crafter

by texmex » Post

Oil_boi wrote:The solution was:
  • Index all dust and power sources into a table
  • Make a globalstep that waits on the table to be filled
  • Create a temporary table that indexes through each node of dust at level 0
  • Index through each power source and pathfind outwards to lower level dust
  • Decode the indexed and calculated tables into vectors and then set all the nodes
  • Clear index table and wait again for new table
If you want to look at the code: https://github.com/oilboi/Crafter/blob/ ... e/init.lua
That is awesome. You're essentially decoupling that calculation from the engine stuff, so using this technique one can imagine offloading the calculation to an external service via the built-in HTTP Requests API.

Maybe that's even a possible solution to calculating stuff happening outside of the active mapblocks. That would certainly be a massive improvement of immersion as Minetest currently plays like The Truman Show in regards to the world feeling ”alive”. Like they say, "if a tree falls in a forest…", that could actually be made to happen.

Thanks for the peppy videos btw, they're inspiring!

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

Thanks everybody!
texmex wrote:
Oil_boi wrote:The solution was:
  • Index all dust and power sources into a table
  • Make a globalstep that waits on the table to be filled
  • Create a temporary table that indexes through each node of dust at level 0
  • Index through each power source and pathfind outwards to lower level dust
  • Decode the indexed and calculated tables into vectors and then set all the nodes
  • Clear index table and wait again for new table
If you want to look at the code: https://github.com/oilboi/Crafter/blob/ ... e/init.lua
That is awesome. You're essentially decoupling that calculation from the engine stuff, so using this technique one can imagine offloading the calculation to an external service via the built-in HTTP Requests API.

Maybe that's even a possible solution to calculating stuff happening outside of the active mapblocks. That would certainly be a massive improvement of immersion as Minetest currently plays like The Truman Show in regards to the world feeling ”alive”. Like they say, "if a tree falls in a forest…", that could actually be made to happen.

Thanks for the peppy videos btw, they're inspiring!
Yes that's exactly what is happening since the api was too slow for me to utilize :D

ALSO, I added in a lot more stuff, here is a video: https://youtu.be/B9PobENTEXA

it's a bit clunky for now, but, I added in buttons, levers, repeaters, comparators, pistons, new dust logic, lights, torch input inversion.
Image
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

I GOT EVERYTHING WORKING!!!

Changelog:

Code: Select all

--add in redstone:
torch, repeater, comparator, inverter, piston, player detector,light,
redstone ore - drops 4,5 redstone dust, turns on when punched
HERE'S THE VIDEO!
This account is no longer active

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [ALPHA] Crafter

by texmex » Post

Excellent videos lately! Are you looking to include a give function in that craftguide? I'm to lazy to run giveme commands.

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

texmex wrote:Excellent videos lately! Are you looking to include a give function in that craftguide? I'm to lazy to run giveme commands.
Let's give it a try!
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

Update: Cheat mode is now implemented https://youtu.be/N8WRL62JDsk
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

Minecarts now work properly! If you ride them, they go at full speed.
This account is no longer active

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [ALPHA] Crafter

by texmex » Post

It's great how smooth the game plays compared to other MT games I've tried. I fiddled with the stepheight to get automatic climbing by default (though without speed penalty) and it was quite enjoyable.

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

texmex wrote:It's great how smooth the game plays compared to other MT games I've tried. I fiddled with the stepheight to get automatic climbing by default (though without speed penalty) and it was quite enjoyable.
Thanks Texmex! If you like that, check this out. The pig will look at you when it's walking around:

edit: now it moves smoothly I updated the picture link too

(Picture Link)

Image
Attachments
screenshot_20200330_050711.png
screenshot_20200330_050711.png (771.51 KiB) Viewed 2646 times
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

I put a prototype of a gun into the game, it has smoke trails and creates bullet holes. You can also shoot mobs with it.
Also, the pigs are very, very aggressive
https://youtu.be/K2_jL_EZ5Sg
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

Yet another update for today: The prototype for bows are in the game!

https://youtu.be/5fo0nenKzW4


Gotta make the arrows stick in whatever they hit, including mobs and players..somehow!
This account is no longer active

cHyper-0815OL

Re: [ALPHA] Crafter

by cHyper-0815OL » Post

nice (sub-)game ...

hope 2 c more features will be added!

keep up the good work !!

which version of minetest do this game support?

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

cHyper-0815OL wrote:nice (sub-)game ...

hope 2 c more features will be added!

keep up the good work !!

which version of minetest do this game support?
Thank you! And:

Sfan5 Latest Build: viewtopic.php?f=42&t=1523
Specifically, latest github in general. But this is what I program the game in.
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

I have started creating Music for the game. Here is version one:
sounds.zip
(533.36 KiB) Downloaded 84 times
You simply unzip the file and put the sounds folder in your Minetest directory. When you start the game it will have the menu music playing.

Here is a video of the menu music:
Image
Attachments
main menu.png
main menu.png (214.63 KiB) Viewed 2646 times
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

I rewrote the pig mob, the improvements are as follows:
  • Better code stability
  • Hostility (punch it and it will chase you and punch you, if you don't go near it for 20 seconds it won't be hostile anymore)
  • Better movement
  • Better head code, uses actual radians instead of degrees
  • Can look all the way up and down
  • New blender model which uses the correct axis of the mob
  • Numerous other improvements which pave the way for advancements
The next mob will be an Exploder. A mob which follows you using pathfinding then explodes.

Here is a video on the new pig: https://youtu.be/MCmEv1Bfv2Y
This account is no longer active

User avatar
pampogokiraly
Member
Posts: 293
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [ALPHA] Crafter

by pampogokiraly » Post

Oil_boi wrote:The next mob will be an Exploder. A mob which follows you using pathfinding then explodes.
This sounds a lot like a creeper from MineCraft :D
All praise the Bacon God! The one and only god in MineTest

cHyper-0815OL

Re: [ALPHA] Crafter

by cHyper-0815OL » Post

pampogokiraly wrote:
Oil_boi wrote:The next mob will be an Exploder. A mob which follows you using pathfinding then explodes.
This sounds a lot like a creeper from MineCraft :D
more mobs on the way... awesome...
keep up the good work!

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

pampogokiraly wrote:
Oil_boi wrote:The next mob will be an Exploder. A mob which follows you using pathfinding then explodes.
This sounds a lot like a creeper from MineCraft :D
You might be right :D
cHyper-0815OL wrote:
pampogokiraly wrote:
Oil_boi wrote:The next mob will be an Exploder. A mob which follows you using pathfinding then explodes.
This sounds a lot like a creeper from MineCraft :D
more mobs on the way... awesome...
keep up the good work!
Thanks I'll keep it up!

I added in a prototype for the credits screen by the way, it's still super buggy and doesn't work on smaller screens but it's in there to test. Here's a video of it:

https://youtu.be/E5R6X_Jw6V8


Image
Attachments
screenshot_20200403_044015.png
screenshot_20200403_044015.png (79.36 KiB) Viewed 2646 times
This account is no longer active

Oil_boi
Member
Posts: 139
Joined: Mon Jan 28, 2019 13:12
GitHub: oilboi
IRC: oilboi
In-game: oilboi
Contact:

Re: [ALPHA] Crafter

by Oil_boi » Post

Another huge update! Stairs, slabs, walls, fences, and glass are added in :D

Here's a video on it:
https://youtu.be/3nw5cEiDiww

Image
This account is no longer active

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests