This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
4rpl:overview [2021/01/17 15:41] – Karsten75 | 4rpl:overview [2021/04/26 15:35] – [Working with CPACKs] Karsten75 | ||
---|---|---|---|
Line 25: | Line 25: | ||
</ | </ | ||
- | The code above puts 2 numbers on the stack, the '' | + | The code above puts 2 numbers on the stack, the '' |
:!: Note that 4RPL is a // | :!: Note that 4RPL is a // | ||
Line 69: | Line 69: | ||
endif | endif | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | 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 | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | 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). | ||
+ | <WRAP width center twothirds> | ||
+ | < | ||
+ | %HOMEPATH%\Documents\My Games\creeperworld4\creeperworld4\editor\map2\cpacks\[CPACKNAME] 92415695-49d6-4e97-852b-64493e76233b\scripts\ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | If you load map as a regular player and then enter edit mode, the game will stick the scripts into the _UNKNOWN project directory. If there are already matching scripts present at that location, they will not be overwritten (importing a CPACK is the only exception to this). | ||
+ | |||
+ | The case of on-the-fly opening the editor in a map you are playing is no different -with one exception: The game doesn' | ||
+ | |||
+ | If you want to grab the scripts from a map (like and FPS map) and you want to make sure you have the latest scripts. You should either create a project for the map and open it from the project page, or you should clean your _UNKNOWN directory before you open the map on the fly. | ||
+ | |||
+ | Basically, just deleting the _UNKNOWN directory is the easiest way to clean it | ||
+ | |||
---- | ---- |