As a French person I feel like it's my duty to explain strikes to you. - AdrienIer

Create an account  

 
Modding the Number of Guaranteed Spells?

One of the changes in 1.31 was in the number of guaranteed spells based on how many spellbooks you have. Whereas before you could guarantee uncommon or rare spells with less than 11 spell books, now you're stuck with assorted Commons unless you go all in for a single color.

I haven't been able to find any information online about the location of these values. Presumably they're in wizard.exe someplace, but I don't know where. I'd like to be able to change the level of spells in the library and the number of guaranteed spells for different numbers of spell books. Does anyone here know where those numbers are, or if they can be modified without breaking something else?
Reply

Pax Empyrean Wrote:One of the changes in 1.31 was in the number of guaranteed spells based on how many spellbooks you have. Whereas before you could guarantee uncommon or rare spells with less than 11 spell books, now you're stuck with assorted Commons unless you go all in for a single color.

I haven't been able to find any information online about the location of these values. Presumably they're in wizard.exe someplace, but I don't know where. I'd like to be able to change the level of spells in the library and the number of guaranteed spells for different numbers of spell books. Does anyone here know where those numbers are, or if they can be modified without breaking something else?

Those numbers are in MAGIC.EXE (the setup phase of the game).
Currently the Tweaker gives access to the total number of picks (default 11) and the number of picks of the opponents.
As yet, I haven't tried to find the location of the number of common/uncommon/rare spells, but when I do, I'll make them accessible in the Tweaker and the Customizer.
--I like ILSe
Reply

I'll keep an eye on future updates of the Tweaker, then. Thanks for the reply.
Reply

that would be great. i would also like to know how to edit the 11-books bonus which was also added in 1.3 (this is probably known since one version of the patch changed it unintentionally). i hated these changes.

it would be much better to have a scaled bonus also for lower number of books in one realm.
Reply

At offset 2713Eh in MAGIC.EXE there are 10 2-byte numbers that identify the number of common spells you get depending on the number of books you have in a color.
In ArtMoney this is at offset 2C2Eh after the Borland-identifier.

Currently these are the numbers 1 to 10, meaning that with 2 books you get 1 common spell, with 3 books you get 2 common spells, and so on.

For 11 books there is a special hardcoded exception.
You get all 10 common spells + 2 uncommon + 1 rare.
But I can't find yet how to change these numbers.
--I like ILSe
Reply

I like Serena Wrote:At offset 2713Eh in MAGIC.EXE there are 10 2-byte numbers that identify the number of common spells you get depending on the number of books you have in a color.
In ArtMoney this is at offset 2C2Eh after the Borland-identifier.

Currently these are the numbers 1 to 10, meaning that with 2 books you get 1 common spell, with 3 books you get 2 common spells, and so on.

For 11 books there is a special hardcoded exception.
You get all 10 common spells + 2 uncommon + 1 rare.
But I can't find yet how to change these numbers.
the next 10 bytes (in magic.exe) after the common spells, are the uncommon ones. the next 10 bytes after these are the rare ones. works exactly the same.
Reply

letsdance Wrote:the next 10 bytes (in magic.exe) after the common spells, are the uncommon ones. the next 10 bytes after these are the rare ones. works exactly the same.

If you mean what I think you mean, I believe you are talking about the preselected spells.
You can change those too, but that won't affect the number of spells you can select.

Or do I misunderstand and you can actually change the number of uncommon/rare spells?
--I like ILSe
Reply

doh, you're right. if i start the game, i don't get the spell, even though it was selected. as far as i remember, in v1.2 you didn't get those spells right away, just were just guaranteed to be able to research them later. could that be the case? otherwise it would make little sense being able (and even forced) to select such spells if the flag is set.

edit: i just installed what is supposed to be v1.2 and the spell selection was the same as in 1.31. hmmm. could our memory be wrong? how do i see what version i have installed? the load screen doesn't show me a version number. (i just found a version number in the readme.txt, but that could be a wrong one)
Reply

i did some more tries. after the number of selected spells comes the list of the spells that are to be selected. 10 entries for commons, 2 for uncommons and 1 for rare. so it seems impossible to give more than 2(1) uncommon(rare) spells, because if you do, you get stuck in the selection screen. unless we find the by that defines the number of entries here and add more.
Reply

The MoM version is shown at the bottom of the Settings screen.

After more analysis of the code, I'm drawing the conclusion that when you have 11 books, you always get 2 uncommon and 1 rare spell, no matter what you changed elsewhere.
So it's not just a number that we can change somewhere, although we can disable of tweak the code to do something different with 11 books.
--I like ILSe
Reply



Forum Jump: