[Mod] Firearms [0.2.0] [firearms]

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Mon Feb 18, 2013 23:36

Well, I launched 20 rockets and the game is slowing down... More and more, I stop him before crash. I have messages about error loading textures and a debug file with 7MB. Very bad. Is easy to reproduce this problem. Start a new game give to yourself the rocket launcher and rockets, chose a target and make 20 shots in the same area. You see the same problem, I think.
Last edited by deivan on Mon Feb 18, 2013 23:40, edited 1 time in total.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Mon Feb 18, 2013 23:43

The debug is full of this type of lines...
20:46:49: VERBOSE[ServerThread]: scriptapi_luaentity_activate: id=2101
20:46:49: VERBOSE[ServerThread]: virtual std::string LuaEntitySAO::getStaticData()
20:46:50: VERBOSE[ServerThread]: ServerEnvironment::addActiveObjectRaw(): Added id=2102; there are now 2102 active objects.
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_add: id=2102 name="firearms:explosion_smoke"
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_activate: id=2102
20:46:50: VERBOSE[ServerThread]: virtual std::string LuaEntitySAO::getStaticData()
20:46:50: VERBOSE[ServerThread]: ServerEnvironment::addActiveObjectRaw(): Added id=2103; there are now 2103 active objects.
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_add: id=2103 name="firearms:explosion_smoke"
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_activate: id=2103
20:46:50: VERBOSE[ServerThread]: virtual std::string LuaEntitySAO::getStaticData()
20:46:50: VERBOSE[ServerThread]: ServerEnvironment::addActiveObjectRaw(): Added id=2104; there are now 2104 active objects.
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_add: id=2104 name="firearms:explosion_smoke"
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_activate: id=2104
20:46:50: VERBOSE[ServerThread]: virtual std::string LuaEntitySAO::getStaticData()
20:46:50: VERBOSE[ServerThread]: ServerEnvironment::addActiveObjectRaw(): Added id=2105; there are now 2105 active objects.
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_add: id=2105 name="firearms:explosion_smoke"
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_activate: id=2105
20:46:50: VERBOSE[ServerThread]: virtual std::string LuaEntitySAO::getStaticData()
20:46:50: INFO: sigint_handler(): Ctrl-C pressed, shutting down.
20:46:50: VERBOSE[ServerThread]: ServerEnvironment::addActiveObjectRaw(): Added id=2106; there are now 2106 active objects.
20:46:50: VERBOSE[ServerThread]: scriptapi_luaentity_add: id=2106 name="firearms:explosion_smoke"
 

User avatar
Topywo
Member
 
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Mon Feb 18, 2013 23:52

I think it's because the explosion_smoke is an entity. I guess at a certain point they will be deleted or slow down your system, because it's trying to keep record of all the data about the entities (smoke) and probably busy creating and removing them. As far as I know the only thing that helps is not shooting that much.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Tue Feb 19, 2013 01:11

I love if the rocket convert items in small versions, like many rocks, in the actual method all is vanished. :-o
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Mon Feb 25, 2013 20:22

deivan wrote:I love if the rocket convert items in small versions, like many rocks, in the actual method all is vanished. :-o

The "explosion" code is based off PilzAdam's TNT mod. I removed that feature due to the (sheer ^ 2) amount of objects which would be generated by people shooting a sheer amount of rockets.

This mod was initially intended for "disposable", quick match worlds; you create a world, a few players join for a match, someone gets bored from being a 1337 fragger, the other users get bored of being fragged, the server shuts down, the world is deleted, and the cycle is repeated.

BTW, DO NOT SHOOT *ANY* WEAPON REPEATEDLY! Due to bugs(?) in the entity handling in the engine, the game may crash, lag or do other weird things when there are tons of entities.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
xavier108
Member
 
Posts: 227
Joined: Sat Nov 24, 2012 06:05
Location: Black Mesa Facility
IRC: Ezlif

by xavier108 » Sat Mar 02, 2013 04:23

Im gonna use this for my crossfire map in half life for minetest
Ezlif :D
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Sat Mar 02, 2013 22:11

Hey, Kaeza I made a minigun :) now all it needs is auto fire when hold down, mouse 1!

And I am working on, more you see soon. oh and I added it ammo to for it, and you are free to use it long as you get it working like a minigun ;)
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Sun Mar 03, 2013 00:06

Done with the minigun.

Right now working now it own sound and, add more weapons :) hey can you, maybe I don't know...Add mine as a version? yours is the official one and mine the unofficial one!
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sun Mar 03, 2013 04:55

How am I supposed to test it if you don't provide a link? ;)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Mon Mar 04, 2013 18:24

*BUMP*
Merged HybridDog's textures. Thank you for the nice textures :)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

mcwillis08
New member
 
Posts: 6
Joined: Thu Mar 21, 2013 20:33

by mcwillis08 » Fri Mar 22, 2013 19:37

whoa kaeza this mod is awesome!
If you see something dangerous and you are weak, go away
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Mar 23, 2013 02:09

mcwillis08 wrote:whoa kaeza this mod is awesome!

Thanks! Happy fragging :)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
Mihobre
Member
 
Posts: 101
Joined: Tue Oct 30, 2012 08:45
Location: In your mouth

by Mihobre » Thu Apr 04, 2013 13:31

Likwid H-Craft wrote:I will if I know how make one -_-

I know how you feel...(nods eyebrows understandingly)
Last edited by Mihobre on Thu Apr 04, 2013 13:32, edited 1 time in total.
I wanna fly!!!
I wanna have feathery wings of silver, blue, and white!!!
I wanna soar high and touch the sky!!!
I wanna fly!!!
 

jmil6137
New member
 
Posts: 2
Joined: Thu Apr 04, 2013 20:18

by jmil6137 » Thu Apr 04, 2013 20:44

it wont it work on the 4.6 version why
Last edited by jmil6137 on Thu Apr 04, 2013 20:49, edited 1 time in total.
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Apr 04, 2013 20:47

jmil6137 wrote:it wont it work on the 4.6 version

Care to explain why?
Follow the instructions on this topic, but instead of creating a new topic post the error here.
BTW: Did you rename the folder to just "firearms" ?
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

jmil6137
New member
 
Posts: 2
Joined: Thu Apr 04, 2013 20:18

by jmil6137 » Thu Apr 04, 2013 20:52

um no ill go do that now thanks
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Fri Apr 26, 2013 02:25

Herp Derp Hurr Durr!
Big Update!

- Now adds a (minimalist) HUD showing ammo in clip and in inventory.
- Support for different crosshairs for every weapon.
- Bullets now travel at the speed of light! No more ugly entities!

More to come soon :)

Edit: Requires the latest engine from git.
Last edited by kaeza on Fri Apr 26, 2013 02:26, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
xavier108
Member
 
Posts: 227
Joined: Sat Nov 24, 2012 06:05
Location: Black Mesa Facility
IRC: Ezlif

by xavier108 » Fri Apr 26, 2013 07:56

I seem to have a problem.A error like this shows
15:47:30: ERROR[main]: ServerError: LuaError: error: ...-0.4.6\bin\..\mods\minetest\firearms/firearmslib.lua:392: attempt to call method 'hud_set_flags' (a nil value)
Can you help me
I'm currently using minetest 0.4.6
Mods that I also installed
Butter_creeper mod
forcefield mod
fireworks mod
clock mod
Ezlif :D
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Fri Apr 26, 2013 22:01

xavier108 wrote:I seem to have a problem.A error like this shows
15:47:30: ERROR[main]: ServerError: LuaError: error: ...-0.4.6\bin\..\mods\minetest\firearms/firearmslib.lua:392: attempt to call method 'hud_set_flags' (a nil value)
Can you help me
I'm currently using minetest 0.4.6
Mods that I also installed
Butter_creeper mod
forcefield mod
fireworks mod
clock mod

You need a newer version of MT. The stuff that is needed was added yesterday.
Last edited by kaeza on Fri Apr 26, 2013 23:48, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
aldobr
Member
 
Posts: 316
Joined: Sun Nov 25, 2012 05:46

by aldobr » Sat Apr 27, 2013 01:16

Now we need a zombies mod...

Left 4 Minetest
Last edited by aldobr on Sat Apr 27, 2013 01:21, edited 1 time in total.
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Apr 27, 2013 06:37

Small update!
- Added reloading and "empty" sounds.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
Location: Netherlands
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Sat Apr 27, 2013 15:07

No entities, very nice! Except for rockets and grenades(which i agree should be visible). But that way you can play without lagy entities. BIG THUMBS UP.

Now we need FPS modes items that spawn ammo and weapons. Or you could craft while bullets are flying over your head. :P

Can't wait to have a PVP with snipers.
Last edited by Bas080 on Sat Apr 27, 2013 15:17, edited 1 time in total.
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Apr 27, 2013 15:17

Bas080 wrote:No entities, very nice! Except for rockets and grenades(which i agree should be visible). But that way you can play without lagy entities. BIG THUMBS UP.

Now we need FPS gamemode items that spawn ammo and weapons. Or you could craft while bullets are flying over you head. :P

Can't wait to have a PVP with snipers.

Hmm... I think I will split the mod into a modpack.
One mod will provide the base library (firearmslib.lua, explosion.lua, kutils.lua), another one will provide guns (pistol, shotgun, rifle, etc), another one for destructive weapons (launchers, so they can be easily removed if desired), and another one for item spawners.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Apr 27, 2013 16:36

Hybrid Dog wrote:How can I load a weapon?

Shift+Click (or whatever key you assigned to 'Sneak'+Click)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Apr 27, 2013 16:42

Hybrid Dog wrote:Zeg9 edited the tnt mod so that it supports protects.

Ah thanks for the info! I will look into that later.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 48 guests