Jibble

Author Topic: Compiled game missing from folder  (Read 290 times)

cdavenport

  • Posts: 25
Compiled game missing from folder
« on: 05 Jan 2019, 16:05 »

I have an unusual problem, when I compile my game I get a confirmation that the game is successfully compiled but it is missing from the folder where winsetup is?

Before this started to happen, acwin.exe got flagged as a trojan virus on my Windows 10 and quarantined, I restored it figuring it was an error and then everything worked fine again except when I compile my game, it's missing from the folder now. I don't know where it is, or if it's even being generated.

I'm runninf Windows 10 and AGS 3.5.0. Does anybody have any idea of what might have went wrong, and where to look to try and fix it?

Crimson Wizard

  • Posts: 8,794
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Compiled game missing from folder
« Reply #1 on: 05 Jan 2019, 16:45 »
See if "Windows" is set as a build target in General Settings "Build targets". I think it may cancel itself if some of the files are not available.

cdavenport

  • Posts: 25
Re: Compiled game missing from folder
« Reply #2 on: 05 Jan 2019, 17:05 »
See if "Windows" is set as a build target in General Settings "Build targets". I think it may cancel itself if some of the files are not available.

Thanks, I checked and Windows wasn't set as build target (only data), now it's set to Data File and Windows. Compiling works now, but there's no audio in compiled game. But audio plays fine when I run it in the editor...?

Crimson Wizard

  • Posts: 8,794
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Compiled game missing from folder
« Reply #3 on: 05 Jan 2019, 17:22 »
Compiling works now, but there's no audio in compiled game. But audio plays fine when I run it in the editor...?

Was it working earlier? Is there actually audio.vox file in compiled folder? Perhaps try doing Build->Rebuild all files -- this seem to be a solution when compilation structure breaks for any reason.

cdavenport

  • Posts: 25
Re: Compiled game missing from folder
« Reply #4 on: 05 Jan 2019, 17:51 »
Was working earlier this morning, after acwin.exe got flagged as trojan unexpectedly for first time ever, been having troubles with compiled game - checking the "Windows" build target fixed the one issue but now the compiled game is not playing sounds (it looks like its ambient files affected) as it still plays voice files and some music...

Although everything seems to work in the editor whatever it is is just affecting compiled games. Tried re-building several times but to no avail yet.
« Last Edit: 05 Jan 2019, 17:53 by cdavenport »

Crimson Wizard

  • Posts: 8,794
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Compiled game missing from folder
« Reply #5 on: 05 Jan 2019, 18:04 »
(it looks like its ambient files affected)

Okay, ambient sounds are by default built into EXE (this is configured in the Audio types). Is this like that in your project? If yes maybe try to set VOX for them and see if that makes a difference.

Another thing, are you absolutely sure that the exe gets updated when compiled?

cdavenport

  • Posts: 25
Re: Compiled game missing from folder
« Reply #6 on: 05 Jan 2019, 18:18 »
(it looks like its ambient files affected)

Okay, ambient sounds are by default built into EXE (this is configured in the Audio types). Is this like that in your project? If yes maybe try to set VOX for them and see if that makes a difference.

Another thing, are you absolutely sure that the exe gets updated when compiled?

Yeah that's how my sounds are structured, a quick test I set one file that I knew wasn't playing to VOX and re-compiled the game. It plays now in the complied game, and the exe is being updated according to the timestamp when I generate a new game file to run.

Is there universal way to re-set all ambient sounds to VOX or do I have to do them all individually one at a time to fix this?



Crimson Wizard

  • Posts: 8,794
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Compiled game missing from folder
« Reply #7 on: 05 Jan 2019, 18:21 »
Is there universal way to re-set all ambient sounds to VOX

It's set for respected folder (select the folder itself and you see its properties), every clip inherits the folder settings by default afaik.

cdavenport

  • Posts: 25
Re: Compiled game missing from folder
« Reply #8 on: 05 Jan 2019, 18:53 »
Another thing, I don't know why, but on most of the sounds after setting them to external VOX as above I have to go in and change the ones that are set to properties Type "ambient" over to "sound" to get them to play in the complied game. Some will play when the Types set to "ambient" and some won't unless they're set to "sound". Not sure why this has happened all of the sudden...

Crimson Wizard

  • Posts: 8,794
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Compiled game missing from folder
« Reply #9 on: 05 Jan 2019, 19:17 »
Well, in that case this means that something is wrong going with "ambient sounds" audio type in general. I cannot really tell what without knowing more details or seeing the project.

EDIT: As a random idea, what is the DefaultVolume and DefaultPriority in your ambient sound folder properties? I imagine if you set DefaultVolume to 0 by mistake then every sound in the folder will be playing silently unless you also set individual DefaultVolume in a clip.

If that still is not the case, something that I forgot to ask about, what is the result of calling Play() for non-working ambient sounds in game? I mean, do they return actual AudioChannel or null instead?
« Last Edit: 06 Jan 2019, 12:28 by Crimson Wizard »