APPCRASH, please JLV :(

Post your questions here
nioubie
Posts: 1107
Joined: Fri Jun 22, 2012 1:48 pm
Team: *eMc*
Location: France
Contact:

Re: APPCRASH, please JLV :(

Post by nioubie »

jlv wrote:
nioubie wrote:
jlv wrote:That information is in the log file already.
hum ? which log file u mean? i don't see.
It's printed to the console so it'll go wherever you redirect it to. If you're running it using nohup on Linux it'll be in nohup.out by default.
im not using nohup, didnt know about it. I use logsave to save the logs. It show all UIDs after a restart. But it would mean for the php script to search for the line :

mxsimspaintf Wed May 8 22:08:45 2013 (for example)

then capture all uids on each line that start with 2 numbers

like 22 6009 Spectator 36 250sxf(2009) Yohann Mayer | *eMc*nioubie

Thats quite difficult and could make problems :) Well dunno, would have been very clean and easy with an admin command that save only UIDs into a new file :)
kawy949
Posts: 979
Joined: Sat Feb 11, 2012 11:33 pm
Location: UK
Contact:

Re: APPCRASH, please JLV :(

Post by kawy949 »

I copy and paste into a text field on Central, and then my script iterates through each line, grabbing the id=UIDHERE and removes everything before and after.
nioubie
Posts: 1107
Joined: Fri Jun 22, 2012 1:48 pm
Team: *eMc*
Location: France
Contact:

Re: APPCRASH, please JLV :(

Post by nioubie »

kawy949 wrote:I copy and paste into a text field on Central, and then my script iterates through each line, grabbing the id=UIDHERE and removes everything before and after.
i do same actually. The thing i asked for was if we could type in the chat server,uidgrab as an admin command that would create a text file named : uidgrab.txt which would contain only the UIDs, 1 uid per line.
Then you could activate a script on the website that could download by FTP the file uidgrab.txt and then do his job to compare signed up players and grabbed players.

JLV said we could do that already with the log file but theres so much not-needed infos to parse into it.
jlv
Site Admin
Posts: 15410
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: APPCRASH, please JLV :(

Post by jlv »

I have been thinking about adding some stuff for calling external commands from the server, and having a server command to save the lineup to a file would be helpful in that case. I doubt I'd make it print only the UIDs though.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
nioubie
Posts: 1107
Joined: Fri Jun 22, 2012 1:48 pm
Team: *eMc*
Location: France
Contact:

Re: APPCRASH, please JLV :(

Post by nioubie »

jlv wrote:I have been thinking about adding some stuff for calling external commands from the server, and having a server command to save the lineup to a file would be helpful in that case. I doubt I'd make it print only the UIDs though.
ye as long as it could get parsed easier than the log file. :) like having before and after UIDs an unique line that never change.
jlv
Site Admin
Posts: 15410
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: APPCRASH, please JLV :(

Post by jlv »

I'll make something better, but if you're in a rush, look for "All ready!", skip the track/time line and then parse everything that looks like a player line.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
nioubie
Posts: 1107
Joined: Fri Jun 22, 2012 1:48 pm
Team: *eMc*
Location: France
Contact:

Re: APPCRASH, please JLV :(

Post by nioubie »

jlv wrote:I'll make something better, but if you're in a rush, look for "All ready!", skip the track/time line and then parse everything that looks like a player line.
Well, i guess we will continue with the copy paste, since that work :) Will change when you make the new things.
Thank you Jlv !
Post Reply