Advanced Prop Spawner - Spawn Entities and Contraptions!
130 replies, posted
i need something like this...
I have one worry tho- what if some minges randomly start creating a spawner for the spawner? like the good ol' fork bomb? thinks could get messy....
you cannot make a spawner spawn a spawner
and even if you could, it'd still not be like a fork bomb
fork bomb grows 2^n
spawner would just grow at most n^c where c is the amount of spawner levels you could be arsed to make
awesomeness! i'm making rockets on my spaceships now!( [url]http://www.garrysmod.org/downloads/?a=view&id=79245[/url] ) next update i will have ultimate ships! imagine an endless volley of rockets owning anything in font, all though maybe laggy?!? nice addon u got my download.
Awesome tool. I needed something to create rockets, but when the rocket explodes the thruster remains. I tried the standard thrusters and massless thrusters, both remained after the rocket exploded. I've tried V1.1 and V1.2, any ideas?
that probably means it doesn't dupe deleteonremove properly.
you can work around by putting an E2 with selfDestructAll onto your missile and nocolliding all components you wish to delete to the E2.
LOLWUT, when it's gonna be fixed?! RUN MR ACCIDENT
[QUOTE=RavMahov;17529030]LOLWUT, when it's gonna be fixed?! RUN MR ACCIDENT[/QUOTE]
what?
[QUOTE=thegrimace1234;17427821]Awesome tool. I needed something to create rockets, but when the rocket explodes the thruster remains. I tried the standard thrusters and massless thrusters, both remained after the rocket exploded. I've tried V1.1 and V1.2, any ideas?[/QUOTE]
Hmm in V1.1 and V1.2 they will remain until the timers undo time goes by. So they may fly around longer depending on the undo time you have it set to.
Make it possible to spawn NPC:s with this!
Edit: sorry, I didn't see there was already better versions than 1.0, you should update the first page.
I made version 1.1 and 1.2 and im not original poster, so I can't update the first page.
Absolutely love adv prop spawner, it opens up some very interesting possibilities.
Although as of late I've been getting an error whenever I try to use the adv prop spawner.
entities\base_gmodentity\shared.lua:52: attempt to call method 'GetVar' (a nil value)
If anyone knows what is causing it/a solution it would be much appreciated.
yeah that is a common error since the patch.
Look for "something:GetTable():GetPlayer()"
and remove the ":GetTable()", so it reads "something:GetPlayer()".
Do you know where I can find what I need to change? because I can't xD
either in the tool (lua/weapons/gmod_tool/stools/wire_advpropspawner.lua)
or in the server-side entity code (lua/entities/gmod_wire_advpropspawner/init.lua)
might be something similar instead
It only uses ENT:GetPlayer() doesn't ever use GetTable():GetPlayer()
It's calling the error on this
[code]function ENT:GetPlayer()
return self:GetVar( "Founder", NULL )
end[/code]
how about ent:GetTable():something() which then calls self:GetPlayer()
nah its in a
function ENT:blah()
self:GetPlayer()
end
like that I had to change it to self.Entity:GetPlayer()
Fixed and will be updating with entitymodifiers.
Still one bug with wire, but I don't think it's possible to fix.
[editline]06:55PM[/editline]
[url=http://www.garrysmod.org/downloads/?a=view&id=84684][img]http://www.garrysmod.org/img/?t=dll&id=84684[/img][/url]
Update 1.3:
Fixed errors with the new Gmod update.
Fixed errors if you don't have wire, so now will be compatible again without having wire installed.
Fixed error with automic undo if you undid the adv spawner before the automatic undo, undid what it spawned.
Added entitie's modifiers will now be applied.
Added an option to apply the orignal prop's modifiers, or the adv spawner's modifiers.
Modifiers- things such as weight, material, etc.
ENT:blah() should normally be called with self == self.Entity only
i.e. you're calling ENT:blah() wrong...
don't fix symptoms
I didn't make the function.... so don't blame me. It was only having a problem with self:GetPlayer in a numpad.OnDown function so I dunno.
its just ENT:SetOptions() so it's only called once it spawns.
-snip-
Someone asked about the error already
Very useful
Can't spawn all duplicatable entities. It can't spawn Gbombs. Which makes me sad.
Actually it can spawn all duplicatable entities(atleast with version 1.3 it can), gbombs isn't duplicatable. Try duplicating gbombs with the duplicator, it doesn't work.
Wait... this is a STOOL, right?
[editline]08:51PM[/editline]
[QUOTE=-TB-;19180977]Actually it can spawn all duplicatable entities, gbombs isn't duplicatable. Try duplicating gbombs with the duplicator, it doesn't work.[/QUOTE]
Yeah, well we don't want little kids spawning 100 Fat mans all over the server, now do we?
Yes, its a stool that turns props or contraptions into an adv spawner entity or SENT. Gbombs creator just never made error free duplication for it.
Ok just to prove that V1.3 works with any SENT that has dupe support I fixed the duplication with Gbombs.
Heres a patch if you already have gbombs you just drag it into your addons folder and overwrite the files it asks.
[url=http://www.garrysmod.org/downloads/?a=view&id=89057][img]http://www.garrysmod.org/img/?t=dll&id=89057[/img][/url]
Got a problem. I have tested every prop I want to use with the regular prop spawner and they work, however when I try to use the adv prop spawner I get serveral errors
rightclick or normal click on a new item
attempt to call method 'get var' (nill Value)
it makes what looks like a spawner anyway but i get this error trying to use it
attempt to index local 'dupe table' (nill value)
Also I tried to create a spawner with a thruster attached...the main object appeared to become a spawnner but the thruster did not appear
Any help would be great
Copy your console and paste it here. Which version are you using?
The wrong one >.> thats why...it's all fixed ty anyway
It doesn't copy cameras... I should have figured it wouldn't but still that would have been awesome
Sorry, you need to Log In to post a reply to this thread.