• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other Question] EBDX Battle Enviroment error

  • 67
    Posts
    10
    Years
    Hello, I'm using EBDX with Essentials 19.1 and I'm having an issue with the Battle Enviroment, and also with the Modular Title Scree, though, the last one doesn't bother me at all.

    When I change the "maps.txt" inside PBS/EBDX sometimes the battle enviroment won't load, and change every map to deafult. Sometimes it works and sometimes it doesn't. Same thing happened to modular title screen, I change the settings to the XY intro, tested it, and when I change it to SM, it got stuck in XY intro forever, I even removed the config file, and it still played the XY intro.

    It seens that sometimes EBDX is ignoring all my settings. To make it work, I need to rewrite the map.txt exactly the same, and some maps load, some doesn't. There was a time that I only swapped two maps numbers, and then it started working, but when I added a new map to the BattleEnv, it stoped working again.

    My maps.txt:
    Code:
    #-------------------------------
    [028] 
    BattleEnv           = FOREST
    #-------------------------------
    [029]
    BattleEnv           = CAVE
    #-------------------------------
    [030]
    BattleEnv           = HAUNTED

    The "Haunted" was one that I created, and it was working, until I added the "Cave" map. Currently, no maps have their BattleEnv, they all have the default inside and outside battleenv.
    Is this error something only happening to me?
     
    You need to properly compile all the changes after you make them. Hold CTRL when playtesting your game from RMXP (i.e. running in Debug) to force compile. This goes for PBS as well as Plugin configs.
     
    After compiling all data, I even entered the debug Menu and forced the compile again. Still the same background. I know it is not ideal, but is there a way to disable tthe battle env and use the regular static battleback? I wish I could use the animated backgrounds, but at Least the battlepacks are easy to manipulate.
    This problem is keeping me to advance the game, because whenever I create a new map, I have to wish that it won't disable all the battle Env when I compile it...
     
    Well, it is not the ideal, but I managed to make the Battleback work by creating an parallel event running the Enviroment that I wanted, like this:

    Code:
    EliteBattle.set(:nextBattleBack, :FOREST)

    Until I figure what is wrong, I'll keep following this method.
     
    Well, it is not the ideal, but I managed to make the Battleback work by creating an parallel event running the Enviroment that I wanted, like this:

    Code:
    EliteBattle.set(:nextBattleBack, :FOREST)

    Until I figure what is wrong, I'll keep following this method.

    Which version of EBDX are you on?
     
    Not sure then. The Modular Title Screen thing is definitely a compiling issue. Since your script changes will not be reflected if you run the Game.exe directly after your edits; without running your game in Debug to compile the script changes. As for the Envs, there used to be a bug concerning terrain tags (i.e. no matter which env you set, if your game map didn't have a terrain tag you were standing on when running battles, it would default to the indoor/outdoor ones), which has been fixed well before 1.2. I tested it again to set up Envs for specific maps using the PBS and it's working fine on my end. I doubt any 3rd party scripts are interfering, and the debug console would print out more details in case of error messages (like missing battle env definitions); so it sounded like a compiling issue again.
     
    Hm, Dunno either, maybe it's a problem within my PC, I tested a version of Essentials without any modification, just EDBX and the modular plugins, and the problem remains.

    And the console does say it compiled "maps.txt" so I'm kinda lost here.
     
    Last edited:
    Hm, Dunno either, maybe it's a problem within my PC, I tested a version of Essentials without any modification, just EDBX and the modular plugins, and the problem remains.

    And the console does say it compiled "maps.txt" so I'm kinda lost here.

    It could be an encoding issue with your PBS files, where line breaks (internally) are seen as \n instead of the expected \r\n.
    I've pushed out a new version of the Scripting Utilities to address this. Apply the new update, and delete all the .ebdx files in your Data/ folder to force re-compiling of the PBS, and see if that fixes your issue. Another user on the Discord was experiencing something similar.
     
    Ah, everything seens to be fine now! I deleted the events forcing the background and every background now is according to the pbs file! Thanks a lot!
     
    Back
    Top