learngs2:helloworld

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
learngs2:helloworld [2023/02/24 11:49] twinnylearngs2:helloworld [2023/02/24 12:12] (current) twinny
Line 1: Line 1:
-<start ^ start ^ variables →+<start ^ start ^ whatjusthappened >>
  
-===== Hello World! (Start Here) =====+====== Hello World ======
  
 Whenever you learn a new language, the first step is often to perform what is known as a "Hello World": it's a simple script that just prints out that statement but it confirms your environment has been set up. We can use this to test that your RC access has been setup and you know what to go. Whenever you learn a new language, the first step is often to perform what is known as a "Hello World": it's a simple script that just prints out that statement but it confirms your environment has been set up. We can use this to test that your RC access has been setup and you know what to go.
Line 11: Line 11:
   echo("Hello, World!");   echo("Hello, World!");
 } }
 +
  
 </code> </code>
Line 22: Line 23:
 //{{:learngs2:learning_helloworld_weapons.png?nolink&546x494}}// //{{:learngs2:learning_helloworld_weapons.png?nolink&546x494}}//
  
-From here, we want to press the 'Add' button down the bottom. This will open a prompt where we can enter the name for our weapon. If you are using the Testbed server, you will need to follow the standard naming convention. For me, this would be Personal/Twinny/HelloWorld  . You would replace 'Twinny' with your account name. If you are unsure, open your rights and check what rights you have been given [TODO: prob add dedicated section]+From here, we want to press the 'Add' button down the bottom. This will open a prompt where we can enter the name for our weapon. If you are using the Testbed server, you will need to follow the standard naming convention. For me, this would be Personal/Twinny/HelloWorld . You would replace 'Twinny' with your account name. If you are unsure, open your rights and check what rights you have been given [TODO: prob add dedicated section]
  
 {{:learngs2:learning_helloworld.png?nolink&322x143}} {{:learngs2:learning_helloworld.png?nolink&322x143}}
Line 33: Line 34:
  
 {{:learngs2:learning_helloworld_success.png?nolink&855x62}} {{:learngs2:learning_helloworld_success.png?nolink&855x62}}
 +
 +You've made your first successful script…hopefully! If you didn't see 'Hello, world!' you may have seen an error instead. Some examples:
 +
 +<code>
 +Twinny prob: No write rights for WEAPONS/Personal/NotMe/HelloWorld
 +
 +</code>
 +
 +This is telling me I don't actually have rights to create a weapon with this name. If you see something like this, you will need to check your rights to confirm what weapons you can create (if any). [TODO: elaborate]
 +
 +If you have been successful, we can move on! Let's go!
  
  
  • learngs2/helloworld.1677239387.txt.gz
  • Last modified: 2023/02/24 11:49
  • by twinny