News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

ZCT166 - 4 AM

Started by Shoegazing Leo, May 10, 2015, 10:23:47 PM

Previous topic - Next topic

Shoegazing Leo

I sent this replay, but this say what don't match. Why?


Akoss Poo a.k.a. Zorromeister

For me, the same. Let me take the lead from Leo with this replay.
Chürműű! :-)

629.09 km

zaqrack

now fixed, apologies for this issue.

Akoss Poo a.k.a. Zorromeister

Quote from: zaqrack on May 11, 2015, 01:48:16 PM
now fixed, apologies for this issue.

Thanks! A little problem still exists: Leo sent his replay at 10:23 p.m. instead of a.m.

Btw this is a Kalpen-like track.
Chürműű! :-)

629.09 km

dreadnaut

Uhm, the issue was caused by the extra information that Cas stored at the end of the track data. Stunts will cut those bytes when saving a replay on that track, so the version inside the replay never matches the .TRK file.

Since I cannot recreate those bytes, I can't really fix this on phpStunts' side. The only thing we can do is truncate the track files when we upload them to ZakStunts.

Cas

Ah!  Sorry, guys!  I designed this track some time ago, with the first Cas-Stunts. That editor generated an overlay, as you say, with the metadata for the track. I was aware of this, but didn't think it'd cause a problem. So it appears the system compares the track section in RPL with the whole TRK file, instead of just the first 1802 bytes of it. Of course, it's the first time it encounters a track with an overlay!

I had been planning to add metadata to the tracks generated by the new Cas-Stunts, but now I realise we would need to agree on how this metadata will be inserted. I want to add track tile and author's name, as well as championship data, such as what tournament it was made for, which cars are suggested for it or other things like that. Currently, Cas-Stunts is generating NO overlay.
Earth is my country. Science is my religion.

dreadnaut

Problem is, the moment you modify a track with any other editor (including Stunts' own) any additional data beyond 1802 bytes will be destroyed. And as we have seen, postfix data is also discarded when the track is stored in a replay file.

About time I write that online track database :-\

Shoegazing Leo

This is a Kalpen-like track, the last was a mix of Anxi, Dili and Default.

alanrotoi

So what I do? May I download it or wait?

Cas

#10
Uhmmm... I made a reply and tried to uploaded. It told me the track doesn't match. I verified inside the RPL file and it is exactly like the truncated version I downloaded from the site, so it should be OK. I'll attach the replay here.

@dreadnaut: It's true, when I insert an overlay, TB is unable to open the tracks and the internal editor will destroy the overlay, except the byte at location 1802, which is not used by the game, so I am storing a code there to identify the track as having been made with Cas-Stunts. This part shouldn't be a problem, because as long as you edit the track only with Cas-Stunts, you can view it with the internal editor (and TB, if you truncate it) and you can race it normally. When a replay is created, the overlay is lost, although the value of the track last byte is kept. Nothing to do about that. I can make a program that adds metadata to replays, if necessary, regardless of the replay length without affecting the length of the file itself. Another option is to store metadata in a parallel file, say trackname.met, but it'll be less comfortable for the user... I don't know.

@Leo: Well, I like that style. I like when you drive and see lots of things around, not so much empty space and I like high-speed stunts and vertigo. But I'm not that good a pipsqueak :P

EDIT: I solved the problem with the replay!  Looks like I was using the track with the old name 4AM.TRK, so that name was being stored in the RPL and that's why it wasn't taking it.
Earth is my country. Science is my religion.

alanrotoi

Do we start again with another track?

Cas

It's the same track, only that, because it was included with the editor, some of us may have started racing with it and then the RPL wouldn't be accepted by the site, because of a different track name, but the track is the same. Just make sure it's called ZCT166 before you record your replay.
Earth is my country. Science is my religion.

alanrotoi

So I download this track and I can race without problem?

zaqrack

Quote from: alanrotoi on May 12, 2015, 04:35:43 AM
So I download this track and I can race without problem?

yes, no issues now.