[Mod] Firearms [0.2.0] [firearms]
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.
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"
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"
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.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
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.deivan wrote:I love if the rocket convert items in small versions, like many rocks, in the actual method all is vanished. :-o
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
Check out my stuff! | Donations greatly appreciated! PayPal
- Likwid H-Craft
- Member
- Posts: 1113
- Joined: Sun Jan 06, 2013 14:20
- Location: Lost in Crypt
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
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)
http://likwidtest.hj.cx/ (Not Done)
- Likwid H-Craft
- Member
- Posts: 1113
- Joined: Sun Jan 06, 2013 14:20
- Location: Lost in Crypt
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!
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)
http://likwidtest.hj.cx/ (Not Done)
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
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
Check out my stuff! | Donations greatly appreciated! PayPal
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
*BUMP*
Merged HybridDog's textures. Thank you for the nice textures
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
Check out my stuff! | Donations greatly appreciated! PayPal
-
- New member
- Posts: 6
- Joined: Thu Mar 21, 2013 20:33
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Thanks! Happy fraggingmcwillis08 wrote:whoa kaeza this mod is awesome!
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
Check out my stuff! | Donations greatly appreciated! PayPal
I know how you feel...(nods eyebrows understandingly)Likwid H-Craft wrote:I will if I know how make one -_-
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!!!
I wanna have feathery wings of silver, blue, and white!!!
I wanna soar high and touch the sky!!!
I wanna fly!!!
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Care to explain why?jmil6137 wrote:it wont it work on the 4.6 version
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
Check out my stuff! | Donations greatly appreciated! PayPal
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
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.
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
Check out my stuff! | Donations greatly appreciated! PayPal
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
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
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
You need a newer version of MT. The stuff that is needed was added yesterday.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
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
Check out my stuff! | Donations greatly appreciated! PayPal
Now we need a zombies mod...
Left 4 Minetest
Left 4 Minetest
Last edited by aldobr on Sat Apr 27, 2013 01:21, edited 1 time in total.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Small update!
- Added reloading and "empty" sounds.
- 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
Check out my stuff! | Donations greatly appreciated! PayPal
- Bas080
- Member
- Posts: 398
- Joined: Mon May 21, 2012 15:54
- GitHub: bas080
- IRC: bas080
- In-game: bas080
- Location: Netherlands
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.
Can't wait to have a PVP with snipers.
Now we need FPS modes items that spawn ammo and weapons. Or you could craft while bullets are flying over your head.
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.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Hmm... I think I will split the mod into a modpack.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.
Can't wait to have a PVP with snipers.
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
Check out my stuff! | Donations greatly appreciated! PayPal
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Shift+Click (or whatever key you assigned to 'Sneak'+Click)Hybrid Dog wrote:How can I load a weapon?
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
Check out my stuff! | Donations greatly appreciated! PayPal
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Ah thanks for the info! I will look into that later.Hybrid Dog wrote:Zeg9 edited the tnt mod so that it supports protects.
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
Check out my stuff! | Donations greatly appreciated! PayPal
Who is online
Users browsing this forum: No registered users and 28 guests