• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Terastallization [DBK Add-On] [v21.1]

Resource Terastallization [DBK Add-On] [v21.1] v1.1.5

Just gotta manually change the position in the battle UI code of the plugin.
Well obviously. That's what I said I'm trying to do lol. My question is where is that code?

jrj3XM5.png


I found this code but the circled numbers don't actually move it and idk anything else here that looks like coordinates.

By default these numbers are "4, 0". I set the "0" to "20" and the icon seemed to move to the left but was immediately cut off (you could only see the right half of it). So I tried changing it to "-100" to move it way to the right but then a giant white "=" sign took its place where it originally was and the icon was gone.

So this doesn't seem to be where you can move it around, despite the code looking like it is which makes me very confused.
 
Well obviously. That's what I said I'm trying to do lol. My question is where is that code?

jrj3XM5.png


I found this code but the circled numbers don't actually move it and idk anything else here that looks like coordinates.

By default these numbers are "4, 0". I set the "0" to "20" and the icon seemed to move to the left but was immediately cut off (you could only see the right half of it). So I tried changing it to "-100" to move it way to the right but then a giant white "=" sign took its place where it originally was and the icon was gone.

So this doesn't seem to be where you can move it around, despite the code looking like it is which makes me very confused.
You circled the Y position value (so edit that if you need to change the icons y position) and the starting X position of determining what portion of the graphic to draw. Don't change that value. You need to add/subtract from the value set before the 4, which sets the X position value.

[[path, x, y, ...]]
 
Well obviously. That's what I said I'm trying to do lol. My question is where is that code?

jrj3XM5.png


I found this code but the circled numbers don't actually move it and idk anything else here that looks like coordinates.

By default these numbers are "4, 0". I set the "0" to "20" and the icon seemed to move to the left but was immediately cut off (you could only see the right half of it). So I tried changing it to "-100" to move it way to the right but then a giant white "=" sign took its place where it originally was and the icon was gone.

So this doesn't seem to be where you can move it around, despite the code looking like it is which makes me very confused.
Yes, it is. The coordinates are obviously designed for the default UI.

The base numbers aren't 4, 0. They are @spriteBaseX + specialX + 4, 0. The X coordinates are calculated based on the bitmap base and then adjusted based on which side's databox its on (foe, player). Since youre using a custom UI, I have no idea what these values are, that's something you would know, not me.

The Y coordinates are obviously limited to the size of the bitmap of your databoxes. Again, since youre using a custom UI, idk what the dimensions or values of this would be - that's something you would know. -100 wouldnt make any sense though, regardless. Because if youre setting the icon outside of the bounds of the bitmap, of course it won't show on screen.

Idk how complex your custom UI is (if it's totally rewritten code from the ground up, or simple pallette swaps of the default UI), but it seems its something you must've installed instead of designed, since you dont seem too familiar with the UI code.
 
You circled the Y position value (so edit that if you need to change the icons y position) and the starting X position of determining what portion of the graphic to draw. Don't change that value. You need to add/subtract from the value set before the 4, which sets the X position value.

[[path, x, y, ...]]
I don't understand what you mean. I'm not a coder at all but literally every other part of the base Essentials UI was moved around by simply adjusting a predefined X and Y coordinates.

Which number is the Y position? I circled 2 numbers.

I just want to move the icon slightly to the left and down, if it'll let me do that without getting cut off (for some reason). If I can't do that, then I need to move it way to the right and down. How would I do that?
 
I don't understand what you mean. I'm not a coder at all but literally every other part of the base Essentials UI was moved around by simply adjusting a predefined X and Y coordinates.

Which number is the Y position? I circled 2 numbers.

I just want to move the icon slightly to the left and down, if it'll let me do that without getting cut off (for some reason). If I can't do that, then I need to move it way to the right and down. How would I do that?
The Y value is the first number, the 4. The x value is the addition of the two variables before the 4. I showed you the order of things at the end of my last post..

You can add "+ 15" or something just after "specialX" to see it move the x value.

(Actually going on my computer instead of my phone)
Ruby:
Expand Collapse Copy
pbDrawImagePositions(self.bitmap, [[path, @spriteBaseX + specialX + 15, 4 + 30, 0, type_number * 32, 32, 32]])
If you add + 15 and + 30 in the spots I show here, that will adjust the x value by +15 and y value by +30, respectfully.
 
Last edited:
The Y value is the first number, the 4. The x value is the addition of the two variables before the 4. I showed you the order of things at the end of my last post..

You can add "+ 15" or something just after "specialX" to see it move the x value.

(Actually going on my computer instead of my phone)
Ruby:
Expand Collapse Copy
pbDrawImagePositions(self.bitmap, [[path, @spriteBaseX + specialX + 15, 4 + 30, 0, type_number * 32, 32, 32]])
If you add + 15 and + 30 in the spots I show here, that will adjust the x value by +15 and y value by +30, respectfully.
Thank you very much!! This was incredibly helpful!

With no Tera:
u3kZ0Ug.png


With Tera (before):
VHpSeWz.png


With Tera (after):
AU1sHvB.png


It kept getting cut off if I put it anything at all to the left so I just went with far to the right and think it looks good there too!

Thank you so very much!!
 
Hello, I am having an issue with this plugin. Mainly that the tera button on battle doesn't appear. I've made sure terastallization is enabled in debug, that I have the orb and it is full and has infinite charges, and ensured the pokemon has a tera type. the mega, dynamax and z-move buttons do appear and work (haven't tested ultra burst).

I have tried deleting the PluginSettings file, recompiling the game, and re-installing the terastallization plugin, and starting a new save, but no luck. I read here that Turdus_V had a similar issue, but I don't know how to refresh plugin scripts (I am new to Essentials and RPG Maker), or what exactly do I have to do with the meta file, because my game does seem to detect this plugin.
Here is what appears in the console when it compiles. I have no clue if this will be helpful, but I'll put it here just in case:


Code:
Expand Collapse Copy
[0;33m*** Checking plugins ***[0m

[0;33m  -> [0mCompiling plugin scripts...[0;32mdone[0m
[0;33m  -> [0mLoaded plugin: [0;35mv21.1 Hotfixes[0m (ver. 1.0.9)
[0;33m  -> [0mLoaded plugin: [0;35mGeneration 9 Pack[0m (ver. 3.3.3)
[0;33m  -> [0mLoaded plugin: [0;35mModular UI Scenes[0m (ver. 2.0.9)
[0;33m  -> [0mLoaded plugin: [0;35m[MUI] Improved Field Skills[0m (ver. 1.0.
1)
[0;1;33mWARNING: Plugin 'Bag Screen w/int. Party' may not be compatible with Es
sentials v21.1. Trying to load anyway.[0m
[0;33m  -> [0mLoaded plugin: [0;35mBag Screen w/int. Party[0m (ver. 2.5.0)
[0;33m  -> [0mLoaded plugin: [0;35m[MUI] Pokedex Data Page[0m (ver. 2.0.3)
[0;33m  -> [0mLoaded plugin: [0;35m[MUI] Enhanced Pokemon UI[0m (ver. 1.0.6)
[0;33m  -> [0mLoaded plugin: [0;35mDeluxe Battle Kit[0m (ver. 1.2.9)
[0;33m  -> [0mLoaded plugin: [0;35m[MUI] Improved Mementos[0m (ver. 1.0.4)
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Animated Trainer Intros[0m (ver. 1.
0.1)
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Dynamax[0m (ver. 1.1.3)
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Improved Item AI[0m (ver. 1.0.2)
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Terastallization[0m (ver. 1.1.5)
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Animated Pokémon System[0m (ver. 1.
1.1)
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Z-Power[0m (ver. 1.1.1)
[Advanced AI] Battle::AI.launcherBattle? defined: true
[Advanced AI] Hotfixes loaded: Wonder Launcher, Item AI, Type Effectiveness
═══════════════════════════════════════════════════
[AAI] Advanced AI System v3.0.0 - DEBUG MODE ACTIVE
[AAI] Console output is working!
[AAI] Switch Intelligence Handler will be registered by [002] Core.rb
═══════════════════════════════════════════════════
[0;33m  -> [0mLoaded plugin: [0;35mAdvanced AI System[0m (ver. 1.5.7)
[0;33m  -> [0m[Core] Advanced AI System v3.0.0 loaded successfully!
[0;33m  -> [0m[Core] Core AI integration loaded with switch intelligence handl
er
[AAI Core] ✅ Switch Intelligence Handler registered!
[AAI Core] ✅ Replacement selector override active!
[AAI Core] Ready for battles with skill-based switch logic
[0;33m  -> [0m[Scorer] Move Scorer loaded
[0;33m  -> [0m[Memory] Move Memory System loaded (Reborn-inspired)
[0;33m  -> [0m[Threat] Threat Assessment System loaded
[0;33m  -> [0m[Doubles] Doubles Coordination System loaded
[0;33m  -> [0m[Field] Field Effects System loaded
[0;33m  -> [0m[Role] Role Detection System loaded (7 roles)
[0;33m  -> [0m[Switch] Switch Intelligence loaded
[0;33m  -> [0m[Dynamax] Dynamax Intelligence loaded (DBK_005)
[0;33m  -> [0m[Tera] Terastallization Intelligence loaded (DBK_006)
[0;33m  -> [0m[Hooks] Advanced AI Mechanics Hooks registered
[0;33m  -> [0m[Compatibility] DBK hasDynamax? compatibility patch applied
[0;33m  -> [0m[Compatibility] DBK Dynamax compatibility patch applied
[0;33m  -> [0m[Compatibility] DBK Pokemon#tera_type compatibility patch applie
d
[0;33m  -> [0m[Compatibility] DBK Battle::Battler#tera_type compatibility patc
h applied
[0;33m  -> [0m[Compatibility] DBK Terastallization compatibility patch applied
[0;33m  -> [0m[Compatibility] DBK pbCanTerastallize? compatibility patch appli
ed
[0;33m  -> [0m[Compatibility] DBK Compatibility patches loaded
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Raid Battles[0m (ver. 1.0)
[0;33m  -> [0mLoaded plugin: [0;35m[DBK] Enhanced Battle UI[0m (ver. 2.0.9)
[0;32m  -> [0m[0;32mSuccessfully loaded 18 plugin(s)[0m

[0;33m*** Checking game data ***[0m

[0;33m  -> [0mCompiling PBS file [0;36mtown_map.txt[0m....[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mmap_connections.txt[0m...[0;32mdone
[0m
[0;33m  -> [0mCompiling PBS file [0;36mtypes.txt[0m....[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mtypes_stellar.txt[0m....[0;32mdone[
0m
[0;33m  -> [0mCompiling PBS file [0;36mabilities.txt[0m......[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mabilities_Gen_9_Pack.txt[0m....[0;32
mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mmoves.txt[0m...........[0;32mdone[0
m
[0;33m  -> [0mCompiling PBS file [0;36mmoves_Gen_9_Pack.txt[0m....[0;32mdon
e[0m
[0;33m  -> [0mCompiling PBS file [0;36mmoves_dynamax.txt[0m....[0;32mdone[
0m
[0;33m  -> [0mCompiling PBS file [0;36mmoves_terastal.txt[0m....[0;32mdone
[0m
[0;33m  -> [0mCompiling PBS file [0;36mmoves_zpower.txt[0m....[0;32mdone[0
m
[0;33m  -> [0mCompiling PBS file [0;36mitems.txt[0m..........[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mitems_Gen_9_Pack.txt[0m.....[0;32mdo
ne[0m
[0;33m  -> [0mCompiling PBS file [0;36mitems_Gen_9_Pack_TM.txt[0m......[0;3
2mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mitems_dynamax.txt[0m....[0;32mdone[
0m
[0;33m  -> [0mCompiling PBS file [0;36mitems_mark_charm.txt[0m....[0;32mdon
e[0m
[0;33m  -> [0mCompiling PBS file [0;36mitems_raid_bait.txt[0m....[0;32mdone
[0m
[0;33m  -> [0mCompiling PBS file [0;36mitems_terastal.txt[0m....[0;32mdone
[0m
[0;33m  -> [0mCompiling PBS file [0;36mitems_zpower.txt[0m....[0;32mdone[0
m
[0;33m  -> [0mCompiling PBS file [0;36mberry_plants.txt[0m....[0;32mdone[0
m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon.txt[0m............[0;32mdone
[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_base_Gen_9_Pack.txt[0m.....[
0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_forms.txt[0m.......[0;32mdon
e[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_forms_Gen_9_Pack.txt[0m.....
[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_forms_gmax.txt[0m....[0;32md
one[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_forms_pikachu_caps.txt[0m....
[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_metrics.txt[0m............[0
;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_metrics_Gen_9_Pack.txt[0m....
.[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_metrics_female.txt[0m....[0;
32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_metrics_forms.txt[0m.....[0;
32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mpokemon_metrics_gmax.txt[0m....[0;32
mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mregional_dexes.txt[0m...[0;32mdone[
0m
[0;33m  -> [0mCompiling PBS file [0;36mribbons.txt[0m.....[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mencounters.txt[0m......[0;32mdone[0
m
[0;33m  -> [0mCompiling PBS file [0;36mtrainer_types.txt[0m....[0;32mdone[
0m
[0;33m  -> [0mCompiling PBS file [0;36mtrainer_types_animated.txt[0m.....[0
;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mtrainers.txt[0m....[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mbattle_facility_lists.txt[0m........
[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mmetadata.txt[0m....[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36mmap_metadata.txt[0m....[0;32mdone[0
m
[0;33m  -> [0mCompiling PBS file [0;36mdungeon_tilesets.txt[0m....[0;32mdon
e[0m
[0;33m  -> [0mCompiling PBS file [0;36mdungeon_parameters.txt[0m....[0;32md
one[0m
[0;33m  -> [0mCompiling PBS file [0;36mphone.txt[0m....[0;32mdone[0m
[0;33m  -> [0mCompiling PBS file [0;36madventure_maps.txt[0m....[0;32mdone
[0m
[0;33m  -> [0mCompiling animations.......[0;32mdone[0m
[0;33m  -> [0mProcessing 69 maps....[0;32mdone[0m
[0;33m  -> [0mProcessing common events...[0;32mdone[0m
[0;33m  -> [0mSaving messages...[0;32mdone[0m
[0;32m  -> [0m[0;32mSuccessfully compiled all game data[0m

Apart from the main issue, I also tried to force tera by using the in-battle debug menu, but i got this exception on the console:

Ruby:
Expand Collapse Copy
Exception: ArgumentError Message: Invalid argument passed to method.Expected nil to be one of [Symbol, GameData::Type, String], but got NilClass.

and this on the pop-up
Code:
Expand Collapse Copy
=================

[2026-01-30 13:53:53 +1100]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: ArgumentError
Message: Invalid argument passed to method.
Expected nil to be one of [Symbol, GameData::Type, String], but got NilClass.

Backtrace:
015:Validation:29:in `validate'
100:GameData:100:in `get'
[[DBK] Terastallization] [010] Battle_Scene.rb:86:in `draw_special_form_icon'
[[DBK] Z-Power] [009] Ultra Burst Mechanics.rb:473:in `draw_special_form_icon'
192:Battle_Scene_Objects:295:in `refresh'
[Deluxe Battle Kit] [008] Databox Styles.rb:193:in `refresh'
[[DBK] Animated Pokémon System] [007] Substitute Doll.rb:59:in `block in pbRefreshEverything'
[[DBK] Animated Pokémon System] [007] Substitute Doll.rb:53:in `each'
[[DBK] Animated Pokémon System] [007] Substitute Doll.rb:53:in `each_with_index'
[[DBK] Animated Pokémon System] [007] Substitute Doll.rb:53:in `pbRefreshEverything'

=================

After this happens however, the battle continues as normal with no issue, with the pokemon terastallized. I have no clue why this happens, or if its related. Any help is greatly appreciated.
 
Last edited:
Back
Top