Giter VIP home page Giter VIP logo

Comments (4)

devinacker avatar devinacker commented on August 16, 2024

Back when I was first adding Python 3 support, I had to deal with cases where some IWAD maps had garbage following the ending null bytes in sidedef texture names. It's possible/likely that the only reason the MD5s differ after saving is because MapEditor removes these at load time.

I'm not really sure if there's a very good way to account for those cases that doesn't affect the MD5 of a map, though. It's kind of unfortunate that the sums can end up being affected by something that is totally invisible to the user and liable to be silently removed by WAD editing tools.

from omgifol.

JPLeBreton avatar JPLeBreton commented on August 16, 2024

Hmm. All I need out of omgifol in this case is to copy the map lumps' data directly into a new standalone file, is there a way to do that that doesn't even involve creating a MapEditor?

from omgifol.

devinacker avatar devinacker commented on August 16, 2024

In that case, you can just put a shallow copy of the map's lumps into a new omg.WAD instance and save that, i.e.:

src  = omg.WAD("doom.wad")
dest = omg.WAD()

dest.maps['E1M1'] = src.maps['E1M1']
dest.to_file("e1m1.wad")

This creates a new WAD with a byte-for-byte identical map to the source and is probably also significantly faster than having to parse and save all the map data each time.

from omgifol.

JPLeBreton avatar JPLeBreton commented on August 16, 2024

This works great, thanks very much. Feel free to close this as WONTFIX or whatever's appropriate.

from omgifol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.