Up to Main Index                              Up to Journal for June, 2020

                      JOURNAL FOR MONDAY 8TH JUNE, 2020
______________________________________________________________________________

SUBJECT: Player account creation broken, now fixed, effects public dev branch
   DATE: Mon  8 Jun 19:40:35 BST 2020

Hrm, well this is embarrassing:


  17:56:13 [0] New account created: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.wrj
  17:56:13 Player saved: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.wrj
  17:56:17 [0] CLIENT PANICKED:
  17:56:17 [0] runtime error: invalid memory address or nil pointer
           dereference: goroutine 66 [running]:
  runtime/debug.Stack(0x729604, 0x10, 0x0)
          runtime/debug/stack.go:24 +0xab
  code.wolfmud.org/WolfMUD.git/comms.(*client).process.func1(0xc00009d320)
          code.wolfmud.org/WolfMUD.git/comms/client.go:98 +0xdd
  panic(0x6e42a0, 0x9178c0)
          runtime/panic.go:975 +0x3e3
  code.wolfmud.org/WolfMUD.git/attr.(*Health).AutoUpdate(0x0, 0x1)
          code.wolfmud.org/WolfMUD.git/attr/health.go:174 +0x30
  code.wolfmud.org/WolfMUD.git/frontend.(*game).init(0xc000010010)
          code.wolfmud.org/WolfMUD.git/frontend/game.go:59 +0x3c3
  code.wolfmud.org/WolfMUD.git/frontend.NewGame(...)
          code.wolfmud.org/WolfMUD.git/frontend/game.go:26
  code.wolfmud.org/WolfMUD.git/frontend.(*menu).menuProcess(0xc0000b6030)
          code.wolfmud.org/WolfMUD.git/frontend/menu.go:48 +0x1d1
  code.wolfmud.org/WolfMUD.git/frontend.(*frontend).Parse(0xc0000c8000,
  0xc000478000, 0x1, 0x200, 0x200, 0x0)
          code.wolfmud.org/WolfMUD.git/frontend/frontend.go:160 +0x120
  code.wolfmud.org/WolfMUD.git/comms.(*client).process(0xc00009d320)
          code.wolfmud.org/WolfMUD.git/comms/client.go:133 +0x5e7
  created by code.wolfmud.org/WolfMUD.git/comms.Listen
          code.wolfmud.org/WolfMUD.git/comms/listener.go:67 +0x394
  17:56:17 [0] connection closed


This is what currently happens if you try to create a new player when logging
in to WolfMUD using code from the public dev branch :( From the player’s
perspective everything looks okay until they try to enter the game:


  Welcome Diddymus!

    Main Menu
    ---------

    1. Enter game
    0. Quit

  Select an option:
  >1

  Bye bye...

  Connection closed by foreign host.
  >


When I added the new Health and Body attributes I added an automatic upgrade
path for existing players. However, I forgot to add the new attributes to
newly created players *sigh* :(

A fix has just been pushed out to the public dev branch…

--
Diddymus


  Up to Main Index                              Up to Journal for June, 2020