Old recordings URL

General discussion on MAME, MARP, or whatever else that doesn't belong in any of the other forums

Moderators: mahlemiut, seymour, QRS

User avatar
MJS
MARP Knight
MARP Knight
Posts: 367
Joined: Mon Jul 29, 2002 10:07 pm
Location: Buenos Aires, Argentina

Old recordings URL

Post by MJS »

Does anyone know how can I retrieve the URL of previous recordings? I want to make them available in the description because as some might know... higher score isn't always better gameplay! :)

Thanks 8)
LN2
MARPaholic
MARPaholic
Posts: 1669
Joined: Wed Jul 24, 2002 4:46 pm

Post by LN2 »

I noticed you did that with your pacland....but isn't a previous one deleted when you submit a new file for that same game?
User avatar
MJS
MARP Knight
MARP Knight
Posts: 367
Joined: Mon Jul 29, 2002 10:07 pm
Location: Buenos Aires, Argentina

Post by MJS »

The script says "deleting old score of ..." but the recording isn't deleted. I could do that with my pacland recording because I copied in the clipboard the old URL before uploading the new recording, but does anyone how to deduce the URL of old recordings? I don't understand how MARP organize the directory structure :?:
User avatar
mahlemiut
Editor
Posts: 4188
Joined: Mon Feb 04, 2002 10:05 pm
Location: New Zealand
Contact:

Post by mahlemiut »

No zip uploaded is physically deleted from the server. The database does keep track of previous recordings, in case of deletions/zeroing.
- Barry Rodewald
MARP Assistant Web Maintainer
Image
User avatar
Weehawk
MARPaholic
MARPaholic
Posts: 2562
Joined: Wed Jun 25, 2003 7:43 am
Location: Devil's Canyon
Contact:

Post by Weehawk »

Take the filename of the recording, without the ".zip" on the end.

Find the MD5 digest of the name. There is a generator here:
http://www.lagmonster.org/cgi-bin/encrypter.cgi

The first three hex digits of the MD5 digest are the names of the subdirectories the inp is stored in.

For example:

the recording is called:

mjs_pacland_686010_mame71.zip

the MD5 digest of

mjs_pacland_686010_mame71

in hex is:

9ebe0901ff6c04378a45f7c251ba20bf

So the inp's URL is:

http://marp.retrogames.com/inp/9/e/b/mj ... mame71.zip

John
LN2
MARPaholic
MARPaholic
Posts: 1669
Joined: Wed Jul 24, 2002 4:46 pm

Post by LN2 »

mahlemiut wrote:No zip uploaded is physically deleted from the server. The database does keep track of previous recordings, in case of deletions/zeroing.
ouch...I wonder how many gobs of obsolete inp files are at the MARP server then.

maybe on the submit page when submitting the default should be the old inp file is actually deleted...instead of just removing the score...with perhaps a checkbox having as an option to save that old inp file.

It certainly would free up quite a chunk of space as I'm guessing most that upload a new inp improving over an old score really don't care if the old one is kept on the server.

As far as zeroing etc. what difference does it make if a newer inp has been uploaded? The old one is voided as far as high score and leaderboard points.

Maybe this new checkbox could be by the one where you can check the box to have your inp uploaded to the tricks page/area and not considered for a high score.
User avatar
Chad
Tournament Coordinator
Posts: 4463
Joined: Tue Mar 05, 2002 3:15 pm
Location: calif

Post by Chad »

LN2 wrote:It certainly would free up quite a chunk of space as I'm guessing most that upload a new inp improving over an old score really don't care if the old one is kept on the server.
the main reason disk space is wasted is if someone upload a 433230 score and then a 434890 score and then a 434891 score.
LN2 wrote:As far as zeroing etc. what difference does it make if a newer inp has been uploaded? The old one is voided as far as high score and leaderboard points.
Mostly it's for archival backup purposes, it's cool when someone uploads a 400k score then a 900k score then a 1100k score, it's cool to have a record of how well someone progressed (i guess only the scores are necesary to mark improvement, but with inps you could compare techniques learned or unlearned from different scores.)

LN2 wrote:Maybe this new checkbox could be by the one where you can check the box to have your inp uploaded to the tricks page/area and not considered for a high score.
cool idea but still requires a page redesign.
-skito
User avatar
Weehawk
MARPaholic
MARPaholic
Posts: 2562
Joined: Wed Jun 25, 2003 7:43 am
Location: Devil's Canyon
Contact:

Post by Weehawk »

LN2 wrote:As far as zeroing etc. what difference does it make if a newer inp has been uploaded? The old one is voided as far as high score and leaderboard points.
If one submits a higher score for a game that one already has a recording uploaded, and the membership winds up deciding to remove the newer submission because they don't approve of some technique used, shouldn't the older recording be allowed to stand, assuming that it did not also use the (now) illegal technique?

John
User avatar
Weehawk
MARPaholic
MARPaholic
Posts: 2562
Joined: Wed Jun 25, 2003 7:43 am
Location: Devil's Canyon
Contact:

Post by Weehawk »

Chad wrote:the main reason disk space is wasted is if someone upload a 433230 score and then a 434890 score and then a 434891 score.
Well I have resisted on occasion uploading a score that wasn't enough of an improvement, but wouldn't it suck if you had a high score at 400k, and didn't bother to upload a score of 402k for this reason, then someone comes along and does 401k, after your time limit to upload. (Aren't inp's supposed to be upped within 48 hours or something?)
Chad wrote:it's cool to have a record of how well someone progressed
We can't see it though. Unless we have the exact filename, we have no way of knowing where it's stored, or even that it exists.

John
User avatar
MJS
MARP Knight
MARP Knight
Posts: 367
Joined: Mon Jul 29, 2002 10:07 pm
Location: Buenos Aires, Argentina

Post by MJS »

Weehawk wrote:We can't see it though. Unless we have the exact filename, we have no way of knowing where it's stored, or even that it exists.
That's why I want to make them available in the description. BTW, thanks for the detailed explanation. Needless to say, I am against the removal of recordings with lower score.
User avatar
MJS
MARP Knight
MARP Knight
Posts: 367
Joined: Mon Jul 29, 2002 10:07 pm
Location: Buenos Aires, Argentina

Post by MJS »

Thanks again John.. it works perfectly. Now I wonder why didn't they make only one subdirectory instead of three? It doesn't really matter, but I am curious! :o

What I mean is: why /9/e/b instead of /9eb :?:
User avatar
Weehawk
MARPaholic
MARPaholic
Posts: 2562
Joined: Wed Jun 25, 2003 7:43 am
Location: Devil's Canyon
Contact:

Post by Weehawk »

MJS wrote:What I mean is: why /9/e/b instead of /9eb :?:
Because that would create 4096 subdirectories in the inp directory.

This way it just has 16, and each of them has 16...and each of them has 16.

That's sort of the whole point of subdirectories.

John
Last edited by Weehawk on Mon Aug 11, 2003 4:50 pm, edited 2 times in total.
User avatar
MJS
MARP Knight
MARP Knight
Posts: 367
Joined: Mon Jul 29, 2002 10:07 pm
Location: Buenos Aires, Argentina

Post by MJS »

One more thing (I never post anything and now I flood the board :P ) I encourage everyone to do the same... or find a way to do this automatically I don't know. That's all, bye!
User avatar
MJS
MARP Knight
MARP Knight
Posts: 367
Joined: Mon Jul 29, 2002 10:07 pm
Location: Buenos Aires, Argentina

Post by MJS »

Weehawk wrote:
MJS wrote:What I mean is: why /9/e/b instead of /9eb :?:
Because that would create 4096 subdiectories in the inp directory.

This way it just has 16, and each of them has 16...and each of them has 16.

That's sort of the whole point of subdirectories.

John
Understood 8)
Buttermaker
MARP Seer
MARP Seer
Posts: 788
Joined: Sun May 19, 2002 9:06 am

Post by Buttermaker »

Aren't inp's supposed to be upped within 48 hours or something?
no
Post Reply