Elemental weakness error

● ARCHIVED · READ-ONLY
Started by Tetriser2018 17 posts View original ↗
  1. Hello, my first time posting in the forums. I'm currently working on an RPG with a color-based elemental weakness, when there's an odd bug happening.

    I have a character with a "blue" element, these are its traits:
    unknown.png

    Then I made a dummy enemy with a "green" element:
    unknown.png

    But when I try to do a battle test, the blue character's attack erroneously getting stronger against the green dummy, where it shouldn't.

    There's another weirdness, I've made a character with a "red" element. Tried using the character with a blue dummy, and the attack from the blue character is weak against it.

    Is this a bug or something?
  2. The lower the elemental rate the stromger the chatacter is to that element.

    So the elemental rate you have for the green enemy is, for the blue element is 50%. Which means the green enemy takes 50% of the damage received by a blue attack.
    So if a blue attack deals 100 damage to the green enemy will take 50% of it or 50 damage.
    Same thing with the Blue characters and the red damage. I'm assuming that like the dummy blue enemy, you have the red element set to 200%.

    So when the blue character recives damage, from the red enemy, let's say tge skill does 100 damage, then the blue charater recives twice that amount,or 200 damage.

    Also may I recommend join this discord:
    https://discord.gg/3WmYzZh

    or this one:
    https://discord.gg/YcxySsj

    As if you had an account, you probbaly could have gotten this question answered in 24 - 48 hrs.(I personally prefer the first one but both are usefully)
  3. from first glance, your element rates should do what you assumed them to do.
    However, there are a lot of places where that could have gone wrong, and we can't even see those places because you cut away the rest of the data.

    One possibility is the question of what skill is the actor using?
    The damage rates count against the element of the skill used, and if the skill setting ignores the attack element then it will be useless.
    Second possibility is if your actors have multiple elements available - in that case the engine automatically selects the one with the highest damage result.

    and several other options like mistakes you made when placing the traits and so on.
    Please give full screenshots of the skill you're using, the actor/class and the dummy enemy you designed for testing, then we can tell you where things might have gone wrong.
  4. I'm using the regular Attack skill. So, that's kind of weird.
  5. (Sorry, tried to use clipboard upload but it screwed)
  6. and the class?
    (I'm asking because the attack parameter of the actor is from there, and we need to know how high that is)
  7. Anyway, I forgot to mention that:
    RPGMV_2018-09-12_14-57-07.png
    This character respects the elemental weakness properly.
  8. As proofs, I just did some battle tests.
    game_2018-09-12_15-00-30.png game_2018-09-12_15-00-31.png
  9. please do not mix up data - your "battletest" is half worthless because you attacked two different enemies, but the data you gave is only for one enemy and two actors. Bughunting always requires careful step-by step searches.

    The class looks unchanged, that would mean that the attack value at L1 should be 16, resulting in a base damage of 28 from the attack skill (ignoring variance), that should be halved or doubled based on elemental damage rates.

    From the battlescreenshot, it looks as if the wrong element rates are applied and we need to find out why.
    Please answer the following questions:
    1) how do you start the battletest? Please give all steps exactly, including if you load a saved game or what else.
    2) have you any plugins? please provide a screenshot of the plugin manager unless it is empty.
    3) in the editor, click on game - open folder in the menu. In the window that opens, is there a folder named "www" or are there only the folders "audio" to "js" and "movies"?
  10. Tetriser2018, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


    In fact you tripple posted several times. In the future, please use the 'Edit' button to add something after you posted.
  11. Oh yeah, sorry for that. I should've post ALL of the screenshots in one post.

    By the way, to answer Andar's questions:
    1: I start the battle test by simply using the "Battle Test..." button through the Troops tab in the Database window. Before I start the test, I set Arle as the first character and Amitie as the second, while others empty.
    2: I use Community_Basic and MadeWithMV plugins.
    3: All common folders are there: audio, data, fonts, icon, img, js, movies

    Actually, I have been occurring the problem since I use MV 1.0.1, forgot to upgrade so tried to do so and remake the project. However, still get the same problem.
  12. First, test if the same happens in a real ingame battle.
    That battletest uses several shortcuts to be able to launch the battle without launching the game, and that sometimes causes problems.
  13. When battle testing after a change in the database I always click the Initialize button for each actor first, then if I want certain equipment on them I put it on. I find if I don't do that it doesn't always update with the latest database stats. Not sure if it'll help you, but if you haven't, try that too.
  14. OK, just did the "real" battle with it and it still the same issue.
    And Atoms' solution didn't even worked.
    game_2018-09-13_16-55-44.png
  15. one more test: remove the attack element blue from the actor and add it to a weapon, then give that weapon as starting equipment and test again.
    and you're sure that there is no www folder in your project (and never was)?
    Just to be clear: it would be wrong if that folder exists, but it could have been created when you did something wrong in the past, and then it could be the cause of this error.
    additionally, please show us the database page with the element definitions to see how you did them there.
  16. one more test: remove the attack element blue from the actor and add it to a weapon, then give that weapon as starting equipment and test again.
    That solution worked! Also, "www" folder was never appeared in my project's folder.

    By "element definitions", did you mean this?
    RPGMV_2018-09-14_23-07-04.png
  17. yes. And I'm beginning to suspect the reason for the problems, although I can't proof it.

    in a lot of areas the game engine is programmed in a way that defaults are needed for everything to function. That is the reason why the new projects already have some basic settings.
    Some of those defaults are marked, like the note texts about skills #1 and #2 or state #1. Others are not specifically marked - like the fact that the first equipment type is automatically considered a weapon type and all others are considered armor types. Or that the trait "dual wield" changes the second equipment type to "weapon type" as well.

    Because those other defaultas are not specifically mentioned I can't be sure without checking the code, but I think that the first element type might also have special consideration because it is "physical" by default.
    But you removed the defaults almost everywhere, and that can cause problems.
    Did you create the weapon type only after I told you to test this? because it could very well be that the entire cause only happened because you removed the equip types previously or some error like that.
    You should also add the minimum of one skill type and one armor type as well to prevent other problems - you don't have to use them, but they should exist to give the engine a number to check against.