View unanswered posts | View active topics It is currently Fri Oct 19, 2018 1:23 pm



Reply to topic  [ 6 posts ] 
 Loading multiple pack.bin 
Author Message
Rank 6
Rank 6

Joined: Wed May 17, 2017 7:35 am
Posts: 25
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?


Thu May 18, 2017 5:28 am
Profile
Site Admin
Site Admin

Joined: Thu Feb 07, 2013 11:16 am
Posts: 1853
Due to file conflicts (files with same name), loading multiple packs is not possible.


Thu May 18, 2017 8:54 am
Profile
Rank 2
Rank 2

Joined: Sun May 14, 2017 10:36 pm
Posts: 5
how is the project going for 4.0 any updates is it stilll alive or canceled? i have heard nothing for years


Thu May 18, 2017 10:45 pm
Profile
Rank 10
Rank 10

Joined: Mon Jan 05, 2015 5:47 am
Posts: 62
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


Fri May 19, 2017 7:20 pm
Profile
Rank 6
Rank 6

Joined: Wed May 17, 2017 7:35 am
Posts: 25
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!


Tue May 23, 2017 3:41 pm
Profile
Rank 6
Rank 6

Joined: Wed May 17, 2017 7:35 am
Posts: 25
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?


Wed May 24, 2017 9:02 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group.
Designed by X-Moon Productions.