Remove Mulitplayer Times from state.dat

General discussion about the games and the scene.

Moderator: Moporators

Post Reply
User avatar
Schumi
39mins club
Posts: 870
Joined: 27 Jul 2003, 06:44
Location: Ikrény, Hungary

Remove Mulitplayer Times from state.dat

Post by Schumi »

Hi all!

Is there a way (software, etc.) to remove multplayer times only from the state?

Thanks in advance.
Elasto Mania - 34:21.69 | #421 - 11. April 2024
Ancient Internals
User avatar
pawq
38mins club
Posts: 6547
Joined: 24 Aug 2008, 19:56
Team: TR
Location: Southampton, UK

Re: Remove Mulitplayer Times from state.dat

Post by pawq »

Sorry, I don't know of any, but in case anyone else wondering, BRemover (Elma Bug Times Remover) doesn't work for multi times, just to save you checking :P (had to check myself)

jon can probably hack it in 3ms tho
User avatar
Schumi
39mins club
Posts: 870
Joined: 27 Jul 2003, 06:44
Location: Ikrény, Hungary

Re: Remove Mulitplayer Times from state.dat

Post by Schumi »

Jon do you happen to have a nice tool for that? :D
Elasto Mania - 34:21.69 | #421 - 11. April 2024
Ancient Internals
User avatar
Schumi
39mins club
Posts: 870
Joined: 27 Jul 2003, 06:44
Location: Ikrény, Hungary

Re: Remove Mulitplayer Times from state.dat

Post by Schumi »

anyone here to help? thanks and sorry for spamming
Elasto Mania - 34:21.69 | #421 - 11. April 2024
Ancient Internals
User avatar
jonsykkel
Kuski
Posts: 982
Joined: 24 Nov 2009, 20:53
Contact:

Re: Remove Mulitplayer Times from state.dat

Post by jonsykkel »

sry not hav
status:ONLINE - - -  drinking:GOFE - - - iq:85 - - - elasto mania ranking:#1
User avatar
skint0r
39mins club
Posts: 768
Joined: 16 Jun 2002, 07:36
Location: Oslo, Norway

Re: Remove Mulitplayer Times from state.dat

Post by skint0r »

I made quick terminal only program, use at own risk. I think it works though.

state-multiplayer-remover.exe

By default it tries to open state.dat in same directory and outputs state_mp_removed.dat file.
You can change any of those using option flags, example (you don't need to use both):

state-multiplayer-remover.exe -i otherstatename.dat -o otheroutputname.dat

Or just write state-multiplayer-remover.exe -h to see help info.
There are also MacOS and Linux release if someone needs.
Here is source code if want: https://github.com/hexjelly/state-multiplayer-remover
Prestigious member of 14.6x Tutor14 club
User avatar
pawq
38mins club
Posts: 6547
Joined: 24 Aug 2008, 19:56
Team: TR
Location: Southampton, UK

Re: Remove Mulitplayer Times from state.dat

Post by pawq »

the real mvp!
User avatar
Schumi
39mins club
Posts: 870
Joined: 27 Jul 2003, 06:44
Location: Ikrény, Hungary

Re: Remove Mulitplayer Times from state.dat

Post by Schumi »

skint0r wrote: 4 May 2020, 07:40 I made quick terminal only program, use at own risk. I think it works though.

state-multiplayer-remover.exe

By default it tries to open state.dat in same directory and outputs state_mp_removed.dat file.
You can change any of those using option flags, example (you don't need to use both):

state-multiplayer-remover.exe -i otherstatename.dat -o otheroutputname.dat

Or just write state-multiplayer-remover.exe -h to see help info.
There are also MacOS and Linux release if someone needs.
Here is source code if want: https://github.com/hexjelly/state-multiplayer-remover
Awesome skint! Thank you very much
Elasto Mania - 34:21.69 | #421 - 11. April 2024
Ancient Internals
User avatar
skint0r
39mins club
Posts: 768
Joined: 16 Jun 2002, 07:36
Location: Oslo, Norway

Re: Remove Mulitplayer Times from state.dat

Post by skint0r »

Let me know if unwork totally or something, I only tested briefly with one state.dat and didn't even look too carefully of results.
Also you can file any bugs to jonsykkel
Prestigious member of 14.6x Tutor14 club
User avatar
Schumi
39mins club
Posts: 870
Joined: 27 Jul 2003, 06:44
Location: Ikrény, Hungary

Re: Remove Mulitplayer Times from state.dat

Post by Schumi »

i get this error:

D:\GAMES\EOL>state-multiplayer-remover.exe
Error: InvalidStateFile

Edit: recreated state and used the old as merge.dat -> some times are lost, but everything is okay

probably state was broken, elma corrected it :)
Elasto Mania - 34:21.69 | #421 - 11. April 2024
Ancient Internals
Post Reply