• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Fixed Looks like rocket base cams always coming with crashes or bugs

nikis1991

Bug Catcher
As i started all over again. Here comes crash in 0.39 in scripts Rocketbase/trap5/line25
I found 2 more crashes i fixed myself. but at line25 , i dont know what wrong with it.
It looks like everything is fine 0:

version=2
:if:<register.registered(TRHQ_switch)>=True <or> <register.registered(trap5)>=True
:end
:endif

@Sound.play(trhq_alarm,true)
@Player.turnto(0)

@Text.show(It seems to be~some sort of camera.)
@Music.play(johto_rocket_encounter)
@npc.Warp(0,6,0,16)
@npc.Turn(0,3)
@npc.Warp(1,10,0,16)
@npc.Turn(1,1)
@npc.Move(1,1)
@Player.turnto(3)

@battle.startTrainer(rocketbase\t1)
@register.Unregister(trainer_rocketbase\t1)

@npc.Turn(1,3)
@npc.Move(1,10)
@npc.Move(1,1)
@Player.turnto(1)


@npc.Warp(1,0,-1,0)
@battle.startTrainer(rocketbase\t2)
@register.Unregister:trainer_rocketbase\t2)
@Register.register(trap5)
@Music.play(rHideout)

@npc.Turn(0,10) -> (this 1 is 25th line, right?)
@npc.Move(0,3)
@npc.Turn(0,0)
@npc.Move(0,5)
@npc.Warp(0,0,-1,0)
:end
 

nikis1991

Bug Catcher
Fixed myself . It looks like it wasn't fixed in 0.39 . So in total i found 3 crashes at rocketbase/trap5
 

Darkfire

Administrator
Administrator
P3D Developer
Yeah I went through all of the traps when the first issue was found earlier last week and fixed them all

Also for lines of a script:
you must not count the first line
then start counting from 0
then ignore any line after an ignored :if: and before :endif

so while there was an issue on the 25th line of the script that was more coincidence than anything :p(I assume there was another bug slightly bellow it that caused an issue too?)
 

nikis1991

Bug Catcher
It wasn't hard to fix 25th myself. It was some kinda wrong number. It was like 1,10. and i chaged to 1,1. And its done.
 
Top