It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
I'm the author of the per pixel lighting, it's not merged to the master yet, still needs some minor tweaks :)
avatar
Sulibor: I was wondering if it it could be possible to add an option that would allow drop of multiplayer only spell books/scrolls (heal other, resurrection) in singleplayer in devilutionX.
I know those would not have any use, but for roleplay/completion sake I think it could make an interesting addition.
That should be pretty easy. Go to each site that tests for a spell of SPL_HEALOTHER or SPL_RESURRECT and for gbMaxPlayers == 1. Delete the test and the associated statement. For example, in Source/items.cpp, find the line void GetBookSpell(int i, int lvl). Look down for the test section:

---
    if (gbMaxPlayers == 1) {
        if (s == SPL_RESURRECT)
            s = SPL_TELEKINESIS;
    }
    if (gbMaxPlayers == 1) {
        if (s == SPL_HEALOTHER)
            s = SPL_FLARE;
    }
---
Delete that section. It causes attempts to drop Resurrect to instead drop Telekinesis, and attempts to drop Heal Other to instead drop Flare (Blood Star). There are similar blocks elsewhere for spells on staves, for random magic items, for random unique items, for random items (site #2), for witch items, and for healer items. I can't say why there are multiple blocks for random items. Diablo has a number of unused / unreachable paths, and since Devilution seeks to recreate Diablo, it must have those paths, even if they may be unreachable.

Those are all Devilution links, but DevilutionX should have similar code at similar offsets if you prefer to work with it.
Post edited March 22, 2020 by advowson
avatar
Sulibor: I was wondering if it it could be possible to add an option that would allow drop of multiplayer only spell books/scrolls (heal other, resurrection) in singleplayer in devilutionX.
I know those would not have any use, but for roleplay/completion sake I think it could make an interesting addition.
avatar
advowson: That should be pretty easy. Go to each site that tests for a spell of SPL_HEALOTHER or SPL_RESURRECT and for gbMaxPlayers == 1. Delete the test and the associated statement. For example, in Source/items.cpp, find the line void GetBookSpell(int i, int lvl). Look down for the test section:

---
if (gbMaxPlayers == 1) {
if (s == SPL_RESURRECT)
s = SPL_TELEKINESIS;
}
if (gbMaxPlayers == 1) {
if (s == SPL_HEALOTHER)
s = SPL_FLARE;
}
---
Delete that section. It causes attempts to drop Resurrect to instead drop Telekinesis, and attempts to drop Heal Other to instead drop Flare (Blood Star). There are similar blocks elsewhere for spells on staves, for random magic items, for random unique items, for random items (site #2), for witch items, and for healer items. I can't say why there are multiple blocks for random items. Diablo has a number of unused / unreachable paths, and since Devilution seeks to recreate Diablo, it must have those paths, even if they may be unreachable.

Those are all Devilution links, but DevilutionX should have similar code at similar offsets if you prefer to work with it.
Great, Thank you for your reply, I will try it.
avatar
qndel: I'm the author of the per pixel lighting, it's not merged to the master yet, still needs some minor tweaks :)
Oh, thanks for your answer. Looking forward to it!


Btw, is it possible to zoom in/out with the mouse wheel like in Beelzebub? and adding new quest marks like Beelzebub/D2?
Post edited March 22, 2020 by Adol_the_Red
avatar
qndel: I'm the author of the per pixel lighting, it's not merged to the master yet, still needs some minor tweaks :)
Hi, may I ask what OS you're running? I've cloned your repo but didn't manage to create a build that runs stable, unlike the source devilutionX project. I assume it's related to my 64bit OSX, hence the question. I'd love to have the per pixel lighting, your screenshots look great! Unfortunately, this is my first time getting in touch with cmake & co, I usually write js (yes, I don't consider this programming either) ;).
avatar
qndel: I'm the author of the per pixel lighting, it's not merged to the master yet, still needs some minor tweaks :)
avatar
coulahan: Hi, may I ask what OS you're running? I've cloned your repo but didn't manage to create a build that runs stable, unlike the source devilutionX project. I assume it's related to my 64bit OSX, hence the question. I'd love to have the per pixel lighting, your screenshots look great! Unfortunately, this is my first time getting in touch with cmake & co, I usually write js (yes, I don't consider this programming either) ;).
feel free to join devilution's discord so we can talk about it, I hate chatting about such dynamic things through forums :D
Post edited May 16, 2020 by qndel