Chaosforge Forum

  • April 24, 2024, 22:49
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Ordinary chaingun with ammo 85/50  (Read 3251 times)

Blade

  • Tester
  • Elder Chaos Guard
  • Brigadier General
  • *
  • *
  • Offline Offline
  • Posts: 691
    • View Profile
    • Upyachka
Ordinary chaingun with ammo 85/50
« on: May 04, 2007, 16:04 »

Code: [Select]
     wear/wield : a chaingun (1d6)x5 [85/50]
     reload the chaingun with 10mm ammo. Game saved. Press <Enter> to exit.
            ?????##???????==?=======????===#?##?##
            ???????????#%???=?====?=????#?########
           ???????#????????=====?????#???#
           ??#%%=???????=%????===??????####
           ????#??#???=??=?=?======????##
           ????????=?=#==?===?===???#????#
               ##???+????==??====?=?????##
               #???An unhandled exception occurred at $0044C211 :
ERangeError : Range check error###### ###
  $0044C211  TBEING__RELOAD,  line 425 of dfbeing.pas2%)     Phobos Base  Lev15
  $004165D5  TPLAYER__DORELOAD,  line 490 of dfplayer.pas50]
  $004187CE  TPLAYER__AICONTROL,  line 897 of dfplayer.pas
  $0044DFB8  TBEING__ACTION,  line 734 of dfbeing.pas
  $0044E120  TBEING__CALL,  line 746 of dfbeing.pas
  $00440DF9  TLEVEL__TICK,  line 578 of dflevel.pas
  $00403496  TDOOM__RUN,  line 310 of doombase.pas
  $00401097  main,  line 19 of doomrl.pas

Abnormal program termination! Please write down the above
to help get rid DoomRL of all those bugs! You only need
to write down the filenames and linenumbers.
Attempting to save game.... Press <Enter>

On somewhat level i found chaingun with 50/50 ammo. I unloaded it(i had space only for 15 bullets), and  after that noticed that there is something strange with the numbers. After that it became 85/50 chaingun. I picked it up, equipped(nothing bad happened), and that tried to reload it. After that game crashed.

WinXP Pro SP2. DooMRl 0987 Win with sound.

[Edit] This happened again with Plasma Rifle. And this all started after i picked backpack.

[Edit] Another one thing - if you pick up ammo when you have a backpack, it is filling all slots up to backpack's maximum. But if you will try to unload weapon to get ammo, you will get only up to normal(without backpack) maximum.

[Edit] Oh, i have noticed, when this happens that weapon have more ammo than maximum. I had filled all inventory.
Code: [Select]
--------------------------------- Inventory ------------------------------------

  [a] BFG 9000 (8d8) [100/100]
  [b] 10mm ammo (x140)
  [c] 10mm ammo (x140)
  [d] 10mm ammo (x140)
  [e] 10mm ammo (x140)
  [f] 10mm ammo (x140)
  [g] 10mm ammo (x100)
  [h] rocket (x10)
  [i] rocket (x14)
  [j] power cell (x60)
  [k] power cell (x70)
  [l] power cell (x70)
  [m] power cell (x70)
  [n] power cell (x70)
  [o] power cell (x70)
  [p] small med-pack
  [q] large med-pack
  [r] large med-pack
  [s] large med-pack
--------------------------------------------------------------------------------
  Press Escape or Enter to exit. To wear, wield or use items, press the
  desired item letter.
--------------------------------------------------------------------------------

Than i dropped 40/40 Plasma Rifle and tried to unload it. I got this
Code: [Select]
--------------------------------- Inventory ------------------------------------

  [a] BFG 9000 (8d8) [100/100]
  [b] 10mm ammo (x140)
  [c] 10mm ammo (x140)
  [d] 10mm ammo (x140)
  [e] 10mm ammo (x140)
  [f] 10mm ammo (x140)
  [g] 10mm ammo (x100)
  [h] rocket (x10)
  [i] rocket (x14)
  [j] power cell (x50)
  [k] power cell (x70)
  [l] power cell (x70)
  [m] power cell (x70)
  [n] power cell (x70)
  [o] power cell (x70)
  [p] small med-pack
  [q] large med-pack
  [r] large med-pack
  [s] large med-pack
--------------------------------------------------------------------------------
  Press Escape or Enter to exit. To wear, wield or use items, press the
  desired item letter.
--------------------------------------------------------------------------------
and a Plasma Rifle 50/40 on the foor.
« Last Edit: May 05, 2007, 11:35 by Blade »
Logged
Low orbit ion cannon damaged my brain!!1
Now i'm an idiot!1 Kill me, somebody!!11

TFoN

  • Colonel
  • *
  • Offline Offline
  • Posts: 562
  • Gleefully antisocial!
    • View Profile
Re: Basic chaingun with ammo 100/50
« Reply #1 on: May 05, 2007, 10:16 »

Yeah, Backpack extra space responds badly to unloading weapons. I had a similar problem myself, but noticed it and stopped unloading weapons with full inventory, so that there'd be enough room even if I wouldn't have had the backpack. That worked fine.

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Ordinary chaingun with ammo 85/50
« Reply #2 on: May 05, 2007, 12:25 »

Unloading uses the old ammo handling code (I forgot to change it). I'll try to nail it ASAP.
Logged
at your service,
Kornel Kisielewicz

Getix

  • Corporal
  • *
  • Offline Offline
  • Posts: 40
  • Always forgive, never forget.
    • View Profile
    • Getix's Blog
Re: Ordinary chaingun with ammo 85/50
« Reply #3 on: May 20, 2007, 01:50 »

Some problem here, but no crash (using lastest version avaible to public).

Chaingun with 75/50 ammo, no advanced or extended.

EDIT

Dropped by a former human captain.
Logged
http://getix.wordpress.com
Personal, Trance & Roguelike blog.

Jason_Miao

  • Private
  • *
  • Offline Offline
  • Posts: 1
    • View Profile
Re: Ordinary chaingun with ammo 85/50
« Reply #4 on: July 04, 2007, 14:23 »

0.9.8.7, win (sound)
Played on WinXP.

I just won my first game!  I'd post it, but since I exploited this bug like hell (and through Hell), I don't count it as a valid win  - double shotguns with 250 rounds...



A few observations:

First, you can purposefully create "superloaded" weapons by having no spare slots in your inventory, and all ammo of that particular type over the non-backpack limits.  The weapon to overload should be on the ground. Trying to 'U'nload the weapon will cause it to superload.  Overloading too much results in integer overflow (probably at 255).

Second, the crash-save that results from 'R'eloading a superloaded weapon is better than save scumming.  Save scumming only lets you save your character's state between levels.  The generated save file from reloading keeps the character state at the time of crash, but resets the level.   Potentially infinite XP and as many red armors as your character can hold...
Logged
Pages: [1]