Dedicated server help: sending messages automated

Discussion in 'General Discussion' started by Impenitent, Jul 5, 2017.

  1. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    I have a dedicated server setup and it is working fine. my question is:
    Is the anyway to send an automated message to users when they enter a new sector?
    Like maybe.. "This sector is teaming with aliens.. proceed with caution!"
    I have admin helper installed but I don't see a way to make that work. any help would be appreciated.
     
    #1
  2. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    #2
    binhthuy71 likes this.
  3. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    Sweet! thank you I will try that Xango2000
     
    #3
  4. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    Let me know if you need help setting it up, I know the documentation isn't all that great... Yet.
     
    #4
    Impenitent likes this.
  5. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    Thank you so much. I'm going to give it a try after work. I read the documentation and downloaded it.. I checked out the setup.txt file and will punch in ip info, port ect. After that I presume i run the Xangos Empyrion Tool 0.1.3.exe then type something like /setpf playfieldname "message i want to pop when someone enters the playfield" am i close or way off lol?
     
    #5
    Last edited: Jul 5, 2017
  6. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    I tested but must be using the wrong syntax heres the results:

    Logged in successfully
    Plys Running
    faction list

    list perm

    Still connected at 2017-07-05 18:25:13
    Still connected at 2017-07-05 18:26:13
    201 Name= Impenitent
    say f:%data1% 'Impenitent is logging on'

    Still connected at 2017-07-05 18:27:13
    say p:-1 'PFMessage for None: %data0%'

    say f:%data1% 'Faction MOTD: %data0%'

    201 Name= Impenitent
    say f:%data1% 'Impenitent is logging on'

    Still connected at 2017-07-05 18:28:14
    say p:-1 'PFMessage for Athena: %data0%'

    say f:%data1% 'Faction MOTD: %data0%'

    Still connected at 2017-07-05 18:29:14
    CHAT: Impenitent: /setpf SpaceAsteroidFieldRingAthena "message i want to pop whe
    n someone enters the playfield"
    checks passed
    793= UPDATE OR IGNORE PLAYFIELDS SET OWNERMESSAGE="SpaceAsteroidFieldRingAthena
    "message i want to pop when someone enters the playfield"" WHERE PLAYFIELD="Athe
    na" and OWNER="Impenitent"
    say p:-1 'Athena Message set to: No Owner or no Owner Message set'

    Still connected at 2017-07-05 18:30:14
    Playfield Change: Impenitent goes to Athena Orbit
    say p:-1 'Athena Orbit is owned by: None'

    Still connected at 2017-07-05 18:34:14
    Playfield Change: Impenitent goes to Athena
    say p:-1 'Athena is owned by: none'

    CHAT: Impenitent: /setpf Athena Orbit "message i want to pop when someone enters
    the playfield"
    checks passed
    793= UPDATE OR IGNORE PLAYFIELDS SET OWNERMESSAGE="Athena Orbit "message i want
    to pop when someone enters the playfield"" WHERE PLAYFIELD="Athena" and OWNER="I
    mpenitent"
    say p:-1 'Athena Message set to: No Owner or no Owner Message set'

    Still connected at 2017-07-05 18:37:14
    Still connected at 2017-07-05 18:38:14
    CHAT: Impenitent: /setowner Athena Orbit
    checks Failed
    Line 477= checkrole=fail checkfrole=pass checkfac=pass checkply=pass checkpf=pas
    s varcount=fail
    Still connected at 2017-07-05 18:39:14
    Still connected at 2017-07-05 18:40:14
    CHAT: Impenitent: /setowner Athena Orbit 17031
    checks Failed
    Line 477= checkrole=fail checkfrole=pass checkfac=pass checkply=pass checkpf=pas
    s varcount=fail
    Still connected at 2017-07-05 18:41:14
    CHAT: Impenitent: /setowner 17031
    checks Failed
    Line 477= checkrole=fail checkfrole=pass checkfac=pass checkply=pass checkpf=pas
    s varcount=pass
    Still connected at 2017-07-05 18:42:14
    Still connected at 2017-07-05 18:43:14
    CHAT: Impenitent: /pfsetowner 17031
    Still connected at 2017-07-05 18:44:14
    Still connected at 2017-07-05 18:45:14
    Still connected at 2017-07-05 18:46:14
    Still connected at 2017-07-05 18:47:14
    Playfield Change: Impenitent goes to Athena Orbit
    say p:-1 'Athena Orbit is owned by: None'

    Playfield Change: Impenitent goes to Athena
    Still connected at 2017-07-05 18:48:14
    say p:-1 'Athena is owned by: none'

    Still connected at 2017-07-05 18:49:14
    --------------------------------------------------
    :) any help appreciated
     
    #6
  7. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    ah, bug on Empyrion's side
    Empyrion doesnt send the correct PlayerID when players log on
    solution: Start the tool After you are logged onto your server and wait for a minute for it to record all the plys and admin data

    hmm, also. the way it is currently set up the only person that can set a Playfield message is the playfield's owner
    Solution: in the commands folder edit pfsetmessage.txt change the line that says
    dbpost: UPDATE OR IGNORE PLAYFIELDS SET OWNERMESSAGE="%var1%" WHERE PLAYFIELD="%playfield%" and OWNER="%player%"
    to
    dbpost: UPDATE OR IGNORE PLAYFIELDS SET OWNERMESSAGE="%var1%" WHERE PLAYFIELD="%playfield%"
    and open the database.db file, change the COMMANDS table where it says SLASH setpf, set ROLE to Admin (to restrict setting playfield messages to Admins only)
     
    #7
  8. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    Excellent, thank you I will try that now
     
    #8
  9. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    I made the changes and logged into the game before starting the program. Still having some weirdness sorry to say. also when leaving the planet(playfield) to orbit and reentering to see if the message appeared I kept bouncing off the atmosphere. possibly unrelated but it did it both trys then stopped after turning the application off. Going to try to post the logs and a pic of the db entry after edit to see if I messed it up lol. the zip file contains the logs, db change and application output from the cmd window

    Thanks again for your assistance.
     

    Attached Files:

    #9
  10. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    I was also thinking.. my server runs with eac on you think that may be a problem?
     
    #10
  11. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    Shouldn't be a problem, the server I test on is EAC enabled
     
    #11
  12. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    /setpf test
    setpf is set to use your current playfield
    did you want to be able to set a playfield message without going there?
     
    #12
  13. Impenitent

    Impenitent Ensign

    Joined:
    Mar 22, 2017
    Messages:
    8
    Likes Received:
    0
    Thank you. yep figured out that mistake last night.. I was typing in the playfield name and putting the message in quotes.. I have it accepting the message now and can see it in the database but for some reason when it sends the message when someone enters the sector it sends p:%pid% and pid =-1 because that user has -1 in the database so they dont see the message. maybe it picked up that number when I started the tool before they logged on on the other day. I thought about deleting the user out of the database but figure on starting fresh latter today anyway :)

    I am getting closer tho lol. I'm gonna start fresh and re-follow the instructions you sent as i have been messing with stuff. this tool can be extremely useful once I get it figured out.
    Eventually I want to make a space sector that when someone enters it teleports their ship to a location I have setup where i have drones and alien ships or bases parked. might not be doable but will be fun to try. Thanks again for your support on a great tool. Also what does the alert section in the playfield table do?

    Forgot to answer your question. It would be a nice function to add a message to a playfield with out having to visit it but that's not a big deal can always teleport there and do it but if there's a command I can add to the db and script i can write for the command it might be a good learning experience for me!
     
    #13
    Last edited: Jul 7, 2017
  14. Hawkie

    Hawkie Commander

    Joined:
    Dec 7, 2018
    Messages:
    150
    Likes Received:
    80
    You do know Xango that the old link in your profile leads to installation of malware? And malicious software?
     
    #14
    zaphodikus likes this.
  15. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    wow, Old link. That URL hasn't been in use for a couple years. Good catch.
     
    #15

Share This Page