Tryed using minetest 0.4.17 ?casp3r wrote:when i start with ranged weapon + explosives activateddavidthecreator wrote:I Will keep the plastic sheet recipe the same, as I don't want the mod to depend on techinc, just so players could craft a material for making guns...casp3r wrote:just the best weapon mod
shot the player and mobs (redo or c.m.e ) (love that), and explosive destroying map , sounds amazing, new texture just incredible,
(but black plastic sheet recipe was better with "plastic sheet"(technic) and not "tree" ?)
really good work i adopt it
but conflict with "explosives" mod : viewtopic.php?t=14720
can you fix it please i really want have the two mod together i don't know how to do that
(or better integred it pleeeeeaaaase)
and it was just perfect :)
And in what way exactly does this mod conflict with "explosives" mod?
I checked the mod out along with rangedweapons, and they both seemed to work just fine...
i have this :and if i disable explosives all work fine2018-08-29 23:48:02: ACTION[Main]: MOD: Explosives loading...
2018-08-29 23:48:02: ERROR[Main]: ModError: Failed to load and run script from D:\minetest-0.4.16\bin\..\mods\explosives\init.lua:
2018-08-29 23:48:02: ERROR[Main]: D:\minetest-0.4.16\bin\..\mods\explosives\init.lua:12: attempt to index global 'explosives' (a boolean value)
2018-08-29 23:48:02: ERROR[Main]: stack traceback:
2018-08-29 23:48:02: ERROR[Main]: D:\minetest-0.4.16\bin\..\mods\explosives\init.lua:12: in main chunk
2018-08-29 23:48:02: ERROR[Main]: Voir debug.txt pour plus d'informations.
[mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]
- davidthecreator
- Member
- Posts: 452
- Joined: Mon Aug 18, 2014 19:48
- GitHub: daviddoesminetest
- In-game: DavidDoesMinetest
- Location: Lithuania
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
ok that's work thanks (really basic solution are the best sometime) so go to 0.4.17.1 XD
-
- Member
- Posts: 46
- Joined: Sat Aug 18, 2018 19:30
- In-game: init.lua
- Location: {X=25.25, y=-400, z=478,8} Bavaria, Germany
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
is one of the best weapons mods I have seen in this forum.
-
- Member
- Posts: 14
- Joined: Fri Oct 24, 2014 23:42
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
This mod is awesome. I don't believe I experienced any real issues with it, and I've been using it as a standard in any of my worlds going forward. Very nice! You can kill mobs with the guns, and nothing beats crafting your own bullets and from resources in the ground.
I did notice that I cannot kill mobs sometimes while I'll I'm moving, so I have to stop and stand still in order for the shots to hurt them. Not sure if this can be fixed, but it's only a minor issue.
I did notice that I cannot kill mobs sometimes while I'll I'm moving, so I have to stop and stand still in order for the shots to hurt them. Not sure if this can be fixed, but it's only a minor issue.
- Edgy1
- Member
- Posts: 163
- Joined: Thu Nov 24, 2016 16:29
- GitHub: JamesTobin
- In-game: Trump
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
I have problems with the mod. I have tested on 0.4.16 and 0.4.17.1. In both releases, shooting a player on the head does not kill them, but shooting them in the feet OR shooting the block below them kills them. This has even been tested with no other mods installed.
visit https://edgy1.net
-
- Member
- Posts: 999
- Joined: Sat Aug 19, 2017 21:49
- GitHub: Chemguy99
- In-game: Chem Nyx
- Location: My Basement's Attic
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
That sounds like a Minetest issue I've heard about, where the player's nodebox is shifted down by 1 node.
What is SCP-055?
- Edgy1
- Member
- Posts: 163
- Joined: Thu Nov 24, 2016 16:29
- GitHub: JamesTobin
- In-game: Trump
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
That started in 0.4.17 and I think it was fixed. This problem occurred in 0.4.16 as well, I tried downgrading my server.
visit https://edgy1.net
- Diamond knight
- Member
- Posts: 475
- Joined: Sun Apr 19, 2015 19:50
- GitHub: Diamondknight
- In-game: Ferrumprinceps
- Location: Chilling in Constantinople
- Contact:
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Hm, idea: maybe add an ignores protection flag to the api, so faction server owners can make weapons that can damage stuff in claims (like a mortar "gun")
My modding team: https://github.com/basilea-rhomaion
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Hi davidthecreator. Thank you for the hard work that went into this fantastic mod! I will be using on my server soon once a major variation to Ruben Wardy's CTF game mode is complete.
I have a suggestion to enhance this mod. Currently your bullets are essentially spawned entities with no owner. By assigning an owner to the bullet, you can give kill credit to the owner. I modified your code to achieve this goal. This allows a kill to be credited to the shooter for kill messages and player stats. I have not yet found a way to do this with blast weapons, because TNT is a bit more complicated. This has only been tested on the Desert Eagle, but it should work for most guns in your mod.
Here is what I changed in deagle.lua:
Just below local obj = minetest.add_entity(pos, "rangedweapons:deagleshot"), I added...
I also needed to add these lined within the on_step call in deagle.lua after if self.timer > 0.065 then...
And then finally, each instance of obj:punch(self.object, 1.0, {... was changed to obj:punch(owner, 1.0,{...
These changes will make this mod compatible with Ruben's game mode and several other kill message mods, as well as make is possible to avoid team killing in team based game modes.
Also, I have tested Ranged Weapons with minetest 5.0.0-dev and have not come across any issue apart from the previous mentioned inability to shoot a player above the waist.
I have a suggestion to enhance this mod. Currently your bullets are essentially spawned entities with no owner. By assigning an owner to the bullet, you can give kill credit to the owner. I modified your code to achieve this goal. This allows a kill to be credited to the shooter for kill messages and player stats. I have not yet found a way to do this with blast weapons, because TNT is a bit more complicated. This has only been tested on the Desert Eagle, but it should work for most guns in your mod.
Here is what I changed in deagle.lua:
Just below local obj = minetest.add_entity(pos, "rangedweapons:deagleshot"), I added...
Code: Select all
local entity = obj:get_luaentity()
entity.owner = user:get_player_name()
Code: Select all
if not self.owner then return end
local shooter = self.owner
local owner = minetest.get_player_by_name(shooter)
These changes will make this mod compatible with Ruben's game mode and several other kill message mods, as well as make is possible to avoid team killing in team based game modes.
Also, I have tested Ranged Weapons with minetest 5.0.0-dev and have not come across any issue apart from the previous mentioned inability to shoot a player above the waist.
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Excellent mod!!
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Some recent comments are gone due to the outage.
As promised here's a functionally identical version of the mod, but with uses of tight loops to checks for right mouse button clicks replaced by on_secondary_use. This should be lighter on servers with many users.
The left mouse button checks (for repeating weapons) are unchanged. This can also be improved.
Perhaps by having one global step call back and allow to be called by that for each weapon.
You can unzip the file a have a look. If you want to compare the two trees side by side on Linux you can do so with diff -Naur old_directory new_directory
As promised here's a functionally identical version of the mod, but with uses of tight loops to checks for right mouse button clicks replaced by on_secondary_use. This should be lighter on servers with many users.
The left mouse button checks (for repeating weapons) are unchanged. This can also be improved.
Perhaps by having one global step call back and allow to be called by that for each weapon.
You can unzip the file a have a look. If you want to compare the two trees side by side on Linux you can do so with diff -Naur old_directory new_directory
- Attachments
-
- updated_ranged_weapons.zip
- (777.73 KiB) Downloaded 957 times
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Is this still being maintained?
I offer to host this this on github if that's OK with everybody.
I offer to host this this on github if that's OK with everybody.
- davidthecreator
- Member
- Posts: 452
- Joined: Mon Aug 18, 2014 19:48
- GitHub: daviddoesminetest
- In-game: DavidDoesMinetest
- Location: Lithuania
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Idk... Might update it eventually...Lars wrote:Is this still being maintained?
I offer to host this this on github if that's OK with everybody.
Somewhen this year maybe even?...
Just wait... I guess...
- rheo
- Member
- Posts: 49
- Joined: Fri May 03, 2019 20:40
- GitHub: fluxionary
- IRC: flux fluxflux
- In-game: flux rheo
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
This mod seems fatally flawed right now. I shot a gun at an unknown node, and it crashed the server. Now the server crashes immediately if that area is loaded. Some errors:
2020-04-26 02:41:43: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'rangedweapons' in callback luaentity_Step(): ...../worlds/tmp_test/worldmods/rangedweapons/shurikens.lua:730: attempt to index a nil value
2020-04-26 02:41:43: ERROR[Main]: stack traceback:
2020-04-26 02:41:43: ERROR[Main]: ...../worlds/tmp_test/worldmods/rangedweapons/shurikens.lua:730: in function 'func'
2020-04-26 02:45:54: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'rangedweapons' in callback luaentity_Step(): .../bin/../worlds/tmp_test/worldmods/rangedweapons/ak47.lua:153: attempt to index a nil value
2020-04-26 02:45:54: ERROR[Main]: stack traceback:
2020-04-26 02:45:54: ERROR[Main]: .../bin/../worlds/tmp_test/worldmods/rangedweapons/ak47.lua:153: in function 'func'
2020-04-26 02:50:25: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'rangedweapons' in callback luaentity_Step(): .../bin/../worlds/tmp_test/worldmods/rangedweapons/init.lua:113: attempt to index a nil value
2020-04-26 02:50:25: ERROR[Main]: stack traceback:
2020-04-26 02:50:25: ERROR[Main]: .../bin/../worlds/tmp_test/worldmods/rangedweapons/init.lua:113: in function 'func'
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
Yep. Looks like this no longer maintained.
The version I attached above still works fine in Minetest 5.3.
The version I attached above still works fine in Minetest 5.3.
- Noodlemire
- Member
- Posts: 61
- Joined: Sun May 27, 2018 00:07
- GitHub: Noodlemire
- In-game: Noodlemire
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
You're overthinking the problem. It's no issue with the explosives mod, it's an issue with the rangedweapons mod. Looks in rangedweapons' settings.lua:
Code: Select all
-- change "true" to "false" in order to disable a feature, or
-- "false" to "true" to enable it
explosives = true
javelins = true
shurikens = true
handguns = true
shotguns = true
rifles = true
magnums_and_revolvers = true
machine_pistols = true
sub_machineguns = true
assault_rifles = true
power_weapons = true
glass_breaking = true
door_breaking = true
heavy_machineguns = true
minigun_aswell = true
- davidthecreator
- Member
- Posts: 452
- Joined: Mon Aug 18, 2014 19:48
- GitHub: daviddoesminetest
- In-game: DavidDoesMinetest
- Location: Lithuania
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
AsyncErr: ServerThread::run Lua: Runtime error from mod 'rangedweapons' in callback luaentity_Step(): .../Programs/minetest/bin/../mods/rangedweapons/awp.lua:193: attempt to index field '?' (a nil value)
stack traceback:
.../Programs/minetest/bin/../mods/rangedweapons/awp.lua:193: in function <.../Programs/minetest/bin/../mods/rangedweapons/awp.lua:127>
stack traceback:
.../Programs/minetest/bin/../mods/rangedweapons/awp.lua:193: in function <.../Programs/minetest/bin/../mods/rangedweapons/awp.lua:127>
-
- Member
- Posts: 37
- Joined: Sat Aug 05, 2017 16:31
- In-game: seller bombingspree lockerhead5000 blob5000 thediamondfighter
- Location: in a hose
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
I got this error:
mod list:
rangedweapons
tnt_revamped It hapened a little bit after I shot a barrel with an AWP but in a dedicated creative server it hapened when somebody did so with a diferent gun
this is the map I crashed:
Code: Select all
AsyncErr: ServerThread::run Lua: Runtime error from mod 'rangedweapons' in callback node_on_timer(): /home/*********/.minetest/mods/rangedweapons/explosives.lua:0: stack overflow
stack traceback:
/home/*********/.minetest/mods/rangedweapons/explosives.lua: in function 'on_blast'
/home/*********/.minetest/mods/tnt_revamped/init.lua:372: in function 'tnt_explode'
/home/*********/.minetest/mods/tnt_revamped/init.lua:410: in function 'boom'
/home/*********/.minetest/mods/rangedweapons/explosives.lua:197: in function 'on_blast'
/home/*********/.minetest/mods/tnt_revamped/init.lua:372: in function 'tnt_explode'
/home/*********/.minetest/mods/tnt_revamped/init.lua:410: in function 'boom'
/home/*********/.minetest/mods/rangedweapons/explosives.lua:197: in function 'on_blast'
/home/*********/.minetest/mods/tnt_revamped/init.lua:372: in function 'tnt_explode'
/home/*********/.minetest/mods/tnt_revamped/init.lua:410: in function 'boom'
/home/*********/.minetest/mods/rangedweapons/explosives.lua:197: in function 'on_blast'
/home/*********/.minetest/mods/tnt_revamped/init.lua:372: in function 'tnt_explode'
...
/home/*********/.minetest/mods/rangedweapons/explosives.lua:197: in function 'on_blast'
/home/*********/.minetest/mods/tnt_revamped/init.lua:372: in function 'tnt_explode'
/home/*********/.minetest/mods/tnt_revamped/init.lua:410: in function 'boom'
/home/*********/.minetest/mods/rangedweapons/explosives.lua:197: in function 'on_blast'
/home/*********/.minetest/mods/tnt_revamped/init.lua:372: in function 'tnt_explode'
/home/*********/.minetest/mods/tnt_revamped/init.lua:410: in function 'boom'
/home/*********/.minetest/mods/rangedweapons/explosives.lua:197: in function 'on_blast'
/home/*********/.minetest/mods/tnt_revamped/init.lua:372: in function 'tnt_explode'
/home/*********/.minetest/mods/tnt_revamped/init.lua:410: in function 'boom'
/home/*********/.minetest/mods/rangedweapons/explosives.lua:194: in function </home/*********/.minetest/mods/rangedweapons/explosives.lua:193>
tnt_revamped It hapened a little bit after I shot a barrel with an AWP but in a dedicated creative server it hapened when somebody did so with a diferent gun
this is the map I crashed:
-
- Member
- Posts: 37
- Joined: Sat Aug 05, 2017 16:31
- In-game: seller bombingspree lockerhead5000 blob5000 thediamondfighter
- Location: in a hose
Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]
I'm sorry but the file wouldn't upload.I found out how to use invisible ink for the minetest forums if you can find this then, good eye
- davidthecreator
- Member
- Posts: 452
- Joined: Mon Aug 18, 2014 19:48
- GitHub: daviddoesminetest
- In-game: DavidDoesMinetest
- Location: Lithuania
Re: [mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]
v0.4 update
*now the mod requires MT 5.3.0 v or greater
*the projectiles now use new MT colission detection system, which allows for better projectile velocity, with less colission problems
*guns now have clip sizes and require reloading (click RMB to reload)
*added new guns and ammo
*some guns might now be able to use several types of ammo (guns will be loaded with suitable ammo, that you have closest to your 1st inventory slot. Different types of ammo have different stats that are added up with your gun's stats and in the future, might have some other and more special properties)
*sniper rifles can now zoom in (hold Z)
*damage dealt by your projectiles now counts as damage dealt by you
*rockets/grenade bullets now deal more damage on direct hit
*players can now be headshotted
*added blood particles and block hit particles
*projectiles that hit nodes with "level" group of 2 or more (such as obsidian and some mineral blocks) will ricoshet
*using a ranged weapon has a chance to increase your efficiency with that type of weapons and your efficiencly will degrade over time.
*guns can now ignite TNT and make falling nodes fall on hit
*reduced the amount of entities and globalsteps that this mod uses to function
*javelins now lose durability when thrown, instead of having a chance to instantly break
*added anti-gun block, that prevents players from using guns in 10 node radius around the anti-gun block
*added forcegun, that puches enemies or yourself away, instead of causing direct damage (use it for rocket jumping or to kill your enemies by fall damage)
*guns now have durability
*rebalanced damage of ranged weapons
*reduced stack sizes of ammunition
*change some crafting recipes
*now power particle generator stores power particles in it's meta instead of just spawning them as items on top and you can harvest those power particles from the generator, by punching it.
*Shooting unknown nodes / using explosives mod shouldn't cause crashes anymore
*now the mod requires MT 5.3.0 v or greater
*the projectiles now use new MT colission detection system, which allows for better projectile velocity, with less colission problems
*guns now have clip sizes and require reloading (click RMB to reload)
*added new guns and ammo
*some guns might now be able to use several types of ammo (guns will be loaded with suitable ammo, that you have closest to your 1st inventory slot. Different types of ammo have different stats that are added up with your gun's stats and in the future, might have some other and more special properties)
*sniper rifles can now zoom in (hold Z)
*damage dealt by your projectiles now counts as damage dealt by you
*rockets/grenade bullets now deal more damage on direct hit
*players can now be headshotted
*added blood particles and block hit particles
*projectiles that hit nodes with "level" group of 2 or more (such as obsidian and some mineral blocks) will ricoshet
*using a ranged weapon has a chance to increase your efficiency with that type of weapons and your efficiencly will degrade over time.
*guns can now ignite TNT and make falling nodes fall on hit
*reduced the amount of entities and globalsteps that this mod uses to function
*javelins now lose durability when thrown, instead of having a chance to instantly break
*added anti-gun block, that prevents players from using guns in 10 node radius around the anti-gun block
*added forcegun, that puches enemies or yourself away, instead of causing direct damage (use it for rocket jumping or to kill your enemies by fall damage)
*guns now have durability
*rebalanced damage of ranged weapons
*reduced stack sizes of ammunition
*change some crafting recipes
*now power particle generator stores power particles in it's meta instead of just spawning them as items on top and you can harvest those power particles from the generator, by punching it.
*Shooting unknown nodes / using explosives mod shouldn't cause crashes anymore
-
- Member
- Posts: 10
- Joined: Sun Oct 04, 2020 04:33
- GitHub: pevernow
- IRC: pevernow
- In-game: pevernow
Re: [mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]
I suggest you add multilingual translation support, so that those users who are not good at English can use it more easily.
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: [mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]
Could you update your ContentDB page? https://content.minetest.net/packages/d ... edweapons/
- thunderdog1138
- Member
- Posts: 68
- Joined: Sun Dec 08, 2019 00:45
- GitHub: thunderdog1138
- In-game: thunderdog
- Location: Venator-class Star Destroyer in the Xanadu System
Re: [mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]
The update just made this great mod even better! Thanks!
Check out my Star Wars subgame.
- davidthecreator
- Member
- Posts: 452
- Joined: Mon Aug 18, 2014 19:48
- GitHub: daviddoesminetest
- In-game: DavidDoesMinetest
- Location: Lithuania
Re: [mod]ranged weapons[2021.03.05] [0.4] [rangedweapons]
Done.Lone_Wolf wrote: ↑Sun Mar 14, 2021 18:09Could you update your ContentDB page? https://content.minetest.net/packages/d ... edweapons/
Who is online
Users browsing this forum: Google [Bot] and 31 guests