-
Posts
70 -
Joined
-
Last visited
-
Days Won
6
Content Type
Forums
Profiles
Events
Gallery
Downloads
Articles
Posts posted by Geo
-
-
Was testing out this cmd and noticed when it is set to "3" the sprees rightfully appear in the banner location - all expect the 30 mark 'wicked sick'. From 5-25 this is fine but at 30 it switches to the left notification area (2) for some reason. It's not an issue but i'd like to know whether I could put this at the top with the others.
I tested this on 2 servers to be sure and the same behaviour is displayed on both.
-
If I wanted to record the silent guid of a player, how can I dump this information into a log that I've created (eg guids.txt) or something? So this information can be accessed at any time. Is there a certain cmd for this? thanks
-
I had to change a hell of a lot of things to make it function, but thanks for making it public nevertheless. There isn't a version specified for silent mod anywhere I assume? I did check the download page again, might be helpful for other admin
-
This would be a nice feature.
-
As additional info - are there any specific moments when sounds will NOT play (ie killing spree sounds, multikill sounds) or you don't hear them. Perhaps if you die straight after getting a multi/spree? Just sometimes I can't hear the sounds and ideally would like the sounds to be heard by all clients every single time one is achieved. Thanks!
-
Problem fixed - i'd removed the ludicrouskill and holyshit msg, so it was trying to exec something that didn't exist.
-
There's one last problem I have having!
Everything else is functioning so thanks for all of these replies.
This error keeps appearing in the etconsole.log (repeated LOTS of times)
Lua API: et_RunFrame error running lua script: [string "kspree.lua"]:642: bad argument #1 to 'format' (string expected, got nil)
This seems to have appeared after I put ludicrouskill.wav and holyshit.wav into my .pk3 file, and then uploaded to the server. These files in particular I had to download and convert into wav files from mp3, as I couldn't find a already-man soundpack with these in. The error log is referring to line 642 in the et.RunFrame function, which would be the quoted line below. Any ideas on what is causing this problem? It doesn't seem to affect anything on the server and everything seems to be working fine which I found strange. As always, thankyou!
sayClients(kmulti_pos, string.format(kmulti_msg,
m_name))function et_RunFrame(levelTime) if math.mod(levelTime, 500) ~= 0 then return end local ltm = et.trap_Milliseconds() gamestate = tonumber(et.trap_Cvar_Get("gamestate")) if gamestate == 0 then -- wait before display multi/mega/monster/ludicrous-kill AND display highest -- wait_table[id] = {lvltime, 2} table.foreach(wait_table, function(id, arr) local guid = getGuid(id) local m_name = playerName(id) local startpause = tonumber(arr[1]) local whichkill = arr[2] if whichkill == 1 and (startpause + 3100) < ltm then if kmulti_announce then sayClients(kmulti_pos, string.format(kmulti_msg, m_name)) if kmulti_sound then --et.G_globalSound(multisound) soundClients(multisound)
-
Thankyou! This worked perfectly
-
I have a couple more problems! (perhaps good for me, I learnt a lot from them
)
Anyway in my script I want the killing sprees to stop at 30, not continue such as 35, 40 etc. Once it hits 35, the msg for a normal 5 killing spree appears, and this continues on limitlessly. Is there any way for me to make the sprees stop at 30?
I did check this topic: http://mygamingtalk.com/forums/topic/995-kspreelua/
but there didn't seem to be a solution (unless i'm mistaken?) Thanks again to all who reply!
-
Thanks for the commands
Also, I've got my script to work, except the default killing spree, double/triple kill etc msgs are still showing along with mine. Can I disable the default msgs so that the ones customised in .lua can be the only ones showing to all clients?
-
Thanks for the fast reply, I realised I could edit the position using lua, which is what i'm working on now. If anyone knows of this cmd then that would be great! I'll look through the topic you posted, thanks
-
I have a few issues that I would appreciate help solving. Figured I should just post here instead.
1. If I was writing a spec.lua script and I wanted this to become a command called !spec in shrubbot.cfg (which would spectate player as on jaymod), how can I exec the script when the command is executed by the user. E.g
[command]
command = spec
exec = what would go here? something to exec spec.lua
desc = spectates the player
syntax =
levels = 0 1 2 3 4 5
2. How can I position the killing/death/revive spree announcements at the top of the screen, instead of in the usual console position? Is this a cmd or is the use of lua necessary? Could I use banners instead? e.g
"name is on a killing spree! (5 kills in a row)"
Any help would be welcomed, thanks.
-
Thanks, I have it working now. It was just simply renaming the .wav files to the axis_win and allies_win
-
I assume it's possible to change the intermission music in silent mod? On the server doing the command /play sound/music/axis_win plays the sound for me but i don't know where the 'music' folder is.
I've made a pk3 file with the correctly converted sounds and would like to have this play at the end of each map. Do i just rename the sounds to axis_win.wav and allies_win.wav and create the same path structure? Or do i need to locate this sound/music and replace the original sounds with my custom ones with the same name? Thanks.
-
I'm not sure if editing the sess.spectatorClient with http://mygamingtalk.com/wiki/index.php/Silent_Lua#gentity_set will work. You can try but there are risks when editing these fields so proper testing should be done before adding the script to your public server. Also, the sess.spectatorState must be set to the value 2 at the same time.
Do you think you could explain a little bit more about sess.spectatorClient? I checked its function using the Lua wiki page but i'm still unsure of how I can edit this using gentity_set. I do understand that the value of sess.spectatorState has to be set to 2 but how does this coincide with the spectatorClient. Thanks
-
Ok, thankyou very much for your reply, it's greatly appreciated!
-
I am learning the basics of the silent mod and I have encountered a couple of problems. I would like to create a custom command called !spec - which would work in the same way as the !spec command on jaymod. This is a feature that has been requested and I think it is quicker than finding the slot number and using /follow. However, i can't seem to get this command to work. I have no idea if i am right but i tried this:
[command]
command = spec
exec = follow (name|slot#)
desc = spectates the player
syntax =
levels = 3 4 5
I doubt that 'follow' function or the 'name/slot' part is correct and this is where i'd like some assistance. What do i need to exec in order to spectate a player, if it's possible of course. Other random custom cmds have been fine so far.
Also, is there a way to incorporate say the jaymod style killing sprees (or something similiar). The (animation?) green-coloured killing spree was quite a nice feature which players seem to want on the server too, but i don't know what format the sprees are in but in particular whether i can edit the killing spree display. Here's a picture of what I mean: http://i70.servimg.com/u/f70/15/00/85/90/94489211.jpg It's default currently, just displaying the msgs in the console.
Forgot to add - could this be possible using lua?
Thanks.
Recording in logs
in General Discussion
Posted
If I was getting player guids like this:
and checking if clients use a certain cmd (let's say i'm looking for people trying to access rcon for example) something like this
I want a msg to print to the client, but I want to record their silent GUID in the console log for further notice. How can I do this? Thanks
Could be totally in wrong direction here but i'm just experimenting