Results 1 to 6 of 6

Thread: sendgameservercommand and Cmd_ExecuteString docs

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    sendgameservercommand and Cmd_ExecuteString docs

    Hi all,

    I cant find the documentation of sendgameservercommand. How does this work? And when I do
    Code:
    	Cmd_ExecuteString( "say welcome to our server!" );
    my server crashes without telling me an error. It's a windows home-server and the console just gives me the message "This program doesn't respond anymore" Am I calling this incorrect?

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I haven't looked up the address for Cmd_ExecuteString in 1.0.
    https://github.com/M-itch/libcod_win...22bec9a20bafb4

    sendgameservercommand is currently linux only and works like this.
    PHP Code:
    sendgameservercommand(clientnummessage
    -1 as clientnum is all players.

    IzNoGoD uses it in his setText tutorial.
    http://killtube.org/showthread.php?2...out-precaching
    http://killtube.org/showthread.php?2...ertain-players
    Last edited by Mitch; 14th January 2015 at 11:02.

  3. The Following 3 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (14th January 2015),Ni3ls (14th January 2015),serthy (13th September 2016)

  4. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Oke so sendgameservercommand doesnt work. But what about cmd_executestring? That link doesnt help me:P

  5. #4
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Where can i find/see the servercommands? (like h for chat, d for huds)

  6. #5
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    They can be found in ida i guess or with some client dll hooks to dump all console prints but i haven't seen anything except /h for chat /i for team chat? and /d for cofnigstrings.
    sudo apt-get rekt

  7. The Following User Says Thank You to voron00 For This Useful Post:

    serthy (13th September 2016)

  8. #6
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Here's a full list after jumping through decompiled code:

    Code:
    C/67: weapon-related
    I/73: something with weapons
    I/73: ammo/weapon/health pickup
    J/74: ?? something in dropclient
    a/97: weapon-related
    b/98: not a clue
    c/99: inactivedropwarning/not a clue
    d/100: setconfigstring
    e/101: iprintln
    f/102: pickup ammo msg/weapon related
    h/104: say backend
    i/105: not a clue
    w/119: something in dropclient/shutdownserver. Might drop the client in question
    x/120: longer setconfigstring, %c %i %s, might be i = total amount of strings to follow, with 121 being an intermediate thing, and 122 being the final one?
    y/121: same as above
    z/122: same as above
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •