GTBS v1.5.1.4 - A FFT Styled Battle System (5/19/2010)

Gubid wrote:
I have absolutely no requirement to the SDK, I just have it in the demo to show that it is compatible if you need to use it for other scripts. As part of that, where to place it to ensure that it doesnt cause issues with my stuff.

I am looking into the Enh Equipment thing.


Ah Thank you. I had no idea it didn't require it. Might want to include that in the post. Thanks for letting me know :)
OK, new demo for you all. This is final candidate!

... downloads updated

I also included a patch (in the XP demo) for that mini map script by squall .

If you have any issues with the new demo, please let me know immediately!

I have fixed the Enhanced Equipment stuff and added some new features for equipment affecting skill ranges. This allows you to give them special equip that will enhance their ability to cast skills via range, reduced min range, and field. Couple other new features, but they are pretty small. See the demo for information on them.
Ran headfirst into this:

Image

When I loaded up the first battle.


And may I suggest when making equipment that can modify skill ranges to make a true/false for skill ranges being modifyable/unmodifyable? That way spell type skills will be effected while skills designated to be weapon skills or self-effect skills have their ranges unmodified.
Hmm, I even retested to make sure it wasnt a problem. Oh well, here is a new demo that should resolve the issue. For me it occurs randomly, no everytime.

...downloads updated

Sorry that I missed it.
I'm still getting the same error. @.@

What's causing/caused the error?
OK, I have found the problem. The here is the updated demo that resolves it.

XP 1.5.1.4
VX 1.5.1.4
Alright, no more Insta-Crash superbugs. I'm testing other things and seeing if/how they work now.

EDIT: Multiple attacks from Guillaume777's Multi-Slot script don't seem to be working. I don't know why as you have a patch which seems designed to make it work, but that's my observation.
NINJA.

Hey, just dropping by to say excellent work on the latest version of your GTBS on both platforms. Mousie's finally working perfectly on XP and I love the ring menu on VX, fits the very compact graphics perfectly!

Quick question, by the time the final build is out will both VX and XP versions carry the same features?
Just FYI, in case you didn't notice this paragraph, Gubid. :)
"about Enhanced Equipment" Spoiler
Notes for scripters that want to create patches.

This script creates new weapons in the database, with new IDs of course. I use this technique because every enhanced weapon needs to be unique in order to store different sets of attached enhancements.
Since elements are copied during the duplication process, all the scripts that use element-tagging should work fine.
On the other hand, all the scripts that use a configuration with weapons' IDs written in some arrays cannot work properly without a patch. However the patch is usually simple. Infact, all the enhanced weapons contain a value "ref_id" that is the ID of the database weapon from which the enhanced weapon was generated. When the script checks if the ID of a weapon is included in some array, it needs to check if the weapon is an Enhanced Weapon (by using is_a? for example) and if this is the case, it must verify if ref_id (and not id) is included in that array.

If you need a patch you'd better ask to the author of the script to be patched, because he(she) knows where to insert the changes needed better than me.
I get this error when going into battle.
Image
Gameguy, are you using the one on the front page or the MOST RECENT 1.5.1(Which is called 1.5.1.4)? The latest link has the fix.
His error is coming from something else. In particular its in the ai for the movement decision for an enemy or neutral char. I would question what skills etc are setup for the char/enemy? That is all that I can think would trigger the error.

Also, thanks Charlie, I got it fixed already. I had partial integration already, just didn't have it for armors.

Sabao, yes both XP and VX have the same feature base and match code EXACTLY! This makes supporting it way easier. Although it is still nice to have you guys report what version you are using so that I can ensure I do the appropriate testing to ensure it is fully corrected.

Az, I haven't had time to check into the multislot script not working. I will let you know when I have had a chance to review it.
I'm using 1.5.1.4. I made a new map, added 3 enemy events named enemy1, enemy2, enemy3, and enemy4. Did the same with actor events. Then placed a normal event on the map that initiated a battle with 2 ghosts. Right as the battle started it crashed.

EDIT: I havent configured anything. I downloaded the new one and just did the above.
[minor bugs]
hey gubid, I noticed that occasionally the game freezes during an enemy's turn. The game doesn't really "freeze" as the mouse still scrolls and you can double click on various battlers to make their help windows pop up, but otherwise the game just stops moving.

(I'm in TEAM mode, by the way) What I was more concerned about was wondering how to make the cursor go straight to the active battler in phase 1 during the players turn, instead of leaving the cursor on the actors tile and leaving it up to the player to press B to bring up their phase 1 window.

And speaking of which, why is B the key that selects the active battler instead of C? on the keyboard, B is generally the esc key and C is usually the spacebar or enter key. I don't think this was done intentionally, but after pouring over the phase_0 code I can't find the problem anywhere.

tldr Can you test out the battle system on Team Mode and look over the phase_0 code? Something isn't working quite right over there.
Sammael,
Looking into it..

gameguy,
I have tried and tried and tried to duplicate that problem, but I cannot get it to occur. Are you using XP or VX? Perhaps share your demo that has the issue so I can look into it closer.
Just talk to the girl to initiate the battle. I've ran through it a few times. Sometimes it happens at the beginning, or after a few turns. Or right before the battle starts.
http://www.sendspace.com/file/qkp2jh
hey gubid

replace the last bit of tbs_phase_0 with this. It should fix the problem with the poor Team based navigation. It jumps the cursor to the current active battler if nothing is selected, and brings up the active battlers menu if the active battler is selected. Line 2369 I believe.
  1.  
  2.     if Input.trigger?(Input::C)
  3.       unless @selected == nil
  4.         if $game_system.cust_battle == "TEAM"
  5.           if @selected == @active_battler
  6.             @windows["actor"].active = true
  7.             @windows["actor"].visible = true
  8.             @windows["help"].visible = true
  9.             @tbs_phase = 1
  10.             @active_battler.blink = false unless @active_battler == nil
  11.             clear_tr_sprites
  12.             return
  13.           end
  14.           unless @selected.is_a?(Game_Enemy) or $game_system.acted.include?(@selected)
  15.             @tbs_phase = 1
  16.             @active_battler.blink = false unless @active_battler == nil
  17.             set_active_battler(@selected)
  18.             clear_tr_sprites
  19.             return
  20.           else
  21.             for actor in actors + neutral
  22.               if $game_system.acted.include?(actor)
  23.                 next
  24.               else
  25.                 @cursor.x = actor.x
  26.                 @cursor.y = actor.y
  27.               end
  28.             end
  29.           end
  30.         elsif $game_system.cust_battle == "ATB" and @selected == @active_battler
  31.           @windows["actor"].active = true
  32.           @windows["actor"].visible = true
  33.           @windows["help"].visible = true
  34.           @tbs_phase = 1
  35.           clear_tr_sprites
  36.           return
  37.         else
  38.           unless @active_battler == nil
  39.             Sound.play_decision
  40.             @cursor.x = @active_battler.x
  41.             @cursor.y = @active_battler.y
  42.             clear_tr_sprites
  43.             return
  44.           end
  45.         end
  46.         clear_tr_sprites
  47.         return
  48.       else
  49.         Sound.play_decision
  50.         if $game_system.cust_battle == "TEAM"
  51.           for actor in actors + neutral
  52.             if $game_system.acted.include?(actor)
  53.               next
  54.             else
  55.               @cursor.x = actor.x
  56.               @cursor.y = actor.y
  57.               @windows["actor"].active = true
  58.               @windows["actor"].visible = true
  59.               @windows["help"].visible = true
  60.               @tbs_phase = 1
  61.             end
  62.           end
  63.         end
  64.         unless @active_battler == nil
  65.           @cursor.x = @active_battler.x
  66.           @cursor.y = @active_battler.y
  67.         end
  68.         clear_tr_sprites
  69.         return
  70.       end
  71.     end
  72.   end
  73.  
Expand to see the code.


Also, the name is Untra. not sammael.
Hi !

How can i act on the extra troops ? I can hurt, change or other (with event) on the 8 monsters registred by the game but i can't do the same thing on the extra troops :/

It is possible to have a larger image animation supported by the script?
Is anyone else having this trouble with enemy skills? If you assign a skill to an enemy (and remove Attack as an option), it will constantly retreat instead of approaching to use the skill unless the range is greater than 1. So, if an enemy has an skill that requires being close to the player to use, the enemy will never approach to use it.
I also have an issue : when i give a monster a move range = 0 (i don't want him to move) , the game crashed .

It is at these lines in Scene_Battle_TBS :
#clones move info so it doesnt have to be recalculated
move_positions = @move_positions.clone
routes = @route.clone
workaround: surround the event with blank events and set their event names as "block" or soemthing.
This whole thread just makes me reflect how much complex yet flawless FFT battle system was.
Really great script, man! Congrats!

I have a question about it: there is a way to take off the "Status" option in the battle menu?

Thx! :D
I'm having a problem with this. For some reason, it works perfectly on one map, but when I try it on a second map, it automatically teleports to map 004 upon victory. If I remove map 004, then VX crashes, saying it can't locate map 004. Even when I copy my map into the demo version, I get the same problem. WTF is going on?
Eriol Clowphengire wrote:
workaround: surround the event with blank events and set their event names as "block" or soemthing.


Thanks for trying but this is not a solution ...
If i put events like this , the characters cannot approach the boss .

Someone succeed to put a monster that doesn't move ?

@kingjing : check your setup !
I already solved my old question, about the Status thing, thanks!

But now...

pariah247 wrote:
Is anyone else having this trouble with enemy skills? If you assign a skill to an enemy (and remove Attack as an option), it will constantly retreat instead of approaching to use the skill unless the range is greater than 1. So, if an enemy has an skill that requires being close to the player to use, the enemy will never approach to use it.


Well, I'm having this same problem... Are we making something wrong? (Probably? :P)
But now...

pariah247 wrote:
Is anyone else having this trouble with enemy skills? If you assign a skill to an enemy (and remove Attack as an option), it will constantly retreat instead of approaching to use the skill unless the range is greater than 1. So, if an enemy has an skill that requires being close to the player to use, the enemy will never approach to use it.


Well, I'm having this same problem... Are we making something wrong? (Probably? :P)[/quote]

Anyone figure this out yet? Enemies that use skills are useless in my game at this point because they just continually retreat.
Pariah, have you tried adjusting the AI difficulty settings? I understand that the reason they dont 'approach' is simply because they are trying to guard themselves by maintaining their attack distance needed to perform the attack away. As in, if you dont move then they should still come in the following turn to attack. I am actually going to be re-releasing a new version of 1.5 which corrects many of these little annoyances with the engine. However again, like 1.5, I dunno when that will be.
First of all, thanks for this great script
Gubid,you are a genius!!
but...
I got a problem

The problem is this:
When I use $ scene.set_character ("enemy", 1,11,10,0)
Always error
(GTBS VX v1.5.1.4)


Image

Why is this happen?
set actor is successful
set enemy always fail

ps.V1.4 dont have this problem

another problem is...
when I use team mode in my game
after maybe two or three turns,enemy will stock
and I cant control the game(even use esc)
Hmmmm... Two question...

How would I go about making 10 actors in one battle. Also, does the GTBS come with a multiple player script?

Thank you and have a nice day!

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=32656