• Assmod 2.30
    138 replies, posted
I hate it. [editline]4th June 2012[/editline] But I do credit OP for what seems like nice code.
[code] ---------------- 7/29/12 ---------------- Fixed timers. Fixed the new minimize/maximize/close buttons again.. Assmod now handles the join/leave messages due to a lack of a PlayerConnect event on clients. Access Menu now loads ranks and names from a table. Entity restriction menu now loads ranks and names from the table. Changed server convar settings from requiring Temp Admin to Super Admin. [/code] I should hopefully be updating the workshop release in a short while, if anyone wants to come check it out or just play I have a listen server going at the moment.
What're you using for the sub-menus? I remember that menu:GetItems() doesn't work anymore so I ended up having to use menu:GetCanvas():GetChildren().
Yeah, I'm pretty sure the Assmod on retail doesn't work because of that as well and hasn't for a long long time.
[lua] function PLUGIN.DisconnectCleanup(uid) local cleanupents = cleanup.GetList()[uid] if PlayerEntPending[uid] and cleanupents then PlayerEntPending[uid] = nil for k,v in pairs(cleanupents) do for k2,v2 in pairs(v) do if IsValid(v2) then v2:Remove() end end end end end function PLUGIN.PlayerInitialSpawn(pl) pl.LastPPMessaged = 0 if PlayerEntPending[pl:UniqueID()] then local cleanupents = cleanup.GetList()[pl:UniqueID()] PlayerEntPending[pl:UniqueID()] = nil if cleanupents then for k,v in pairs(cleanupents) do for k2,v2 in pairs(v) do if IsValid(v2) then PLUGIN.SetOwner(pl, v2) end end end end end end function PLUGIN.PlayerDisconnected(pl) local uid = pl:UniqueID() PlayerEntPending[uid] = true timer.Simple(75, function() PLUGIN.DisconnectCleanup(uid) end) end [/lua] Thanks to garry we can access the cleanup table to get entities from it, the cleanup list is also doesn't change as it's stored with your uniqueid instead of just on your player entity. So now Assmod has a prop cleanup for disconnected player's props and attributes them back to players who reconnect.
I really like the restrict tools menu!!
Hey Slayer, I'm a tard that's been digging around for awhile. How do I add the ASSmod to my dedi? I can't find download links anywhere. Nor can I find the files that I download via workshop.
There are no download links, it's only on workshop until the beta goes retail since I haven't completed everything I would like to still.
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=6856[/url] If you have the Gmod 13 beta, make sure you're logged in.
Either way, thanks for the lovely rework, and your wonderful Dedicated software. Makes life a hell of a lot easier. Keep up the good work, kind sir.
I think it would be a hell of alot better with chat commands
I was bored earlier so I decided to make a couple of plugins for this.. Since the OP said it needed a voice/chat mute plugin, I made that, as well as a teleport plugin (with teleport, goto, and bring). Here's some pics: [URL="http://puu.sh/Pkqn"]Mute[/URL] [URL="http://puu.sh/PkqX"]Teleport[/URL] And the codes (I've only recently dabbled with lua so the code might not be stellar, but I tried to stay as close to the other plugins' codes as possible) Mute: [url]http://pastebin.com/Ltefn9Gq[/url] Teleport: [url]http://pastebin.com/BDQCkcjq[/url] About the mute code, I figured the best way to mute someone would be to force a clientside mute on everybody but the target. I think that doing that is a lot more reliable than the way some other admin mods do it (and it can't be bypassed as easily). Also, I couldn't find a very good silkicon for teleport, so I temporarily used a door, if anyone finds anything better then feel free to tell me. Anyways, if anyone wants me to, I could pretty easily make more (blind, jail, ignite, etc.)
Looks good.
Download?
[QUOTE=LedZepp;37041548]I think it would be a hell of alot better with chat commands[/QUOTE] well you completely missed the point of assmod then [editline]20th August 2012[/editline] [QUOTE=slayer3032;37041034]There are no download links, it's only on workshop until the beta goes retail since I haven't completed everything I would like to still.[/QUOTE] .
Can we got more plugins? ignite, jail, vote etc.
[QUOTE=pilot;37432386]Can we got more plugins? ignite, jail, vote etc.[/QUOTE] Why would you even have that? - It's purpose is to help people. Not ignite / jail them.
They were just examples. A vote plugin would be good though, right?
Error for me im guessin gits cause its not updated 66.0 fps 0/12 on map gm_flatgrass Console initialized. ConVarRef mat_dxlevel doesn't point to an existing ConVar Game.dll loaded for "Garry's Mod" ------------------------------------------- -- Workshop Addon System In Offline Mode -- ------------------------------------------- Offline Addon: assmod_2.3_beta_6856.gma Offline Addon: balik_patrol_cruiser_76533048.gma Offline Addon: cry_of_fear_swep_pack_73295671.gma Offline Addon: css_realistic_weapons_87583255.gma Offline Addon: destructible_temple_72049207.gma Offline Addon: doom_snpcs_91752985.gma Offline Addon: drivable_dodge_charger_72145362.gma Offline Addon: freespace_gs_73829682.gma Offline Addon: half-life_2_beta_npcs_72818158.gma Offline Addon: half-life_2_properties_22104.gma Offline Addon: lua_rollercoasters_85202714.gma Offline Addon: nightmare_house_2_zombie_snpcs_79898189.gma Offline Addon: nomad_12745.gma Offline Addon: npc_tools_88499432.gma Offline Addon: npc_weapon_switcher_76974954.gma Offline Addon: phys_town_73156739.gma Offline Addon: rp_silenthill_87677560.gma Offline Addon: skyrim_snpcs_87840458.gma Offline Addon: stacker_86771505.gma Offline Addon: ultimate_amnesia_pack_90948216.gma Offline Addon: weight_stool_90837513.gma Offline Addon: [original]_hax_swep_19846.gma Refreshing filesystem... Garry's Mod server.dll Build #151 [Aug 23 2012 18:32:46] maxplayers set to 12 Unknown command "sv_allow_wait_command" Network:(--------------------------------------edited out) No custom nodegraph found! ERROR! Module 'tracex' not found! Particles: Missing 'particles/slv_explosion.pcf' Adding derived addon Doom Adding derived addon Skyrim ASS Plugin -> plugins/ass_cleardecals.lua ASS Plugin -> plugins/ass_default_writer.lua ASS Plugin -> plugins/ass_exformat.lua ASS Plugin -> plugins/ass_freeze.lua ASS Plugin -> plugins/ass_god.lua ASS Plugin -> plugins/ass_health.lua ASS Plugin -> plugins/ass_kill.lua ASS Plugin -> plugins/ass_map.lua ASS Plugin -> plugins/ass_noclip.lua ASS Plugin -> plugins/ass_notice.lua ASS Plugin -> plugins/ass_sandbox_cleanup.lua ASS Plugin -> plugins/ass_sandbox_limits.lua ASS Plugin -> plugins/ass_sandbox_options.lua ASS Plugin -> plugins/ass_sandbox_propprotect.lua ASS Plugin -> plugins/ass_sandbox_spamprotect.lua ASS Plugin -> plugins/ass_sandbox_toollimit.lua ASS Plugin -> plugins/ass_slap.lua ASS Plugin -> plugins/ass_team.lua ASS Plugin -> plugins/ass_weapons.lua Executing dedicated server config file server.cfg Hook 'PlayerSpawnNPC_plugins/ass_sandbox_spamprotect.lua' Failed: [lua/plugins/a ss_sandbox_spamprotect.lua:85] attempt to index local 'PLAYER' (a nil value) 1. lua/includes/modules/hook.lua:83 (unknown) 2. (tail call):-1 (unknown) 3. gamemodes/sandbox/gamemode/commands.lua:457 (unknown) 4. (tail call):-1 (unknown) 5. [C]:-1 (pcall) 6. lua/includes/modules/duplicator.lua:472 (Paste) 7. gamemodes/sandbox/gamemode/persistence.lua:47 (unknown) 8. [C]:-1 (pcall) 9. lua/includes/modules/hook.lua:80 (unknown) 10. (tail call):-1 (unknown) 11. gamemodes/sandbox/gamemode/persistence.lua:59 (unknown) 12. [C]:-1 (pcall) 13. lua/includes/modules/hook.lua:80 (unknown) Initializing Steam libraries for secure Internet server 'banip.cfg' not present; not executing. 'banid.cfg' not present; not executing. Connection to Steam servers successful.
[code] Replaced all instances of ValidEntity. Recreated NullEntity() in lua. Fixed the "asslog" folder not being created and silently not writing logs. Added Sezasm's Teleport plugin. Fixed noclipped players not having a action message when brought to. Alphabetized the player menu. Alphabetized the plugins menu. Alphabetized the sandbox menu. Alphabetized the weapons menu. Alphabetized the restriction menus. Added IncludeLocalPlayer to Set Access, Ban and Kick menus. Fixed SWEPs not spawning properly because an instance of the old swep.Classname. Added mute/gag plugin. Added alltalk/proximity voice server settings to discourage sv_alltalk use since it breaks gag. [/code] [code] [u][b]Todo:[/b][/u] Release. [/code] I alphabetized the menu the best I could since certain plugins register multiple menus and it would be stupid to separate them. I made a mute/gag plugin and added a couple built in settings so that you can still have sv_alltalk 1/2 functionality while keeping sv_alltalk 0, this is something no other admin mod has done yet and it never allows it to work properly. You can just remove the mute plugin if it interferes with your gamemode on your server too. I'd like for you guys to test it out as I'll be uploading it to workshop, if everything goes well I'll upload a zip for everyone and make a formal release thread with information about it and stuff. [b]Edit:[/b] Actually, I found that the notice bar doesn't go away when you delete all the notices. I'll have to have this fixed before release... [code] [u][b]Todo:[/b][/u] Fix notice bar not going away when all notices are deleted. Release. [/code]
Okay, I fixed the notice panel displaying notices after they have all been removed as well as updated the plugin loader to use "LUA" instead of LUA_PATH. I also added "IncludeLocalPlayer" to my mute plugin. I'll be uploading to workshop shortly and posting a link to a zip of it for you guys to modify and take on yourselves. When the beta goes retail and workshop files have to be reuploaded I'll make a more official thread which goes over Assmod a little more clearly. [editline]9th October 2012[/editline] [url=https://dl.dropbox.com/u/5601782/Assmod_2.3-Beta.zip]Click to download Assmod 2.30 Beta.[/url]
Well, fuck. I have absolutely no idea what's going on with all the recent change in syntax enforcement and the addition of LuaJIT. Either everything in Garry's Mod is broken or there's been significant changes which significantly break Assmod. I don't have the patience go through and rewrite it properly, I refuse to simply hack it back together without PCallError and whatever else is causing everything to fallout. Above is the link to a copy which was working perfectly before the most recent changes, good luck to anyone who picks it up and be sure to take credit for the hacky shit you added as I would rather not have my name on it. I guess this doubles as a goodbye to the Lua scripting and Gmod community since this was the sole thing keeping me around still. I'm some what disappointed that I won't be able to carry the admin mod which I've stuck by since 2007 and become so accustomed to as my interface for administration into gmod 13.
Yes they broke alot of it but no worry we will rewrite and get it working as we have half done now as it is.
[code]function PCallError(...) local arg = {...} local errored, retval = pcall(unpack(arg)) if not errored then ErrorNoHalt(retval) return false, retval end return true, retval end[/code]
Here is a fully working copy of sadistic's most recent version. [url]http://puu.sh/1k5Ou[/url]
[QUOTE=dbk21894;38233966]Here is a fully working copy of sadistic's most recent version. [URL]http://puu.sh/1k5Ou[/URL][/QUOTE] Looks like unban is broken. Unban: [CODE] [ERROR] addons/assmod/lua/ass_server.lua:642: bad argument #1 to 'Float' (number expected, got nil) 1. Float - [C]:-1 2. ASS_BeginProgress - addons/assmod/lua/ass_server.lua:642 3. unknown - addons/assmod/lua/ass_server.lua:991 4. unknown - lua/includes/modules/concommand.lua:69 [/CODE] Same thing happens with unban list.
whoopsie didn't check that
Old version had a beautiful thing as prop cleaner. Because some retards spawning lot of stuff and disconnecting, and we have to clean it by ourselves. Would you please fix it? Thanks.
SVNs assmod [url]http://assmod-2-3.googlecode.com/svn/trunk/assmod[/url] additional plugins [url]http://assmod-2-3.googlecode.com/svn/trunk/more_plugins[/url] [url]http://assmod-2-3.googlecode.com/files/Assmod_2.3.rar[/url] is the download as well [QUOTE=AssClown;38301029]Old version had a beautiful thing as prop cleaner. Because some retards spawning lot of stuff and disconnecting, and we have to clean it by ourselves. Would you please fix it? Thanks.[/QUOTE] I'll do that now. [editline]3rd November 2012[/editline] [url]http://assmod-2-3.googlecode.com/files/more_plugins.rar[/url] AFK Kicker Armor Burn Disable Kill Disconnect Cleanup Explode Gimp Grammar MOTD Mute No Player Collision Pickup Players Ragdoll Rocket Speed Teleport Voice Mute
Thanks. I could say that I don`t see anything useful in some additional addons, because they`re in ass mod already (explode, give/take armor, rocket). Also ragdoll make script errors, and when someone stand up, he is stripped and cant take anything, even after respawn. Also, prop protection working good, BUT... There are some gmod new feature. Most of mingebags dont know it. Look at the prop, press C and then right mouse button on this prop, so you could move it, ignite, make keep upright and stuff.
Sorry, you need to Log In to post a reply to this thread.