Forgot your password?
jeffnz, February 23
Posted February 23
The tutorials are hidden away.
Posted February 23
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
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.
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:
settling the basis.
Guess the best examples for triggers are this maps
Enjoy the Choice
49 minutes ago, Loki1950 said:
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
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.
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.
As a general editor, I like Geany.
Sublime text is a good option too or vim with steroids
Or there is this one https://code.visualstudio.com/docs but i havent used it yet
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.
I'm currently on KDE so I'll use "K develop".
Posted February 24
darnit I'm an idiot - I've used Linux for 10 years and never knew how to grep files. I thought you're meant to use the 'find' command to find text in files (I believe that 'find' runs 'gawk' or 'awk'). I never knew grep was so useful!
You need to be a member in order to leave a comment
Sign up for a new account in our community. It's easy!
Already have an account? Sign in here.