[Solved] Database/Ingame - Different naming

● ARCHIVED · READ-ONLY
Started by Gregaur 12 posts View original ↗
  1. Hi makers !

    Here is my "issue" :

    In my data base, to facilitate my database reading, I use some not-Lorefriendly name in my game for skills, items, weapons etc... :

    Sword 5, Sword 10, Sword 15,...
    Dagger 5, Dagger 10, Dagger 15,...
    Heavy Armor 5, Heavy Armor 10, ...
    Fire 1, Fire 2, Fire 3, ...
    Potion 100HP, Potion 200HP,...
    you get the idea


    I have a small memory and a lot of stuff in my game.

    My question is : "Would it be possible to have a pluggin to change how the name "In game" appear without changing the name in the database ?"

    For exemple, My "Sword 5" would have a notetag <NameInGame : Iron Sword>, so when someone (or I) tests the game, he would see an Iron Sword in game and not a Sword 5. Same for everything else.

    I know I could keep this name untill I decide to release the game, but i made a lot of Beta of my game, and every time I create a new one I have to change every item. I want my beta to be as smooth as possible for the tester. And you can imagine how a "Sword 5" can break your immersion in a game...

    Thanks a lot and have a great MAking !
  2. Put together a quick plugin that should solve your problem. Just make sure you put the necessary note tag in, as the plugin says!

    ZephAM_DataRename.js

    Let me know if something doesn't work!

    Oh, and it currently applies only to Items, Weapons, and Armor, but could feasibly work for skills, actors, and enemies if expanded.

    Edit: Also, the rewrite takes effect on new game, so it won't affect currently existing saves as it is now.

    Further Edit: However, if you just want to test a save, you can force run it by typing this in the debug console:
    DataManager.replaceData()
    Which should do it!

    ~ Zephyr

    Update:
    ~ version 0.7 ~
    - Added all load note tag functions to the Database loaded function
    - Fixed ZephAM/ZAM namespace (in 0.65)
    - Removed meta tags (in 0.65)
    - Changed 'state' to proper 'inGameName' match (in 0.65)

    ~ version 0.6 ~
    - Added Skills to the rename options
    - fixed overwriting data with blank names if no note tag was added
  3. Hey Zephyr !
    Thanks for your answer.

    Seems that it doesn't work for me. I try it on Skill, Item or weapon and it doesn't change the name in Test mode.

    I put it at the end of my pluggin list...
  4. Hmm.
    Well, it wouldn't work for Skills in its current form - though I'll add that as soon as I have time - but I tested it on items, weapons, and armor and it works fine for me.

    You added the <inGameName:new name> tag in the Note section of each piece? (replace 'new name' with whatever you want it called of course)

    And if you're testing on a current save, use the Debug console like I amended in the top post, not an Event. I was rushed and not thinking when I suggested that XD. It also shouldn't matter much where it is on the plugin list, though something like Yanfly's Item Core 'might' conflict. I'll have to test.
  5. I test your pluggin on a new project (without any other pluggin). It's still doesn't work.

    My RPG Maker is in French could it be the reason for the problem ? Also I'm using the RMMV 1.6.1, I it the same as you ?

    You added the <inGameName:new name> tag in the Note section of each piece? (replace 'new name' with whatever you want it called of course)
    I added it on every item I tried (like potion 100HP and Potion 200HP) not on EVERY item in the database, could it be the problem ?

    And if you're testing on a current save, use the Debug console like I amended in the top post, not an Event. I was rushed and not thinking when I suggested that XD. It also shouldn't matter much where it is on the plugin list, though something like Yanfly's Item Core 'might' conflict. I'll have to test.
    I'm testing it on a new game.
  6. I'll have to look into it deeper when I get home. Try the new version I updated (0.6) if you don't already have it, but a different language shouldn't matter, nor should having the tag on every item or not.
  7. Yeah, I try it but I have the same probleb. However, your pluggin is great ! If it doesn't work fr me it may work for others !
  8. I quickly tested the plugin too but it doesn't work for me either. Maybe it helps that you know that it doesn't work for other people either.
  9. Issues with the plugin and how to fix:

    1. Created a namespace "ZephAM" but then referenced it with "ZAM" causing error which makes the plugin not load.
      • Change all instances of "ZAM" to "ZephAM" (or vice-versa)
    2. Wrong search criteria in regular expression
      • On line 42, 50, 58, 66, change "<state" to "<ingamename"
    3. Uses 'meta' instead of regular expressions to assign the name which means that it's case-sensitive (and also ignores regular expression)
      • On line 74, 77, 80, 83 remove the ".meta" - so the expression is "$dataItems.inGameName" for example instead of "$dataItems.meta.inGameName"

  10. a better solution might be to use a multilanguage plugin with one language "developer name" and one language "ingame name".
    However, some of those plugins are meant to be used from the very beginning of the development and it would be a lot of work to switch over if your game already has a lot of development in it....
  11. Alright, fixed the ZAM naming issues (could've sworn I caught those before and wondering how it worked for me). Likewise with the 'state' problem swapped. Also removed the meta tags, though I added them I the first place because it didn't work without, so that may take some testing.

    Really wondering how it worked enough for me to not catch these XD. And forgive me in advance if I missed something, working from my phone right now

    Uploaded 0.65. Give that a try and see if it works.

    Edit:
    Think I got it all this time! XD
    Version 0.7 up now ready to be tested by others.
  12. Version 0.7 up now ready to be tested by others.

    It works perfectly for me ! Skill, Weapon, Object, Armor, everything is perfect !

    Thank you very much for taking the time to create this pluggin, it will be very useful and time saving for me !