![]() |
|
+- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: Development Discussion (https://www.save-point.org/forum-17.html) +--- Thread: Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
|
RE: What's up, RMers? - DerVVulfman - 10-04-2026 (10-03-2026, 04:20 AM)DerVVulfman Wrote: The second a sort of RMXP scripts database rewrite based on the old RMXP SDK. But for that, I am using kyonides's HiddenChest system as it is using a much newer version of Ruby so it is definitely more compliant with newer versions of RUBY. The old SDK focused mostly on initialization and the main update methods in the scene classes... but ignored much anything else. LOTS to break down where would-be scripters could comparatively attach code much easier. Funny thing when you actually work to slice and dice the default scripts that the original team of the RMXP SDK of 2006-2008 didn't finish break into smaller sections. I found this in Scene_Battle.
def start_phase4
I'm sorry. The comment/description says the party command window is being ENABLED? # Shift to phase 4 @phase = 4 # Turn count $game_temp.battle_turn += 1 # Search all battle event pages for index in 0...$data_troops[@troop_id].pages.size # Get event page page = $data_troops[@troop_id].pages[index] # If this page span is [turn] if page.span == 1 # Clear action completed flags $game_temp.battle_event_flags[index] = false end end # Set actor as unselectable @actor_index = -1 @active_battler = nil # Enable party command window @party_command_window.active = false @party_command_window.visible = false # Disable actor command window @actor_command_window.active = false @actor_command_window.visible = false HAHAHA! Yeah, whoever was translating the original Japanese comments to English.... missed a spot.Now when I say I am breaking down the scripts... er...
def make_skill_action_result
# Get skill @skill = $data_skills[@active_battler.current_action.skill_id] # If not a forcing action unless @active_battler.current_action.forcing # Exit if unable to use due to SP running out return if make_skill_action_result_blocked? end # Apply cost make_skill_action_cost # Refresh status window @status_window.refresh # Set Skill/Item actions make_object_action_effects(@skill) # Apply skill effect make_skill_action_effect end I invite you to look at the original method from RPGMaker's Scene_Battle. Its a bit larger. For this, I made several smaller methods
Being broken into smaller sections makes adding new content (script addons) easier as rewriting the base method will likely not be needed. The old RMXP SDK had a couple of good ideas; standarization on script method names, smaller and more manageable methods which would allow more compliance with other works, a means to optimize the code so systems automatically update without needs to be called. They just sucked at marketing as they kept making updates after updates after updates, so when you made your SDK script it was immediatly broken by the NEXT version. I'm gong to work a bit on this... and see what tricks I can retrieve whilst keeping the XP naming standards. .... this is just one of the many things I have been working upon... RE: What's up, RMers? - DerVVulfman - 10-06-2026 Man... I still have a ways to go on breaking the RMXP default scripts into smaller modules. For Game_Battler, I so need to look at how scripts that alter the actor's equipment (slots, two-handed weapons) and see what they #$%^d up with the stats methods. And then I want to see how far I can get in making the actual damage inflicting methods even more diced. Anything to do with Element Rates... I want to attack as some individuals have shown a desire to have a different way to handle element-based damage. So that is going to be broken into individual chunks. And any overly lengthy methods need to be taken down in size and reduced as someone may wish to add code IN THE CENTER which can't be done without whole rewrites. Any of the passables, the massive 'refresh' and 'update' in Window_Message. Heck, I'm looking at 'command_111' in the Interpreter class as its HUMONGOUS and handles the conditional branch system. Imagine being able to add new code there if someone creates an adaptive script call to add more conditional branch options. But yeah. I did get a lot of work done. But I have more work to do. RE: What's up, RMers? - DerVVulfman - 10-06-2026 My endeavor to more SDK the old RPGMaker SDK and 'slicing' it into smaller modules continues... AND THIS ... is now the size of my refresh method in Window_Message
#--------------------------------------------------------------------------
* I highlighted methods I created to make it modular...# * Refresh #-------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.color = normal_color @x = @y = 0 @cursor_width = 0 # Indent if choice if $game_temp.choice_start == 0 @x = 8 end # If waiting for a message to be displayed if $game_temp.message_text != nil @text = $game_temp.message_text refresh_text end refresh_choices refresh_number_input end And the ORANGE part IN that method that draws the actual message is this!
#--------------------------------------------------------------------------
# * Refresh Message Text #-------------------------------------------------------------------------- def refresh_text # Control text processing begin last_text = @text.clone @text.gsub!(/\\[Vv]\[([0-9]+)\]/) { $game_variables[$1.to_i] } @text.gsub!(/\\[Ss][Ww]\[([0-9]+)\]/) { $game_switches[$1.to_i] } end until @text == last_text @text.gsub!(/\\[Nn]\[([0-9]+)\]/) do $game_actors[$1.to_i] != nil ? $game_actors[$1.to_i].name : "" end # Change "\\\\" to "\000" for convenience @text.gsub!(/\\\\/) { "\000" } # Change any other message code to special command code text_substitute # Get 1 text character in c (loop until unable to get text) while ((c = @text.slice!(/./m)) != nil) # Return to original text if \\ c = "\\" if c == "\000" # Skip if text actively replaced with special codes next if text_replace?(c) # Draw text self.contents.draw_text(4 + @x, 32 * @y, 40, 32, c) # Add x to drawn text width @x += self.contents.text_size(c).width end end Doesn't that look sexy? Yes, the YELLOW highlighted area does show I added a \sw[#] message code to let you get switches (true/false) just the same as using \v[#] to get the value of variables But more than that, the PINK areas go to these two new methods...
#--------------------------------------------------------------------------
-and-# * Convert message code into a command code (eg \g into \002) #-------------------------------------------------------------------------- def text_substitute @text.gsub!(/\\[Cc]\[([0-9]+)\]/) { "\001[#{$1}]" } @text.gsub!(/\\[Gg]/) { "\002" } @text.gsub!(/\\[Bb]/) { "\010" } @text.gsub!(/\\[Ii]/) { "\011" } end
#--------------------------------------------------------------------------
# * Determine if actively replaced codes in text #-------------------------------------------------------------------------- def text_replace?(c) return true if text_replace_bold(c) return true if text_replace_italic(c) return true if text_replace_color(c) return true if text_replace_gold(c) return true if text_replace_newline(c) return false end And what does this mean? These two methods are open to adding MORE WINDOW COMMAND CODES. I already added \b for Boldfaced text and \i to make text italicized. And yep, I have the feature that changes the color of text within its 'own' individual method if anyone wants to adapt it to use HEX codes or whatever. ITS THAT MODULAR AND SEXY! I could add more options like changing the font or font size... But no. And if I wanted to add \u for underline, \o for outline or \s for Strikethru, I would need to include a font script to add those features as they are not engine native. But yeah, adding command codes is a tad easier now. RE: What's up, RMers? - DerVVulfman - 10-07-2026 A bit of a victory as this has been bugging me for some time. Now released is NEAR FANTASTICA'S V1 PATH FINDING - FIXED, a script that is over 95% the original work of Jaime Webster better known as Near Fantastica. The original script had an issue that was apparently unknown, unrecorded and undiagnosed since its creation in 2005. The issue pertained to how the script created a path by divining one from thedestination and sought out the target event that is to move. And with that, it did not properly account for passable tiles when generating a course in reverse. If a tile only allowed movement to the west/right and the destination is to the left of that tile, the original design which would create a path left-to-right would look at the pathway restricted tile with no problem. Aye, that was a problem that needed addressing. Fortunately, it only required a few minor additions and changes to code in the method that 'makes' the path. This has been a nuisance for me since it was identified last year with my adaptation of Near Fantastica's Squad Movement script. It is used in my Lycan ABS to allow enemy targets hunt their prey despite obstacles. And more. And it is done. I'll look at his Version 2 script...... LATER! RE: What's up, RMers? - DerVVulfman - 10-08-2026 I said for the past few days how I was working on a revised RMXP scripts package, a collection of default scripts that are:
Well, here it is. Well in its BETA state.
SDK Modulized.rar (Size: 923.04 KB / Downloads: 122)
I welcome anyone to take a look at it and TRY to beat it up using nothing but the default database and event features within the stock system. Due to its reconstruction, I will say it may not work with a number of existing scripts. But unlike how the past RMXP SDK kept rolling out new versions, I want to make a single functioning release based on RMXP and RM SDK naming standards and perhaps some coding techniques of latter engines. For some script designers, I have of course thought ahead and set up party size within its own module and broke the message system into smaller units which could make it easier for... gasp... even a multiple window text system. And I indeed did target the Interpreter class whereby even the conditional branch system could be toyed with at a later junction. BUT AGAIN... see what you can do with this system. Take a look at the default options, and try everything that I may have missed that is part of the original. Fresh eyes.... This is sorta like the last sub-project I wanted to work on until.... other stuff. RE: What's up, RMers? - DerVVulfman - 10-10-2026 Well, I just received my first bug report on the modularized scripts! I knew there had to be something SOMEWHERE. " But then nobody's perfect... almost nobody." - Lex Luthor in Superman © 1984 (Gene Hackman) It was a simple oversight in the code that breaks down the massive [Control Variable] method in the Interpreter class. I neglected to pass a 'value' parameter (yes, that's its name) into one of the method that TAKES the value and lets them be applied to game variables. So if anyone had issues with variables... it should now be fixed. That issue has since been corrected and the updated edition is found below:
SDK Modulized 2.rar (Size: 923.39 KB / Downloads: 162)
But one repair doesn't mean its foolproof. Somehow, somewhere, someone is making a better fool! Continue testing anyway!Meanwhile, the new edition went and sliced up more code, made some methods shorter, and added some new methods where the speed of animations and movement are processed. Why would one want to make small cuts where animation speed is processed? All aboard the TRAIN of THOUGHT... CHOO CHOO!!!Well, I came up with something kinda neat. And I wanted it to be easily added as a script plugin without altering the existing base mechanics. And that is a means to allow the animation and movement speed of field map sprites to remain (relatively) constant regardless of the frame rate that a game developer sets their system.That is to say....
The addendum script I concocted can re-adjust the character animation and movement speed BACK to practically normal! It does this while allowing the actual processing speed to continue. So all math and reactions can run at 120 and your characters move as normal. STILL... it doesn't affect battle animations nor the speed of windows graphic fluctuations (the battle arrow flashes, the cursor rectangle, etc). When I mentioned this achievement, I was sorta reminded by some that newer engines 'divide' the graphics engine that renders content as separate from the processing engine that handles the in-game logic. Ergo, two separate speed values where one can set graphics to update at XXX while processing everything at YYY. But my method works with the current mechanics of RPGMaker XP to VXAce. No, I didn't make any VX or VXAce editions though I could. Still, I think what I have planned for release will be greatly appreciated. And having a system to permita generally static movement speed with our current engine will suffice until Son_Rukiri releases his alternative RPGMaker XP engine and Editor which indeed utilizes separate logic and framerate speed values: His latest posting of the WIP here
RE: What's up, RMers? - DerVVulfman - 10-13-2026 Still awaiting feedback on the new Modularized SDK project. Still... so far so good. No apparent issues as yet. Meanwhile, a request has me busy. Because of the nature of the type of combat requested, I am revisiting a 2-decades old Japanse script site that has folded operations 15 years ago. Thank you Internet Archive. Certain scripts from that site have been translated to a degree, but not to my preferred standard. In my years of RMing, I've seen where some individuals would just... erase the comments. And in other cases, I've seen incorrect or partial translations. I know some people recommend DeepL for translations, yet Google Translate (omg) seems to translate content from Japanese into the same grammatic structure as what exists in default RPG Maker scripts. I am using BOTH to get the best translation possible. For this, I have translated three Sub-Libraries akin to the RMXP MACL (Method and Class Library), the main battlesystem, the battlesystem AT bar extension, a battle speed extension script, and a script 'titled' to allow customization of spell cooldowns but also acknowledges and creates cooldowns for actors, enemies and STATES. Oh, yeah... you got SLOWED dude! This is just a smattering I did, and I did the battlesystem AT bar extension solely because ... I wanted to be complete even though AT bars are not what the requester wanted. But I needed... NEEDED... to get that out of the way first. The FUN stuff is next! RE: What's up, RMers? - Ace_V - 10-13-2026 Not sure if it's just me, but the set variable function causes a crash? Tried a basic variable test. Had one NPC say: Code: The value of the variable is \V[00001]Which worked well. Made a second NPC that would alter said variable Code: "\c[4]I just set the variable to\c[0] four!"but talking to it caused this error: Code: Script '> Interpreter 4' line 148: NameError occurred.RE: What's up, RMers? - DerVVulfman - 10-13-2026 Sorry. Looks like you are still testing the prior/older version. Line 148 does not have 'value' in its line of code.
#--------------------------------------------------------------------------
The line highlighted in yellow is line 148 in the updated project. It doesn't reach any lines within the Case...End block that has any value variable yet.# * Control Variables for processing group data # value : value #-------------------------------------------------------------------------- def command_122_group(value) # Loop for group control for i in @params[0] .. @params[1] # Branch with control case @params[2] when 0 ; $game_variables[i] = value # substitute when 1 ; $game_variables[i] += value # add when 2 ; $game_variables[i] -= value # subtract when 3 ; $game_variables[i] *= value # multiply when 4 ; $game_variables[i] /= value if value != 0 # divide when 5 ; $game_variables[i] %= value if value != 0 # remainder end # Minimum/maximum limit check $game_variables[i] = -99999999 if $game_variables[i] < -99999999 $game_variables[i] = 99999999 if $game_variables[i] > 99999999 end end And I just created the same set of lines in a new NPC exactly as you described and received no error. Meanwhile, another script down... the IMPORTANT one with a gauge. In fact, I performed a bit of negligence repair to the original script.
SKIN = "CPSynthe" # スキン
The author of the script 'disabled' a feature because it was an incomplete system. It was set up so moving token icons only flowed one way across the screen. However, the author did intend to allow icons to move vertically, upwards and downwards.#TYPE = 1 # アイコン進行方向 (1:→, 2:↑, 3:↓) X = 16 # X 座標 Y = 64 # Y 座標
SKIN = "CPSynthe" # Skin
Yeah.... Two verticals but only one horizontal direction? Laaaaame. Now, the reference icons can go in all four directions, which ever direction the game developer wishes. IT WASN'T HARD!!!!TYPE = 1 # Icon Direction (0:→, 1:←, 2:↑, 3:↓) X = 16 # X Coordinates Y = 64 # Y Coordinates ..........the next script.... is the harder one. RE: What's up, RMers? - DerVVulfman - 10-14-2026 I am about to die... ![]() First off... that script I said yesterday would be the hard one to translate and work upon? Well, I just spent 10 hours translating all the content, repeatedly testing the "Element Tagging" that was originally in Japanese to ensure everything functioned, and REPAIRED STUFF!!!!! One of the features was to allow for the prevention of selected skills from being usable unless the caster was blessed with (or inflicted with) a defined status effect. Indeed, the original script author intended for developers to do things like... "You can only cast ICE if you are inflicted with VENOM state." ... which does sound weird. But after some investigation in this 1000 line monstrosity from 2006, I found the issue and fixed it. Testing-wise, I had to determine what worked with the intended battlesystem in the request. Surprisingly, quite a lot worked fine. Just a couple of things that are a no-go. This single system's version of "Skills that use HP" is IMHO garbage. It allows you to use either SP 'or' HP to be used by a skill. What is in use in the current project allows BOTH. WHY THE LIMIT, GIRLFRIEND??? One of the FUN additions in this monstrosity was the Chained Skills feature. Seriously, girlfriend needed to use other names for variables... but for compatability with her other stuff, I can't change em. What is a chained skill? As I said, it works with Element tagging. So if I made an element named "Chain7", it would look at the element, see the '7' at the end. And after I use a weapon or skill that has that element, it will immediately fire off the FIRE spell right after. Yes,, if I applied that element to Skill #7 Fire, it would INDEED keep casting and firing off the fire spell until the caster ran out of SP! HIGH-larious. Now the thing about the chain effect is the part that got me ticked off....REALLY ticked off... ![]() The notes I translated that talked about the Chained feature understandably said "You can only chain to skills that your actor has already learned." Okay.... that makes sense. But then it said, there were three scripts that can be used with this in order to bypass that requirement. OH REALLY? ![]() One of them was called ExpansionAX. Well, damn. Her site from 2006 lost that because the internet archive didn't catch that one in time. Another script that worked was called SuperEX “Counterattack”. Sounds badass! But yep, that one had a dead link too. So the last hold out was... A freakin 2400 line battlesystem written and abandoned in betamode in 2003. ME at the time
So here I was, already hip deep having translated a 1000 line script that I had to ensure worked with element tagging which is a finicky thing in the first place when you're working with a script that isn't in your native language. And now I have to go through a script over double in size to find the mechanics employed to allow chained skills to work even if the caster didn't learn them? Well... yes I did. I went and looked line by line. And when I reached the halfway part, I found... ExpansionAX within the battlesystem just waiting...waiting... wai ... wai... WHAT THE HELL IS THIS??????
#==============================================================================
# ▼▲▼ XRXS37AX. Skill Learned Not Required for Skill Use ▼▲▼ #------------------------------------------------------------------------------ # by Sakuraga Zaito #============================================================================== #============================================================================== # ** Game_Actor #------------------------------------------------------------------------------ # This class handles the actor. It's used within the Game_Actors class # ($game_actors) and refers to the Game_Party class ($game_party). #============================================================================== class Game_Actor < Game_Battler #-------------------------------------------------------------------------- # * Determine if Skill can be Used # skill_id : skill ID #-------------------------------------------------------------------------- def skill_can_use?(skill_id) return super end end Translation by DerVVulfman
THIS IS IT? THIS IS WHAT I SPEND AN HOUR SEARCHING THROUGH HER SITES, CHECKING FOR ANY HINT OF ACTIVITY WITH THIS SCRIPT? AND WHEN I FIND IT, IT JUST ... REMOVES EVERYTHING BUT THE SUPERCLASS COMMAND?Well, honestly... it kinda makes sense. You cast skills that you learn. Why is there a check asking the actor if he learned the skill if he can only cast skills in his spellbook anyway? BUT THIS? I'm calling it a night ...
|