hello, guys!
disclaimer for moderators: i didn't decide where to put my topic and didn't find anything in search, so please move it to the branch more suitable for, thanks in advance!
so the request:
i have a telegram bot which controls my ut99 server (for my friends in case they want to change maps or mutators)
it also can send info messages about players and frag count by request (xan_info.png)
for now i try to figure out how to make him send message to the chat in case smb joins and match begins
i tried to parse data files at /Logs (the Unreal.ngLog.date.time.7777.tmp ones) but i assumed that it stops logging in case of any interaction (if i try to open it, or copy, or parse with python script)
the other thing is ucc.init.log which is more reliable for it.
i think it should be ok to parse it for game-start events, but i don't understand what event is suitable for such messages
option one: react at messages like "NotifyAcceptingConnection: Server MyLevel accept" it's ok but but it will spam to chat each time smb joins the game. in case of servertravel it will send messages for each player who already joined the server
option two: react at messages like "Game engine initialized" but this message doen't appear when server travels to the new map
it looks like server starts or travels and creates an event "Initiating local logging..." after that event everything relates to new game
so. is there any posibility to enhance looging in ucc.init.log?
is there any event that i'm missing?
parcing ucc.init.log for announcements in chat
-
- Posts: 2
- Joined: Sun Jun 30, 2024 11:59 am
parcing ucc.init.log for announcements in chat
You do not have the required permissions to view the files attached to this post.
to defeat your enemy shoot him till he dies
-
- Godlike
- Posts: 3304
- Joined: Sat Mar 21, 2020 5:32 am
Re: parcing ucc.init.log for announcements in chat
Use own mutator, which send info to log on desired event.
Or even send info over UDP to outside script, which listen port.
Or just on outer script query server once per minute for example, and get count players on it and compare with previous results.
Or even send info over UDP to outside script, which listen port.
Or just on outer script query server once per minute for example, and get count players on it and compare with previous results.
Last edited by Buggie on Mon Jul 01, 2024 9:40 pm, edited 1 time in total.
-
- Posts: 2
- Joined: Sun Jun 30, 2024 11:59 am
Re: parcing ucc.init.log for announcements in chat
sounds good, but it's some sort of hi-end programming.
for now i wonder if it is possible to solve this riddle with the available resources
upd: i've found mod making tutorial here https://ut99.org/viewtopic.php?t=4483 and try to figure out the handwritten mod.
for now i wonder if it is possible to solve this riddle with the available resources
upd: i've found mod making tutorial here https://ut99.org/viewtopic.php?t=4483 and try to figure out the handwritten mod.
to defeat your enemy shoot him till he dies