Giter Site home page Giter Site logo

stats command is bugged about jadventure HOT 5 CLOSED

avaloni avatar avaloni commented on June 23, 2024
stats command is bugged

from jadventure.

Comments (5)

projectdelphai avatar projectdelphai commented on June 23, 2024

Could you give some more info on how to reproduce this bug? Here's my results:

Distro: Arch Linux
Platform: x86-64
Repo: progether:master up-to-date
Steps:

  1. ant run
  2. start new player, recruit, name: "s"
  3. debug
  4. stats

output: expected output (player name,stats)

from jadventure.

avaloni avatar avaloni commented on June 23, 2024

Huh...it seems inconsistent, must be something to do with my system.

Linux Mint x86-64 with up-to-date master.

  1. Run the game
  2. Create character, recruit, named it "s" to keep consistency
  3. debug
  4. stats

Output as expected, now the following steps:

  1. Exit debug
  2. Save game
  3. Exit to main menu
  4. Exit game
  5. Run game again (ant run)
  6. Load character named "s"
  7. debug
  8. stats

Output: NullPointerException

I kinda found something while debugging this now, when I opened up the game the second time, it didn't load the player information (attributes,name etc) in the player singleton, the attributes are all "inherited", so it throws this error inside Player.getStats() when the program tries to recover the name with getName(). It somehow never initializes the player instance. I'm looking into this, but I'm trying to make sure this happens with other people.

from jadventure.

projectdelphai avatar projectdelphai commented on June 23, 2024

see if it happens with the test player too

from jadventure.

avaloni avatar avaloni commented on June 23, 2024

yeah, it happens with "test" too

from jadventure.

paddatrapper avatar paddatrapper commented on June 23, 2024

@avaloni did your fix work or is this still an issue?

from jadventure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.