• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Movie (flash)

295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
v.20+:
I won't update this script. So, when you have an updated, you can post in new thread.

v.19:
This script creates an event for play movie. This is the original post Here

How to use
Create the folder Movies and insert there the movies
Call:
For play one time, you can skip it if press X on your keyboard: pbVideo(filename)
You can out loop if press X on your keyboard: pbVideoLoop(filename)
filename = the name of the flash to be played (should be file .swf)
Press C on your keyboard for pause or resume
Put the script above Main.

Dowload
Link
Extract it into your root folder(the folder with the game.exe of your project)

Code
Spoiler:

Credit
Author: ?????
Dark_Wolf_Warrior/Dahrkael, Peaverin
bo4p5687 (update v.18.1)
 
Last edited:

Giratina Musics

Road to Polyglot
47
Posts
3
Years
  • Age 16
  • Seen Feb 24, 2024
I got this error---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 18.1]

Exception: NameError

Message: uninitialized constant Scene_IntroFlash



Backtrace:

Main:45:in `mainFunctionDebug'

Main:24:in `mainFunction'

Main:24:in `pbCriticalCode'

Main:24:in `mainFunction'

Main:56

Main:55:in `loop'

Main:64



This exception was logged in

C:\Users\USERNAME\Saved Games\Pokemon Essentials\errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
I got this error---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 18.1]

Exception: NameError

Message: uninitialized constant Scene_IntroFlash



Backtrace:

Main:45:in `mainFunctionDebug'

Main:24:in `mainFunction'

Main:24:in `pbCriticalCode'

Main:24:in `mainFunction'

Main:56

Main:55:in `loop'

Main:64



This exception was logged in

C:\Users\USERNAME\Saved Games\Pokemon Essentials\errorlog.txt.

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

If you want to use my script, read "How to use". And don't use, the script in original post.
 

Giratina Musics

Road to Polyglot
47
Posts
3
Years
  • Age 16
  • Seen Feb 24, 2024
I've done everything but what do I need to fill in the last 4 lines because I keep getting syntax errors
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
I've done everything but what do I need to fill in the last 4 lines because I keep getting syntax errors

I need to know what do you want? In this thread, you can create movie in Event but if you need to create in Intro, you need to do the different way.
 

Giratina Musics

Road to Polyglot
47
Posts
3
Years
  • Age 16
  • Seen Feb 24, 2024
I've made a folder named Movies in the pokemon essentials folder and my intro i made is called intro what do I need to change for it to work
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
where do I need to put the event pbVideo(intro.swf)? (intro is my video name

I understand like you need to create a movie flash for Intro.

So, you must remember, you need to do what I say here, it is just my script, it means the script I post in this thread, don't use the script in original thread.

First, you need to add in "class Video", below "def playNonStop", you need to add (note: below here, not this line, "below" it means you need to put it below end of the def)
Code:
  # Intro
  def playIntro
    @flash.loop = 1
    @fr = Graphics.frame_rate
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      break if @exit
      @flash.update
      @exit = true if Input.trigger?(Input::B) || Input.trigger?(Input::C) || [email protected]?
    end
    @flash.dispose
    @bg.dispose
    @viewport.dispose
    Graphics.frame_rate = @fr
  end

Then, below "def pbVideoLoop(filename)", add
Code:
def pbVideoIntro(filename)
  s = Video.new(filename)
  s.playIntro
end

Now, in Main (Main is the name in Script section), or you can find "def mainFunctionDebug", in this def, above
Code:
$scene = pbCallTitle
add
Code:
$scene = pbVideoIntro("intro.swf")
In my example, it's the name of your file. If you don't want to show image, in "class IntroEventScene < EventScene", in "def initialize(pics,splash,_viewport=nil)", change
Code:
openPic(self,nil)
into
Code:
    @timer=0 # reset the timer
    openSplash(self,nil)
 
Last edited:

Vxpor

Vxpor
75
Posts
5
Years
  • Age 20
  • Seen Apr 14, 2024
Great script! I have been using the old script on v17.2 for the last little while and it's always worked fine until now. The old script when used for the intro video just flashes the flash logo for a second and doesn't play the video. You can see what I mean here.

So this script looks great for what I needed! And everything worked fine until I changed the script to play a video before the title screen. When I did so, I got this error:

[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `pbVideoIntro' for nil:NilClass
Main:48:in `mainFunctionDebug'
Main:28:in `mainFunction'
Main:28:in `pbCriticalCode'
Main:28:in `mainFunction'
Main:61
Main:60:in `loop'
Main:69

But I imagine this is because I'm on v17.2 and not v18, but I could be wrong. I would comment on the original post since that's the script that always worked for me on v17, but the thread is closed so I thought I could get some help here instead.
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
Great script! I have been using the old script on v17.2 for the last little while and it's always worked fine until now. The old script when used for the intro video just flashes the flash logo for a second and doesn't play the video. You can see what I mean here.

So this script looks great for what I needed! And everything worked fine until I changed the script to play a video before the title screen. When I did so, I got this error:

[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `pbVideoIntro' for nil:NilClass
Main:48:in `mainFunctionDebug'
Main:28:in `mainFunction'
Main:28:in `pbCriticalCode'
Main:28:in `mainFunction'
Main:61
Main:60:in `loop'
Main:69

But I imagine this is because I'm on v17.2 and not v18, but I could be wrong. I would comment on the original post since that's the script that always worked for me on v17, but the thread is closed so I thought I could get some help here instead.

Do like this post, it works perfectly in PE v.17.2 and delete the old script (script in original thread)

I understand like you need to create a movie flash for Intro.

So, you must remember, you need to do what I say here, it is just my script, it means the script I post in this thread, don't use the script in original thread.

First, you need to add in "class Video", below "def playNonStop", you need to add (note: below here, not this line, "below" it means you need to put it below end of the def)
Code:
  # Intro
  def playIntro
    @flash.loop = 1
    @fr = Graphics.frame_rate
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      break if @exit
      @flash.update
      @exit = true if Input.trigger?(Input::B) || Input.trigger?(Input::C) || [email protected]?
    end
    @flash.dispose
    @bg.dispose
    @viewport.dispose
    Graphics.frame_rate = @fr
  end

Then, below "def pbVideoLoop(filename)", add
Code:
def pbVideoIntro(filename)
  s = Video.new(filename)
  s.playIntro
end

Now, in Main (Main is the name in Script section), or you can find "def mainFunctionDebug", in this def, above
Code:
$scene = pbCallTitle
add
Code:
$scene = pbVideoIntro("intro.swf")
In my example, it's the name of your file. If you don't want to show image, in "class IntroEventScene < EventScene", in "def initialize(pics,splash,_viewport=nil)", change
Code:
openPic(self,nil)
into
Code:
    @timer=0 # reset the timer
    openSplash(self,nil)
 
Last edited:

Giratina Musics

Road to Polyglot
47
Posts
3
Years
  • Age 16
  • Seen Feb 24, 2024
I got a syntax error at the "end" of this script (so where the blue end is). I've put a white line with nothing between the def pbVideoLoop(filename) and this one
ps. the second and third line doesnt have space in this reply but it does have it in the script because I just copied and pasted the script

def pbVideoIntro(filename)
s = Video.new(filename)
s.playIntro
end
 

Giratina Musics

Road to Polyglot
47
Posts
3
Years
  • Age 16
  • Seen Feb 24, 2024
okay I put a second "end" command under it and I think it works, but now in main line 44 I got a error about the pbVideoIntro
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
okay I put a second "end" command under it and I think it works, but now in main line 44 I got a error about the pbVideoIntro

You can edit your post, don't need to post a new.

I don't think my script (the new) which is missing end. Maybe, you add wrong place and it gives you an error. Where you put the new? Show me with the pictures all my script.
 

Giratina Musics

Road to Polyglot
47
Posts
3
Years
  • Age 16
  • Seen Feb 24, 2024
okay here you go
 

Attachments

  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_04_49.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_04_49.png
    135.7 KB · Views: 12
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_03.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_03.png
    175.2 KB · Views: 4
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_15.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_15.png
    166.1 KB · Views: 4
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_33.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_33.png
    126.5 KB · Views: 3
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_36.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_36.png
    126.5 KB · Views: 4
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_50.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_05_50.png
    138.3 KB · Views: 3
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_00.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_00.png
    125.3 KB · Views: 4
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_10.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_10.png
    114.9 KB · Views: 6
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_19.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_19.png
    117.8 KB · Views: 11
  • Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_31.png
    Pokemon Essentials - RPG Maker XP 14-1-2021 15_06_31.png
    141.9 KB · Views: 8

Vxpor

Vxpor
75
Posts
5
Years
  • Age 20
  • Seen Apr 14, 2024
Do like this post, it works perfectly in PE v.17.2 and delete the old script (script in original thread)

I removed the original script completely along with the edits you have to do for it to work. I went and installed the script and made the changes for the intro to work and now I am getting a name error.

[Pokémon Essentials version 17.2]
Exception: NameError
Message: uninitialized constant Video : : SCREEN_WIDTH (Had to add spaces between the ":" because it kept picking it up as an emoji)
Flash Player:182:in `initialize'
Flash Player:279:in `new'
Flash Player:279:in `pbVideoIntro'
Main:48:in `mainFunctionDebug'
Main:28:in `mainFunction'
Main:28:in `pbCriticalCode'
Main:28:in `mainFunction'
Main:61
Main:60:in `loop'
Main:69

Screen_Width is spotted in 3 spots throughout the Flash Player script.
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
I removed the original script completely along with the edits you have to do for it to work. I went and installed the script and made the changes for the intro to work and now I am getting a name error.

[Pokémon Essentials version 17.2]
Exception: NameError
Message: uninitialized constant Video : : SCREEN_WIDTH (Had to add spaces between the ":" because it kept picking it up as an emoji)
Flash Player:182:in `initialize'
Flash Player:279:in `new'
Flash Player:279:in `pbVideoIntro'
Main:48:in `mainFunctionDebug'
Main:28:in `mainFunction'
Main:28:in `pbCriticalCode'
Main:28:in `mainFunction'
Main:61
Main:60:in `loop'
Main:69

Screen_Width is spotted in 3 spots throughout the Flash Player script.

Change SCREEN_WIDTH into DEFAULTSCREENWIDTH. Next, change DEFAULTSCREENHEIGHT into SCREEN_HEIGHT
 
295
Posts
5
Years
  • Age 28
  • Seen Aug 15, 2022
okay here you go

I don't know why you add class Video again. Delete this line "class Video" (in image, it is in line 244), the line above
Code:
# Intro
  def playIntro
and delete "end" (in image, it is in line 284) below
Code:
def pbVideoIntro(filename)
  s = Video.new(filename)
  s.playIntro
end
 

Giratina Musics

Road to Polyglot
47
Posts
3
Years
  • Age 16
  • Seen Feb 24, 2024
I don't get any errors now but I get the Flash player logo just like in the outdated scipt
 

Vxpor

Vxpor
75
Posts
5
Years
  • Age 20
  • Seen Apr 14, 2024
I don't get any errors now but I get the Flash player logo just like in the outdated scipt

Had the same thing. I think it's because flash stopped in 2020. Maybe because of that, the script just doesn't work anymore. I also fixed my script and it does the same thing.
 
Back
Top