Search found 7 matches
- Mon Feb 06, 2023 4:34 pm
- Forum: Modding interface requests
- Topic: LuaRendering.draw_on_map
- Replies: 26
- Views: 9845
Re: LuaRendering.draw_on_map
+1 to this. Would be super useful to draw icons/shapes and text to the map.
- Fri Dec 30, 2022 3:39 am
- Forum: Modding help
- Topic: Maximum spritesheet width is 8192, but image is 1024 wide
- Replies: 7
- Views: 1792
Re: Maximum spritesheet width is 8192, but image is 1024 wide
Yup. Just noticed it myself after copy-pasting the prototype definition of the vanilla cargo wagon over mine. Thank you all for the help!
line_length defaults to 0, which means one row. Hence the bigger than 8k issue. It wasn't actually bigger than 8k, it just thought it was.
line_length defaults to 0, which means one row. Hence the bigger than 8k issue. It wasn't actually bigger than 8k, it just thought it was.
- Fri Dec 30, 2022 1:40 am
- Forum: Modding help
- Topic: Maximum spritesheet width is 8192, but image is 1024 wide
- Replies: 7
- Views: 1792
Re: Maximum spritesheet width is 8192, but image is 1024 wide
I tried replacing the settings to match the vanilla cargo wagon's but it is still throwing the same error (max width 8192). empty_flatbed_wagon.pictures = { layers = { { priority = "very-low", width = 222, height = 205, dice = 4, direction_count = 128, allow_low_quality_rotation = true; ba...
- Thu Dec 29, 2022 11:05 pm
- Forum: Modding help
- Topic: Maximum spritesheet width is 8192, but image is 1024 wide
- Replies: 7
- Views: 1792
Re: Maximum spritesheet width is 8192, but image is 1024 wide
I tried changing the width and height to something really small, like 12, and that let me into the game with no errors. But when I placed down my modded wagon, it was invisible.
- Thu Dec 29, 2022 10:41 pm
- Forum: Modding help
- Topic: Maximum spritesheet width is 8192, but image is 1024 wide
- Replies: 7
- Views: 1792
Re: Maximum spritesheet width is 8192, but image is 1024 wide
Interestingly, that did change my error. 1.397 Error AtlasSystem.cpp:1543: The given sprite rectangle (left_top=1024x0, right_bottom=1280x256) is outside the actual sprite size (left_top=0x0, right_bottom=1024x1024). See the log file for more information.: __mod__/graphics/entity/empty-flatbed-wagon...
- Thu Dec 29, 2022 10:18 pm
- Forum: Modding help
- Topic: Maximum spritesheet width is 8192, but image is 1024 wide
- Replies: 7
- Views: 1792
Re: Maximum spritesheet width is 8192, but image is 1024 wide
The definition for the prototype (with comments removed) is as follows: local empty_flatbed_wagon = util.table.deepcopy(data.raw["cargo-wagon"]["cargo-wagon"]); empty_flatbed_wagon.name = "flatbed_wagon"; empty_flatbed_wagon.inventory_size = 0; empty_flatbed_wagon.minab...
- Thu Dec 29, 2022 8:23 pm
- Forum: Modding help
- Topic: Maximum spritesheet width is 8192, but image is 1024 wide
- Replies: 7
- Views: 1792
Maximum spritesheet width is 8192, but image is 1024 wide
Hello, I am out of ideas on how to get past this, so I have come here for help. My mod includes a bunch of sprite sheets, but no matter how I resize or recombine them, I always get this error on launch: 1.072 Error ModManager.cpp:1560: Error while loading entity prototype "flatbed_wagon" (...