Author Topic: Perfect replay editor  (Read 8965 times)

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Perfect replay editor
« on: February 03, 2005, 03:01:25 AM »
Once I asked Zak about the possibilty of a program counting the best available replay. He said no - but what if we have the source code? Is there a program being able to produce the perfect replay? Just think it over:

Average length: 80 seconds (1600 units)
3 different buttons can be used in the same time unit (42 combinations)
Possible keyboard combinations in one unit with real meaning: about 20

The program must count 20^1600 possibilities... Okay it is a weak theory with weak maths but I would like to show that it's impossible. Too many possible ways although most of them are nonsense (crashing, driving on the grass, twisting on the road, etc.). Of course we can add some facts to decrease this horrible number (for example rules of useing the transmission, pressing accelerator as long as it's useful, following the road...) but the method seems to me quite impossible.

Do you have any idea? Some of you are really good in maths, programming and informatics - do you think the program can be written and used in reality?

DieselJoe

  • Cherry`s Chaser
  • **
  • Posts: 597
  • B?ff!
    • View Profile
Perfect replay editor
« Reply #1 on: February 03, 2005, 01:35:34 PM »
Maths? Computer Science? Nothing to do with this! :mrgreen:










:roll:
"Why can't we not be sober?"
Tool

zaqrack

  • Administrator
  • Addicted to spam
  • *****
  • Posts: 4523
    • View Profile
    • ZakStunts
Perfect replay editor
« Reply #2 on: February 03, 2005, 01:45:37 PM »
since when you are watching a replay, Stunts regenerates the whole physic happenings, collisions, acceleration, jumps, etc, everything, it's impossible to do a separate RPL viewer/editor without the sources of the original stunts physic engine.

if we'd have the sources it'd be not that hard to code an optimized replay searcher/writer, so let's celebrate we dont have the sources.

HappyWorm

  • Newbie
  • *
  • Posts: 3
    • View Profile
Perfect replay editor
« Reply #3 on: May 08, 2005, 11:40:50 AM »
Quote from: "zaqrack"
since when you are watching a replay, Stunts regenerates the whole physic happenings, collisions, acceleration, jumps, etc, everything, it's impossible to do a separate RPL viewer/editor without the sources of the original stunts physic engine.

if we'd have the sources it'd be not that hard to code an optimized replay searcher/writer, so let's celebrate we dont have the sources.


well you have at least the possibility to write a wrapper that hooks into the replay-engine  when stunts is loaded to memory and directly passes commands at the engine and fetches the result. of course this would be not very nice but I think it'll work.
second thing would be to reverse-engineer the whole program, first use a decompiler (if I remember correctly stunts was written in Microsoft C 5) and then translate the remaining asm-code per hand - time-consuming but a chance to get the code

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Perfect replay editor
« Reply #4 on: May 08, 2005, 03:29:37 PM »
I'll buy it! ;)

al il professore

  • Inline 16V
  • *****
  • Posts: 2221
  • sigua mamando
    • View Profile
Perfect replay editor
« Reply #5 on: May 08, 2005, 04:34:27 PM »
i dont know about you happy worm, who are you? i tried to decompile the sources until it gave asm. its not going anywhere because its compressed. I think you have a lot of good ideas but no pragmatism, like CTG and his stupid replay coding program idea.  :twisted:
It is reasonable to expect that genetic influences on traits like IQ should become less important as one gains experiences with age. Surprisingly, the opposite occurs.

HappyWorm

  • Newbie
  • *
  • Posts: 3
    • View Profile
Perfect replay editor
« Reply #6 on: May 08, 2005, 04:43:36 PM »
Quote from: "al il professore"
i dont know about you happy worm, who are you?

joined ZakStunts-Competition a few days ago and startet digging through old threads here to get a picture of the community here...

Quote from: "al il professore"
i tried to decompile the sources until it gave asm.

in my terms "decompile" means that you reverse the binary back into the plain source-code it was written in - MS-C in this case. Just make asm of it i used to call "disassemble"

Quote from: "al il professore"
its not going anywhere because its compressed.

I've just sent any game-executeable through a disasm and it worked without warnings. iirc - it used to complain if code was packed. So either it just missed something or the files are not packed. Could you name the file(s) from which you assume it is packed?

Quote from: "al il professore"
CTG and his stupid replay coding program idea.  

what is stupid about that? I would have used an other approach where I don't need the sources but I think in general it should be possible :)

al il professore

  • Inline 16V
  • *****
  • Posts: 2221
  • sigua mamando
    • View Profile
Perfect replay editor
« Reply #7 on: May 08, 2005, 11:28:41 PM »
read the code, code yourself, you can create new car shapes modifying any of the .p3s or .pvs files and you can add your own gif animation in any of the opp1 2 3 4 5 6 win lose and pre files. you can also modify the games musics in the .kms files...

but if you can do that you are the stunts messiah.

i think someone with the knowledge could really make useful tools for stunts drivers, but only one with such talent entered the community yet. mark nailwood with trackblaster and carblaster.

then okay, there was alanrotoi with the melange. but the geniuses and even new drivers are so rare those times.
It is reasonable to expect that genetic influences on traits like IQ should become less important as one gains experiences with age. Surprisingly, the opposite occurs.

HappyWorm

  • Newbie
  • *
  • Posts: 3
    • View Profile
Perfect replay editor
« Reply #8 on: May 09, 2005, 12:14:36 AM »
I dont't see where talent is needed for to do those things you've described above. The fileformats are all well documented and if they weren't it would just take some hacking to explore them. Afaik in stuntsfiles is nothing encrypted or encoded to complicate reverse-engineering like it was done in Master of Orion 2 for example - I needed nearly a week to completely crack their graphic-libs.

The bot that drives stunts instead of a human being would be surely an interesting project but I'm very short on time these days - so I think I'll have to wait til summer-vacation with that...

Mingva

  • Guest
Perfect replay editor
« Reply #9 on: May 09, 2005, 09:33:16 AM »
I just can say "WOW!"  :)

Overdrijf

  • Joe's Friend
  • **
  • Posts: 416
  • Professional idiot
    • View Profile
Re: Perfect replay editor
« Reply #10 on: January 24, 2007, 07:03:30 PM »
Replay editing... Sounds like it's not going to be the best driver winning...

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3621
  • "Do, or do not. There is no try."
    • View Profile
Re: Perfect replay editor
« Reply #11 on: January 24, 2007, 09:27:15 PM »
Replay editing... Sounds like it's not going to be the best driver winning...
I guess you're right. Welcome to the community Overdrijf!
There's a General Custer for every urban tribe

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Perfect replay editor
« Reply #12 on: January 24, 2007, 10:22:19 PM »
And welcome back Chulk! Where were you?

Krys TOFF

  • Addicted to spam
  • *********
  • Posts: 4713
  • Stunts Career project manager
    • View Profile
Re: Perfect replay editor
« Reply #13 on: January 24, 2007, 10:32:46 PM »
Quote from: CTG
And welcome back Chulk! Where were you?
He was preparing secretly his asskicking replays for ISM competition and he will send them only the last day of race. :D

Overdrijf

  • Joe's Friend
  • **
  • Posts: 416
  • Professional idiot
    • View Profile
Re: Perfect replay editor
« Reply #14 on: January 24, 2007, 11:28:17 PM »
Welcome to the community Overdrijf!
Thanks for the welcome.