Editing an ESM / Merging an ESP to an ESM

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
Chris
Posts: 1558
Joined: 04 Sep 2011, 08:33

Re: Editing an ESM / Merging an ESP to an ESM

Post by Chris » 22 Aug 2015, 12:29

scrawl wrote:That's too bad. Now I have everything loading without errors, but still a crash at the end. Not sure how to proceed. Anyway, will push the fixes so far.
I wonder if it will even be able to work, considering things like scripts not being compiled.

User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Editing an ESM / Merging an ESP to an ESM

Post by scrawl » 22 Aug 2015, 13:20

The existing scripts still have their bytecode saved. You'd only get into issues when creating new scripts or modifying existing scripts.

Code: Select all

Record: SCPT 'shrineGnisis'
  Name: shrineGnisis
  Num Shorts: 2
  Num Longs: 0
  Num Floats: 0
  Script Data Size: 797
  Table Size: 21
  Variable: button
  Variable: questionState
  ByteCode: 0601030920581810203D3D20310601010920730200203D3D20300501730200022031090109010601010920730200203D3D2030240109010601070920730200203D3D20310C0106706C617965720601031B2058FD10206F0F505F437572655F436F6D6D6F6E5F53203D3D20300010FB004865726520696E20476E69736973205669766563206D616465206120706F74696F6E20746F206375726520612076696C6C616765722077686F206861642066616C6C656E20696C6C2062757420636F756C64206E6F742070617920666F7220746865206865616C696E67206F66207468652054656D706C652E2056697665632070726F6D697365642074686174207468652054656D706C6520776F756C6420616C7761797320637572652074686F73652077686F20636F756C64206E6F742070617920616E64206C6566742068697320736163726564204D61736B20686572652061732061207369676E206F6620746861742070726F6D6973652E000005017302000220302401090100104900576F756C6420796F75206C696B6520746F20646F6E617465206120506F74696F6E206F662043757265204469736561736520616E642061736B20666F72206120626C657373696E673F00020459657300034E6F000501730200022032090106010B0920730200203D3D203205017301000520581E10000601050920730100203D3D20300C0106706C61796572D5100F505F437572655F436F6D6D6F6E5F530100231110536872696E655F476E697369735F535006506C617965720010A800546865204772616365206F66204A7573746963653A205468616E6B20796F7520666F7220796F7572206A7573746963652C204C6F72642056697665632E2049

User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Editing an ESM / Merging an ESP to an ESM

Post by scrawl » 23 Aug 2015, 12:05

I ended up writing my own tool to do this. Took only about 15 minutes to put together. I really just need concatenation of files, no merging, which simplifies things a lot.

The tool operates in a "raw" data-agnostic mode, so it's guaranteed to not destroy anything, reorder records or otherwise mess with your files.

User avatar
Zini
Posts: 5536
Joined: 06 Aug 2011, 15:16

Re: Editing an ESM / Merging an ESP to an ESM

Post by Zini » 23 Aug 2015, 12:23

I just ran a load-save-play cycle on basic Morrowind.esm. No crash. Only played for a few minutes, but everything seemed to work normally. If there is something broken, it seems to be very specific.

qqqbbb
Posts: 19
Joined: 29 Aug 2012, 14:18

Re: Editing an ESM / Merging an ESP to an ESM

Post by qqqbbb » 21 Sep 2015, 03:24

scrawl wrote: Anyone knows of any other (working) tools?
Tes3cmd

Post Reply