Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

zahraa

Member
  • Content Count

    472
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by zahraa

  1. Well...I searched for this. Unfortunately I couldn't find a way to play the video before the title screen appears. But I found an older version of that script and you can play your video on a map using this script : #==============================================================================# # Version 0.3 # # RPG Maker XP Flash Player # # # # Author: ç¼çœ¼çš„å¤å¨œ Updated by: Dark_Wolf_Warrior/Dahrkael # # # # How to Use: # # Graphics.freeze # # 1. Go to Main Script and add ----> $flash = Play.new # # $scene = Scene_Title.new # # # # 2. Copy the .dll and the .ocx to the game folder # # # # 3. Make a folder called "Flash" in the folder "Graphics" -> Graphics/Flash/ # # # # 4. To play a flash file use: # # $flash.play("file.swf", button) # # # # button can be 0 or 1, if 1 you can skip the flash using "Enter" # # # # # # # # Interactive flashes requires RGSS knownledge to make they work # # # # Original Keyb module by HoundNinja # # # #==============================================================================# class String CP_ACP = 0 CP_UTF8 = 65001 def u2s m2w = Win32API.new("kernel32", "MultiByteToWideChar", "ilpipi", "i") w2m = Win32API.new("kernel32", "WideCharToMultiByte", "ilpipipp", "i") len = m2w.call(CP_UTF8, 0, self, -1, nil, 0) buf = "\0" * (len*2) m2w.call(CP_UTF8, 0, self, -1, buf, buf.size/2) len = w2m.call(CP_ACP, 0, buf, -1, nil, 0, nil, nil) ret = "\0" * len w2m.call(CP_ACP, 0, buf, -1, ret, ret.size, nil, nil) return ret end def s2u m2w = Win32API.new("kernel32", "MultiByteToWideChar", "ilpipi", "i") w2m = Win32API.new("kernel32", "WideCharToMultiByte", "ilpipipp", "i") len = m2w.call(CP_ACP, 0, self, -1, nil, 0); buf = "\0" * (len*2) m2w.call(CP_ACP, 0, self, -1, buf, buf.size/2); len = w2m.call(CP_UTF8, 0, buf, -1, nil, 0, nil, nil); ret = "\0" * len w2m.call(CP_UTF8, 0, buf, -1, ret, ret.size, nil, nil); return ret end def s2u! self[0, length] = s2u end def u2s! self[0, length] = u2s end end class Bitmap RtlMoveMemory_pi = Win32API.new('kernel32', 'RtlMoveMemory', 'pii', 'i') RtlMoveMemory_ip = Win32API.new('kernel32', 'RtlMoveMemory', 'ipi', 'i') def address buffer, ad = "xxxx", object_id * 2 + 16 RtlMoveMemory_pi.call(buffer, ad, 4); ad = buffer.unpack("L")[0] + 8 RtlMoveMemory_pi.call(buffer, ad, 4); ad = buffer.unpack("L")[0] + 16 RtlMoveMemory_pi.call(buffer, ad, 4); return buffer.unpack("L")[0] end end class RMFlash API_NEW = Win32API.new("RMFlash", "_new", "piil", "l") API_UPDATE = Win32API.new("RMFlash", "_update", "l", "v") API_FREE = Win32API.new("RMFlash", "_free", "l", "v") API_PLAYING = Win32API.new("RMFlash", "_is_playing", "l", "i") API_PAUSE = Win32API.new("RMFlash", "_pause", "l", "v") API_RESUME = Win32API.new("RMFlash", "_resume", "l", "v") API_BACK = Win32API.new("RMFlash", "_back", "l", "v") API_REWIND = Win32API.new("RMFlash", "_rewind", "l", "v") API_FORWARD = Win32API.new("RMFlash", "_forward", "l", "v") API_CURFRAME = Win32API.new("RMFlash", "_cur_frame", "l", "i") API_TOTALFRAME = Win32API.new("RMFlash", "_total_frames", "l", "i") API_GOTOFRAME = Win32API.new("RMFlash", "_goto_frame", "li", "v") API_GETLOOP = Win32API.new("RMFlash", "_get_loop", "l", "i") API_SETLOOP = Win32API.new("RMFlash", "_set_loop", "li", "v") API_CLEARALL = Win32API.new("RMFlash", "_clear_all", "v", "v") API_VALID = Win32API.new("RMFlash", "_valid", "l", "i") API_SENDMSG = Win32API.new("RMFlash", "_send_message", "liii", "l") CUR_PATH = Dir.pwd def self.get_version end def self.clear_all API_CLEARALL.call end def self.load(name, width, height, v = nil) new("#{CUR_PATH}/Graphics/Flash/#{name}".u2s, width, height, v) end attr_reader :valid def initialize(flash_name, flash_width, flash_height, viewport = nil) @sprite = Sprite.new(viewport) @sprite.bitmap = Bitmap.new(flash_width, flash_height) @value = API_NEW.call(flash_name, flash_width, flash_height, @sprite.bitmap.address) @loop = API_GETLOOP.call(@value) > 0 @valid = API_VALID.call(@value) > 0 end def viewport @sprite.viewport end def update API_UPDATE.call(@value) end def dispose API_FREE.call(@sprite.bitmap.address) end def playing? API_PLAYING.call(@value) > 0 end def pause API_PAUSE.call(@value) end def resume API_RESUME.call(@value) end def back API_BACK.call(@value) end def rewind API_REWIND.call(@value) end def forward API_FORWARD.call(@value) end def current_frame API_CURFRAME.call(@value) end def total_frames API_TOTALFRAME.call(@value) end def goto_frame(goal_frame) API_GOTOFRAME.call(@value, goal_frame) end def x @sprite.x end def x=(v) @sprite.x = v end def y @sprite.y end def y=(v) @sprite.y = v end def z @sprite.z end def z=(v) @sprite.z = v end def width @sprite.bitmap.width end def height @sprite.bitmap.height end def loop? @loop end def loop=(v) if @loop != v @loop = v API_SETLOOP.call(@value, v) end end def msg_to_flash(msg, wParam, lParam) return API_SENDMSG.call(@value, msg, wParam, lParam) end # 例 WM_MOUSEMOVE = 0x0200 def make_long(a, b) return (a & 0xffff ) | (b & 0xffff) << 16 end def on_mouse_move(x, y) return msg_to_flash(WM_MOUSEMOVE, 0, make_long(x, y)) end end module Kernel alias origin_exit exit unless method_defined? :exit def exit(*args) RMFlash.clear_all origin_exit(*args) end end module Keyb $keys = {} $keys["Enter"] = 0x0D GetKeyState = Win32API.new("user32","GetAsyncKeyState",['i'],'i') module_function def trigger(rkey) GetKeyState.call(rkey) & 0x01 == 1 end end class Play def play(filename, button) fondo = Sprite.new fondo.bitmap = Bitmap.new(640, 480) fondo.bitmap.fill_rect(0, 0, 640, 480, Color.new(0,0,0,255)) fls = RMFlash.load(filename, 640, 480) fls.loop = 1 fls.z = 9999 @button = button @fr = Graphics.frame_rate Graphics.frame_rate = 40 while true Graphics.update #Input.update fls.update break if @button == 1 and Keyb.trigger($keys["Enter"]) break if !fls.playing? end fls.dispose Graphics.frame_rate = @fr fondo.dispose end end Follow the guide above the script. For the step 2, Copy and paste these files in your game folder: https://drive.google.com/file/d/0B-ZHv7mhUCmrOXFhTlVyRE4xcTA/view?usp=sharing Like step 4 says, When you want to play your video, Call this line "$flash.play("file.swf", button)" (without quotations) and change "file.swf" to your video name. Perhaps a scripter can edit this to fit what you need. That was what I managed to find. But till then, I think it's not a bad idea to add the intro to a map that player is transferred to right after they choose "New Game".
  2. Here is what I found: http://rpgmaker.net/tutorials/496/ I don't have time to follow the tutorial and make sure it's exactly what you want, But I assume you do.
  3. Happy New Year GDU community! It's 1394!!!

    1. Polraudio

      Polraudio

      Sorry your time travel didn't work. Its still 2015.

    2. zahraa

      zahraa

      Lol my laptop calendar says the same because it's a western calendar :P

  4. Happy New Year GDU community! It's 1394!!!

  5. Happy New Year GDU community! It's 1394!!!

  6. Happy New Year GDU community! It's 1394!!!

  7. My little bird screwed my keyboard up a few hours ago...He took Fn keys away one by one :/

  8. No problem bro, You're the one who is missing it anyways :P
  9. I always like to help as much as I can, I'm not a professional writer so my advices may not be right but I'll be glad to share my experiences with you to improve your story :)
  10. Holiday starts ^^ I'll try to be more active!

  11. Only one more week until Nowruz holiday!!!

  12. Heya! Hope u enjoy ur stay even more. And good luck with ur project(s) pal!
  13. I took it, Though I didn't have much to say '^^ Ah school projects suck, Good luck with your research!
  14. http://www.gdunlimited.net/forums/topic/1412-hp-bars-on-the-map/ fifth post, The second link. Thanks to Pol.
  15. Going to go to a short trip to Tehran tomorrow if I manage to book an airplane ticket some hours before flight D: As far as I know, I'm a lucky person...Let's see what will happen!

    1. zahraa

      zahraa

      No tickets available till Tuesday :)

  16. Well, I have experience with both fangame and original game and if you want me to give you advise, I'd say go for the original game (Not your main series yet) When you're making a fan game, You have to add some standards that were in the original game directly to your fangame, So you have to "copy" some elements from the original game. And I recommend you to make an original game because that way, You must create those elements yourself instead of copying them, And trust me, You have to learn creating those elements (like character development) for your original series. If I were you, I'd make a small game which is about the game characters before the main story begins, You know, I mean like "part 0" for your series, I guess it's a good practice to earn exp. And as Mage said, Finish whatever you make :)
  17. What were you thinking about just before reading my status? Write it as a comment! I was thinking about why I'm so stressed out at the moment D:

  18. Heya Lizzie! Welcome back! It's nice to see you around. I use windows 8 and I don't actually hate it. I just don't like it. It doesn't have much to present and it's kinda too sensitive, It runs into problem easily, and as you said it doesn't open old games and software :( btw I don't really care about the start menu. I saw a few pics of windows 10 and yeah the old start menu was there...I was expecting to see a totally new environment of windows under the title of "Windows 10" but it was disappointing so I doubt I get it.
  19. Do you remember I said my hometown is one of the most polluted cities in the world? Here is a picture of Ahvaz today http://www.imageupload.co.uk/image/5NdG It's 60 times more polluted than the dangerous limit of pollution now :)

    1. zahraa

      zahraa

      lol yeah I bet each day of living in this situation shortens your life about a year. Some people even make jokes, They say people who live in Ahvaz have dust lungs, means they can breath in dust D:

    2. Kitsuki

      Kitsuki

      My goodness, that's terrible. I agree with Marked, leaving would be best for your health!

    3. zahraa

      zahraa

      Yeah I really wish I could, But I have to stay here for at least two years more :(

    4. Show next comments  18 more
  20. Umm, i think you can find good stuff if you search in google image. I found some but I'm not able to send them for some reasons. Also there are very good bloody tiles and hospital tiles for RMVX but I guess you can use them if you make them work with RMXP. Zanyzora has some useful tiles too. And don't be afraid of getting your hands dirtier and editing tiles yourself, just like Germany said it takes time but it's worth it. btw I use photoshop to edit tiles and I like the result.
  21. Heya! Welcome to GDU! I hope you enjoy your stay. I write stories too! Good luck with your horror game and your future plans ^^ Also it's my pleasure to help you with RMXP Have fun!
  22. Of course that's for the sprite, Here is what I got from RMVXAce original resources for the faceset generator: http://www.gdunlimited.net/media/uploads/manager/a57untitled-2-23287.png when u r done making the faceset, Paste that piece on the forehead
  23. Do you know what is one of the best hobbies that most of native English speakers can't have? Using Google Traslate to translate English lyrics to Persian XD Love you Google <3

  24. Well, I got this from a character of Insane 2.png (a file in RPGVXAce/Graphics/Characters folder) and recolored it. http://www.gdunlimited.net/media/uploads/manager/jewel-23287.png
  25. I know a solution, When you use this way, You can show anything you want in a text box (Yeah I can be creative XD ) But you need an script named Universal Message System by Ccoa (I guess you have heard its name before because it's a very useful script.) 1. Add the script to your game (Insert above main, You know) 2. Turn the music sign into a .png file (It's like when you want to make an icon for an item.) Then paste it in a folder named icons in your game folder. 3. Go to database, Choose a blank item slot, Change the icon from none to that .png file you've made earlier. Memorize the item ID 4. Open the text that you want to show that music sign in, Use the following code "\oi[item ID]" (Without quotations of course) and paste it where you want to show the music sign. 5. Start the game and enjoy! Hope it works for both of you Kitsuki and Bob :)
×
×
  • Create New...