Sign in to follow this  
Followers 0
jeffnz

How could I create a menu item "tutorial" then make it start a specific scenario?

13 posts in this topic

You mean a tutorial map? And you ask for how to create it programatically? Sorry, english is not my native language, perhaphs i dont get all the context on this case or im missing something

Edited by Skhorn

Share this post


Link to post
Share on other sites

What I mean is that the tutorials are found when you click "Single Player" and then choose from "Demo Maps". I read another post somewhere, suggesting that the tutorials should be found under "Learn To Play" - then tutorials are found first. I want to know what files to work on, and what knowledge is required to do this.

Share this post


Link to post
Share on other sites

If i recall correctly, there are no tutorials yet, that's why the Learn To Play is disabled. 

You may try the triggers http://trac.wildfiregames.com/wiki/Triggers and working/playing with atlas to start making a tutorial map. If i'm not wrong there a few posts related to that subject, but i guess there is still not an "official post" giving a guidance for how the tutorial maps should work or should be done.

In my opinion, you should go for that first, settling the basis.

But to answer your question, it is mostly working on the GUI and i guess it is C++ code, but still:

Spoiler

settling the basis.

 

Edited by Skhorn

Share this post


Link to post
Share on other sites

Guess the best examples for triggers are this maps 
 

 

 

Share this post


Link to post
Share on other sites

The GUI elements are all done with Javascript that reference primitive functions written in C++.

Enjoy the Choice :)

Share this post


Link to post
Share on other sites
49 minutes ago, Loki1950 said:

The GUI elements are all done with Javascript that reference primitive functions written in C++.

Ya and if I search for a function, then gawk (find) is a good tool in Linux right? Is that what you guys use? If someone has a quick example please share :)

Edited by jeffnz

Share this post


Link to post
Share on other sites

Also tt is planned to use the proposed campaign infrastructure patch #4387 with tutorial campaigns. Adding a main menu entry as a shortcut is advisable indeed.

Share this post


Link to post
Share on other sites

I usually use grep to find things if I can't use an IDE. I recommend that you look around for a good IDE though, they make navigating code bases so much easier.

For C++, I use QTCreator. It's an IDE that doesn't use much system resources. It has become quite unstable for me with the upgrade to Ubuntu 16.04 though, so you might try another IDE instead if you should have the same problem on your machine.

I don't know any IDEs for JavaScript.

As a general editor, I like Geany.

Share this post


Link to post
Share on other sites

Most of the default Linux text editors have syntax highlighting and on Windows notepad++ uses the same syntax libraries for an IDE give codeblocks a try as the build scripts generate a codeblocks project.

Enjoy the Choice :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0