Giter VIP home page Giter VIP logo

Comments (7)

mewmew avatar mewmew commented on May 6, 2024

Good that you added a dedicated issue for us to track this.

from devilution.

mewmew avatar mewmew commented on May 6, 2024

If possible, post a random seed and upload a save file. It may be the case that this always happens, still, good to have for reproduceability.

from devilution.

 avatar commented on May 6, 2024

This has always been the case seen Devilution first compiled (and dungeons actually work lol).

It's likely a signage issue with one of the flags, since the game will compare gbMaxPlayers and the monster id.

from devilution.

fearedbliss avatar fearedbliss commented on May 6, 2024

Seed: 699653937
Character: https://xyinn.org/diablo/debug/single_0.sv-2018-06-29-0845

Butcher already complete on this char (Obviously).

from devilution.

sergi4ua avatar sergi4ua commented on May 6, 2024

Can confirm this bug. The Butcher dropped Spiked Club for me.
Compiled under debug, seed: 708591219

from devilution.

 avatar commented on May 6, 2024

I can confirm... Uploading save file.

https://files.fm/u/rj476j9c

I will look into this in a few.

I am starting at here... and will try to follow it down.

0043171D

They're a few issues I think.
Magic items are only dropping becasue of this function

int __fastcall CheckUnique(int i, int lvl, int uper, bool recreate)
...
...
if ( random(28, 100) > uper )
//This above returns
/*
random returns
eax 0x59 :89
ecx C4460E56
edx 0x59 : 89
*/

According to the asm , it looks like it expects the value to be below 15 , otherwise it will jump to making a unique item.

Once that completes, It will grab a unique item using ECX and EDX. EDX will hold the index of the unique item . So ideally you can make this 0 and get the cleaver. I am still looking at this though.

EDIT what I am doing isn't right. I need to step back a bit and see why the butcher would generate such a high RNG.

from devilution.

 avatar commented on May 6, 2024

This issue was caused by the signage of MData->mTreasure. When the code was decompiled, I had this field entered as signed short, but later on it was correct to be unsigned. This however was not reflected in the actual code. It's been fixed now, Butcher drops the Cleaver. 56e625c

from devilution.

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.