User Tools

Site Tools


crpl:crpltutorial:interactive:importing

Differences

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

Link to this comparison view

Next revision
Previous revision
crpl:crpltutorial:interactive:importing [2013/10/06 10:28] – created jmapscrpl:crpltutorial:interactive:importing [2023/10/18 15:55] (current) – adding notepad disclaimer Bob
Line 1: Line 1:
-~~DISCUSSION~~ 
 <-[[cw3:creeper_world_3|CW3 Home]] <-[[crpl:start|CRPL Home]] <-[[crpl:crpltutorial:interactive|Interacive tutorials]]\\ <-[[cw3:creeper_world_3|CW3 Home]] <-[[crpl:start|CRPL Home]] <-[[crpl:crpltutorial:interactive|Interacive tutorials]]\\
 ====== Importing CRPL scripts ====== ====== Importing CRPL scripts ======
  
-Here you'll learn how to import CRPL scripts to your map. First, load or create a new map in the projects sector. Then 'click editmap and click 'unit' at the left. One of the units has 'core' as image, that is the CRPL core, build it. Now click the big 'scripts' button. This is the boring basic scripts interface. Insert a name for your script and click create. If you haven't downloaded notepad++ yet, download it here: [[http://notepad-plus-plus.org/|Notepad++ website]]. If you get a warning, do what it says and check never show again. Now go to the [[crpl:crpltutorial:code examples|code examples]] and find a good script. The moving creeper wall scripts works fine for any map. Copy the code and paste it in your script (in notepad++). Save, go back to the game and click 'compile all'. It should say 'x scripts compiled into x opcodes'. Now close the scripts menu and double click the CRPL core you built on the map. Make sure the right script is selected and click 'ADD'. Now click the script in the list where it just appeared and if you want, you can change the 'input variables'. This are the variables that may differ for every core on the map, you can even attach the same script multiple times with different input variables! Now close the unit menu, click save at the bottom of the screen, exit edit mode and play the game! If you are done testing, go back to edit mode and click load.+Here you'll learn how to import CRPL scripts to your map. First, load or create a new map in the projects sector.  
 +{{:crpl:crpltutorial:interactive:main_screen.png?400|}} 
 + 
 +{{:crpl:crpltutorial:interactive:create_project.png?400|}} 
 + 
 +{{:crpl:crpltutorial:interactive:ui_select_edit_map.png?400|}} 
 + 
 +Click 'edit mapand click 'unit' at the left. One of the units has 'core' as image, that is the CRPL core, build it. This will be the core we will attach the script to. Now click the big 'scripts' button. This is the boring basic scripts interface. Insert a name for your script and click create. If you haven't downloaded notepad++ yet, download it here: [[http://notepad-plus-plus.org/|Notepad++ website]].<note>Make sure you download only from the official Notepad++ website to avoid malware. https://notepad-plus-plus.org/</note> If you get a warning when trying to edit a script, do what it says and check never show again. 
 + 
 +{{:crpl:crpltutorial:interactive:createscript.png?600|}} 
 + 
 +Now go to the [[crpl:crpltutorial:code examples|code examples]] and find a good script. The moving creeper wall scripts works fine for any map. Copy the code and paste it in your script (in notepad++).Save, go back to the game and click 'compile all'. It should say 'x scripts compiled into x opcodes'. Now close the scripts menu and double click the CRPL core you built on the map. Make sure the right script is selected and click 'ADD'. Now click the script in the list where it just appeared and if you want, you can change the 'input variables'. This are the variables that may differ for every core on the map, you can even attach the same script multiple times with different input variables! Now close the unit menu, click save at the bottom of the screen, exit edit mode and play the game! If you are done testing, go back to edit mode and click load.
crpl/crpltutorial/interactive/importing.1381069737.txt.gz · Last modified: 2014/10/01 15:02 (external edit)