Code Monkey home page Code Monkey logo

rmud's People

Contributors

dependabot[bot] avatar rindek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

rmud's Issues

Armor item

  • armor name
  • slot coverage (head, left shoulder, right shoulder, hands, torso, legs, feet etc) + multiple slots
  • type of armor (light, medium, heavy)
  • % reduction dmg type (slash, pierce, blunt, magic)
  • durability
  • rarity
    • attribute bonus
  • lvl requirement
  • weight

Allow player to wear armor,

NoMethodError: undefined method `present' for #<Entities::Game::Item id="world.redania.novigrad.passiflora.items.knife" adjectives=["short", "dull"] name="knife"> Did you mean? present? presence

View details in Rollbar: https://rollbar.com/rindek/rmud/items/15/


NoMethodError: undefined method `present' for #<Entities::Game::Item id="world.redania.novigrad.passiflora.items.knife" adjectives=["short", "dull"] name="knife">
Did you mean?  present?
               presence
  File "/app/engine/commands/game.rb", line 28, in block (4 levels) in <class:Game>
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/right_biased.rb", line 57, in bind
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/result.rb", line 119, in fmap
  File "/app/engine/commands/game.rb", line 28, in block (3 levels) in <class:Game>
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/result.rb", line 131, in either
  File "/app/engine/commands/game.rb", line 23, in block (2 levels) in <class:Game>
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/right_biased.rb", line 57, in bind
  File "/app/engine/commands/game.rb", line 20, in block in <class:Game>
  File "/app/engine/command/game/mixin.rb", line 12, in instance_exec
  File "/app/engine/command/game/mixin.rb", line 12, in block (2 levels) in register_command
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in block in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do/mixin.rb", line 40, in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in call
  File "/app/engine/handlers/game.rb", line 30, in block in receive
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/right_biased.rb", line 57, in bind
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/try.rb", line 137, in bind
  File "/app/engine/handlers/game.rb", line 30, in receive
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in block in receive
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do/mixin.rb", line 40, in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in receive
  File "/app/engine/process_command.rb", line 17, in block in call

Add attributes to creature

  • strength
  • dex
  • stamina
  • int
  • wisdom

hp: base + strength + (stamina * 10) + lvl * 50
mana: base + wisdom + (int * 10) + lvl * 50

Weapon item

Weapon item

  1. weapon name (knife, sword etc)
  2. hit type (slash, pierce, blunt)
  3. which hand it uses (left, right, both)
  4. dps
  5. level requirement
  6. rarity
    • attribute (dex, str, int)
  7. durability
  8. weight

Ability to wield a weapon (by player, monster will be later)

Dead body

When hp goes to 0, clone body of character and move all items to the body (container)

body should decay, after X minutes decompose, moving all items inside to environment of body + spawn couple race-related remains (skull, bones etc)

all remains should deteriorate and after X minutes each off the items should dissolve itself

Move back to postgreSQL

Due to licensing stuff with mongo, let's go back to postgres, with usage of json if necessary

  • add postgresql gems back to the game
  • create new base repository with support of psql (maintain interface methods same)
  • add necessary tables in database
  • ensure postgres connectivity upon app start
  • set proper dataset in player repo
  • switch "local" repo to be postgres one, not mongo
  • test things, ensure things pass on CI
  • remove mongo-db related things

Encoding::UndefinedConversionError: "\xFF" from ASCII-8BIT to UTF-8

View details in Rollbar: https://rollbar.com/rindek/rmud/items/23/


Dry::Container::Error: Nothing registered with the key :"\xFF\xF4\xFF\xFD\x06"
  File "/usr/local/bundle/gems/dry-container-0.9.0/lib/dry/container/resolver.rb", line 31, in block in call
  File "/usr/local/bundle/gems/dry-container-0.9.0/lib/dry/container/resolver.rb", line 27, in fetch
  File "/usr/local/bundle/gems/dry-container-0.9.0/lib/dry/container/resolver.rb", line 27, in call
  File "/usr/local/bundle/gems/dry-container-0.9.0/lib/dry/container/mixin.rb", line 122, in resolve
  File "/app/engine/handlers/login.rb", line 12, in receive
  File "/app/engine/process_command.rb", line 17, in block in call
Encoding::UndefinedConversionError: "\xFF" from ASCII-8BIT to UTF-8
  File "/usr/local/bundle/gems/bson-4.12.0/lib/bson/string.rb", line 49, in encode
  File "/usr/local/bundle/gems/bson-4.12.0/lib/bson/string.rb", line 49, in put_string
  File "/usr/local/bundle/gems/bson-4.12.0/lib/bson/string.rb", line 49, in to_bson
  File "/usr/local/bundle/gems/bson-4.12.0/lib/bson/hash.rb", line 42, in put_hash
  File "/usr/local/bundle/gems/bson-4.12.0/lib/bson/hash.rb", line 42, in to_bson
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/serializers.rb", line 358, in serialize
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/serializers.rb", line 265, in serialize
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/serializers.rb", line 190, in block in serialize
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/serializers.rb", line 187, in each
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/serializers.rb", line 187, in serialize
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/message.rb", line 343, in block in serialize_fields
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/message.rb", line 331, in each
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/message.rb", line 331, in serialize_fields
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/message.rb", line 192, in serialize
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/protocol/msg.rb", line 152, in serialize
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/sessions_supported.rb", line 231, in block in build_message
  File "<internal:kernel>", line 90, in tap
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/sessions_supported.rb", line 226, in build_message
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/executable.rb", line 62, in dispatch_message
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/executable.rb", line 57, in get_result
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/executable.rb", line 30, in block (3 levels) in do_execute
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/response_handling.rb", line 96, in add_server_diagnostics
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/executable.rb", line 29, in block (2 levels) in do_execute
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/response_handling.rb", line 43, in add_error_labels
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/executable.rb", line 28, in block in do_execute
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/response_handling.rb", line 82, in unpin_maybe
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/executable.rb", line 27, in do_execute
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/executable.rb", line 45, in execute
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/op_msg_or_find_command.rb", line 29, in block in execute
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/server/connection_pool.rb", line 590, in with_connection
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/server.rb", line 429, in with_connection
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/operation/shared/op_msg_or_find_command.rb", line 27, in execute
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/collection/view/iterable.rb", line 160, in send_initial_query
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/collection/view/iterable.rb", line 109, in block in select_cursor
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/retryable.rb", line 61, in block in read_with_retry_cursor
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/retryable.rb", line 323, in modern_read_with_retry
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/retryable.rb", line 124, in read_with_retry
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/retryable.rb", line 60, in read_with_retry_cursor
  File "/usr/local/lib/ruby/3.0.0/forwardable.rb", line 238, in read_with_retry_cursor
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/collection/view/iterable.rb", line 108, in select_cursor
  File "/usr/local/bundle/gems/mongo-2.14.0/lib/mongo/collection/view/iterable.rb", line 42, in each
  File "/app/repos/mongo.rb", line 20, in first
  File "/app/repos/mongo.rb", line 20, in find_by
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in block in find_by
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do/mixin.rb", line 40, in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in find_by
  File "/app/engine/command/login/login.rb", line 24, in find_player
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in block in find_player
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do/mixin.rb", line 40, in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in find_player
  File "/app/engine/command/login/login.rb", line 11, in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in block in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do/mixin.rb", line 40, in call
  File "/usr/local/bundle/gems/dry-monads-1.3.5/lib/dry/monads/do.rb", line 114, in call
  File "/app/engine/handlers/login.rb", line 16, in rescue in receive
  File "/app/engine/handlers/login.rb", line 9, in receive
  File "/app/engine/process_command.rb", line 17, in block in call

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.