[mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

User avatar
davidthecreator
Member
Posts: 359
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by davidthecreator » Post

casp3r wrote:
davidthecreator wrote:
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 :)
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...

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...
when i start with ranged weapon + explosives activated
i have this :
2018-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.
and if i disable explosives all work fine
Tryed using minetest 0.4.17 ?

User avatar
casp3r
Member
Posts: 21
Joined: Sat Nov 11, 2017 10:38

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by casp3r » Post

ok that's work thanks (really basic solution are the best sometime) so go to 0.4.17.1 XD

Isja Krass
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]

by Isja Krass » Post

is one of the best weapons mods I have seen in this forum.
my topics | profile | contact me | nothing else to say...

Minetest4Life
Member
Posts: 14
Joined: Fri Oct 24, 2014 23:42

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Minetest4Life » Post

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.

User avatar
Edgy1
Member
Posts: 157
Joined: Thu Nov 24, 2016 16:29
GitHub: JamesTobin
In-game: Trump

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Edgy1 » Post

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.

Chem871
Member
Posts: 954
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]

by Chem871 » Post

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?

User avatar
Edgy1
Member
Posts: 157
Joined: Thu Nov 24, 2016 16:29
GitHub: JamesTobin
In-game: Trump

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Edgy1 » Post

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.

User avatar
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]

by Diamond knight » Post

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")

User avatar
ratmix
Member
Posts: 148
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by ratmix » Post

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...

Code: Select all

local entity = obj:get_luaentity()
entity.owner = user:get_player_name()
I also needed to add these lined within the on_step call in deagle.lua after if self.timer > 0.065 then...

Code: Select all

if not self.owner then return end
local shooter = self.owner
local owner = minetest.get_player_by_name(shooter)
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.
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

Honeypot
Member
Posts: 13
Joined: Sat Mar 02, 2019 10:58
In-game: Crackpot

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Honeypot » Post

Excellent mod!!

Lars
Developer
Posts: 3
Joined: Fri Oct 13, 2017 21:12

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Lars » Post

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
Attachments
updated_ranged_weapons.zip
(777.73 KiB) Downloaded 63 times

Lars
Developer
Posts: 3
Joined: Fri Oct 13, 2017 21:12

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Lars » Post

Is this still being maintained?

I offer to host this this on github if that's OK with everybody.

User avatar
davidthecreator
Member
Posts: 359
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by davidthecreator » Post

Lars wrote:Is this still being maintained?

I offer to host this this on github if that's OK with everybody.
Idk... Might update it eventually...
Somewhen this year maybe even?...
Just wait... I guess...

rheo
Member
Posts: 37
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]

by rheo » Post

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'

Lars
Developer
Posts: 3
Joined: Fri Oct 13, 2017 21:12

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Lars » Post

Yep. Looks like this no longer maintained.
The version I attached above still works fine in Minetest 5.3.

User avatar
Noodlemire
Member
Posts: 50
Joined: Sun May 27, 2018 00:07
GitHub: Noodlemire
In-game: Noodlemire

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by Noodlemire » Post

casp3r wrote:
Wed Aug 29, 2018 21:53
if i have understood something, the probleme is in line 12:
"explosives.i18n = intllib.Getter()"
hummm.....ok what i'm supose to do with that shit ..... XD
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
It sets all of these global variables to true. That's awful practice. Every single one of these settings has a chance to break any mod that happens to have the same name by replacing their global table with a boolean, depending on mod load order. And as it so happens, explosives just happens to be at the top of the list. The proper fix is to replace all of these settings with minetest.settings implementations, especially so that it's possible to automatically update the mod without reverting every single setting.

User avatar
davidthecreator
Member
Posts: 359
Joined: Mon Aug 18, 2014 19:48
GitHub: daviddoesminetest
In-game: DavidDoesMinetest
Location: Lithuania

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by davidthecreator » Post

Lars wrote:
Fri Aug 07, 2020 21:07
Yep. Looks like this no longer maintained.
The version I attached above still works fine in Minetest 5.3.
I'm just too busy with other stuff to finish the update yet.

But I will eventually.

User avatar
IFRFSX
Member
Posts: 60
Joined: Fri Mar 09, 2018 09:50
GitHub: IFRFSX
In-game: IFRFSX

Re: [mod]ranged weapons[2018.08.22] [0.3] [rangedweapons]

by IFRFSX » Post

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>
45.195.155.59, This is my server, port 30000, running web service! ; )

seller
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]

by seller » Post

I got this error:
+error
mod list:
+mods
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:

seller
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]

by seller » Post

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

Post Reply

Who is online

Users browsing this forum: crogonint and 3 guests