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.
.hak size
Débuté par
bealzebub
, oct. 14 2013 04:32
#1
Posté 14 octobre 2013 - 04:32
#2
Posté 14 octobre 2013 - 06:08
What is in there!? RWS all in one is hardly 400 MB
.
#3
Posté 14 octobre 2013 - 07:39
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.
as for my own preference - i have a few smaller ones - like you said - to keep things organised.
#4
Guest_Iveforgotmypassword_*
Posté 14 octobre 2013 - 08:08
Guest_Iveforgotmypassword_*
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
Posté 14 octobre 2013 - 02:56
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
Posté 14 octobre 2013 - 05:48
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.
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_*
Posté 14 octobre 2013 - 06:18
Guest_Iveforgotmypassword_*
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
Posté 19 octobre 2013 - 01:54
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
Posté 31 octobre 2013 - 06:15
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.
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.





Retour en haut







