Demo recordings vs. Level order

Request patches for Keens 4-6.
Post Reply
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Demo recordings vs. Level order

Post by Nisaba »

hey there everybody,

I recorded a demo (let's say in K4) a while ago. Because of several circumstanced I had to rearrange the order of my level list. Of course this took effect of on my recorded demo, so that Keen is now acting a performance in an unfamiliar environment, which looks by the way a bit odd. Of course I could rerecord a new demo, but for some reasons I'd like to keep the old version, but reconnect it to the correct level...

so I opened up the demo file within a hex-editor to hopefully change the level number. but unfortunately I couldn't find anything related.

Ideas anybody?
User avatar
Fleexy
Site Admin
Posts: 490
Joined: Fri Dec 12, 2008 1:33 am
Location: Bloogton Tower

Post by Fleexy »

I am under the impression that the first two bytes of the DEMOx.CKe file are the level number as a little-endian word, so I think changing the first byte to your level ID ought to do it.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

This is correct; the first byte of the file is the level number. (Levels only go up to like 99.) Test this and see!
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

it is indeed correct!

(the strange thing is that last time I opened up the DEMOx.CKx in notepad++ it printed mostly zeros (00 00 00 00)... but this time everything works just fine... )
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

I never use notepad, it tends to corrupt your data.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

do you mean the windows default notepad.exe?
cause I was talking about the free source code editor Notepad++.

notepad-plus-plus.org
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Default. I use XVI32 or, if need be, SciTE.
User avatar
Nisaba
Posts: 320
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat
Contact:

Post by Nisaba »

Notepad++ is the editor of choice for me because it allows me to
  • implement customized macros for mass editing,
  • using plugins like Wiki Editor to editing Wiki articles offline
  • and of course to define own self-defined languages of a Syntax Highlighting scheme, which helps for eg keeping track of large Keen patch files.
  • and some minor other stuff like: the hex view, open and organize files in tabs, search globally in multiple files at once, and many other things too.
Post Reply