Chaosforge Forum

  • April 19, 2024, 10:51
  • Welcome, Guest
Please login or register.



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

Author Topic: [0.9.9.3] Can't create a nanoskin cybernetic armor.  (Read 2208 times)

bucels

  • Private
  • *
  • Offline Offline
  • Posts: 3
    • View Profile

Code: [Select]
----------------------------------------------------------------------
Timestamp   : 2011-05-18 18:19:14
Error level : ERROR
Message     : Lua hook OnUse failed!

Hook name     : items[mod_power].OnUse
Error message : Lua error : lua\mod_arrays.lua:322: attempt to perform arithmetic on field 'armor' (a nil value)
----------------------------------------------------------------------

I was standing on the stairs at Lev73.
I was trying to create a nanoskin cybernetic armor (PPN). I added a power mod pack, then a nano pack, and when I tried to add the second power mod pack the game didn't like it.
I saved the game (attached), resumed, and tried to add the second power mod pack again (twice), but I got the same error.
Oh, and the "nanoskin" prefix was added multiple times (see screenshot) - armor stays at [9/9] (PN).
Bah, I've been playing for 3 hours and now I'm going to die... :(

DoomRL version: 0.9.9.3, win
Platform: Windows XP
Game type: Ao100
Difficulty: UV
Level: 73
Doomguy level: 21
Traits: Irox3, Finx3, HRx3, SoBx4, Relx2, Jug, WKx2, THx2, MAc


lua\mod_arrays.lua:322: attempt to perform arithmetic on field 'armor' (a     
 nil value) Press <Enter>...
Error written to error.log, please report!         
                                 
##########                                   
                                 
.=...=...#=                                   
                               
..  .====..=.=.                                 
                               ...
##=====....^                                 
                             
......===..... ..                                 
                              ......
==....#=...                                 
                             ......
===.....#=.O.                               
                             ...
^...==@.........                               
                             ........
=..........                               
                              ...
====..O.......                                 
                              ...
===...........                                 
                               ....
==....O....                                 
                               ..
=^=....=####.                                 
                                .
=.....==#                                     
                                 
O......##                                     
                                   
....##                                       
                                     
.##                                       
                                                                               
                                                                               
                                                                               
 
Bob                        Armor : modified nanoskin nanoskin nanoskin Cybernet
 
Health: 75%  Exp: 21/64%   Weapon: hyperblaster (2d4)x3 [40/40]               
 cautious                                                   
Phobos Hell  Lev74


Logged

tehtmi

  • Programmer
  • Local Inquisitor
  • Lieutenant Colonel
  • *
  • *
  • Offline Offline
  • Posts: 458
    • View Profile
Re: [0.9.9.3] Can't create a nanoskin cybernetic armor.
« Reply #1 on: June 04, 2011, 18:09 »

Thanks for the bug report.

This is a problem with saving/loading.  After I save/load all the items in my equipment and inventory have their proto set to stubitem.

To avoid this bug, don't save.  However, the item prototype is almost never referenced directly.  Nanofiber skin armor and cybernano armor are the only things I have noticed that do this.

Edit: This same bug will disable the possibility of getting set bonuses from your items.  It may cause other set issues too.
« Last Edit: June 04, 2011, 19:12 by tehtmi »
Logged
Pages: [1]