Skip to content

Instantly share code, notes, and snippets.

@tonymorony
Created February 17, 2019 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonymorony/f38bf273cd9ccfcb49174e1576bf86e8 to your computer and use it in GitHub Desktop.
Save tonymorony/f38bf273cd9ccfcb49174e1576bf86e8 to your computer and use it in GitHub Desktop.
Step 1
***
Started new singpleplayer game without playertxid argument of register.
First game txid: 12354a32af8f782735c1059767c72ce510e1d560dad56be29a3ef48c8c2474f1
Played a little and quit on lvl2
First game bailout txid: 5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9
Warrior came from first game:
./komodo-cli -ac_name=ROGUE cclib playerinfo 17 \"[%225c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9%22]\"
{
"result": "success",
"name": "rogue",
"method": "playerinfo",
"player": {
"playertxid": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
"tokenid": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
"data": "410000000c0000001000000001000000090000000c00000001000000000000003a0000000000000001000000000000000000000000000000000000001000000000000000000000000000000000000000000000005d00000000000000010000000100000000000000000000000600000012000000000000000000000000000000000000000000000029000000ffffffff010000000000000001000000010000000000000012000000000000003278340000000000317833000000000029000000ffffffff010000000200000001000000000000000000000012000000000000003178310000000000317831000000000029000000020000001e000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e00000000000000317831000000000032783300000000002100000000000000010000000700000000000000000000000b000000100000000000000030783000000000003078300000000000",
"pack": [
"Some food",
"+1 ring mail [protection 4]",
"A +1,+1 mace",
"A +1,+0 short bow",
"30 +0,+0 arrows",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"A potion of magic detection(clear)"
],
"packsize": 12,
"hitpoints": 12,
"strength": 16,
"level": 1,
"experience": 9,
"dungeonlevel": 1,
"chain": "ROGUE",
"pname": "BugSearcher01"
}
}
Information about first game:
./komodo-cli -ac_name=ROGUE cclib gameinfo 17 \"[%2212354a32af8f782735c1059767c72ce510e1d560dad56be29a3ef48c8c2474f1%22]\"
{
"name": "rogue",
"method": "gameinfo",
"gametxid": "12354a32af8f782735c1059767c72ce510e1d560dad56be29a3ef48c8c2474f1",
"result": "success",
"gameheight": 21272,
"height": 21272,
"start": 21272,
"starthash": "00050c3908b0278238cfdce1bf3cf09677662703fc211c6a39ae097e68748e6a",
"seed": 4156269944632544874,
"run": "./komodo-cli -ac_name=ROGUE cclib register 17 \"[%2212354a32af8f782735c1059767c72ce510e1d560dad56be29a3ef48c8c2474f1%22]\"",
"alive": 0,
"numplayers": 1,
"maxplayers": 1,
"buyin": 0.00000000,
"players": [
{
"slot": 0,
"status": "finished",
"baton": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
"tokenid": "0000000000000000000000000000000000000000000000000000000000000000",
"batonaddr": "RVuzXY65FyJiPPWSBc9efATh6nb4M9MceR",
"ismine": false,
"batonvout": 0,
"batonvalue": 0.00010000,
"batonht": 21279
}
]
}
Baton match tokenid and playerid of created warrior:
"baton": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
Step 2
***
Starting second game and using 5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9 as playertxid for second game register
Second game txid: 420cdd09cf369a451c52d84edd2b94fe5362d6fcbc21e53ad9edd98be6739682
Played a little and quit on lvl2
Second game bailout txid: babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c
Information about second game:
./komodo-cli -ac_name=ROGUE cclib gameinfo 17 \"[%22420cdd09cf369a451c52d84edd2b94fe5362d6fcbc21e53ad9edd98be6739682%22]\"
{
"name": "rogue",
"method": "gameinfo",
"gametxid": "420cdd09cf369a451c52d84edd2b94fe5362d6fcbc21e53ad9edd98be6739682",
"result": "success",
"gameheight": 21284,
"height": 21284,
"start": 21284,
"starthash": "000acb9389278f8489e1812d5e8d0e336e3b23ad6c7427810166c7371f16785a",
"seed": 100987081221109850,
"run": "cc/rogue/rogue 100987081221109850 420cdd09cf369a451c52d84edd2b94fe5362d6fcbc21e53ad9edd98be6739682",
"alive": 0,
"numplayers": 1,
"maxplayers": 1,
"buyin": 0.00000000,
"players": [
{
"slot": 0,
"status": "finished",
"baton": "babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c",
"tokenid": "0000000000000000000000000000000000000000000000000000000000000000",
"batonaddr": "RVuzXY65FyJiPPWSBc9efATh6nb4M9MceR",
"ismine": true,
"batonvout": 0,
"batonvalue": 0.00010000,
"batonht": 21290,
"player": {
"playertxid": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
"tokenid": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
"data": "410000000c0000001000000001000000090000000c00000001000000000000003a0000000000000001000000000000000000000000000000000000001000000000000000000000000000000000000000000000005d00000000000000010000000100000000000000000000000600000012000000000000000000000000000000000000000000000029000000ffffffff010000000000000001000000010000000000000012000000000000003278340000000000317833000000000029000000ffffffff010000000200000001000000000000000000000012000000000000003178310000000000317831000000000029000000020000001e000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e00000000000000317831000000000032783300000000002100000000000000010000000700000000000000000000000b000000100000000000000030783000000000003078300000000000",
"pack": [
"Some food",
"+1 ring mail [protection 4]",
"A +1,+1 mace",
"A +1,+0 short bow",
"30 +0,+0 arrows",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"A potion of magic detection(blue)"
],
"packsize": 12,
"hitpoints": 12,
"strength": 16,
"level": 1,
"experience": 9,
"dungeonlevel": 1,
"chain": "ROGUE",
"pname": "BugSearcher01"
}
}
]
}
Progress for player which I've used not saved it remained first level as before like he not played second game at all:
./komodo-cli -ac_name=ROGUE cclib playerinfo 17 \"[%225c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9%22]\"
{
"result": "success",
"name": "rogue",
"method": "playerinfo",
"player": {
"playertxid": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
"tokenid": "5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9",
"data": "410000000c0000001000000001000000090000000c00000001000000000000003a0000000000000001000000000000000000000000000000000000001000000000000000000000000000000000000000000000005d00000000000000010000000100000000000000000000000600000012000000000000000000000000000000000000000000000029000000ffffffff010000000000000001000000010000000000000012000000000000003278340000000000317833000000000029000000ffffffff010000000200000001000000000000000000000012000000000000003178310000000000317831000000000029000000020000001e000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e00000000000000317831000000000032783300000000002100000000000000010000000700000000000000000000000b000000100000000000000030783000000000003078300000000000",
"pack": [
"Some food",
"+1 ring mail [protection 4]",
"A +1,+1 mace",
"A +1,+0 short bow",
"30 +0,+0 arrows",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"A potion of magic detection(blue)"
],
"packsize": 12,
"hitpoints": 12,
"strength": 16,
"level": 1,
"experience": 9,
"dungeonlevel": 1,
"chain": "ROGUE",
"pname": "BugSearcher01"
}
}
Instead was created a new token! (tokenid is baton of second game)
"baton": "babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c"
./komodo-cli -ac_name=ROGUE cclib playerinfo 17 \"[%22babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c%22]\"
{
"result": "success",
"name": "rogue",
"method": "playerinfo",
"player": {
"playertxid": "babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c",
"tokenid": "babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c",
"data": "550000001a0000001000000003000000150000000e00000002000000000000003a0000000000000001000000000000000000000000000000000000001200000000000000000000000000000000000000000000005d00000000000000010000000100000000000000000000000600000012000000000000000000000000000000000000000000000029000000ffffffff010000000000000001000000010000000000000012000000000000003278340000000000317833000000000029000000ffffffff010000000200000001000000000000000000000012000000000000003178310000000000317831000000000029000000020000001e000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e0000000000000031783100000000003278330000000000290000000200000001000000030000000000000000000000000000001e00000000000000317831000000000032783300000000002100000000000000010000000700000000000000000000000b0000001200000000000000307830000000000030783000000000002100000000000000010000000100000000000000000000000b0000001000000000000000307830000000000030783000000000003f00000000000000010000000100000000000000000000000b0000001000000000000000307830000000000030783000000000003f00000000000000010000000700000000000000000000000b000000100000000000000030783000000000003078300000000000",
"pack": [
"Some food",
"+1 ring mail [protection 4]",
"A +1,+1 mace",
"A +1,+0 short bow",
"30 +0,+0 arrows",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"An +0,+0 arrow",
"A potion of magic detection(blue)",
"A potion of hallucination(white)",
"A scroll of magic mapping",
"A scroll of identify weapon"
],
"packsize": 14,
"hitpoints": 26,
"strength": 16,
"level": 3,
"experience": 21,
"dungeonlevel": 2,
"chain": "ROGUE",
"pname": "BugSearcher01"
}
}
"playertxid": "babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c",
"tokenid": "babe44e3bc746b976f02906a2317234ab583e863b0304a444c1cb606adf6be5c",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment