[Closed] ZombieTest

u18398

Re: [Server] ZombieTest

by u18398 » Post

Fly eagle, fly :)
Image

Also: Interkom mod is back to ZombieTest

u18398

Re: [Server] ZombieTest

by u18398 » Post

eagles are already common birds here, now they recieved the latest update

u18398

Re: [Server] ZombieTest

by u18398 » Post

With new water_life update, now find muddy_water in savanna and rainforest biomes. All areas containing these biomes have been regenerated.

u18398

Re: [Server] ZombieTest

by u18398 » Post

compiled and installed latest stable minetest (5.1.1) and minetest_game

u18398

Re: [Server] ZombieTest

by u18398 » Post

update:

- added farbows mod
(arrows do not work on zombies, even if you shoot their heads)

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Hello!!

As I promised - the forked Not So simple Helicopter

https://github.com/APercy/helicopter

An explanation: This version of the helicopter is very expensive now.
To craft you need diamond blocks, battery, a mese block, a lot of steel. An expensive helicopter, like in real life. And it consumes power now. You can fuel it with power blocks (so, you must have generators, aviation gas is expensive in reallife). And after flight level 100, the power consumption increases, like piston engines do. So you must fly low. The refueling system is easy: you must have power blocks on your inventory. Then you attach the player on the helicopter with right click and punch the seat. It will drop one power block from your inventory, then you can fly circa 2300 blocks away until new refuel (if not above level 100). Refuel ONLY can be done landed.

PS: If you collect it to the inventory, It will loose all fuel, so it will need a new refuel

u18398

Re: [Server] ZombieTest

by u18398 » Post

apercy wrote:Hello!!

As I promised - the forked Not So simple Helicopter

https://github.com/APercy/helicopter

An explanation: This version of the helicopter is very expensive now.
To craft you need diamond blocks, battery, a mese block, a lot of steel. An expensive helicopter, like in real life. And it consumes power now. You can fuel it with power blocks (so, you must have generators, aviation gas is expensive in reallife). And after flight level 100, the power consumption increases, like piston engines do. So you must fly low. The refueling system is easy: you must have power blocks on your inventory. Then you attach the player on the helicopter with right click and punch the seat. It will drop one power block from your inventory, then you can fly circa 2300 blocks away until new refuel (if not above level 100). Refuel ONLY can be done landed.

PS: If you collect it to the inventory, It will loose all fuel, so it will need a new refuel
wow that was fast :) Is there a chance to remove dependency on basic_machines ?
I am not sure if I can put that too on this server. But if you only need it for the power supply, I will find a
solution. Maybe you will have to move your fuel from Lilly's to ZombieTest then. I will test in singleplayer first :)

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Ok!!!! I will remove the dependency and commit, wait a minute!

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

done with danone!
But one note: If the battery or power block isn't present, can be impossible contruct or fly it

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

I will wait your solution to substitute it ;)

the fuel you can change at lines 66 and 68 of init.lua
the battery at line 445

u18398

Re: [Server] ZombieTest

by u18398 » Post

apercy wrote:I will wait your solution to substitute it ;)

the fuel you can change at lines 66 and 68 of init.lua
the battery at line 445
It is done ! Helicopter is online and ready to try.

ZombieTest now has a very super_basic_machines mod XD
That means you have to transfer your Power Cells from
Lilly in the Valley server to ZombieTest server by Interkom.
Also I changed recipe for crafting the Helicopter body.

All works and it flies ! ;D

Well done. it is a nive model with animations of rotors, too :)


Just a suggestion: there should be checks of who is the owner
because this is really expensive to craft and would be a loss, if stolen.

One other thing: maybe it should crash or deal with damage if you fly in
obstacles. Also maybe crash on water ?

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Gundul wrote:
apercy wrote:I will wait your solution to substitute it ;)

the fuel you can change at lines 66 and 68 of init.lua
the battery at line 445
It is done ! Helicopter is online and ready to try.

ZombieTest now has a very super_basic_machines mod XD
That means you have to transfer your Power Cells from
Lilly in the Valley server to ZombieTest server by Interkom.
Also I changed recipe for crafting the Helicopter body.

All works and it flies ! ;D

Well done. it is a nive model with animations of rotors, too :)


Just a suggestion: there should be checks of who is the owner
because this is really expensive to craft and would be a loss, if stolen.

One other thing: maybe it should crash or deal with damage if you fly in
obstacles. Also maybe crash on water ?
Well, I'll learn about owner checking to implement =). And damages are in my plans too, I'll updating here

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Ok!!! Now the helicopter supports ownership, I uploaded the modification, but I need something to tell who is the owner, cause it has no text to feedback the user yet. Sugestions? =)

u18398

Re: [Server] ZombieTest

by u18398 » Post

apercy wrote:Ok!!! Now the helicopter supports ownership, I uploaded the modification, but I need something to tell who is the owner, cause it has no text to feedback the user yet. Sugestions? =)
In the entity definition add a field for owner.

When placing the helicopter craft item, an object is returned:

Code: Select all

minetest.register_craftitem("helicopter:heli", {
	description = "Helicopter",
	inventory_image = "helicopter_heli_inv.png",

	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.type ~= "node" then
			return
		end
		if minetest.get_node(pointed_thing.above).name ~= "air" then
			return
		end

-- ADD "local obj =" to your code: 
	        local obj = minetest.add_entity(pointed_thing.above, "helicopter:heli")

		if not (creative_exists and placer and
				creative.is_enabled_for(placer:get_player_name())) then
			itemstack:take_item()
		end
		return itemstack
	end,
write the placer name in the owner field of your entity definition.
when someone want to enter a heli by rightclicking on it, compare player and owner name.

See my water_life:riverfish_tamed for an example of ownerships:
https://github.com/berengma/water_life/ ... erfish.lua

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Gundul wrote:
apercy wrote:Ok!!! Now the helicopter supports ownership, I uploaded the modification, but I need something to tell who is the owner, cause it has no text to feedback the user yet. Sugestions? =)
In the entity definition add a field for owner.

When placing the helicopter craft item, an object is returned:

Code: Select all

minetest.register_craftitem("helicopter:heli", {
	description = "Helicopter",
	inventory_image = "helicopter_heli_inv.png",

	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.type ~= "node" then
			return
		end
		if minetest.get_node(pointed_thing.above).name ~= "air" then
			return
		end

-- ADD "local obj =" to your code: 
	        local obj = minetest.add_entity(pointed_thing.above, "helicopter:heli")

		if not (creative_exists and placer and
				creative.is_enabled_for(placer:get_player_name())) then
			itemstack:take_item()
		end
		return itemstack
	end,
write the placer name in the owner field of your entity definition.
when someone want to enter a heli by rightclicking on it, compare player and owner name.

See my water_life:riverfish_tamed for an example of ownerships:
https://github.com/berengma/water_life/ ... erfish.lua
Viellen danke!!!!!!

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Working now!!!! Commited and pushed

Code: Select all

  local obj = minetest.add_entity(pointed_thing.above, "helicopter:heli")
        local ent = obj:get_luaentity()
        local owner = placer:get_player_name()
        ent.owner = owner

u18398

Re: [Server] ZombieTest

by u18398 » Post

apercy wrote:Working now!!!! Commited and pushed
Thanks, it is online now on this server to try.

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

moin moin
I made 2 improvements today to prevent lag detaching the player in flight (yes, I suffered the first flight accident on server), by reducing the max power (so reducing the speed too) and a minor change on tilting =)
I think the low flying is more pleasant now ;)

PS: I have the impression that it was not updated on the server, because the phrase I added to the infotext ("A nice helicopter") is not appearing

u18398

Re: [Server] ZombieTest

by u18398 » Post

apercy wrote:moin moin

PS: I have the impression that it was not updated on the server, because the phrase I added to the infotext ("A nice helicopter") is not appearing
Just pulled latest from your github

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Now we have... biofuel!!!!! Using Wheat, but you can change on craft section, lines 486 to 492
Autonomy changed, and you can put 10 biofuel gallons.

Code: Select all

	minetest.register_craft({
		output = "helicopter:biofuel",
		recipe = {
			{"",              "farming:wheat"},
			{"farming:wheat", "farming:wheat"},
		}
	})

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Updated. Now we have distiller for biofuel!!!!!
I made a 3d model for a distiller =D

u18398

Re: [Server] ZombieTest

by u18398 » Post

apercy wrote:Updated. Now we have distiller for biofuel!!!!!
I made a 3d model for a distiller =D
Very nice model. It is online now.

You should maybe consider to open a thread in the mods wip section.
This is working very good already and others would get to know your
helicopter more easily.

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Gundul wrote:
apercy wrote:Updated. Now we have distiller for biofuel!!!!!
I made a 3d model for a distiller =D
Very nice model. It is online now.

You should maybe consider to open a thread in the mods wip section.
This is working very good already and others would get to know your
helicopter more easily.
Thank you! I had an epiphany now... Biofuel could be a separate mod in future, cause we can make another machines using it, like a motorboat for example =)

PS: the future is now, I'll make it and after open the thread (and i'll make the motorboat later in another thread). Again, thank you very much!

PS2: I made a branch on helicopter, without the biofuel code, only references.
here only the biofuel mod: https://github.com/APercy/minetest_biofuel
here only the helicopter branch: https://github.com/APercy/helicopter/tr ... parate-mod

u18398

Re: [Server] ZombieTest

by u18398 » Post

apercy wrote: Thank you! I had an epiphany now... Biofuel could be a separate mod in future, cause we can make another machines using it, like a motorboat for example =)

PS: the future is now, I'll make it and after open the thread (and i'll make the motorboat later in another thread). Again, thank you very much!

PS2: I made a branch on helicopter, without the biofuel code, only references.
here only the biofuel mod: https://github.com/APercy/minetest_biofuel
here only the helicopter branch: https://github.com/APercy/helicopter/tr ... parate-mod
That is a very good idea. That gives crops a new and important usage.
With FarmingNG mod it will be still easy to harvest enough crops to fill your machines with fuel.

It could be also used in other mods, like in extex's motorbike and many more.

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Server] ZombieTest

by apercy » Post

Gundul wrote:
apercy wrote: Thank you! I had an epiphany now... Biofuel could be a separate mod in future, cause we can make another machines using it, like a motorboat for example =)

PS: the future is now, I'll make it and after open the thread (and i'll make the motorboat later in another thread). Again, thank you very much!

PS2: I made a branch on helicopter, without the biofuel code, only references.
here only the biofuel mod: https://github.com/APercy/minetest_biofuel
here only the helicopter branch: https://github.com/APercy/helicopter/tr ... parate-mod
That is a very good idea. That gives crops a new and important usage.
With FarmingNG mod it will be still easy to harvest enough crops to fill your machines with fuel.

It could be also used in other mods, like in extex's motorbike and many more.
Branch merged to master!
https://github.com/APercy/helicopter
https://github.com/APercy/minetest_biofuel

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests