[Mod] Camouflage [V16.0] [camo_modpack]

User avatar
Dan Duncombe
Member
Posts: 904
Joined: Thu May 09, 2013 21:11
Location: In the unknown depths of Earth

by Dan Duncombe » Post

VanessaE wrote:Error in the player radar:

01:12:51: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...vival_World/worldmods/camo_modpack/player_radar/init.lua:25: attempt to index local 'pos' (a nil value)
I would advise removing it all together, it is buggy.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.

User avatar
VanessaE
Moderator
Posts: 4551
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Agreed.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Dan Duncombe
Member
Posts: 904
Joined: Thu May 09, 2013 21:11
Location: In the unknown depths of Earth

by Dan Duncombe » Post

Update everyone. Major changes:
  • Removed buggy player radar
  • Made turrets and intruder alarms only diggable by placer
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.

User avatar
ownsyouall
New member
Posts: 7
Joined: Tue Dec 06, 2011 00:45

by ownsyouall » Post

Can you update the fake chest recipe to use group:leaves instead of default:leaves please?

User avatar
Jonathan
Member
Posts: 119
Joined: Tue Apr 02, 2013 14:07
Location: USA

by Jonathan » Post

Dan Duncombe wrote: Known Bugs:
  • Turrets and intruder alarms will shoot their owner.
I have a solution for your turrets shooting their owners (My comments show the changes I made to the abms):

Code: Select all

minetest.register_abm({
    nodenames = {"camo:player_turret"},
    interval = 2,
    chance = 1,
    action = function(pos, node)
    local meta = minetest.get_meta(pos)--added line
    local objects = minetest.env:get_objects_inside_radius(pos, 10)
    if minetest.env:get_node({x=pos.x,y=pos.y-1,z=pos.z}).name == 'camo:turret_computer' then return end
        for _,obj in ipairs(objects) do
            -- added is_owner check
            if obj:is_player() and is_owner(meta, obj) == false then
                print("Turret shooting at player!")
                local obj_p = obj:getpos()
                local calc = {x=obj_p.x - pos.x,y=obj_p.y+0.5 - pos.y,z=obj_p.z - pos.z}
                local bullet=minetest.env:add_entity({x=pos.x,y=pos.y,z=pos.z}, "camo:arrow_entity")
                bullet:setvelocity({x=calc.x * ARROW_VELOCITY,y=calc.y * ARROW_VELOCITY,z=calc.z * ARROW_VELOCITY})
                music_handle=minetest.sound_play("gun",
                {pos = pos, gain = 1.0, max_hear_distance = 15,})
            end
        end
    end
})

minetest.register_abm({
    nodenames = {"camo:player_turret"},
    interval = 1,
    chance = 1,
    action = function(pos, node)
    local meta = minetest.get_meta(pos)-- added line
    local objects = minetest.env:get_objects_inside_radius(pos, 20)
    if minetest.env:get_node({x=pos.x,y=pos.y-1,z=pos.z}).name ~= 'camo:turret_computer' then return end
        for _,obj in ipairs(objects) do
            -- added is_owner check
            if obj:is_player() and is_owner(meta, obj) == false then
                print("Turret shooting at player!")
                local obj_p = obj:getpos()
                local calc = {x=obj_p.x - pos.x,y=obj_p.y+0.5 - pos.y,z=obj_p.z - pos.z}
                local bullet=minetest.env:add_entity({x=pos.x,y=pos.y,z=pos.z}, "camo:arrow_entity")
                bullet:setvelocity({x=calc.x * ARROW_VELOCITY,y=calc.y * ARROW_VELOCITY,z=calc.z * ARROW_VELOCITY})
                music_handle=minetest.sound_play("gun",
                {pos = pos, gain = 1.0, max_hear_distance = 25,}) 
            end
        end
    end
})
I did not look at the intruder alarms yet.

By the way, neat mod. :)
By perseverance the snail reached the ark.
- Charles Spurgeon

User avatar
LionsDen
Member
Posts: 530
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Post

Dan is no longer in the community, if you want changes you will need to make them yourself or find someone to take over the mod.

User avatar
Jouster27
Member
Posts: 117
Joined: Fri Mar 29, 2013 14:16

by Jouster27 » Post

Well, I was going to report a bad recipe but if the mod creater isn't maintaining this anymore, I just I'll just post what I found and anyone using this mod can make the fixes themselves.

Stone glass recipe requires an undefined item:
minetest.register_craft({
type = 'shapeless',
output = 'camo:stone_glass',
recipe = {'camo:stone_dirt', 'default:glass'},
})
I think the mod creator inteded to put this instead:
recipe = {'camo:fake_stone', 'default:glass'},

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Camouflage [V16.0] [camo_modpack]

by Inocudom » Post

Dan Duncombe might never come back, so the digging speed of the camo blocks might never be fixed.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

kerikter4of7
Member
Posts: 16
Joined: Sat Jun 07, 2014 19:22

Re: [Mod] Camouflage [V16.0] [camo_modpack]

by kerikter4of7 » Post

Inocudom wrote:Dan Duncombe might never come back, so the digging speed of the camo blocks might never be fixed.
Can't someone fork it? Depending on the culture in the forum, it may also be possible to get a mod to edit the top post to point to the updated version. (Each forum is different, some are rather laissez faire while others may be strict)

Sokomine
Member
Posts: 4169
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Camouflage [V16.0] [camo_modpack]

by Sokomine » Post

.
kerikter4of7 wrote: Can't someone fork it? Depending on the culture in the forum, it may also be possible to get a mod to edit the top post to point to the updated version.
Just fork it yourshelf! The mods here sometimes do this as well and take care of abandomed mods. Thus, if you're intrested in this mod and have something to contribute to it, just do so. I don't think Dan will mind. He himshelf forked quite a lot of mods.

User avatar
doyousketch2
Member
Posts: 115
Joined: Tue Feb 05, 2013 16:06
GitHub: doyousketch2
In-game: Sketch2
Location: Ohio
Contact:

Re: [Mod] Camouflage [V16.0] [camo_modpack]

by doyousketch2 » Post

To the turret, I added the menu from the Protector mod
from Calinou's Carbone game
(based on glomie's mod, remade by Zeg9
and reworked by TenPlus1)

It won't shoot the owner, or anybody on the list.

Image

Incorporated edits put forward by the community on the forum. Thanks to:

ownsyouall for the group:leaves instead of default:leaves idea.

Jonathan for turret code that doesn't shoot owner.

Jouster27 for the fixed Stone glass recipe.


Other edits by Sketch2:

Intruder alarm has an increased alarm sound of 50.
The radius it protects is still 15,
you can just hear it at a greater distance.

When you mount turret on targeting computer you get a better range.
It also doesn't fall so that it retains its metadata.

Image
Most important : owner can actually pick it back up.
Attachments
Sketch2_camo_mod_1.zip
Sketch2_camo_mod_1.zip
(274.48 KiB) Downloaded 75 times

seller
Member
Posts: 37
Joined: Sat Aug 05, 2017 16:31
In-game: seller bombingspree lockerhead5000 blob5000 thediamondfighter
Location: in a hose

Re: [Mod] Camouflage [V16.0] [camo_modpack]

by seller » Post

Hhhhhmmmmm! Nice!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests