Author Topic: [Answered] what is the max file size useable for a .PNG for BlockTextures16.PNG/.XML?  (Read 255 times)

0 Members and 1 Guest are viewing this topic.

crazytater94

  • Supreme Member
  • *****
  • Posts: 2645
  • Mastering TM since 2011
  • Awards Awarded to exemplary forum members 5 years on site Members who have unlocked the robotic avatar 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
[Answered] what is the max file size useable for a .PNG for BlockTextures16.PNG/.XML?
« on: January 30, 2018, 02:23:27 AM »
I have been working on a texture pack mod for total miner, and all progress was going well, until last night...

I added about 15 textures, and was tired, so I didn't bother testing before bed like usual, seeing as the textures before that, for the last week were working no problem.

Now, when I load up total miner with the original texture pack, and the mod on, the default textures load. I know the mod is on, because the custom items are loaded in.

I triple checked the blocktextures16.xml file and all the coding is fine. here it is if it helps...
Spoiler for Hidden Content:
<?xml version="1.0"?>
<ArrayOfItemXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <ItemXML>
  <ItemID>Grass</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Chest</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ScriptBlock</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>SandBrick</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Ice</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>BirchWoodPlank</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Grassside</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Dirt</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Limestone</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>PineLeaves</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorCreme</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>PolishedAndesite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Painting</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Diorite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Fence</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorRed</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Coal</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorGreen</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>MultiTextureBlock</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>MultiTextureBlock2</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>HalfBlock</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Clay</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Tuff</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Leaves</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Workbench</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Serpentine</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Sapling</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>WoodTop</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>RedFlowers</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>LongGrass</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Sand</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Snow</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ConcreteBrick</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>SteelVent</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Andesite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>GrassShaded</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Post</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Post2</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Ladder</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Stairs</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Water</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Lava</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Scaffold</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Crate</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Gabbro</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Cobblestone</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>MossyCobblestone</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Sulphur</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Sandstone</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Stairs2</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorLightGreen</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorLightYellow</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorLightBlue</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Marble</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>SteelDoorBottom</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>SteelDoorTop</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>SteelPlating</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorDarkBlue</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Obsidian</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>AmbientSoundBlock</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>WoodDoorBottom</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>WoodDoorTop</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>LockedDoorBottom</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>LockedDoorTop</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>GrassyStone</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Scoria</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Wood</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>WoodVeneer</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Glass</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Cloud</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Copper</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Cassiterite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Basalt</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Dacite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Granite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>NPCSpawn</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Komatiite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Rhyolite</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Bedrock</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Carbon</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Flint</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Greenstone</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>YellowFlowers</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>PolishedMarbleBrick</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>PolishedRhyoliteBrick</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>PolishedKomatiiteBrick</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Diamond</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Ruby</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Gold</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Platinum</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Iron</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Opal</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Uranium</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Bricks</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ColorOrange</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Chess</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Bookcase</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Torch</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Furnace</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>LitFurnace</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Teleport</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>TNT</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>C4</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Wisdom</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Blueprint</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>WhiteFlowers</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>PurpleFlowers</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ItemShop</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>BlockShop</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>WovenLeaves</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>Rope</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>BedHead</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>BedFoot</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>ArcadeMachine</ItemID>
  </ItemXML>
  <ItemXML>
  <ItemID>SnowLayer</ItemID>
  </ItemXML>
</ArrayOfItemXML>

PNG Image if needed (It's very tiny due to gimp workspace):
Spoiler for Hidden Content:




The only difference from adding the new items to the code, was that I created a new GIMP file that is set to 6400 Pixels (Wide) by 16 Pixels (tall), because I ran out of room on the original one (1600X16). I then copied all the block textures, and pasted to the new GIMP file.

I made sure to replace the original sile with save as, so no file names changed, and I also exported as for the PNG, so again, not to modify the file names. The PNG file is "TP_16.png"


Would anyone be able to shed possible light as to why it's not working?

All I could think of is that the GIMP file is too wide for it, so would there be a limit to the width that total miner could read? Or could it offset GIMP, and total miner could be reading the neghative space? (Outside of editable area in GIMP)

PS: I also removed the coding from the recent changes and tested with no luck.
PSS: I am also pretty confident that I was able to successfully test the blocks with the GIMP file being it's current size, but I can't remember when exactly I changed it.

Marked as best answer by crazytater94 on January 30, 2018, 07:02:06 PM

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6650
  • Dig Deep
  • Awards Developer 5 years on site 4 years on site 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
  • Steam: tota1miner
The maximum  width is dependant on the installed graphics card, not an XNA or Total Miner limit.

6400 pixels is probably too wide for your graphics card.

A safe bet is 2048 (and for everyone who might like to use your mod).

You could also try 4096, which might work on your graphics card, but might not work on others.

I'd suggest sticking with 2048.

Dryym

  • Supreme Member
  • *****
  • Posts: 4334
  • What's yours is mine. ~TM's Resident Master Thief~
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site 3 years on site Site art contributions/TPs in-game/Contest winners 1 year on site
    • View Profile
    • Awards
  • Xbox: dryym
You realize that you can expand vertically, Right? It doesn't have to be a really long and narrow strip.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

crazytater94

  • Supreme Member
  • *****
  • Posts: 2645
  • Mastering TM since 2011
  • Awards Awarded to exemplary forum members 5 years on site Members who have unlocked the robotic avatar 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
You realize that you can expand vertically, Right? It doesn't have to be a really long and narrow strip.

How do you select which tile is chosen for each block? Or does it auto select when it host the end, and moves down?

AlienizdPixel

  • Tester
  • Supreme Member
  • *****
  • Posts: 2719
  • Hello
  • Awards 3 years on site Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 1 year on site
    • View Profile
    • Awards
  • Xbox: A1ienizdPixe1
You realize that you can expand vertically, Right? It doesn't have to be a really long and narrow strip.

...does it auto select when it host the end, and moves down?
Yes.
-Alionz

crazytater94

  • Supreme Member
  • *****
  • Posts: 2645
  • Mastering TM since 2011
  • Awards Awarded to exemplary forum members 5 years on site Members who have unlocked the robotic avatar 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
You guy's are geniuses. I set it to 2048 x 64, and it works like a charm... until i break it again ;)