User Tools

Site Tools


4rpl:overview

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
4rpl:overview [2021/01/15 09:46] – Cleaned up page, added Variables and Functions Sanian4rpl:overview [2021/03/28 11:42] – [Conditionals] Karsten75
Line 25: Line 25:
 </code> </code>
  
-The code above puts 2 numbers on the stack, the **add** (or +) command took the 4 and the 2 (last-in, first out) added them and pushed the result (6) back on the stack. [[4rpl:commands:traceAllSp|TraceAllSp]] pops (takes/removes) all elements on the stack, puts a space in between them and prints them to the Console. A "6" is now printed on the console. +The code above puts 2 numbers on the stack, the ''%%add%%'' (or ''%%+%%'') command took the 4 and the 2 (last-in, first out) added them and pushed the result (6) back on the stack. [[4rpl:commands:traceAllSp|TraceAllSp]] pops (takes/removes) all elements on the stack, puts a space in between them and prints them to the Console. A "6" is now printed on the console. 
  
 :!: Note that 4RPL is a //case-insensitive// language, meaning **__any and all capitalization is ignored__**. **TraceAllSP** may as well be written as **TRACEALLSP** or **traceallsp**, there is no difference. :!: Note that 4RPL is a //case-insensitive// language, meaning **__any and all capitalization is ignored__**. **TraceAllSP** may as well be written as **TRACEALLSP** or **traceallsp**, there is no difference.
Line 69: Line 69:
 endif endif
 </code> </code>
 +
 +
 +
 +Note: See [[4rpl:Data Types]] for comparison between dissimilar types and type conversion. 
 +
 +
  
 ===== Variables ===== ===== Variables =====
Line 77: Line 83:
 "3 plus 4 is" <-result TraceAllSP "3 plus 4 is" <-result TraceAllSP
 </code> </code>
 +
 +
 +
 +Note: See [[4rpl:Data Types]] for comparison between dissimilar types and type conversion. 
 +
 +
  
 ===== Functions ===== ===== Functions =====
Line 102: Line 114:
  
 \\ \\
 +
 +----
 +===== Working with CPACKs =====
 +When a CPACK is imported, it does not overwrite any scripts that might be on disk.   So if there are scripts on disk those will get jammed back into the CPACK whenever a compile is done (and a compile is done during finalization).  You can look on disk at a location like this: 
 +<WRAP width center twothirds>
 +<code>
 +%HOMEPATH%\Documents\My Games\creeperworld4\creeperworld4\editor\map2\cpacks\[CPACKNAME] 92415695-49d6-4e97-852b-64493e76233b\scripts\
 +</code> 
 +</WRAP>
 +
 +What you want to do is make sure there are no 4rpl files on disk at that location, then import the CPACK from the source map.  If there are old scripts at that location, they will replace whatever is in the CPACK during import.  The game thinks those scripts are the ones you are working on.
 +
  
 ---- ----
4rpl/overview.txt · Last modified: 2022/02/14 06:12 by serdalis