[Tutorial] Creating a custom scenario or replay using CEO LabsteemCreated with Sketch.

in CEO Champion's Gate4 years ago (edited)

Tutorial for creating your own custom replay in CEO lab

Using the CEO Lab you can create your own strings for replays in addition to using the ones the game records. Since it's just formatted text, you can make the moves in the game whatever you choose in addition to whatever starting position you want.

Because of @adamzero 's contest, I thought a proper tutorial would be helpful for anyone who wants to learn how to create their own custom replay/ scenario.

The method of creating these might be a little unclear to people who don't know much about computer science... I decided to share my cheat sheet I used while inputting all the moves.

image.png

In order to create a position, use @main-gi 's position tool described in his steemit post

Grab your position by copying the text created here on the page...

image.png

Once you have the position string, add a comma on the end and then a pair of numbers onto it for every move (with every number separated by a comma). So if you wanted to make the first move a3-b3, you would add: ",40,41". Use the cheat sheet I gave above that labels every square on the board with a number for which numbers to use.

This is a custom replay created using this method:

King Mario

54,whitename,blackname,2500,2500,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,False,,,,,,King,StonePillar,StonePillar,,,,StonePillar,,,StonePillar,StonePillar,,,,StonePillar,,,StonePillar,StonePillar,,,,,,,StonePillar,StonePillar,,,,,,Slime3,StonePillar,StonePillar,AirElemental,,,,,,,,AirElemental,AirElemental,,,,,StonePillar,StonePillar,AirElemental,,,StonePillar,,,StonePillar,StonePillar,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
40,32,32,24,24,32,32,40,44,43,40,41,41,34,34,43,43,35,35,28,28,36,36,44,44,36,36,29,29,38,38,46,46,47

(I recommend watching on speed 8-9 so it feels more correct for the intended scene.)

For ease of editing and reading, I separated the first portion with the position information from the moves with a line break. 40,32 is the first move (King moving up 1 square) followed by 32,24 (King moving up 1 square again)

The actual position information itself has been figured out already and you just need to paste it from the tool linked above. For anyone curious though, the empty commas between unit names are blank spaces and the numbers before and after the unit positions are mostly filler values. Some of them give extra morale, turn decay on or off, and set player names/ratings or other things.

Have fun creating your own replays!

Notes:

*If one player runs out of morale, the game ends even if more moves remain.
*You can turn off morale decay or give people extra morale so the game doesn't end.
*One player can take multiple turns in a row.
*If a unit cannot normally move to a square with its moveset, you can force it to move there anyway.
*Line breaks (pressing enter) does not seem to effect the result in the CEO Lab so you can use them for clarity.
*Yes, this means that you can't trust a replay as proof of someone winning a game. They can edit them.

Sort:  

I've used this post to help make a few more changes to the tool. Each cell now has a number on it, and there is some (minor) support for adding moves to the end.

Although I wish I could support skipping through each turn of the replay, it would basically require emulating the whole game and keep updating it with patches (to be able to parse all the abilities), so it's not feasible for me.

unknown.png

 4 years ago Reveal Comment

Note: for complex move series, you may find it easier to:

  • load the position in Lab and immediately pause
  • make the desired moves inside the game,
  • then go back to Lab where you will find a new replay code.

This is not an obvious behavior, but indeed,
replay branching creates new replay codes. (?!)

Modified Replay Examples:

tutorial revamp: 54,whitename,blackname,2500,2500,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,King,StonePillar,StonePillar,,,,StonePillar,,,StonePillar,StonePillar,,,,StonePillar,,,StonePillar,StonePillar,,,,,,,StonePillar,StonePillar,,,,,,Slime3,StonePillar,StonePillar,AirElemental,,,,,,,,AirElemental,AirElemental,,,,,StonePillar,StonePillar,AirElemental,,,StonePillar,,,StonePillar,StonePillar,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,43,43,35,35,27,27,19,19,18,18,17,17,16,16,24,24,32,32,33,33,34,34,35,35,27,27,19,19,11,11,3,3,4,4,12,12,13,6,13,34,26,26,29,29,13,5,13,4,12,12,20,20,28,28,36,36,44,44,52,52,53,53,37,37,38,38,22,22,14,6,14,5,13,14,13,6,14,13,14,4,12,14,12
(misses the 'mario theme' of original, but only took about 1 minute to make)

AI test override: 54,whitename,blackname,2500,2500,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,Gluttony4,Spider3,,,,,Spider3,Gluttony4,Demon,FrostMephit4,,,,,FrostMephit4,Demon,Demon,Templar,,,,,Templar,Demon,WindMage2,FrostMephit4,,,,,FrostMephit4,King,King,FrostMephit4,,,,,FrostMephit4,WindMage2,Demon,Templar,,,,,Templar,Demon,Demon,FrostMephit4,,,,,FrostMephit4,Demon,Gluttony4,Spider3,,,,,Spider3,Gluttony4,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,52,44,11,19,44,36,19,27,36,28,27,35,28,20,35,43,20,19,43,44,19,27,44,36,27,35,36,28,35,43,28,20,43,44,20,19,44,36,19,27,36,28,27,35,28,20,35,43,20,19,43,44,19,27,44,36,27,35,36,28,35,43,28,20,43,44,20,19,44,52,19,11

What if i want to do moves not normally possible... because its kinda hilarious seeing what happens if you use an ability on the wrong thing... You cant really "make the desired moves inside the game"

Heres an example of me using random abilities as wrongly as possible...
54,whitename,blackname,2500,2500,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,100,false,,SoulFlare,,,GravityMage4,,,,,,GravityMage4,,Valkyrie,,,,,,,,,,,,,,,,,Necromancer3,,,,,,,,,,Necromancer,,,,,,,,,,,,,,,,SoulFlare,,,,,Pawn,Comet4,King,Penguin,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,32,17,63,41,41,32,41,34,41,34,41,34,41,34,41,34,41,34,41,0,0,32,33,32,33,32,33,32,43,33,43,33,43,33,43,33,60,43,60,43,47,39,47,60,62,60,8,0

how would one go about stopping a prince ''promotion'' on kill ?
Asking for a scenario.

 4 years ago 

This post has received a 31.17 % upvote from @boomerang.

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.034
BTC 63228.07
ETH 3244.71
USDT 1.00
SBD 3.90