设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 133|回复: 0

[转载发布] Hammy - Simple Map Display Addons

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-8-3 15:27:23 | 显示全部楼层 |阅读模式
    Hammy - Simple Map Display Addons v1.01
    Performance Enhancements and Input Toggle for WoodPenguin's Simple Map Display system




    Introduction

    This post collects two addon scripts for WoodPenguin's Simple Map Display system. Each addon is independent and can be installed on its own. They share the same base requirement of WoodPenguin's Simple Map Display script, and each has its own additional requirements described in the relevant section below.

    AI Disclaimer: Generative AI was used to refine the documentation and presentation of these scripts, as I am not a native English speaker. Additionally, AI was used for naming conventions in some places and for general beautification of the scripts.

    mkxp-z Disclaimer: Simple Map Display × Input Toggle supports mkxp-z-exclusive input features including controller button input, SDL scancode key bindings, and VK integer key bindings. These features will not work on standard RPG Maker VX Ace without mkxp-z. Standard RGSS3 symbol bindings work on both. See the mkxp-z section below for more information.



    Addon Overview


    • Simple Map Display × Performance Enhancements - Rotation matrix pre-computation to reduce redundant trigonometric calculations for the Type 3 minimap
    • Simple Map Display × Input Toggle - Keyboard and controller toggle to cycle through map display modes without requiring an event



    mkxp-z

    mkxp-z is an open-source, cross-platform player for RPG Maker XP, VX, and VX Ace games. It is a heavily modified fork of mkxp originally built to run games based on Pokémon Essentials, which depends heavily on Windows APIs. It is best described as MKXP but supercharged - capable of running all but the most demanding RGSS projects with a bit of porting work.

    mkxp-z supports Windows, Linux (x86, ARM, and POWER), and both Intel and Apple Silicon versions of macOS. Because it ships with Ruby 3.1 rather than the original Ruby 1.9.2 bundled with RPG Maker VX Ace, scripts written for mkxp-z can take advantage of modern Ruby syntax and standard library features.

    Controller button input and SDL scancode or VK integer key bindings in Simple Map Display × Input Toggle require mkxp-z and will not work on default RPG Maker VX Ace.



    ▼ Simple Map Display × Performance Enhancements

    Introduction

    This performance optimization addon enhances WoodPenguin's Simple Map Display script with a pre-computation strategy for marker rotation in RPG Maker VX Ace. It reduces redundant trigonometric calculations when the map rotation flag is active during vehicle travel.

    The optimizations include rotation matrix pre-computation for the Type 3 circular minimap, sin and cos calculated once per frame and shared across all visible markers, and an identical visual result to the original implementation at significantly reduced per-frame cost.

    Requirements

    Features

    Performance Enhancement Features

    • Rotation matrix pre-computation for Type 3 marker rotation
    • sin/cos calculated once per update instead of once per visible marker
    • Identical visual result to the original Simple Map Display implementation

    Installation


    • Place this script BELOW Simple Map Display
    • If using Vehicle Pseudo-3D Database, place this script BELOW it
    • If using Vehicle Pseudo-3D Main Script, place this script BELOW it

    Credits


    Download

    Download from GitHub



    ▼ Simple Map Display × Input Toggle

    Introduction

    This input addon enhances WoodPenguin's Simple Map Display script with direct player input handling for RPG Maker VX Ace. It allows the player to cycle through a configurable sequence of map display modes via keyboard or controller without requiring an event or variable change through the event system.

    The system supports a configurable cycle order and mode selection, keyboard input via Input.trigger? on vanilla VX Ace and Input.triggerex? on mkxp-z, raw SDL scancode and Windows Virtual-Key support for unmapped keys, and an optional controller button mapping via Input::Controller.triggerex?.

    Requirements:

    Optional Compatibility

    Features

    Input Toggle Features

    • Configurable map display cycle order via TOGGLE_CYCLE
    • Keyboard toggle support through RGSS3 and mkxp-z input routing
    • Explicit RGSS and SDL routing via tagged key arrays
    • Optional Windows Virtual-Key integer support on mkxp-z
    • Optional controller button toggle support on mkxp-z

    Configuration

    Edit the constants in the Hammy::SimpleMapInput module to configure the cycle order, keyboard key, and controller button.

    Input Toggle Settings
    TOGGLE_CYCLE
    Array of mode values to cycle through in order.

    Include 0 to pass through the hidden state as part of the cycle. Remove 0 to keep the map visible and only cycle between modes. Set to [] to disable the toggle entirely.

    - Valid values: Array of integers corresponding to WdTk::SimpMap keys
    - Default:[0, 1, 2, 3]

    Example
                    Ruby:       
    1. TOGGLE_CYCLE = [0, 1, 2, 3]
    复制代码


    TOGGLE_KEY
    Keyboard key used as the map display toggle trigger.

    Bare RGSS3 symbols are routed through Input.trigger?. Tagged arrays can force routing with [:rgss, :SYM] or [:sdl, :SYM]. SDL routing and bare VK integers are mkxp-z only and use Input.triggerex?.

    - Valid values: RGSS symbol, tagged array, or VK integer
    - Default::CTRL

    Example
                    Ruby:       
    1. TOGGLE_KEY = :CTRL
    复制代码


    TOGGLE_BUTTON
    Controller button used as map display toggle trigger.

    Only needed when TOGGLE_KEY has no default controller binding, such as an SDL-only key or a raw VK integer. Set to nil to disable the separate controller trigger.

    - Valid values: Any controller button symbol, or nil
    - Default::BACK

    Example
                    Ruby:       
    1. TOGGLE_BUTTON = :BACK
    复制代码


    Installation


    • Place this script BELOW Simple Map Display
    • If using Hammy - MKXP-Z Input Constants, place this script BELOW it

    Credits


    Download

    Download from GitHub



    Compatibility

    All scripts in this collection are made strictly for RPG Maker VX Ace. It is highly unlikely that they will run with RPG Maker VX without adjusting. Controller button input and SDL scancode or VK integer key bindings in Simple Map Display × Input Toggle additionally require mkxp-z and will not work on default RPG Maker VX Ace without it.



    License

    MIT License - Free for commercial and non-commercial use.



    Why VX Ace?

    You might wonder why I'm still making scripts for VX Ace instead of MV/MZ. The answer is simple: Ruby is pure beauty, while JavaScript is a terrible language. Ruby's elegant syntax, intuitive design, and expressive power make scripting a joy. JavaScript, on the other hand, is a chaotic mess of inconsistencies and quirks that I simply despise.

    I work with RPG Maker VX Ace for my own game project, and I share the scripts I create with the community. If you're still using VX Ace, you're in good company!



    Download

    Demo:Download from GitHub





    本贴来自国际rpgmaker官方论坛作者:buddysievers处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/hammy-simple-map-display-addons.183695/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 06:15 , Processed in 0.068298 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表