Comments (4)
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.
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.
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.
This works great, thanks very much. Feel free to close this as WONTFIX or whatever's appropriate.
from omgifol.
Related Issues (20)
- Crash calling to_Image() on graphics lump objects HOT 4
- Create setup.py
- Polygon functions for usable sector shapes
- tall patches
- Graphic.to_Image() doesn't support transparency HOT 2
- TextureDef.to_Image()
- Replace structs with classes? HOT 4
- use standard data sizes in Graphic.to_raw
- PNAMES entries not being stripped correctly in py3
- omg.WAD should support reading from read-only WAD files. HOT 1
- mirror.py demo script has issues saving certain maps HOT 5
- randomly generate maps with different layouts HOT 6
- ACS script is not written into the new wad file HOT 3
- UDMF support HOT 1
- pk3 file support HOT 1
- Potential PK3 Support HOT 1
- inconsistent api for creating lumps from various classes HOT 3
- complains about missing SECTORS lump, but it's there HOT 4
- How to set started location and goal? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omgifol.