jeffnz Posted February 23, 2017 Report Share Posted February 23, 2017 The tutorials are hidden away. Quote Link to comment Share on other sites More sharing options...
Skhorn Posted February 23, 2017 Report Share Posted February 23, 2017 (edited) 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 February 23, 2017 by Skhorn Quote Link to comment Share on other sites More sharing options...
jeffnz Posted February 23, 2017 Author Report Share Posted February 23, 2017 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. Quote Link to comment Share on other sites More sharing options...
Skhorn Posted February 23, 2017 Report Share Posted February 23, 2017 (edited) 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 February 23, 2017 by Skhorn Quote Link to comment Share on other sites More sharing options...
Skhorn Posted February 23, 2017 Report Share Posted February 23, 2017 Guess the best examples for triggers are this maps Quote Link to comment Share on other sites More sharing options...
Loki1950 Posted February 23, 2017 Report Share Posted February 23, 2017 The GUI elements are all done with Javascript that reference primitive functions written in C++. Enjoy the Choice Quote Link to comment Share on other sites More sharing options...
jeffnz Posted February 23, 2017 Author Report Share Posted February 23, 2017 (edited) 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 February 23, 2017 by jeffnz Quote Link to comment Share on other sites More sharing options...
elexis Posted February 23, 2017 Report Share Posted February 23, 2017 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. Quote Link to comment Share on other sites More sharing options...
GunChleoc Posted February 23, 2017 Report Share Posted February 23, 2017 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. Quote Link to comment Share on other sites More sharing options...
Skhorn Posted February 23, 2017 Report Share Posted February 23, 2017 (edited) 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 Edited February 23, 2017 by Skhorn 1 Quote Link to comment Share on other sites More sharing options...
Loki1950 Posted February 23, 2017 Report Share Posted February 23, 2017 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 Quote Link to comment Share on other sites More sharing options...
jeffnz Posted February 23, 2017 Author Report Share Posted February 23, 2017 I'm currently on KDE so I'll use "K develop". Quote Link to comment Share on other sites More sharing options...
jeffnz Posted February 24, 2017 Author Report Share Posted February 24, 2017 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! https://www.howtoforge.com/tutorial/linux-grep-command/ http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_04_02.html 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.