xmoonproductions.org
https://www.xmoonproductions.org/

Loading multiple pack.bin
https://www.xmoonproductions.org/viewtopic.php?f=28&t=5084
Page 1 of 1

Author:  enkephalin07 [ Thu May 18, 2017 5:28 am ]
Post subject:  Loading multiple pack.bin

I figured out that these two lines do the same thing:
Code:
#include "init/stories/dungeon/lib/defines.dat"
#include "../pack_dungeon/init/stories/dungeon/lib/defines.dat"

I tested it in other pack directories and it works; you can include files from outside the pack, so you don't need to bloat your own pack with separate copies.

If there's a way to load files from packed .bins, that would be the best way to access a standard code base while minimizing file redundancy. A loaded pack gets a virtual directory that supersedes drive directories, but how would I load an additional pack from a story or fast pack? Or simply load the files I want to include from it?

Author:  xpadmin [ Thu May 18, 2017 8:54 am ]
Post subject:  Re: Loading multiple pack.bin

Due to file conflicts (files with same name), loading multiple packs is not possible.

Author:  GamerKarim21 [ Thu May 18, 2017 10:45 pm ]
Post subject:  Re: Loading multiple pack.bin

how is the project going for 4.0 any updates is it stilll alive or canceled? i have heard nothing for years

Author:  Roggvir [ Fri May 19, 2017 7:20 pm ]
Post subject:  Re: Loading multiple pack.bin

GamerKarim21 wrote:
how is the project going for 4.0 any updates is it stilll alive or canceled? i have heard nothing for years
https://www.xmoonproductions.org/viewtopic.php?f=44&t=4719

Author:  enkephalin07 [ Tue May 23, 2017 3:41 pm ]
Post subject:  Re: Loading multiple pack.bin

Hm, according to http://wiki.xmoonproductions.org/index. ... ttings.ini, multiple packs can be loaded:

Code:
  // The gui pack file
  pack0        = "pack/pack0.bin";
 
  // Alternative pack path, set this path to shared files
  // Useful while developing and not having to have same file included in every pack
  pack2        = "";

Shared files is what I had in mind when I posted this. So I packed a 'pack2.bin' with all scenes/, state/ and ai/speech/ data from tentacle dreams, dungeon and abducted packs, removed those folders from my own pack folder, and added pack2 = "pack/pack2.bin"; to the Runtime section of settings.ini.

And it works! No errors on loading, and though I haven't tested it exhaustively, I'm not getting any errors exploring in story or fast sex modes, and not missing objects, textures or sounds.

EDIT: For the hell of it, I tried changing pack2 to pack_tentacle_dreams.bin and running tentacle dreams, and duplicate .dat files did cause a crash with
Code:
ERROR: GAMESTATE open failed: file 'init/stories/tentacle_dreams/init_nerd.dat' cannot be loaded: Opening pack: 'pack/pack_tentacle_dreams.bin' failed, is your install complete?

Yeah, it's twice as complete!

Author:  enkephalin07 [ Wed May 24, 2017 9:02 pm ]
Post subject:  Re: Loading multiple pack.bin

This causes issues with pack mods that feature revised versions of the media contained in pack2. Doesn't this seem opposite of what would be useful? If pack2 provides media common to many stories, a pack selected from the menu defines a specific scenario, so shouldn't it preempt?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/