Blog

Project Manager: New Horizons

2017-07-14

There are times when you might think that you are omnipotent. You fancy yourself some sort of ace, a perfect professional who can move mountains at will. Have this happen to you? Well, I think that one lives and learns. You can’t possibly know everything, even within a single area. Today, I am continuing to talk about the Project Manager, hoping that this article will be useful not just for the beginners.

You can find the previous article here.

If You Chase Two Rabbits...

This saying does not hold true in the Project Manager. You can chase as many rabbits as you want and never lose any of them… um, what am I talking about? Well, about projects, of course! And about many, many applications inside one project.

Every project in Blend4Web is a unique entity with settings, parameters and a root directory of its own. However, there is no reason why you shouldn’t work with several independent applications inside a single project.

Why you might need this? The most obvious example would be developing an application for several social networks, each one with its own quirks and requirements. You will probably have to alter HTML, CSS and maybe even JS files. However, your main content (graphics, music, logic etc.) won’t be changing, right? This is only one of the cases where developing several apps in one project would come in handy.

This is not particularly hard to do. When you create a new project in Project Manager, it is already able to work with multiple applications. It’s just the program won’t tell you about it, so not many users are aware of this feature.

If you open a newly created project and view the files in its root folder, you will see something like this:

And in the Project Names/Apps column in the Project Manager you will see this:

Click the dev:my_project.html link, and the Manager will run the application in a new tab in browser. Well, you should already know this much.

But what if you create several HTML files in the project folder? In this case, something like this might happen:

What is interesting here is that the Project Manager considers each HTML file in the project folder an independent application. This is understandable, as it is there where you set CSS, scripts and other stuff.

If you try to build the application using the Build Project command, the Manager will compile each and every HTML file and files associated with them. This allows you to work with multiple variations of a single application inside a project.

Now, let’s take a look on a different task: how to make Project Manager not to take into account specific HTMLs. If you click the config link near the title of the project (see the picture above), the project configuration window will open. Add the HTML files you need to the Apps field. The program will recognize only the file listed in this field and will work with them exclusively. File names in the field should be separated by semicolons.

The Art of Building

Beginners and even experienced users do sometimes run into trouble with deploying applications to a web server. I’ve seen fully operational programs with HTML files containing long lists of engine source files in the SRC folder. I’ve also seen people asking on the forum: “Well, I’ve copied the folder, but it won’t work!”.

So, here are the rules of deploying applications with Project Manager:

 Make sure that JavaScript Obfuscation Level in the project settings is set to Advanced. This will tell compiler to minify the resulting JavaScript code and make it a bit harder to read.

 Execute the convert resources command. The Project Manager will scan all your files (images, sounds, video etc.) and automatically covert them to formats more suitable for web browsers. But do not delete original files! You can rely on the engine to decide which formats are better suited for certain browsers. Aside from converting media data, this command will also create compressed files in the gzip format, which is especially useful if you cannot set up compression on the server side. To use these gzip files, you have to add a specific assets_gzip_available: true directive to the engine initialization code:

var m_app = require("app");

m_app.init({
    canvas_container_id: "canvas",
    callback: init_cb,
    autoresize: true,
    assets_gzip_available: true
});

 Execute the build project command and test how the application works by running build: my_project.html (your own project will, of course, have a different title).

 Finally, execute the deploy project command, download the application archive and unpack it to a proper location in the server.

By following this simple list of actions you can be sure that your project will work on a server without problems and will be compatible with the broadest set of devices.

Comments
21 oct. 2023 10:37
The Food Lion grocery store chain conducts a customer satisfaction survey called Talktofoodlion. The poll helps Food Lion enhance its goods and services by giving consumers a chance to share their thoughts about their interactions with the company. Talktofoodlion
22 nov. 2023 14:37
You can easily create an application using the Techclicky site. This site has more content and knowledgeable ideas. So you will get an idea before creating the application. So refer to this one. Thank me later. You can also get the EXE to APK converter from that site. I was also provided the direct link to download the converter from that site. You might like that. That was 100% working. So you can give it a shot.
12 dec. 2023 18:36
Tres bonne article. merci d'avoir partage. j'aimerais en savoir plus sur le sujet. acheter en ligne
14 dec. 2023 07:14
wd
14 dec. 2023 07:15
Tucson, Arizona is a beautiful place to visit, with its rich culture, stunning desert landscape, and vibrant city life. If you're looking for the perfect way to make your Tucson vacation even more memorable, consider booking an appointment with one of the many female escorts available near Sabino Canyon. Harlothub is one of the best ways to find and book female escorts in the Tucson area, and they make it easy to find exactly what you're looking for.

When it comes to finding a female escort, you want to be sure that you're dealing with someone who is professional, courteous, and experienced. Harlothub has a network of female escorts who have been carefully vetted and screened for quality assurance. This means that you can rest assured that you're getting the best experience possible. Harlothub also offers the most comprehensive directory of female escorts in the Tucson area, making it easy to find a companion that meets your needs and desires.

Once you've found the perfect female escorts near Sabino Canyon, you can book an appointment online or through the Harlothub app. You'll have access to detailed profiles and reviews for each escort, so you can make an informed decision about who to book. When it comes time for your appointment, you can rest assured that your escort will arrive on time and ready to provide an exceptional experience.

No matter what type of experience you're looking for, you can find the perfect female escort near Sabino Canyon, Tucson with Harlothub. From romantic dinner dates to wild nights out on the town, Harlothub has a wide variety of female escorts to choose from. Whether you're looking for someone to show you around town or someone to share a special evening with, Harlothub makes it easy to find exactly what you're looking for.

So if you're looking for the perfect way to make your Tucson vacation even more memorable, consider booking an appointment with one of the many female escorts available near Sabino Canyon. With Harlothub, you can find the perfect companion to make your stay in Tucson unforgettable. Whether you're looking for a romantic night out or an exciting adventure, you can find the perfect female escort to make your visit to Tucson truly special.
14 dec. 2023 14:55
Experience the unique allure of Santorini Beaches, where the vibrant hues of the volcanic rocks contrast beautifully with the azure waters.
15 dec. 2023 13:30
Everyone is aware of how satisfying, tasty, and full of critical nutrients a burger provides for your body. It ought to be big enough for you to eat a burger in the morning and still be full throughout the day. visit here www.portillos.com/survey
15 dec. 2023 13:37
Answering a few short and straightforward questions about staff conduct, store atmosphere, merchandise, and facilities on Caseysfeedback.com will make it very easy for you to provide feedback about your most recent dining experience at one of their locations. caseys.com/survey
19 dec. 2023 14:42
Publix invites consumers to complete the survey on a frequent basis in order to provide continuous input. After every visit to a Publix shop, customers usually have the chance to complete the survey, however the precise frequency may differ. Publix Survey
21 dec. 2023 13:16
By answering this survey, you will provide the business with insightful input that they can utilize to enhance their offerings. You will receive one entry into a sweepstakes for a $500 Lowe's gift card as payment for your participation. www.lowes.com/survey
Please register or log in to leave a reply.