Aller au contenu

Photo

.hak size


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
bealzebub

bealzebub
  • Members
  • 352 messages
Is there a limit to the size a .hak should be? and is there a good reason to have a few smaller ones instead of one giant one?
Looking in my hak folder, the largest one is 1.71 GB, but most seem to be below 200 MB. I don't have a GB worth of .haks in my project, and it's easier to keep track of some stuff when they are seperate, but if I ever wanted to, is there a reason not to make a .hak that is 2 GB or larger?
just curious.

#2
andysks

andysks
  • Members
  • 1 654 messages
What is in there!? RWS all in one is hardly 400 MB :D.

#3
Morbane

Morbane
  • Members
  • 1 883 messages
having one small one attached for "patching" is always a good idea - as you know practically anything can go in a hak - from scripts to creature blueprint updates and even conversation files.

as for my own preference - i have a few smaller ones - like you said - to keep things organised.

#4
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
I'd say yes there is a reason and that is that it probably wont run on a Mac because I think it's something that happens during the hak pak loading process that causes some modules to crash and having one that big is just asking for trouble.

#5
rjshae

rjshae
  • Members
  • 4 506 messages
Can the game engine read a hak file that is inside a compressed folder? I haven't tried it, but I know all their data files are delivered compressed so maybe it'll work. (Not sure about being able to add it to the module though; maybe do that first?)

Modifié par rjshae, 14 octobre 2013 - 02:57 .


#6
diophant

diophant
  • Members
  • 116 messages
Better not try it, but if you have to, share the results. It might tell us something about the game engine.

If the engine tries to keep the content of the hak file in memory, you might get into trouble. NWN2 is a 32bit application, and while 4GB RAM are theoretically possible for one application, Windows limits the memory size to 3GB if a certain switch in the OS is set and the application claims that it can handle this amount of data. Otherwise, you are restricted to 2GB. Moreover, if the virtual memory (i.e, the memory requested by the application) exceeds your physical RAM, which will happen on older computers, the OS has to swap memory to the disk, which will slow down the game.

#7
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
I know this is frowned upon but if your hak is really massive it might just be better off as an override because it's going to have so much custom content in it that there can't be much more that people would want so clearing out an override before playing wouldn't be an issue.

#8
rjshae

rjshae
  • Members
  • 4 506 messages

rjshae wrote...

Can the game engine read a hak file that is inside a compressed folder? I haven't tried it, but I know all their data files are delivered compressed so maybe it'll work. (Not sure about being able to add it to the module though; maybe do that first?)


This doesn't work, unfortunately. I tested several different approaches but the game doesn't recognize the compression. It's unfortunate because it would probably speed up the load.

#9
luna_hawke

luna_hawke
  • Members
  • 88 messages
The one for Baldurs Gate Reloaded is pretty big.
I forget exactly but probably in the 1GB - 1.5GB range.
They put just about everything in one hak.
It worked fine.

It's hard to tell how the memory footprint comes into play.
I don't think your entire hak file gets loaded into the game process at load time.
i.e. A 4GB hak does not equate to your running nwn2 process being over 4GB so.

Probably a safe bet is what is mentioned above though just to be safe. 4GB max.