PRPL coding

Started by bluebolt, October 03, 2016, 06:07:21 PM

Previous topic - Next topic

bluebolt

Where should I begin to learn PRPL? The wiki isn't finished yet, but I want to get started ASAP
Even YOU may survive an apocalypse! Fight back against the creeper today!

Sorrontis

Hi bluebolt.

Many of us are working figuring out everything, and we plan to start adding to the wiki.
If you have some experience with CRPL, I would advise you to extract PRPL from the Main Mission maps, and try to learn what virgil did from there. Also, look at any Planetfall maps for intensive PRPL.
"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

Prof

Quote from: Sorrontis on October 03, 2016, 06:13:38 PM
I would advise you to extract PRPL from the Main Mission maps, and try to learn what virgil did from there.

After looking through the wiki I saw the 'examine map resources' but couldn't actually find how to.. find.. the Main Mission maps to examine them. Is there an easy way that I just can't seem to find?

Sorrontis

To extract. Take your save.pf1 for that mission and place it in a new editor map folder.
"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

bluebolt

I do not have a background in CRPL, i want to know the basics of whatever language this is(i'm assuming CRPL and PRPL are versions of a language).
Even YOU may survive an apocalypse! Fight back against the creeper today!

Sorrontis

Hi Bluebolt. CPRL/PRPL are languages used for Creeperworld & Particle Fleet (respectively). My understanding is that Virgil made them for these games specifically. They use the Reverse Polish Notation (https://en.wikipedia.org/wiki/Reverse_Polish_notation).

Here is the introductory guide to CRPL. PRPL has the same syntax, but some new functions.

Overview to CRPL: http://knucklecracker.com/wiki/doku.php?id=crpl:overview
Tutorial to CRPL: http://knucklecracker.com/wiki/doku.php?id=crpl:crpltutorial
"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

GoodMorning

PRPL Wiki: Coming Soon*


*"Soon" here being defined as sometime after those with wiki admin powers have time to restructure it and the rest of us have time to build it. Current estimates range from this afternoon to shortly after the heat death of the universe.
A narrative is a lightly-marked path to another reality.

Oblivion

Good thing that nothing will ever happen again after the heat death of the universe, and the wiki getting updated will be the first thing to ever happen in a new universe.
~Memes have been scientifrically proven to be the very essence of life unto itself~

GoodMorning

Not quite:
Wiki completion can be assumed for all commands at that point, as there will be exactly zero commands implemented.
A narrative is a lightly-marked path to another reality.

bluebolt

In that case, how would i go about making a laser turret? I think the best way currently would be having a particle beam in the center of said turret, hidden... I guess I could wait for the code to be categorized and make more map outlines. Thanks for the help so far.
Even YOU may survive an apocalypse! Fight back against the creeper today!

GoodMorning

Laser turret:
Images: Turret, beam, "gun" (optional)

GetEnemyUnitsInRange (or some relative). Pick closest target, position beam image, deduct health until it moves out of range or is destroyed. Retarget and repeat. If no target, make beam invisible.

The only changes in PRPL (from CRPL) for this will be in the target finding code and the syntax for health deduction.
A narrative is a lightly-marked path to another reality.