Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Are you able to make nested packadges? (Dir in main game dir with packs)  (Read 5890 times)

0 Members and 1 Guest are viewing this topic.

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog

As default you have the data package and all the game exe and stuff in the root of your install dir.

Is it possible to have a directory tree in the install folder that contains the packages.

Eg:-
GameName (install dir)
 - gamefile.exe
 - Settingsfile.exe
 - data.dcp (main pak)
>>>Locations
       - Location1.dcp
       - Location2.dcp
       - Location3.dcp
>>>Speech
       - GameReleaseEp1.dcp
       - GameReleaseEp2.dcp
       - GameReleaseEp3.dcp
>>>FMV
       - GameReleaseEp1.dcp
       - GameReleaseEp2.dcp
       - GameReleaseEp3.dcp
>>>Patches
       - fix1.dcp
       - fix2.dcp

I ask as we are planning to serialize our game and make it modular....

Example - Initial Release (ep1)
 - You can download the full game, or you can download the game with out any of the speech files or FMV sequences, or chose one of either.

Example - Release of Ep2
 - All you need for this game is to download the new location pack, plus the optional packs.

(ect ect)

At the moment each pack sits in the root of the game folder and if you are releasing additional packs + possibly patches.. then this dir will get all crowded and ugly pretty quickly.

Or is there a better way to do this kind of modular release idea?
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #1 on: September 29, 2007, 08:54:30 AM »

Yes, it's possible. You'd need to add a subkey to the registry path of your game named "Resource", and this key would contain a value called "PackagePaths", which would contain a list of paths separated by semicolons.

Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #2 on: September 29, 2007, 09:02:48 AM »

I need to edit that in regedit?

If there is "Locations;Speech;FMV;Patches;" that will make a pack for each of those dirs..
Locations.dcp
FMV.dcp
Patches.dcp

So if i wanted to have a dir called locations with locations .dcp in it it would be..

locations/location1;locations/location2;locations/location3;Speech/Game1;FMV/intro;FMV/TvScreen;Patches

?
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #3 on: September 29, 2007, 09:07:08 AM »

You just add the paths that should be searched for packages. The names of the packages don't matter, the engine loads all the packages it finds.

As for editing the registry, your game installer would typically to that.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #4 on: September 29, 2007, 09:09:19 AM »

so in your case it would be: episode1; episode2; episode3 etc... if I got that right.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #5 on: September 29, 2007, 09:13:01 AM »

I'm sorry i do not understand.

Where do i enter these directory paths? When  i am making the game i need to add them in the registry?

Or do you mean that they will all turn into dcp files in one dir and i have to manualy move them into the dir tree i would like and use a game installer to write the registery on the end user system so they can see the files?
« Last Edit: September 29, 2007, 09:16:14 AM by Jyujinkai »
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #6 on: September 29, 2007, 09:16:22 AM »

in the registry according to the image Mnemonic sent. If you look into your Project Manager, you'd see where is the registry key for your game. Inside of this key you have to add/modify the Resources subkey as shown in the image.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #7 on: September 29, 2007, 09:28:46 AM »

Yea I went to the registry and did

1) add key - resource
2) right click in the new key and ADD-stringvalue
3) double click on the new string and enter "FMV/ep1-Intro;"
4) Opened the Project Manager and hit F7... the dir FMV/ep1-Intro didn't turn into a pack.

.... I am not sure what you guys mean...

<-----Edit
Ifi do teh above and open the wpr file for project in a text file it only has
"[Resource]
CustomPaths=data"

<---Edit
I tried making all the packs in Project Manager as stated in the in manual so when hitting F7 i get the 2 exe files and a bunch of pak files. I have added the dirs (as shown above) into the registry with regedit. When i manualy add the dirs in the packadge output dir to match and place my packs in them game fails :(
« Last Edit: September 29, 2007, 10:57:36 AM by Jyujinkai »
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #8 on: September 30, 2007, 02:28:50 AM »

I can't even get packs to work properly at all.

Can somone please have a look at this test project? (1.5 meg) -
Packadge Test Scene

It simply hasa scene + a video file in a seprated pack + a sound file in a seperated pack + a 2nd scene in a seperated pack


Everything works 100% in the test (F5) and everything seams to work on compile...



But when you try to run the game.exe you get log errors and the game will not function properly (it can not find the data in the other packs)

Quote from: WME.Log
11:25: Runtime error. Script 'scenes\Room\scr\FMV.script', line 11
11:25:   Entity.PlayTheora - error playing video 'FMVPack\ep1_intro.ogg'
11:25: Error opening file 'LocationPak\NextLocation\NextLocation.scene'
11:25: CAdScene::LoadFile failed for file 'LocationPak\NextLocation\NextLocation.scene'
11:25: Error opening sound file 'SoundPak\donbot.ogg'
11:25: Error loading sound 'SoundPak\donbot.ogg'
       returned: E_FAIL



And all that is without even trying to nest the packs once they are made.... after i get the packs to work.. i would like to nest them like stated in first poast...

Any Ideas?
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Are you able to make nested packadges? (Dir in main game dir with packs)
« Reply #9 on: September 30, 2007, 08:56:40 AM »

(continued here)

For the record, to change the locations where the compiled game searches for packages, one has to create a file called "wme.ini" in the game directory, which would contain something like this:

Code: [Select]
[Resource]
PackagePaths=PackagePath1;PackagePath2;PackagePath3

where PackagePath1, PackagePath2 and PackagePath3 are subdirectories containing package files (of course, you can use any names for the subdirectories).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.04 seconds with 19 queries.