New Mode7 script / Neo Mode 7 script

This scripts gives RPG maker xp so many new possabilities. This script is amazing. Dude have u even realized what you have made here. Think about the possabilities if you merge this script with others. And make them compatible with eachother. Some scripts to merge with this one:

*Platform script! OMG
*Pixelmovement! OMG
+
*Neo 07
=
A new type of RPG maker xp games...

And I found a error, panoramas doesn ´t work. If you would add scrolling panoramas to this script!!!
YOU ARE GOD...dude add panoramas and its complete. Pixelmovement and platform would be cool to. The maker should be able to make platform true or false then this script would be amazing... :thumb:
Zarnik  is right.
working panoramas would be useful. Otherwise.. using some cool Mountainsprites in my Tileset, so i can circle the map ^^ 
Or can create a cool Mountain panorama out of Tiles ^^
When I try to run this script, it gives me some error like "The script is hanging" and closes the game. Are there any other system requirements for it than the RpgXP normal requirements?
I have a computer lower than those, so might be it(500MHz, blah...)
You really did a great job man, my FFVI SDK can now have a real Airship system!
I have a question. is it possible to change the X position of the pivot? Because, I'm using a lower resolution (512x448) and the pivot doesn't match the center of the screen. I've look the entire code but found nothing.

Thanks in advance!
-Dargor
Okay, for some reason, my game is randomly doing this now...

---------------------------
"Project"
---------------------------
Script 'Neo Mode 7 Part 3' line 107: NoMethodError occurred.

undefined method `-@' for nil:NilClass
---------------------------
OK   
---------------------------
Map size 80x80, I'm using Inquisitor's World Map,
I have it set to 4 directions as well... If that changes anything.
It would be great if you made a movement option making it possible to move like in the first rotation demo, slower of course.
I'm getting the same error as you Mars, except I get it when I call script from a scene class. For example, "$scene = Scene_Craft.new('Blacksmith')" from the Prexcraft script, gets your error. And whenever I call script from game_temp, or otherwise, I don't receive this error. Wierd.

Great script, btw! reminds me of FF12 DS, because of all the zooming, pivoting, and slanting during its magnificent cutscenes. Now I can recreate this effect! Hellz yeah!
try to set the value Varioable without two '
Try with ""

That cause sometimes probelms in RGSS, because 'value' is set for counting variables ^^
and "" for static Words.
Apparently there is an error in Neo Mode 7 Part 4 Line 57, because a RuntimeError occured. Also, it has something to do with a Loadlibrary and mgcmode.dll or something.

Any help would be appreciated.
I got a Problem .... the building, trees are down in the floor ....i have a pic of it
@reiven10: You will have to set the terrain tags for vertical objects. The default terrain tags for vertical objects in mode07 are 1 and 2.
I don't understand why this is not compatible with XAS... :pissed:
I can't get it to work at all. When I run it up I keep getting an error message saying :Line 220:SystemStackError occured. Stack level to deep, how do I fix this?
Mars wrote:
Okay, for some reason, my game is randomly doing this now...

---------------------------
"Project"
---------------------------
Script 'Neo Mode 7 Part 3' line 107: NoMethodError occurred.

undefined method `-@' for nil:NilClass
---------------------------
OK   
---------------------------
Map size 80x80, I'm using Inquisitor's World Map,
I have it set to 4 directions as well... If that changes anything.


I too am generating this same error (when I transfer from one map to another with Mode7 capable settings).  But when I transfer to another map without, I get this error:

Script 'Neo Mode 7 Part 4' line 537: TypeError occurred.  can't convert NilClass into Bitmap.

Any help on this is most appreciated..!

Fenwick
Rymdgurkan wrote:
I can't get it to work at all. When I run it up I keep getting an error message saying :Line 220:SystemStackError occured. Stack level to deep, how do I fix this?


I had the same problem in my case the map was to big.

And Fenwick try adding [NM7] to the map {just NM7} and calling the rest using script $scene.spriteset.tilemap.to_alpha(60,
1)
That worked for me  😆
nightblade1989 wrote:
Rymdgurkan wrote:
I can't get it to work at all. When I run it up I keep getting an error message saying :Line 220:SystemStackError occured. Stack level to deep, how do I fix this?


I had the same problem in my case the map was to big.

And Fenwick try adding [NM7] to the map {just NM7} and calling the rest using script $scene.spriteset.tilemap.to_alpha(60,
1)
That worked for me  😆


Wooo....  "Nightblade1989" it worked..!  I never even thought of working the script that way...  Thanks a million.

Fenwick
I have come across two problems with mode7...one image based, the other script based.

1) I am using Inquisitor's WorldMap, and I want to use the huge towns that the tileset has provided. However, when I use them, and change the Terrain Tags, it looks too elevated, so are there any tips for that?

i.e. A huge tower of trees that reach the sky and towns that look like they are pasted on a wall.

2) Whenever I transfer from a Map using Mode7 to a map that I do not want to use Mode7 with, I get this...
    'Spriteset_Map' ? 117 ??? NoMethodError ???????
    undefined method 'ox=' for #
Well, I was using Inquisitor's World Map as well.

Basically, at least I think that you have a high slant degree number.
My favorite number to use is 20.  The problem is that it doesn't make the objects pop-out, it makes them stand up straight.
Holy BLEEP. Looking at the neo mode with rotation etc, one can create all sorts of lovely cinematics in 3d, the zooming, everything! Amazing!

Any suggestions on dealing with the lag, other than lower resolution? Anyone else notice lag at all?

I'm running it on a M200 Toshiba Portege Tablet PC, 1500mhz, 1.5gb RAM, 32/64mb Nvidia Geforce FX 5200. Will have to test it on my pc with the Geforce 6800.
I haven't experienced any lag Scriblette and I'm running 2.3GHZ with 2.0 gb. Maybe that makes the difference? Have you tried the filter?
This is the default demo map for the neo script that lags for me, with the filter on as it is by default, I believe. When I change the resolution setting (r3) it's fast just fine, but that would kill any effort put into pixel art.

You've got a faster pc and more RAM, but chances are your video card is helping too.

It's just that people should be aware that if they end up advertising a game with this script, systems requirements will be (apparently) higher than they are for RMXP vanilla.
Everytime i open a map where this applies, i get

Script 'Neo Mode 7 Part 4' line 537: TypeError Occured
can't convert NilClass into Bitmap

LINE 537: @cache[key].blt(0, 0, self.load_autotile(num), rect)

Is this due to a confliction with other scripts or did i need to do more than just plug the scripts and add the codes to the map name like [NM7]?
ragnaroa wrote:
I'm getting the same error as you Mars, except I get it when I call script from a scene class. For example, "$scene = Scene_Craft.new('Blacksmith')" from the Prexcraft script, gets your error. And whenever I call script from game_temp, or otherwise, I don't receive this error. Wierd.


The same thing is happening to me. Is there anyway around this to call a script. Can you add a scene script into game_temp? I've got a few different scene's I'd like to call through a button press/parallel process.
im having an error every time i open menu
Content Hidden Spoiler
maybe you could fix the problem
# * Custom Menu System (CMS) by mewsterus
# * To install, just insert this in a descriptive code slot right above Main
#===============================================================================
# ÂÂ ¦ Window_Base
#-------------------------------------------------------------------------------
#   Edited by mewsterus
#===============================================================================

class Window_Base   
  #-----------------------------------------------------------------------------
  # @ Draw state
  #-----------------------------------------------------------------------------
  def draw_actor_state(actor, x, y, width = 120)
    text = make_battler_state_text(actor, width, true)
    self.contents.font.color = actor.hp == 0 ? knockout_color : normal_color
    self.contents.draw_text(x, y, width, 32, text, 2)
  end
  #-----------------------------------------------------------------------------
  # @ Draw EXP
  #-----------------------------------------------------------------------------
  def draw_actor_exp(actor, x, y, width = 144)
    self.contents.font.color = system_color
    self.contents.draw_text(x, y, 48, 32, "Exp")
    self.contents.font.color = normal_color
    self.contents.draw_text(x + width - 48, y, 48, 32, actor.exp_s, 2)
  end
end


#===============================================================================
# ÂÂ ¦ Window_MenuStatus
#-------------------------------------------------------------------------------
#   Edited by mewsterus
#===============================================================================

class Window_MenuStatus < Window_Base
  #-----------------------------------------------------------------------------
  # @ Create the window
  #-----------------------------------------------------------------------------
  def initialize(actor)
    super(0, 0, 288, 120)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    self.back_opacity = 160
    @actor = actor
    refresh
    self.active = false
  end
  #-----------------------------------------------------------------------------
  # @ Draw contents
  #-----------------------------------------------------------------------------
  def refresh
    self.contents.clear
    draw_actor_graphic(@actor, 40, 86)
    draw_actor_name(@actor, 0, 0)
    draw_actor_level(@actor, 112, 0)
    draw_actor_class(@actor, 172, 0)
    draw_actor_state(@actor, 0, 20, 108)
    draw_actor_exp(@actor, 112, 20)
    draw_actor_hp(@actor, 112, 40)
    draw_actor_sp(@actor, 112, 60)
  end
  #-----------------------------------------------------------------------------
  # @ Update the window
  #-----------------------------------------------------------------------------
  def update
    super
    if @selected
      self.cursor_rect.set(-8, -8, 272, 104)
    else
      self.cursor_rect.empty
    end
  end
  #-----------------------------------------------------------------------------
  # @ Accept whether window is selected
  #-----------------------------------------------------------------------------
  def selected=(selected)
    @selected = selected
    update
  end
end

#===============================================================================
# ÂÂ ¦ Scene_Menu
#-------------------------------------------------------------------------------
#   Edited by mewsterus
#===============================================================================

class Scene_Menu
  #-----------------------------------------------------------------------------
  # @ Accept indeces
  #-----------------------------------------------------------------------------
  def initialize(menu_index = 0, status_index = 0)
    @menu_index = menu_index
    @status_index = status_index
  end
  #-----------------------------------------------------------------------------
  # @ Start the scene
  #-----------------------------------------------------------------------------
  def main
    @sprite = Spriteset_Map.new
    s1 = $data_system.words.item
    s2 = $data_system.words.skill
    s3 = $data_system.words.equip
    s4 = "Status"
    s5 = "MemoryCard"
    s6 = "End Game"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
    @command_window.index = @menu_index
    @command_window.back_opacity = 160
    @command_window.x = 0
    @command_window.y = 640
    if $game_party.actors.size == 0
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
    @steps_window = Window_Steps.new
    @steps_window.x = -320
    @steps_window.y = 0
    @steps_window.back_opacity = 160
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 0
    @playtime_window.y = -224
    @playtime_window.back_opacity = 160
    @gold_window = Window_Gold.new
    @gold_window.x = -384
    @gold_window.y = 192
    @gold_window.back_opacity = 160
    if $itemdrop_enabled
      @itemdrop = Window_Command.new(160, ["Basic", "Equipment", "Quest"])
    else
      @itemdrop = Window_Base.new(240, 144, 160, 128)
    end
    @itemdrop.x = -160
    @itemdrop.y = 256
    @itemdrop.back_opacity = 160
    @itemdrop.active = false
    @status_windows = []
    for i in 0...$game_party.actors.size
      @status_windows.push(Window_MenuStatus.new($game_party.actors[i]))
      @status_windows[i].x = 672 + i * 64
      @status_windows[i].y = i * 120 + (240 - $game_party.actors.size * 60)
      @status_windows[i].active = true
    end
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      if @steps_window.x < 0
        @steps_window.x += 32
      end
      if @playtime_window.y < 96
        @playtime_window.y += 32
      end
      if @gold_window.x < 0
        @gold_window.x += 32
      end
      for i in 0...$game_party.actors.size
        if @status_windows[i].x > 366
          @status_windows[i].x -= 64
        end
      end
      if @command_window.y > 256
        @command_window.y -= 32
      else
        update
      end
      if $scene != self
        break
      end
    end
    for i in 0..12
      @gold_window.x -= 32
      if i >= 1
        @steps_window.x -= 32
      end
      if i >= 2
        @playtime_window.y -= 32
        @command_window.y += 32
      end
      if i >= 3
        @status_windows[0].x += 64
        @itemdrop.x -= 32
      end
      if i >= 4 and $game_party.actors.size >= 2
        @status_windows[1].x += 64
      end
      if i >= 5 and $game_party.actors.size >= 3
        @status_windows[2].x += 64
      end
      if i >= 7 and $game_party.actors.size >= 4
        @status_windows[3].x += 64
      end
      Graphics.update
    end
    Graphics.freeze
    @sprite.dispose
    @command_window.dispose
    @steps_window.dispose
    @playtime_window.dispose
    @gold_window.dispose
    @itemdrop.dispose
    for i in 0...$game_party.actors.size
      @status_windows[i].dispose
    end
  end
  #-----------------------------------------------------------------------------
  # @ Update the scene
  #-----------------------------------------------------------------------------
  def update
    @sprite.update
    @command_window.update
    @steps_window.update
    @playtime_window.update
    @gold_window.update
    @itemdrop.update
    for i in 0...$game_party.actors.size
      @status_windows[i].update
    end
    if @command_window.active
      update_command
      return
    end
    if @status_windows_active
      update_status
      return
    end

    if @itemdrop.active
      update_itemdrop
      return
    end
  end
  #-----------------------------------------------------------------------------
  # @ Update the command window
  #-----------------------------------------------------------------------------
  def update_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Map.new
      return
    end
    if Input.trigger?(Input::C)
      if $game_party.actors.size == 0 and @command_window.index < 4
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      case @command_window.index
      when 0
        $game_system.se_play($data_system.decision_se)

        if $itemdrop_enabled
          loop do
            if @itemdrop.x < 160
              @itemdrop.x += 40
            else
              break
            end
            Graphics.update
          end
          @command_window.active = false
          @itemdrop.active = true
          return
        end
        $scene = Scene_Item.new
      when 1
        $game_system.se_play($data_system.decision_se)
        @command_window.active = false
        @status_windows_active = true
        @status_windows[@status_index].selected = true
      when 2
        $game_system.se_play($data_system.decision_se)
        @command_window.active = false
        @status_windows_active = true
        @status_windows[@status_index].selected = true
      when 3
        $game_system.se_play($data_system.decision_se)
        @command_window.active = false
        @status_windows_active = true
        @status_windows[@status_index].selected = true
      when 4
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to MNemorycard screen
        $scene = Scene_MemoryCard.new
      when 5
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_End.new
     end
      return
    end
  end
  #-----------------------------------------------------------------------------
  # @ Update the status windows
  #-----------------------------------------------------------------------------
  def update_status
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @status_window_active = false
      @status_windows[@status_index].selected = false
      return
    end
    if Input.trigger?(Input::C)
      case @command_window.index
      when 1
        if $game_party.actors[@status_index].restriction >= 2
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Skill.new(@status_index)
      when 2
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Equip.new(@status_index)
      when 3
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Status.new(@status_index)
      end
      return
    end
    if Input.repeat?(Input::DOWN)
      if Input.trigger?(Input::DOWN) or @status_index<$game_party.actors.size-1
        $game_system.se_play($data_system.cursor_se)
        @status_windows[@status_index].selected = false
        @status_index = (@status_index + 1) % $game_party.actors.size
        @status_windows[@status_index].selected = true
        return
      end
    end
    if Input.repeat?(Input::UP)
      if Input.trigger?(Input::UP) or @status_index > 0
        $game_system.se_play($data_system.cursor_se)
        @status_windows[@status_index].selected = false
        @status_index = (@status_index + $game_party.actors.size - 1) %
                    $game_party.actors.size
        @status_windows[@status_index].selected = true
        return
      end
    end
  end
  #-----------------------------------------------------------------------------
  # @ Update the itemdrop window
  #-----------------------------------------------------------------------------
  def update_itemdrop
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      loop do
        if @itemdrop.x > -160
          @itemdrop.x -= 40
        else
          break
        end
        Graphics.update
      end
      @itemdrop.active = false
      @command_window.active = true
      return
    end
    if Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      $scene = Scene_Item.new(@itemdrop.index + 20)
    end
  end
end
Expand to see the code.


and why are some layer are floating in air when i change the terrain tag to 1 or 2
Zankoku no Yami wrote:
Everytime i open a map where this applies, i get

Script 'Neo Mode 7 Part 4' line 537: TypeError Occured
can't convert NilClass into Bitmap

LINE 537: @cache[key].blt(0, 0, self.load_autotile(num), rect)

Is this due to a confliction with other scripts or did i need to do more than just plug the scripts and add the codes to the map name like [NM7]?

You cannot load save files from before you added the script.
Oh, like the SNES effect, ok, thisis AWESOME, but 1 problem: lag.
I download the demo in the first post, is that demo the final or the "correct" / full version, right?.

Thanks, and sorry if IÂ ´m a n00b :D.
Good Lord. GET GOING MAN! If you can program this you should be professional! COME ON MAN! TIMES A WASTING!

Not to say VX and XP arn't real programing...

...

C# FTW!
Exouthing wrote:
Oh, like the SNES effect, ok, thisis AWESOME, but 1 problem: lag.
I download the demo in the first post, is that demo the final or the "correct" / full version, right?.

Thanks, and sorry if IÂ ´m a n00b :D.


Lag? It shouldn't lag that much if you use it right. I've been able to do that: http://www.youtube.com/watch?v=BEOa7LsxA7Y
with a 255x255 map, half of it is filled with animated autotiles and it doesn't lag at all. Well, sometimes it drops below 60 FPS (60 and not 40 because I'm using RGSS2 and the RGSS2 Player) but it never goes under 50.
So... where can I found the script?, because I only found the demo in the first post =(.

PD: sorry if IÂ ´m a n00b =(.
The script is in the demo. Press F11, it will open the script editor and then you can copy paste the 5 parts of the script in your project.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=19976