Saveing shape-infos cause Exult-Studio (Win) to crash

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Marcus
Posts: 64
Joined: Thu May 14, 2020 1:34 pm

Saveing shape-infos cause Exult-Studio (Win) to crash

Post by Marcus »

Runtime-Error.

I want to make some experiments with the Strength of opponents, to see if it can be a shorttime workaround for the problems with the fighting system.

Is there another way that i can make these changes or can it be shortly fixed in Exult-Studio?
Marcus
Posts: 64
Joined: Thu May 14, 2020 1:34 pm

Re: Saveing shape-infos cause Exult-Studio (Win) to crash

Post by Marcus »

If someone can give me a short explanation in what files what is to change, i can handle it with a Hex-Editor.
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Saveing shape-infos cause Exult-Studio (Win) to crash

Post by drcode »

I think we've got the strengths set right, but we might be using the value incorrectly. The code for figuring hit points is in 'actors.cc'; look for 'figure_hit_points'. There, we first determine the probability of a hit occurring. Then, if it occurs, we determine the damage. It's the same formula whether the 'Actor' is a party member or an opponent.

If you do see something wrong, like maybe opponents not having any armor or always having attributes lower than they should, I'll be happy to try to fix it.
Marcus
Posts: 64
Joined: Thu May 14, 2020 1:34 pm

Re: Saveing shape-infos cause Exult-Studio (Win) to crash

Post by Marcus »

Is it possible that you can build in a debug-mode for seeing the fight status of the different chars that are involved in a combat, that comes up per hotkey?

It can looks like following:
When the hotkey is invoked, the game freezes, a display is popped up in which i can see the char-stats of the opponents and what weapons and armor they wear. A second mode can slow down the game and shown all hits that are occured and from whom.

This will help to investigate the problems with the combat system and gives a lot of people the chance to help investigate.

But only if it is not much work for you.
I can do it by my own, but it surely takes me much longer to do it because i dont know the code and it now will takes too long for me to learn enough of the code to do it in seconds ;)
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Saveing shape-infos cause Exult-Studio (Win) to crash

Post by wjp »

I would personally prefer outputting all the hits to stdout as they occur, in a sufficiently detailed way.
SB-X
Posts: 980
Joined: Thu May 14, 2020 1:34 pm

Re: Saveing shape-infos cause Exult-Studio (Win) to crash

Post by SB-X »

Doesn't this already happen? The hit probability and damage is already shown I mean.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Saveing shape-infos cause Exult-Studio (Win) to crash

Post by wjp »

Yeah, but MAC mentioned also wanting to know attack and defense values from which they were calculated.
Locked