Comments (4)
Is this also with the python3 branch, or master?
(the former is a work-in-progress attempt at making the package compatible with both python 2 and 3, which I've been kind of neglecting; I had wanted to eventually merge the branch back into master once it was stable. Thanks for giving it a bit more testing - I'll look at both issues soon)
from omgifol.
Ah yes, I should have specified that this is with the master branch and Python2.
from omgifol.
OK, found the issue - python on your system treats longs as 8 bytes rather than 4, which is the size that omg.Graphic.to_raw
expects it to be when decoding the lump.
Rather than fixing this specific case just yet, I'd like to go through and make sure every call to struct.unpack
is sufficiently strict about size/endianness, but in the meantime you can change the format string on L151 of lump.py to '<%il'
which should be enough to fix exporting images.
from omgifol.
Should be better in 301ca31, give it a try.
from omgifol.
Related Issues (20)
- 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
- Discrepancy between same map data pre-and-post to_lumps HOT 4
- 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
- omg.WAD placing lumps in wrong groups with missing end markers
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.