VXAce Necroking's Bane

Summary
Spoiler
Summary

This project is not far enough along yet to deserve a forum thread in my opinion, but others insisted that I post this here.

Originally proposed as an idea to implement a modified D&D 3.5 set of rules into a tactics RPG, this project decided to morph into something entirely on its own, be it for better or worse. The story is already planned out, and while it has been decided that the game itself should do the job of presenting the story entirely, it is not quite at that point yet.

It starts off with the protagonists hearing screams in a graveyard. The protagonists are from a normal world much like ours, and are unaware that sinister forces lurk in another dimension - a dimension that, on the surface, seems much like a stereotypical fantasy world.

The Characters
Spoiler
The Characters

Yume - A young human girl from the real world. Player 1 controls this character.

Yuuto - Yume's childhood friend. Player 2 controls this character.

Karasu - A talking raven. He was human once, and somehow keeps his former physical strength even though he's small. Player 3 controls this character.

Kitsune - A fox spirit. She's supposed to be immensely powerful, but something bad happened and now she isn't. Player 4 controls this character.

Features/Technical
Spoiler
Features/Technical

First and foremost, this project is a heavy mix between the original RPG Maker VX Ace Engine and a large collection of C# code that I was originally using for a Unity3D project. Many RPG Maker systems have simply been thrown out the window. The inventory system has been replaced. The stat and attribute system has been replaced. Actual algorithm-based pathfinding has been added. The game features nothing at all from RPG Maker's combat system, instead using a map-based battle system.

Key Features and Things to Note
Spoiler
Key Features and Things to Note

-The inventory does not use stacks. Instead, it uses an inventory system much like Resident Evil 4. Items take up either 1, 2, 4, or 8 slots. One inventory (you can have more than one) has 8 slots. You may have 1 standard inventory, 4 bags, and 1 space for holstered items. Holstered items are the only items directly available in combat. Inventories are NOT shared between characters.

-The game has local coop. If you hook up more than one XInput (Xbox 360 or Xbox One) controller, you can wander around the map with your friends and take turns in battle.

-The combat is map-based. You need to get close to an enemy to hit it with a melee weapon.

-Make sure to equip a weapon. Attacking unarmed when you're not trained in unarmed combat results in an attack of opportunity for the enemy, in which case they can attack you first.

-Cross-classing. You are technically a member of every class.

Stuff Not Done Yet/Stuff Not Working
Spoiler
Stuff Not Done Yet/Stuff Not Working

-Saving and loading 99% works, but has a couple of bugs. Temporarily disabled.

-Level 2 is not accessible yet. Right now, you can defeat the initial encounter, but nothing will happen and the portal will never suck the party into the fantasy world.

-Characters 3 and 4 are not introduced until Level 2, so right now they are not accessible.

-Character portraits and other cosmetic things. There's also quite a bit of place-holder art in use.

-Feats.

-Magic System.

-Quest Journal.

-Exp/Leveling (The code is 99% there, but I can't seem to get a decent D.M. to tell me how to calculate challenge ratings.)

-Some combat-related actions (like charging) are currently not implemented.

===Demo Download (Will be updated quite often)===
https://www.dropbox.com/s/qxi19xw5p6e4llf/NKB.zip?dl=0
Local multiplayer sounds awesome. I've not heard of any game that uses RPG Maker featuring that.
Well, it's been WAY longer than 72 hours, as per forum rules. Time for an update. (A coop demonstration with 2 players...) New demo will be uploaded once the 4th party member is introduced and when the werewolf sprites are replaced.



-Saving/Loading is now enabled.
-Exp and leveling have been implemented.
-Ability to spend attribute points is now only used when resting.
-Whenever a chance to spend attribute points is presented, you may also spread around your overall exp across the various classes.
-Level 2 is partially completed. It's still using place-holder tiles.
-Party member #3 has been introduced.
-Countless bugs have been fixed.
-Added an automatic looting system.
-Added a warping (map-changing) system.
-Added treasure chests.
-Added partial magic support (scrolls).
-Sprinting is now enabled.
-Potions are now able to be looted, and can be used both in and out of combat.
-Several graphical changes.
Been way longer than 72 hours (more like 1 and half weeks...), so here's a status update. To enhance the art style of the project as well as lift various restrictions of the Rpg Maker VX Ace engine, I have decided to spawn a brand new "sub-project" to incorporate into this one. It will eventually be standalone and open, but not during its early development cycle.

The project replaces the Rpg Maker VX Ace rendering engine with a custom, DirectX-powered rendering engine.



==Key features (Finished)==

-Automatic initialization of the DirectX runtime. Automatic shutdown/cleanup of the DirectX runtime and all loaded DirectX assets.

-Controlled by ruby scripting.

-Shader support (actually, shaders are required...)

-Disables the buggy f12 key functionality of Rpg Maker.

-Fullscreen now uses borderless-windowed fullscreen. Alt + Enter key-combo has been preserved for this.

-Resolution is uncapped.

-Textures can be loaded at any resolution.

-Up to 10240 textures, 10240 shaders, and 1024 matrices. (Other caps will be hit long before these limitations become problematic...)



==Key features (Unfinished)==

-Animated 3D model support. ~90% done.


==Key Features (Implemented, but Untested)==

-Alt + Enter *SHOULD* go full-screen only on the monitor that the window is in on multi-monitor setups.
As a fellow scripter, this looks interesting. I'm curious how do you disable the buggy F12 in default RM. I don't have a problem with it, but it will be better if I could disable it as I want.

Also, don't you think it's better if you don't separate the battle command in different scene? I mean, the blur background kinda bothering me. I only watched the video demo though. Good luck with this project
Code:
HWND window = __nullptr;

void disable_f12(void)
{
    unsigned char state [255];
    memset(state, 0, 255);
    GetKeyboardState(state);
    state[VK_F12] = 0;
    SetKeyboardState(state);
}

LRESULT CALLBACK HookWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    disable_f12();

    if ((message == WM_KEYDOWN) || (message == WM_KEYUP))
    {
        if (wParam == VK_F12)
        {
            return 0;
        }
    }

    if (message == WM_DESTROY)
    {
        PostQuitMessage(0);
    }

    return DefWindowProc(hWnd, message, wParam, lParam);
}

BOOL CALLBACK EnumThreadWndProc(HWND hwnd, LPARAM lParam)
{
    window = hwnd;
    return FALSE;
}

void find_rpgmaker_window(void)
{
    static DWORD tid = 0;

    if (tid == 0)
    {
        tid = GetCurrentThreadId();
    }
    EnumThreadWindows(tid, EnumThreadWndProc, 0);
}

void install_window_func_hook(void)
{
    if (!window)
    {
        return;
    }
    SetWindowLongPtr(window, GWLP_WNDPROC, (LONG)HookWindowProc);
}

void initialize(void)
{
    find_rpgmaker_window();

    if (!window)
    {
        MessageBoxA(__nullptr, "RPG Maker HWND could not be found!", "ERROR!", 0);
        return;
    }

    install_window_func_hook();
}

This is the C++ code I used for disabling f12, with unrelated code removed for simplicity. Keep in mind it also disables Alt+Enter, but that can be fixed rather easily.

Original thread: https://forums.rpgmakerweb.com/threads/necrokings-bane.89150/