Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Build Level Not Working?

Author
Message
Leon Kennedy
17
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 28th Feb 2012 04:13
Ok, so I'm pretty close to building the test level that I've got going, and I understand that when testing a level the engine uses the information in languagebank\english\gamebank\mygame. That's all fine and dandy. But when I click on Build Game and try to select my map (which is in that folder), it won't let me select my map. What gives?

I click on the sample map thing that's in the dialog box, it takes me to the windows explorer window to select an fpm file. I navigate to the folder, select the map, and click ok, and...nothing. It reverts back to the sample file that is there originally.

v1.18. Windows Vista. Not sure what I'm doing wrong here?

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
maho76
15
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 28th Feb 2012 09:47
Quote: "But when I click on Build Game and try to select my map (which is in that folder),... "


your map shouldnt be in the languagebank, but in the mapbank (as name says)

Leon Kennedy
17
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 28th Feb 2012 15:41
Ok, that makes about...zero sense. I mean, I can move the map to the mapbank folder, but why does the test engine rely on files in one folder and the build engine on files in a completely different one?

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 28th Feb 2012 16:44
Quote: "but why does the test engine rely on files in one folder and the build engine on files in a completely different one?"


During a "test game", the test game will use the setuplevel.fpi that is located in the "languagebank\english\gamebank\mygame" folder. When you first create a level, click on File >Build Game, then on the Game Project Settings tab you can specify a project filename. That filename relates to the folder in the "gamebank" folder. So for example, I make a level, click File >Build Game, then give a name of "Test1", the level will use the setuplevel.fpi file in the "Test1" folder. Unless you specify that project filename, the "mygame" is the default for test and build.

Your maps need to be in the mapbank folder, just as scripts must be in the scriptbank folder or they will not work. The only thing that will work outside of the normal directories are hud images and the paths defined in the scripts.


Twitter: @NFoxMedia
Leon Kennedy
17
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 28th Feb 2012 19:22
Yeah, I have a project folder for my game (in addition the mygame folder in languagebank), so I guess that works.

Just seems to me that everything should be contained in one project folder, instead of scripts here, map there, etc. But I'll move a copy of the final map to the mapbank folder so I can do the build, I guess.

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 28th Feb 2012 19:39 Edited at: 28th Feb 2012 19:39
Quote: "Just seems to me that everything should be contained in one project folder, instead of scripts here, map there, etc."


That is how the engine itself is coded. Scripts need to be in the scriptbank folder, segments in the segments folder, maps in the mapbank folder. Otherwise you will have nothing but issues and frustrations.

As I mentioned before, test games only use the "gamebank\mygame" folder and the fpi files that are in there (gameover, gamewon, setuplevel, titlepage, loadingpage). When you build, it will use either the folder that corresponds from your project name or default to the "mygame" file and therefore use the fpi files in whichever folder it uses. So all the developer (you) have to do is keep track of where you put your huds, having the correct path in scripts that use huds, saving map(s) in the mapbank folder, and what game project folder to use. Everything else is pretty much in the proper place.


Twitter: @NFoxMedia
That Guy John
16
Years of Service
User Offline
Joined: 30th Apr 2010
Location: United States
Posted: 29th Feb 2012 07:25
Something I do to separate "projects":

Take the default "files" folder and rename it "X Files" or what ever.
Make a copy of the contents of the default "files" folder. Rename that copy as "files" then delete all of the unwanted \ un needed content from those directories. Magic... a new "project".

Or (shameless self plug and pat on my own back) you can have an application that would do this properly for you.

And Here Is A Penguin:
FPSC OneSource [DeskTop App] - Bringing everything together into one.

Login to post a reply

Server time is: 2026-07-01 22:14:22
Your offset time is: 2026-07-01 22:14:22