Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: StormLib and modifying "protected" files
StormLib and modifying "protected" files
Jul 29 2024, 12:14 am
By: sethmachine  

Jul 29 2024, 12:14 am sethmachine Post #1



I was trying to manually update a (listfile) but kept getting failures with StormLib. I believe StormLib instead wants to manage this and do the (listfile) update manually.

I found this history saying some files are protected: https://github.com/ladislav-zezula/StormLib/blob/539a04e06578ce9b0cf005446eff66e18753076d/doc/History.txt#L44-L48

These include: - The only operation that is externally allowed to do with internal files
("(listfile)", "(attributes)" and "(signature)") is reading. Attempt to modify any of the file
fails and GetLastError returns ERROR_INTERNAL_FILE

Ok that explains my errors. But what if I need to modify any of those files directly? Do I need to rebuild StormLib and remove those protections?



None.

Aug 2 2024, 6:19 pm jjf28 Post #2

Cartography Artisan

The latest versions of StormLib can modify listfiles just fine, e.g. https://github.com/TheNitesWhoSay/Chkdraft/blob/master/MappingCoreLib/MpqFile.cpp#L135



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Oct 9 2024, 1:49 pm sethmachine Post #3



Thanks jff28.

Just closing this out, you should never need to modify listfile or other protected files directly. StormLib will update these files automatically when you add or remove files from the MPQ archive. You can verify this by adding a file, saving the archive, and then extract the listfile. It should be updated for you!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[04:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[04:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[06:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[03:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[03:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
[2026-6-19. : 9:57 am]
Oh_Man -- artosis dropped pretty interesting vid: https://youtu.be/EqZHB8Blra4
[2026-6-18. : 5:01 pm]
Ultraviolet -- :wob:
[2026-6-17. : 6:15 am]
RexyRex -- :wob:
Please log in to shout.


Members Online: Ultraviolet, Zycorax