• lua_reloadent
    70 replies, posted
Server? I told you, single-player-development... But no errors, just fucked up console commands. I don't see any of my addons messing this up...
try entering this into your console: [code]lua_openscript autorun/lua_reloadent.lua[/code] btw: single-player mode also has client and server parts.
This'll make things way easier for me :D, thanks Tom!
Ahh amazing addon. Saves me loads of time, and very easy to navigate too with the autocomplete.
So, If i'm making a swep named... ah... Swep_good, I can say "lua_reloadent swep_good", and It would reload my swep? This is awesome! :D
yep, that's how it works.
thanks so much for this... saves me tons of time!
I made an SVN for all my stuff. lua_reloadent is available at: [url]http://tldevtools.googlecode.com/svn/trunk/lua_reloadent[/url] Not sure if I changed anything since the last release. Not much, if anything.
[code]] lua_loadent sent_homingrpg Loading entity 'sent_homingrpg'... autorun/lua_reloadent.lua:338: attempt to call global 'build_ent_index' (a nil value) [/code]
-snip- The SVN revision fixes this. I made a new release and updated the first post with it.
[code] ] lua_loadent sent_trackerbeacon Loading entity 'sent_trackerbeacon'... Loading entity 'sent_trackerbeacon'... autorun/lua_reloadent.lua:343: attempt to call global 'build_ent_index' (a nil value) [/code] Fails on the client this time :3: [editline]12:01AM[/editline] Did you also know about autorun/lua_reloadent.lua:162: attempt to index local 'table' (a nil value)? I just caught that one.
line 162 is that: for k,v in pairs(metatable) do means you still didn't update. about the client build_ent_index error: gah, locals... update from SVN now, should be fixed. I added lua_loadent solely by request. I don't use it myself so I don't spot these errors. EDIT: Added a check for the output of ent:GetTable(). This should get rid of the table nil error, although i really don't see why an ent has a nil table other than right after its creation, on the client.
Now I can startn learning Lua without boring Garry's Mod reloading... EDIT: I'm still using this. Still working addon!
It would be great if it could reload wire expression2 custom lua codes! :) I tried to reload "wire_expression2" but it wont reload custom codes. Request: add a function to reload expression2 custom codes. Really good addon otherwise, saves a lot of time!
1. wire_expression2 is the tool's name. the entity name is gmod_wire_expression2. 2. there is the wire_expression2_reload command, which works far better for E2. holy crap 3 weeks, I'll rate myself late ^^
Thanks for this.
Could you use ErrorNoHalt rather than Msg for the Reloading entity 'bla' text like lua_reloadents does please? It would prevent me hitting the key multiple times because there is no visible feedback. (What with Msg not showing up in the miniconsole developer 1 gives you :argh:)
Beautiful man. Just, beautiful. Things like this don't get enough attention.
[QUOTE=Lexic;19063525]Could you use ErrorNoHalt rather than Msg for the Reloading entity 'bla' text like lua_reloadents does please? It would prevent me hitting the key multiple times because there is no visible feedback. (What with Msg not showing up in the miniconsole developer 1 gives you :argh:)[/QUOTE] make entities that take longer to load :D I always use the console to reload my ents so the problem never cropped up
I tried this after modifying an ent's think function and tried to reload the changes with lua_reloadent wtib_radar_medium but nothing happened, no errors but also no update. I then tried the default reloadents which of course messed up everything on the map but applied my changes to the think function. So did I do something wrong or does this simply not work anymore? PS: yeah I know this is nearly 2 years old now, but if I'd make a new thread about this I'd get yelled at too so: meh.
I have no idea tbh as I don't play gmod anymore. Can someone else post whether they can still use this properly?
Remove the entity then reload it then spawn it, that's how I do it and it works for me.
[QUOTE=TGiFallen;33867498]Remove the entity then reload it then spawn it, that's how I do it and it works for me.[/QUOTE] Was just modding the gyro pod and it worked even without having to respawn it. Maybe respawn is only needed for LS like things like the wtib things I tested it first with.
very useful
I released a new version, 1.5.0, which adds support for the latest gmod 12 and 13 versions (gmod 12 support was already present in the SVN version before) [editline]15th June 2012[/editline] And 1.5.1... forgot to update weapon reloading for 1.5.1
[QUOTE=TomyLobo;36342632]I released a new version, 1.5.0, which adds support for the latest gmod 12 and 13 versions (gmod 12 support was already present in the SVN version before) [editline]15th June 2012[/editline] And 1.5.1... forgot to update weapon reloading for 1.5.1[/QUOTE] You are EPIC! I was looking for something like this YESTERDAY!
I fixed download link. apparently the images used for those are down.
Can you little recode your command lua_reloadent? When i have same name on stool and entity/weapon, i can't reload entity, and in some cases can't reload stool etc. Can you add paramether for manual set "type" of what thing you need reload? Something like "lua_reloadent stoolname 2", where 2 means this is stool, and there will be 0/1/2/3, where 0 - auto (like right now), 1 - entity, 2 - stool, 3 - weapon. This can be very usefull.
If you can make this reload effects, you can have my virginity
[QUOTE=AlexALX;36674694]Can you little recode your command lua_reloadent? When i have same name on stool and entity/weapon, i can't reload entity, and in some cases can't reload stool etc. Can you add paramether for manual set "type" of what thing you need reload? Something like "lua_reloadent stoolname 2", where 2 means this is stool, and there will be 0/1/2/3, where 0 - auto (like right now), 1 - entity, 2 - stool, 3 - weapon. This can be very usefull.[/QUOTE] i just posted lua_reloadent 1.5.2, which supports these 3: [code]lua_reloadent tool alex lua_reloadent swep alex lua_reloadent sent alex[/code] all with autocomplete, of course :)
Sorry, you need to Log In to post a reply to this thread.