Super Training Bug

View previous topic View next topic Go down

Super Training Bug

Post by Bocajian on 2015-03-30, 12:05

If you choose the wrong stat to raise and try to back out, you get this error and the game crashes.

---------------------------
Pokemon Uranium
---------------------------
Exception: RuntimeError

Message: Script error within event 31, map 167 (Legen Town):

Exception: TypeError

Message: (eval):2:in `*'nil can't be coerced into Fixnum

***Full script:

score = pbPunchBag(10)
score = (2*score/5).floor
poke=pbGetPokemon(1)
poke.ev[pbGet(2)]+=score
poke.ev[pbGet(2)]=252 if poke.ev[pbGet(2)]>252
poke.calcStats
stat=["HP","Attack","Defense","Speed","Special Attack","Special Defense"]
$game_variables[4]=stat[pbGet(2)]
$game_variables[1]=score
pbCallBub(2,0,2)


Interpreter:243:in `pbExecuteScript'

(eval):2:in `pbExecuteScript'

Interpreter:1600:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1600:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

* Scene_Map:103:in `update'



Interpreter:276:in `pbExecuteScript'

Interpreter:1600:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

* Scene_Map:103:in `update'

* Scene_Map:101:in `loop'

* Scene_Map:139:in `update'

* Scene_Map:68:in `main'



This exception was logged in

C:\Users\Jacob\Saved Games/Pokemon Uranium/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
avatar
Bocajian
Seikamater
Seikamater

Posts : 458
Join date : 2015-01-14
Age : 21

View user profile

Back to top Go down

Re: Super Training Bug

Post by ~JV~ on 2015-03-30, 12:50

Thanks for the report! *Added to 4.1 bug list
avatar
~JV~
Admin

Posts : 236
Join date : 2014-03-10
Age : 23
Location : Rio de Janeiro

View user profile http://pokemonuranium.forumeiro.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum