Closed PwaDesu closed 4 years ago
Hi. I don't really know how to conver it back, at least now.
Are you tried to solve 512kb limit other way: for example using import_record
thing? ( it's \mis.vromfs.bin\gamedata\missions\cta\historical\bfd\moscow_bfd_norespawn.blkx file, you can find there few more files over 512kb, even over 1mb)
imports{
import_record{
file:t="gameData/missions/templates/base_logic_template.blk"
importAreas:b=yes
importUnits:b=yes
importTriggers:b=yes
importMissionObjectives:b=yes
importWayPoints:b=yes
showAreas:b=yes
showUnits:b=yes
showTriggers:b=yes
showMissionObjectives:b=yes
showWayPoints:b=yes
excludes{
}
}
Yeah, imports are very useful, but unfortunately, as far as custom missions go, they cannot be used in multiplayer (As when creating a new custom battle in-game, you can only provide a direct link to a single .blk
file, so imported files won't work - despite gaijin using imports internally. I guess, us, mere players, don't deserve that kind of power)
Do you know of any trick that could help reduce the size maybe? (I'm pretty sure new-lines are mandatory for example, but there could be some patterns that are only for human-readability and can be dropped like blank-lines)
What mission i can try to launch locally?
What do you mean?
I've written simple minimizer, i need to test it on mission locally, as i can't launch multiplayer missions. Test mission works.
you can't launch multiplayer missions?
As i understand, multiplayer mission requires:
No you don't need to pay anything, the process to start a custom multiplayer is the following:
cdn.discordapp.com/attachments/356224772184735756/699683602090295346/middle_east_ffa.blk
)The mission i just uploaded is very bare bones but works, so you can try to compress that
Nope, no "missions by url" for me https://wiki.warthunder.com/How_to_launch_a_custom_mission_in_the_game
Oh so that's really a thing... i never noticed... Well, maybe you can run your script on the mission i just uploaded (https://cdn.discordapp.com/attachments/356224772184735756/699683602090295346/middle_east_ffa.blk) and send it back so i can test it
Hmm, can't see this mission when placed to UserMission folder, but ExploreSweden.blk
shows in list.
middle_east_ffa.min.blk.txt
https://github.com/klensy/wt-tools/suites/597656412/artifacts/4376619 ,will do proper release later.
Alright, so I just tested the minified file you sent in custom multiplayer battles - and it works flawlessly. Pretty good compression ratio too, I cannot thank you enough for that
Yeah, imports are very useful, but unfortunately, as far as custom missions go, they cannot be used in multiplayer (As when creating a new custom battle in-game, you can only provide a direct link to a single
.blk
file, so imported files won't work - despite gaijin using imports internally. I guess, us, mere players, don't deserve that kind of power)Do you know of any trick that could help reduce the size maybe? (I'm pretty sure new-lines are mandatory for example, but there could be some patterns that are only for human-readability and can be dropped like blank-lines)
Ah, yes.
if ("imports" in misblk && "import_record" in misblk.imports)
err("import_record in imports not supported in user missions")
Hey there!
First, let me start by one thing: Thanks for these tools, I've been using them for months and it's made my life so much easier when working with WT's awful modding API.
Here I come with a rather counter-intuitive request (that I've tried to get done by myself but unfortunately python isn't my strong suit): Adding the possibility to repack
.blk
files that were previously unpacked.The reason for that is rather simple: Compressed
.blk
files are much lighter, and I believe they would still work for multiplayer missions (which are currently limited to 512KB, hence why the compression would help oh so very much)