Line Break Issues

● ARCHIVED · READ-ONLY
Started by GibiusMaximus 11 posts View original ↗
  1. Recently, I started working on a project and began experimenting with different fonts etc. I've already applied the suggested fix, and it worked a treat for during Dialogue & Menu Screens but my problem lies with Enemy Names.

    I was recommended this from a friend;



    Code:
    class Window_Base
      alias :process_normal_character_vxa :process_normal_character
      def process_normal_character(c, pos)
    	    return unless c >= ' '
    	    process_normal_character_vxa(c, pos)
      end
    end
    But even with the code above, I still get the nasty ugly little Square at the end of most names - not all - but most and it's really doing my head in. Anyone got any solutions to my problem?

    An example of what happens is for instance say

    Enemy Name = Crawler

    Troop Name = Crawler * 2

    But when in battle, after selecting which technique/spell to use, the following appears as the Target Selection "Crawler[]" & "Crawler[]". Occasionally, there are a few monsters that will pop up without this nasty little symbol beside the name but I've been trying for quite a while to find a solution to fix it within the actual Battle Scene.

    example.png
  2. GibiusMaximus said:
    Recently, I started working on a project and began experimenting with different fonts etc. I've already applied the suggested fix, and it worked a treat for during Dialogue & Menu Screens but my problem lies with Enemy Names.

    I was recommended this from a friend;



    Code:
    class Window_Base
    alias :process_normal_character_vxa :process_normal_character
    def process_normal_character(c, pos)
    	 return unless c >= ' '
    	 process_normal_character_vxa(c, pos)
    end
    end
    But even with the code above, I still get the nasty ugly little Square at the end of most names - not all - but most and it's really doing my head in. Anyone got any solutions to my problem?

    An example of what happens is for instance say

    Enemy Name = Crawler

    Troop Name = Crawler * 2

    But when in battle, after selecting which technique/spell to use, the following appears as the Target Selection "Crawler[]" & "Crawler[]". Occasionally, there are a few monsters that will pop up without this nasty little symbol beside the name but I've been trying for quite a while to find a solution to fix it within the actual Battle Scene.
    I had this issue as well.

    I went into the Vocab section (in scripts) as well as the database and replaced all 'spaces'. Fixed it for me. The issue is, due to funky formatting, some of the vocab uses 'fixed double spaces' (not sure what they're really called) which can bugger up when using certain fonts. One, is the " ! " [exclamation with fixed space in front and behind]. If you erase that, and replace it with a normal 'space-!-space' it fixes it.

    Hope that helps.
  3. Not quite understanding you there bro. Do you mean this section?



    Code:
    # Results for Actions on Enemies
      EnemyDamage	 = "%s took %s damage!"
      EnemyRecovery   = "%s recovered %s %s!"
      EnemyGain	   = "%s gained %s %s!"
      EnemyLoss	   = "%s lost %s %s!"
      EnemyDrain	  = "Drained %s %s from %s!"
      EnemyNoDamage   = "%s took no damage!"
      EnemyNoHit	  = "Missed! %s took no damage!"
    Otherwise I'm totally lost. I'm no scripter, I just did what I was told with that code snippet in my previous post. Do you mean the % signs in the script?

    Because if not, I'm not noticing any weird looking funky spaces lol!
  4. GibiusMaximus said:
    Not quite understanding you there bro. Do you mean this section?



    Code:
    # Results for Actions on Enemies
    EnemyDamage	 = "%s took %s damage!"
    EnemyRecovery = "%s recovered %s %s!"
    EnemyGain	 = "%s gained %s %s!"
    EnemyLoss	 = "%s lost %s %s!"
    EnemyDrain	 = "Drained %s %s from %s!"
    EnemyNoDamage = "%s took no damage!"
    EnemyNoHit	 = "Missed! %s took no damage!"
    Otherwise I'm totally lost. I'm no scripter, I just did what I was told with that code snippet in my previous post. Do you mean the % signs in the script?

    Because if not, I'm not noticing any weird looking funky spaces lol!
    That's the place! Don't play around with the '%s' at all. Just any odd formatting, like fixed breaks and whatnot. That's what solved it for me. Even in the database... if you're using ATS or Jet's Misc Config, it can add wierd icons due to breaks. Some fields save spaces, so "Cat " [note the space after cat] would display differently than "Cat".
  5. Hmmm, I'll give it a try. Didn't want to accidentally touch the %s, s = scary & scary bits break too easy lmao! I'll try deleting all the spaces & re-adding them etc, I've already done that within the database itself. But it doesn't matter the font, they all keep doing it aside from the official RMVXAce Font VL Gothic I think it's called. We'll see I'll edit if I hit another brick in the wall. :)

    EDIT:

    Nope, still not happening for me. Replaced Monster names etc as well there, still not working out for me. Such a pain.

    Any way to tweak this;



    Code:
    class Window_Base
    alias :process_normal_character_vxa :process_normal_character
    def process_normal_character(c, pos)
    			 return unless c >= ' '
    			 process_normal_character_vxa(c, pos)
    end
    end
    So that it does the same job within the Battle Scenes?

    Also, I'm not using any custom scripts etc. Just the bog standard.
  6. Apologies for double post, decided to fiddle about with the code;



    Code:
    class Window_Base
    alias :process_normal_character_vxa :process_normal_character
    def process_normal_character(c, pos)
    						 return unless c >= '  '
    						 process_normal_character_vxa(c, pos)
    end
    end
    Removing the space in between the apostrophes removes the [] next to Enemies, but brings it back into Item/Technique descriptions. So there goes my brilliant idea haha. I'm so clueless with RGSS. T~T
  7. Weird that you're still getting them. Using that script fixed the font issue for me (pretty sure it's exactly the same). Are you using any other scripts aside from the font change? I stuck this above every other script in the Materials section.
  8. Archeia thanks for that second link. Solved my issue.

    Thanks alot.
  9. GibiusMaximus, apologizing for a double post won't let you get away with a warn. Double posting is against the rules, don't do it.
  10. I'll try those, I had it sorted but now I've got this messed up [?] instead which is even more annoying than the []. I'll Edit in future to save my ass from getting kicked. Derp.

    EDIT:

    Neither of those helped me. I've been using Corbel, and it was working fine last night - then today it just started firing [?] at me. Only custom scripts being used are those suggested as solutions. I've also removed the Save Command from the Menu, but surely that can't be the issue.