-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken Hills mine memory crash #63
Comments
It seems that when i take the script file from the original killap RP 2.3.3 and copy it to scripts folder, the crash will be gone. I thought that its not needed to install the original version? |
That is correct. It is likely a newly-introduced one. |
I modified the script to get some debug: broken2.int.zip. For some reason, procedure CauseDamage begin
variable who;
ndebug("test0");
foreach who in party_member_list_critters begin
ndebug("who is " + who);
ndebug("dude is " + dude_obj);
ndebug("who name is " + obj_name(who));
if not wearing_protective_gear(who)
and critter_kill_type(who) != KILL_TYPE_robot_kills
then begin
ndebug("test1");
apply_radon_damage(who)
ndebug("test2");
end
end
end
@FakelsHub @NovaRain any idea why that happens? |
The crash address 0x42D940 is in I tried to recreate the crash like this: // The instruction at 0042d940 referenced memory at 00000064
// The memory could not be read from
foreach who in party_member_list_critters begin
display_msg("Name is " + obj_name(who));
display_msg("Kill type: " + critter_kill_type(who));
critter_dmg(who, 2, DMG_normal_dam BWOR DMG_NOANIMATE BWOR DMG_BYPASS_ARMOR);
end Removing the EDIT: and this crash seems to happen on all reasonably available versions (tried old 3.6, 3.8.x, 4.x) EDIT 2: another simple test: key := [1, 2, 3, 4, 5];
foreach i in key begin
display_msg("Number " + i);
critter_dmg(dude_obj, i, DMG_normal_dam BWOR DMG_NOANIMATE BWOR DMG_BYPASS_ARMOR);
end The loop works only for the first time; the rest of it are all zero. It seems there's some conflict between |
OK, it seems that the script isn't at fault then. I opened an issue in sfall repo. |
should be fixed now, with latest sfall |
SLOT09.zip
debug.log
Every time i enter the mine, the damage from the gas, which ticks, crashes the game to desktop. Using the latest rpu version with no alteration to sfall.
The text was updated successfully, but these errors were encountered: