Created
June 23, 2025 03:46
-
-
Save KometFox/5c4c30c33b8c2a354f01619853adc046 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import re | |
| """ | |
| name: ModelFrames.Py | |
| version: 1 (alpha) | |
| description: Used for generating model frames | |
| """ | |
| """ | |
| """ | |
| LETTERS = ["A", "B", "C", "D", "E", "F", "G", "H", "I", | |
| "J", "K", "L", "M", "N", "O", "P", "Q", "R", | |
| "S", "T", "U", "V", "W", "X", "Y", "Z"] | |
| OUTPUTFILE = "MODELFRAMES.txt" | |
| def GenFrames(FrameNames, ModelCount): | |
| Data = "" | |
| DictSize = 3 | |
| FrameIndex = [] | |
| FrameNumbers = [] | |
| FrameTotal = 0 | |
| # ~ ModelCount += 1 | |
| for k, v in FrameNames.items(): | |
| FrameIndex.append(k) | |
| FrameNumbers.append(v) | |
| FrameTotal += v | |
| Index = 0 | |
| Loop = 0 | |
| Numbers = 0 | |
| Data += "\t" + "FrameIndex" + " " + "IDLE" + " " + "A" + " 0" + " " + "1" + "\n" | |
| while Loop < len(FrameNumbers): | |
| LetterCount = -1 | |
| FrameNames = 1 | |
| for idx in range(FrameNumbers[Index]): | |
| LetterCount += 1 | |
| Numbers += 1 | |
| if LetterCount > 25: | |
| LetterCount = 0 | |
| FrameNames += 1 | |
| for x in range(ModelCount): | |
| Data += "\t" + "FrameIndex" + " " + FrameIndex[Index] + str(FrameNames) + " " + LETTERS[LetterCount] + " " + str(x) + " " + str(Numbers) + "\n" | |
| Data += "\n" | |
| Index += 1 | |
| Loop += 1 | |
| return Data | |
| def WriteFile(): | |
| File = [] | |
| UwU = "\t//Autogenerated by ModelFrames.py \n" | |
| Bro = {} | |
| Bro["IDL"] = 1 | |
| Bro["FIR"] = 13 | |
| Bro["REL"] = 26 | |
| UwU += GenFrames(Bro, 1) | |
| File.append(UwU) | |
| data = open(OUTPUTFILE, "w") | |
| for k in File: | |
| data.write(str(k) + '\n') | |
| data.close() | |
| """ | |
| TODO: Use the proper method... | |
| """ | |
| def main(): | |
| WriteFile() | |
| main() | |
| """ | |
| Lucario | |
| Bro["IDL"] = 30 #Idle | |
| Bro["WAL"] = 16 #Walk | |
| Bro["RUN"] = 24 # Run | |
| Bro["HAA"] = 4 #Handattack 1 | |
| Bro["HAB"] = 4 | |
| Bro["FAP"] = 10 #Fastpunch | |
| Bro["HAP"] = 5 # Heavy | |
| Bro["AIM"] = 20 | |
| Bro["FIR"] = 7 | |
| Bro["DIE"] = 24 | |
| """ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment