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: COMPILING MY PROJECT  (Read 6677 times)

0 Members and 1 Guest are viewing this topic.

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
COMPILING MY PROJECT
« on: October 06, 2004, 04:39:48 PM »

Hi all,
        When I compile my project and run the EXE the project runs fine except there is no inventory graphic or player menu graphic.
any ideas why this is happening, if I play it through the wme project manager it is fine.




Many thanks.
Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: COMPILING MY PROJECT
« Reply #1 on: October 06, 2004, 04:51:11 PM »

Enable debug mode for the compiled game and check the wme.log file. It will complain about missing files. Those files are badly referenced in your definition files (.actor and inventory.def), probably they are not relative to the project directory. Fix the filenames and it should be ok.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
Re: COMPILING MY PROJECT
« Reply #2 on: October 07, 2004, 02:25:35 PM »

Thanks, this is a good way of debugging the compiled project. Errors found and sorted out.

Just a point to newbies, remember NOT to include "data" in your paths as this is not needed and WME does not like it even though the top parent folder to your project is "data"


Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: COMPILING MY PROJECT
« Reply #3 on: November 01, 2004, 09:46:32 AM »

Yes, but then there is the problem, that if I want to use multiple packages it simply doesn't work. I guess we are chrooted into data package. Jan, is this the reason, why multiple packages doesn't work? Or did I got something wrong. ???

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: COMPILING MY PROJECT
« Reply #4 on: November 01, 2004, 09:56:48 AM »

Quote
Or did I got something wrong.
I don't know, it depends on what you've done :) But let me recap:

1) Create a new folder at the same level as the "data" folder
2) Right-click the newly created folder and select "Promote to package". The icon should change.
3) Now you can create subfolders of the new packages exactly the same as you do in the "data" folder, add new files in it etc.
4) If you compile game, two packages (.dcp files) will be created, data.dcp and some_new_name.dcp.

Notes:
- you can set priorities of each package e.g. to create patches -> files in packages with higher priority will override the other packages
- make sure you are using the latest WME version, there was a bug in multiple-packages compiling in some older version
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: COMPILING MY PROJECT
« Reply #5 on: November 01, 2004, 10:03:48 AM »

Oh, you are really fast. :)

Well the game works in Project Manager mode, but not in compiled mode. I did exactly what you wrote but still in
compiled mode it doesn't work. I downloaded WME yesterday so I suppose it's the latest version. :)

Then I query the music with the following:

if (!Game.IsMusicChannelPlaying(0))
{
   Game.PlayMusic("music\dest2.ogg",true);
}

I have two packages:

data
music

which resides in the top folder on the same hierarchy level. WME even produces both of them in the packages folder, so I am a bit clueless or maybe plainly stupid. ;)


Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: COMPILING MY PROJECT
« Reply #6 on: November 01, 2004, 10:14:07 AM »

If you want to refer to files/folders in the music package, you refer to them with nothing but their file/folder name, just like you'd refer to files in the data package. Like this:

if(!Game.IsMusicChannelPlaying(0))
{
   Game.PlayMusic("dest2.ogg",true);
}

So IF you had a folder called music in EITHER data OR music package, only then you'd have to use the folder name. As far as I know, there's no way of referring to packages directly.

And if you have dest2.ogg in both music and data package, the file in the package with the highest priority setting is used.

Also, if there was a different way of referring to different packages, it would sort of defeat the purpose of having packages. For example, making bugfixes with packages would be impossible, because there would be no way of replacing files.
« Last Edit: November 01, 2004, 10:20:30 AM by deadworm222 »
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: COMPILING MY PROJECT
« Reply #7 on: November 01, 2004, 10:21:36 AM »

Ah, that made my day! :) Sure it's logical and I am dumb. Thanks a lot. I don't know though why it works in WME debug run.

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: COMPILING MY PROJECT
« Reply #8 on: November 01, 2004, 10:28:38 AM »

Tried and it works. It IS really terrible how everything seems to be logical in WME. Makes one feeling stupid.  :o
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: COMPILING MY PROJECT
« Reply #9 on: November 01, 2004, 11:35:25 AM »

I tried Agast the other day and hated it. :o WME rules!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: COMPILING MY PROJECT
« Reply #10 on: November 01, 2004, 01:29:56 PM »

I tried Agast the other day and hated it. :o WME rules!
Did you forget to take your pills again? ;)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: COMPILING MY PROJECT
« Reply #11 on: November 01, 2004, 01:43:43 PM »

 :P
Logged

Daniel

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 124
  • I'm *not* a llama!
    • View Profile
Re: COMPILING MY PROJECT
« Reply #12 on: November 01, 2004, 11:34:42 PM »

It IS really terrible how everything seems to be logical in WME.
I can't agree with you more. I'm a software engineer and I have a strict opinion about software design and as I see it, WME is close to perfect (for me, at least) and it shares most of my views regarding software design.

I tried Agast the other day and hated it.
I tried AGS before making WME my home and I must tell you, AGS was a disaster for me. Others might see it differently, of course.
Logged
 

Page created in 0.049 seconds with 21 queries.