SDK - Standard Development Kit 2.4

SDK - Standard Development Kit
Version 2.4

Installing the SDK 2.4 :
Copy and Paste The RMXP SDK Complete code into your script editor below Scene_Debug, and above all other scripts.

The RMXP Complete Text File

What is the SDK?/ SDK Features :
The SDK is a rewrite of many of the default classes, a module with scripting tools and a set of scripting standards. The SDK is aimed at the compatible issues of many scripts fighting over the same methods of the default classes. The SDK breaks up these methods into many other methods targeted directly at one function. The hope is that by breaking up these methods you limit the need to over write then whole method and can Alias just the area or function you want to add to or edit.

The SDK should NOT be edited and redistribute without contacting a member of the SDK Team. Edits to the SDK may cause massive capability errors and would defeat what we are trying to do here.
 
When you post a script you should state if it's SDK compatible and what version it's compatible with. A member of the SDK Team will review it and flag it to receive a SDK logo signifying that it is indeed SDK compatible. Questions regarding the SDK or making scripts SDK compatible should be directed to a SDK team Member. SDK scripts are in NO way better then non SDK scripts. A higher level of time and effort has however been invested into them by the scripter to hopefully limit compatibly issues.

New in 2.0 :
The SDK has changed a lot in this upgrade. The first change is the separation of the SDK. The SDK has been separated into 4 parts now, allowing users and scripters more options.

Part I is for everyone. Adding the SDK Part I will not destroy your project. Instead, Part I is focused on the SDK module and the additional SDK::Scene_Base class (see below). Part I also includes standard fixes such as the script call freeze and a help prevention of windows trying to dispose multiple times. There is also a method created to test if a page's conditions have been fully reached.

After Part I, you only need to include the parts for scripts that require additional parts. If a script requires Part II, but not III or IV, you do not need to put them in your project. Same goes for Part III. However, if a script Requires Part IV, you must also have the Part III, as Part IV uses methods created in Part III. It is advised to just have all parts, but not recommended unless otherwise specified.
 
Part II is specified for the Game, Sprite & Spriteset classes. Part III is the conversion of all Scene classes to use the SDK::Scene_Base class. Part IV is the re modification of how commands work. The target here : adding commands in scenes made easy.
 
The SDK::Scene_Base class can and should be used as the parent class of all classes. It : provides a structure to the main method ; auto-update and dispose objects. To read more about it, check the SDK Documentation.
 
Part IV's separation of scene command input uses a sub-module in the SDK, Scene_Commands. All scenes should have a sub-module for anything that uses Window_Command, or Window_HorizCommand. It is not required, just highly recommended.
 
The Upgrade Patch:
The upgrade patch is an attempt to help people switch from the 1.5 version to the 2.0 with a limit on the troubles. It is not required, but will not affect you game at all. Nothing is guaranteed to make every 1.5 script work with the 2.0, but it is an attempt.


SDK Team Members:
SephirothSpawn
Trickster
Near Fantastica
Fuso
Wachunga
Prexus

FAQ :
What is the SDK?
Quote:
The Standard Development Kit (SDK) aims to increase compatibility between
    RGSS scripts by:
    a) defining a set of scripting standards (see section 3)
    B) restructuring often-used default classes and methods (see section 4)
    c) providing a scripting tools module (see section 5)


Dose this goes above main?
When you are installing the SDK place it above the all your other scripts but below the default scripts.

Will my old scripts still work?
  If your scripts work now then they should work after you install the SDK although that is not 100% tested


Support :
If you are in need of any support with the SDK, please use this topic.

--------------------------------------------------

Everyone please only post in this thread if you need help, have a question, or suggestion on SDK, If you have a question about one or more of the scripts SephirothSpawn or Near's Test Bed then use the RGSS Support Forum
Do SDK-compatible scripts require SDK to run?
If they are SDK designed scripts ie. using methods specialized by the SDK, then yes.
What is the advantage of using SDK for a scripter like myself who would be able to solve script conflictions very easily?
The guidelines : the general guidelines alone can help improve coding. The new SDK in progress will divide the SDK into 4 parts (I am working on the last 1).

Part 1 focuses on the SDK module itself such as logging, error fixes in the default scripts, and a Scene_Base class that I created helping manage objects updating and disposal automatically.

Part 2 focuses on all the non-scene classes, allowing you to focus on smaller sections of larger methods. Making everything easy to alias and such.

Part 3 focuses on converting all default scenes to be child classes of Scene_Base.

Part 4 which I decided to do today and is completely optional, but divides all scene input commands into a module (the names) and allows every command to have its own method for execution. This will allow easy command manipluation, rather then complicated work to get around it.

Finally, how would I go about de-SDKing a script if I didn't want to use SDK?
Working backwards. Mostly, taking some method that was aliased and re-work it back into the original classes. Such as:

class Scene_X
  def some_method
    @instance = 5
    @another_instance = 3
  end
end

# The SDK Script
class Scene_X
  alias_method :new_name_method, :some_method
  def some_method
    @some_instance = 1
    new_name_method
  end
end

# Becomes
class Scene_X
  def some_method
    @some_instance = 1
    @instance = 5
    @another_instance = 3
  end
end
Expand to see the code.


Something of that sort, but can be more complicated since some alias calls are stacked and such.
Yep, a massive amount of work seems to have been included in this SDK, and it does well what it promises.

I remember, when 2 years ago I proposed to Near Fantastica a common way to read parameters from an event comment, before leaving the forums due to health issues... You sure have made something truly great.

Well, if I had to make a proposal for a further extension, I think it would be automatic generation of an error report, using the alias/script log and set_trace_func, so you can send it to the author of the script(s) which have failed.

Oh, and F12 still freeze the Graphics in 2.2. But you already knew that :)

EDIT : It seems that nobody is using event_comment_input, not even you in your scripts ! Well, I must admit that, even with the documentation and the code, I don't understand what I'm supposed to do with the function...You maybe should change it to the de-facto (and pretty good, I think) standard which is Name_of_script|arg1|arg2
About the Complete version, which Include everything...As it's a complete version, would it be possible to have a "cut" version of it, let me explain:

Instead of having the modification of a class in, for example, Part 2,
and a different one for the same class in Part 3
to have only 1 modification which include everything?

For example
class Scene_Menu at line 4253
and
at line 8772

Would be easier for some people like me to see everything, instead of going up and down constantly to check something in a class,
I also think it'll save some memory and loading time as well.

Thanks
Are you talking about including things like Game_Map#setup, Sprite_Battler#update, etc. all individually? I was thinking about doing that with 2.4. Just need to talk to Trickster about it and stuff.
hum, not exactly...Don't really see what you mean.

In the v2.3, complete,
there are at 2 different "places", modification to 1 class.... I was thinking of a Complete version , where all the modification to 1 class, are at the same place.....

instead of :
class something
   ... code1
end
...... some other code, like other class definition.. etc
...... some other code
...... some other code
class something
   ... code2
end
Expand to see the code.

Having
class something
   ... code1
   ... code2
end
...... some other code, like other class definition.. etc
...... some other code
Expand to see the code.
Ok. Well, that happens even more in the 2.4 version, because we are (or I am I guess) working on adding individual parts. If you enable Part 2, all parts in 2 go enabled, or you can enable Part II-Game_Map#update for just the update method branch being included. This allows more users to use the SDK than even the Part split.

I don't think multi-class definitions are really a bad thing, as long as each part is labeled appropriately.

But I will see what is the easiest when I get this finished up.
Excuse me but where can I find the new SDK?
The main post has the most recent SDK version. The new SDK will be up no later than the 20th, probably much sooner.
i cant get it to work right... the filing is different with Vista....!!!! I HATE VISTA!!!!!!!!!!!!!! can you possible help me it says 'no such file RCA Hidden Files/The RMXP Standered Development Kit 2.3'
RSC require scriptlink don't work
I don't know why, but the auto-update/auto-dispose tools are not working very well with Selwyn window class.

EDIT: I've found it! I added a disposed? method to Selwyn's class.
Yeah, the link to the Rsc require won't work >_<
I need the link!
http://www.rmxpu.net/owai/scripts/rsc_require.txt
Im new here guys...im looking to get a script to change my title screen around so I can have like an intro before the menu pops up....now is this something I should add first...or is it just if you really know what your doing with code and all?
Thanx
mmM...depend, all the Custom scripts go after the SDK.

SDK
NONSDK SCRIPTS
SDK SCRIPTS.

And for the script, if that script (the intro script) if you don't have a SDK version, sephirothspawn made one, you can see in his Testbed.

Luck!
I seem to get an error saying that RSC Hidden Files/The RMXP Standard Development Kit 2.3 can't be found? Have I done something wrong? I followed all the instructions... it says something about line 22, the require file or something...
Edit: Sorted, don't worry.
Im a noob with scripts and I tryed to install SDK and it says
"Script 'SDK' line 1867 Typeerror Occured
Undefined Superclass 'Window_Selectable"
When I start the game...Why is that?
(note: this was for sdk 2.3, will look if sdk 2.4 has been changed...)

As the SDK 2.3 thread has been closed (probaly due to the spam...), and i'm having some suggestions for it.... I made this thread... :tongue:


I seem to be working on some script, and i tought of some nice additions for the SDK
To add the mapname to the properties of the corresponding map. Show
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
#  This class performs title screen processing.
#==============================================================================
class Scene_Title

  #--------------------------------------------------------------------------
  # * Main Processing : Database Initialization
  #--------------------------------------------------------------------------
  alias alexanderpas_sdksuggestion_scenetitle_maindatabase main_database
 
  def main_database   
    $data_map_infos = load_data("Data/MapInfos.rxdata")
    alexanderpas_sdksuggestion_scenetitle_maindatabase
  end
end

#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
#  This class handles the map. It includes scrolling and passable determining
#  functions. Refer to "$game_map" for the instance of this class.
#==============================================================================
class Game_Map

  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader :map_name

  #--------------------------------------------------------------------------
  # * Setup Map Name
  #--------------------------------------------------------------------------
  def setup_map_name
    @map_name = $data_map_infos[@map_id].name
  end

  #--------------------------------------------------------------------------
  # * Setup
  #     map_id : map ID
  #--------------------------------------------------------------------------
  alias alexanderpas_sdksuggestion_gamemap_setup setup

  def setup(map_id)
    alexanderpas_sdksuggestion_gamemap_setup(map_id)
    setup_map_name
  end
end
Expand to see the code.

To split the X-axis and the Y-axis of the display centering Show
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
#  This class handles the player. Its functions include event starting
#  determinants and map scrolling. Refer to "$game_player" for the one
#  instance of this class.
#==============================================================================
class Game_Player

  #--------------------------------------------------------------------------
  # * Set Map Display Position to Center of Screen
  #--------------------------------------------------------------------------
  SDK.log_branch(:Game_Player, :center, :center_x, :center_y)
 
  def center(x, y)
    center_x(x)
    center_y(y)
  end
 
  #--------------------------------------------------------------------------
  # * Set Map Display Position to Center of Screen (X-axis)
  #--------------------------------------------------------------------------
  def center_x(x)
    max_x = ($game_map.width - 20) * 128
    $game_map.display_x = [0, [x * 128 - CENTER_X, max_x].min].max
  end
 
  #--------------------------------------------------------------------------
  # * Set Map Display Position to Center of Screen (Y-axis)
  #--------------------------------------------------------------------------
  def center_y(y)
    max_y = ($game_map.height - 15) * 128
    $game_map.display_y = [0, [y * 128 - CENTER_Y, max_y].min].max
  end
end
Expand to see the code.

Game_Player.check_event_trigger_there (Advanced Branch) Show
let me explain this one...

I've moved the repeating code into it's own method, and moved the in_front_of_counter check to it's superclass
also cleaned the coding a bit...
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
#  This class handles the player. Its functions include event starting
#  determinants and map scrolling. Refer to "$game_player" for the one
#  instance of this class.
#==============================================================================
class Game_Player
 
  #--------------------------------------------------------------------------
  # * Front Event Starting Determinant
  #--------------------------------------------------------------------------
  def check_event_trigger_there(triggers)
    # If no event is running
    unless $game_system.map_interpreter.running?
      # Activate events in front of the player
      if events_front_start?(triggers, 1)
        return true
      end
      # If only a counter is found in front of the player
      if in_front_of_counter?
        # Activate events in front of the player, behind the counter
        if events_front_start?(triggers, 2)
          return true
        end
      end
    end
    return false
  end
 
  #--------------------------------------------------------------------------
  # * Front Event Starting Determinant
  #--------------------------------------------------------------------------
  def events_front_start?(triggers, distance, x = @x, y = @y)
    x += (@direction == 6 ? distance : @direction == 4 ? -distance : 0)
    y += (@direction == 2 ? distance : @direction == 8 ? -distance : 0)
    # we only need to return after all events have been checked
    result = false
    # All event loops
    for event in $game_map.events.values
      # If event coordinates and triggers are consistent
      if event.x == x and event.y == y and triggers.include?(event.trigger)
        # If starting determinant is front event (other than jumping)
        unless event.jumping? or event.over_trigger?
          event.start
          # we need to check for more events, so we don't return here yet.
          result = true
        end
      end
    end
    return result
  end
end

#==============================================================================
# ** Game_Character
#------------------------------------------------------------------------------
#  This class deals with characters. It's used as a superclass for the
#  Game_Player and Game_Event classes.
#==============================================================================
class Game_Character

  #--------------------------------------------------------------------------
  # * Is the event in front of a counter
  #     x : optional parameter, defaults to current event location (X-axis)
  #     y : optional parameter, defaults to current event location (Y-axis)
  #        These parameters are to be used when extending this method
  #--------------------------------------------------------------------------
  def in_front_of_counter?(x = @x, y = @y)
    x += (@direction == 6 ? 1 : @direction == 4 ? -1 : 0)
    y += (@direction == 2 ? 1 : @direction == 8 ? -1 : 0)
    return $game_map.counter?(x, y)
  end
end
Expand to see the code.

Game_Screen.weather Improvement Show
I've removed an unneeded conditional statement
#==============================================================================
# ** Game_Screen
#------------------------------------------------------------------------------
#  This class handles screen maintenance data, such as change in color tone,
#  flashing, etc. Refer to "$game_screen" for the instance of this class.
#==============================================================================

class Game_Screen
  #--------------------------------------------------------------------------
  # * Set Weather
  #     type : type
  #     power : strength
  #     duration : time
  #--------------------------------------------------------------------------
  SDK.log_overwrite(:Game_Screen, :weather)
 
  def weather(type, power, duration)
    @weather_type_target = type
    if @weather_type_target != 0
      @weather_type = @weather_type_target
      @weather_max_target = (power + 1) * 4.0
    else
      @weather_max_target = 0.0
    end
    @weather_duration = duration
    if @weather_duration == 0
      @weather_type = @weather_type_target
      @weather_max = @weather_max_target
    end
  end
end
Expand to see the code.

Game_Screen.update (Branched) Show

#==============================================================================
# ** Game_Screen
#------------------------------------------------------------------------------
#  This class handles screen maintenance data, such as change in color tone,
#  flashing, etc. Refer to "$game_screen" for the instance of this class.
#==============================================================================

class Game_Screen
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  SDK.log_branch(:Game_Screen, :update, :update_tone, :update_flash,
    :update_shake, :update_weather, :update_pictures)
 
  def update
     update_tone
     update_flash
    update_shake
    update_weather
    update_pictures
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Tone
  #--------------------------------------------------------------------------
  def update_tone
    if @tone_duration >= 1
      d = @tone_duration
      @tone.red = (@tone.red * (d - 1) + @tone_target.red) / d
      @tone.green = (@tone.green * (d - 1) + @tone_target.green) / d
      @tone.blue = (@tone.blue * (d - 1) + @tone_target.blue) / d
      @tone.gray = (@tone.gray * (d - 1) + @tone_target.gray) / d
      @tone_duration -= 1
    end
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Flash
  #--------------------------------------------------------------------------
  def update_flash
    if @flash_duration >= 1
      d = @flash_duration
      @flash_color.alpha = @flash_color.alpha * (d - 1) / d
      @flash_duration -= 1
    end
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Shake
  #--------------------------------------------------------------------------
  def update_shake
    if @shake_duration >= 1 or @shake != 0
      delta = (@shake_power * @shake_speed * @shake_direction) / 10.0
      if @shake_duration <= 1 and @shake * (@shake + delta) < 0
        @shake = 0
      else
        @shake += delta
      end
      if @shake > @shake_power * 2
        @shake_direction = -1
      end
      if @shake < - @shake_power * 2
        @shake_direction = 1
      end
      if @shake_duration >= 1
        @shake_duration -= 1
      end
    end
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Weather
  #--------------------------------------------------------------------------
  def update_weather
    if @weather_duration >= 1
      d = @weather_duration
      @weather_max = (@weather_max * (d - 1) + @weather_max_target) / d
      @weather_duration -= 1
      if @weather_duration == 0
        @weather_type = @weather_type_target
      end
    end
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Pictures
  #--------------------------------------------------------------------------
  def update_pictures
    if $game_temp.in_battle
      for i in 51..100
        @pictures[i].update
      end
    else
      for i in 1..50
        @pictures[i].update
      end
    end
  end
end
Expand to see the code.

Game_Picture.update (Branched) Show
#==============================================================================
# ** Game_Picture
#------------------------------------------------------------------------------
#  This class handles the picture. It's used within the Game_Screen class
#  ($game_screen).
#==============================================================================
class Game_Picture

  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  SDK.log_branch(:Game_Picture, :update, :update_opacity, :update_tone,
    :update_angle)
 
  def update
    update_opacity
    update_tone
    update_angle
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Opacity
  #--------------------------------------------------------------------------
  def update_opacity
    if @duration >= 1
      d = @duration
      @x = (@x * (d - 1) + @target_x) / d
      @y = (@y * (d - 1) + @target_y) / d
      @zoom_x = (@zoom_x * (d - 1) + @target_zoom_x) / d
      @zoom_y = (@zoom_y * (d - 1) + @target_zoom_y) / d
      @opacity = (@opacity * (d - 1) + @target_opacity) / d
      @duration -= 1
    end
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Tone
  #--------------------------------------------------------------------------
  def update_tone
    if @tone_duration >= 1
      d = @tone_duration
      @tone.red = (@tone.red * (d - 1) + @tone_target.red) / d
      @tone.green = (@tone.green * (d - 1) + @tone_target.green) / d
      @tone.blue = (@tone.blue * (d - 1) + @tone_target.blue) / d
      @tone.gray = (@tone.gray * (d - 1) + @tone_target.gray) / d
      @tone_duration -= 1
    end
  end

  #--------------------------------------------------------------------------
  # * Frame Update - Angle
  #--------------------------------------------------------------------------
  def update_angle
    if @rotate_speed != 0
      @angle += @rotate_speed / 2.0
      while @angle < 0
        @angle += 360
      end
      @angle %= 360
    end
  end
end
Expand to see the code.

Game_Battler.skill_can_use? (Branched) Show
#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
#  This class deals with battlers. It's used as a superclass for the Game_Actor
#  and Game_Enemy classes.
#==============================================================================
class Game_Battler

  #--------------------------------------------------------------------------
  # * Determine Usable Skills
  #     skill_id : skill ID
  #--------------------------------------------------------------------------
  SDK.log_branch(:Game_Battler, :skill_can_use?, :skill_enough_sp?,
    :skill_silenced?, :skill_right_occasion?)

  def skill_can_use?(skill_id)
    # Only if you have enough SP, the skill can be used.
    if skill_enough_sp?(skill_id)
      # Unusable if incapacitated
      if not dead?
        # check if you're silenced weither the skill is physical.
        unless skill_silenced?(skill_id)
          return skill_right_occasion?(skill_id)
        end
      end
    end
    return false
  end
 
  #--------------------------------------------------------------------------
  # * Determine enough SP for Skills
  #     skill_id : skill ID
  #--------------------------------------------------------------------------
  def skill_enough_sp?(skill_id)
    return ($data_skills[skill_id].sp_cost <= self.sp)
  end
 
  #--------------------------------------------------------------------------
  # * Determine weither Skills are silenced
  #     skill_id : skill ID
  #--------------------------------------------------------------------------
  def skill_silenced?(skill_id)
    return ($data_skills[skill_id].atk_f == 0 and self.restriction == 1)
  end

  #--------------------------------------------------------------------------
  # * Determine Usable Skills
  #     skill_id : skill ID
  #--------------------------------------------------------------------------
  def skill_right_occasion?(skill_id)
    # Get usable time
    occasion = $data_skills[skill_id].occasion
    case occasion
    when 0 # [Normal]
      return true
    when 1 # [Only Battle]
      return $game_temp.in_battle
    when 2 # [Only Menu]
      return (not $game_temp.in_battle)
    end
  end
end
Expand to see the code.



(request to mods: please remove all post that are asking on how the SDK works and also the "I'm having a problem with the SDK" posts.)
Suggestions, huh? Well, I have a thought, but it is on how you wrote the first suggestion; instead of putting the Map Infos in a global variable, you could put them in Game_Temp. After all, the data you pull from it is saved in Game_Map, which is saved in Scene_Save. This way, you wouldn't have to load map infos every time you Continue a game, only when you Start a New One.

So, maybe $game_temp.map_infos?

Just a thought. Good luck.

~Owen Sael
OS wrote:
Suggestions, huh? Well, I have a thought, but it is on how you wrote the first suggestion; instead of putting the Map Infos in a global variable, you could put them in Game_Temp.
I tought abou that too... however,first of all, I tried to keep it consistent with the other files that get loaded.
secondly... Game_temp is NOT the place to store all that info about maps, it is supposed to just store pointers, names, switches, id's etc.

OS wrote:
After all, the data you pull from it is saved in Game_Map, which is saved in Scene_Save.
you're wrong about that, currently only the current name of the current map get's saved in your savefile (can be used for example on the load screen or any other use I haven't tought about) wich I consider very efficient, also you can't read that directly from $data_map_infos[@map_id].name as that name might have additional flags which be removed by the setup_map_name method.

also, the $data_map_infos doesn't get stored into the savegame leaving the footprint as minimal as possible.

OS wrote:
This way, you wouldn't have to load map infos every time you Continue a game, only when you Start a New One.
Also not true, everytime you get to the Scene_Load, Game_Temp get's flushed, so it doesn't matter where it resides. (based on this point only, see above point too)

OS wrote:
So, maybe $game_temp.map_infos?
or maybe not ;)

OS wrote:
Just a thought. Good luck.

~Owen Sael
Thanks for your comments.
Sorry. Wasn't thinking. Generally I try to convince people to use Game_System, but I didn't think it would work, because I was a bit confused about the whole saving mess. I've been working too much in C#, me thinks.

Well, if I can think of anything more productive, I'll be sure to post. Peace!

~Owen Sael
The SDK has been updated to version 2.4!


Any old versions of the SDK may be removed completely. We will probably be not using the RSC require method, simply because its a headache for people to get to use. So from here on out, you get one big script (over 10000 lines, go us!).


Let me know if I made any mistakes, as I haven't had a lot of time to review this yet.
Sorry alexanderpas. I did not see your post when I did the update. I will update to 2.5 next month and look through your suggestions.
Nice to see this project stills going, and there is a new version, but what's new on 2.4?
I'm curious as well what is new in 2.4, and also in the alluded to 2.5.  Just visiting to check up on script development, and I see the SDK's been updated.  I don't know if I ever mentioned this, but when I got SDK 2.3 I was very pleasantly surprised by the vast improvements since earlier versions which I criticized.  The auto_update and auto_dispose in SDK::Scene_Base (and SDK::Scene_Base itself) are extremely useful, as is Window_HorizCommand (though I swear I made Window_SideCommand first, this doesn't seem to be at all based on my work...) and several other SDK functions that have got me using it quite a bit in my recent programming.  I have some ways that I've taken advantage of the SDK that I can share here...

First is that I've changed all of the Scene classes in my project except for Title and Map (and those I haven't gotten to yet) to Layer classes, which are of my own design.  With a couple of small changes to SDK::Scene_Base I created the @layer variable which, when != nil, ceases further updating of some of the Scene's functions (like window or $game_player updates) and instead update the Layer, which is a new class based on SDK::Scene_Base.  I believe Layer_Base could be merged into SDK::Scene_Base as well, though I haven't seen a need to do it quite yet, and in any case I've added functions to the beginning and end of the class for animation purposes which might do well to be added to Scene_Base but aren't required since one doesn't have to update half of the parent scene when there isn't one.  The main functionality of this is that events on the map continue to move around behind the menu.  It's just a bit of an idea, if you're interested I could provide all of the code that defines my Layer classes.

The other thing that the SDK has helped with (somewhat) also heavily involves MACL, so it probably isn't something to be added in the SDK.  What it is is a transformative mouse control for all Window classes.  The reason it would have to be part of something like the SDK is that in order to make the cursors in a window follow abnormal structures (as in anything not defined by Window_Selectable automatically) one has to alter def fill_ind_box instead of def update_cursor_rect because the latter also accepts mouse control.  @ind_box is an array of the cursor rects for each index of the window which is defined by fill_ind_box, which is normally a for loop but could simply be @ind_box = [...]


But I'm probably just bragging about all that, I doubt you would want to implement either of them since they alter the functionality of the game instead of just the way it works.  It would be nice if there were some functions for Scene animation though, so if you're at all interested in my ideas for that please email me at [email hidden] (since I'm not around here incredibly often)

And thanks again for the great functions you've added since 1.x!
Glad you like the updates Mewsterus. I have tried to do as much as possible to make this able to be used be as many developers as I can. Even on my own projects, I stick the SDK even with re-writing nearly every class in the game.

I would be interested in seeing your Layer class you are talking about. I did make this: http://www.rmxpu.net/owai/scripts/mouse ... indows.txt

That enables most windows to use the mouse script with eachother. I did have an addition that would read the Input.trigger?(Input::C) when the mouse button was pushed as well, and could be disabled where choosen. I will probably throw that into the next MACL, as it is more of a library addition as opossed to a rewrite, which is mostly what the SDK is.

I am always open to suggestions. Many people have contributed some rather nice ideas, which has lead to what it is. As much as I would like to take all the credit for it, it's other ideas that have played a fair share in the role of where the SDK is.
May I suggest something? I noticed an unusual behavior of RMXP when it has to handle a script with 10000 lines or more in one slot. I doesn't point to the correct line number when encountering an error. I'm not sure which number of lines is needed for that to happen, but I assume it to be 10000 since the line count on the left side of the script editor window doesn't go over 9999. I suggest that you split the SDK into several file as you did with earlier versions. It helped my scripts to work normally, it should help the SDK as well. :)
Can this be used with VX too?

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