Posts: 11,193
Threads: 649
Joined: May 2009
Text to RGSS
Version: 1.0
Introduction
Ever notice some scripts use an outside .txt file? Are you using an outside file and are worried someone will just open it up and read it before playing your game? Well, this script can take database-formatted text files and help you turn them into .rxdata or .rvdata files to be encrypted along with your game.
This system is derived from Yehinde's Data Encrypter/Decrypter, so plenty of credit is do to Yeyinde and Trickster who assisted.
It is a system designed for scripters to employ. But when they do, no longer will their projects be plagued with text files easily opened.
Demo
Text to RGSS
Instructions
Better watch the demo.
Compatability
The script works with both RPGMaker XP and RPGMaker VX.
Credits and Thanks
Definite thanks to Yeyinde who crafted more than 90% of the system, and to Trickster who helped on the initial development.
Terms and Conditions
Free for use.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 6
Threads: 1
Joined: Mar 2011
I have been playing around with this, its pretty awesome and may just be what I am looking for. I modified the Mindless class into this.
Code: module RPG
class Mindless
attr_accessor :id
attr_accessor :name
attr_accessor :species
attr_accessor :hp
attr_accessor :maxhp
attr_accessor :mp
attr_accessor :maxmp
attr_accessor :level
attr_accessor :attack
attr_accessor :defense
attr_accessor :spirit
attr_accessor :speed
attr_accessor :aptitude
attr_accessor :iv
attr_accessor :traits
attr_accessor :ability
attr_accessor :exp
def initialize
@id = 0
@name = ""
@species = ""
@hp = 0
@maxhp = 0
@mp = 0
@maxmp = 0
@level = 0
@attack = 0
@defense = 0
@spirit = 0
@speed = 0
@aptitude = 0
@iv = [0,0,0,0,0,0,0]
@traits = [0,0,0,0]
@ability = 0
@exp = [0,0,0,0,0,0,0,0]
end
end
end
and when I try to encrypt from my text file I get this Quote:Script 'Data Encrypter/Decrypter' line 321: NoMethodError occurred.
private method `chomp' called for nil:NilClass
I know the error is with 'var_data = name[1].chomp', but that is as far as my knowledge goes lol.
I am not certain how to actually debug in this case, can you see anything obvious and point me in the right direction?
Here is the text file
Code: id = 1
name = "Koromon"
species = "Dragon"
hp = 77
maxhp = 77
mp = 58
maxmp = 58
level = 3
attack = 52
defense = 35
spirit = 38
speed = 36
aptitude = 10
iv = [0,0,0,0,0,0,0]
traits = [1,0,0,0]
ability = 0
exp=[0,0,0,0,0,0,0,0]
id = 2
name = "Tsunomon"
species = "Beast"
hp = 94
maxhp = 94
mp = 57
maxmp = 57
level = 3
attack = 65
defense = 34
spirit = 35
speed = 30
aptitude = 10
iv = [0,0,0,0,0,0,0]
traits = [2,0,0,0]
ability = 0
exp=[0,0,0,0,0,0,0,0]
Posts: 11,193
Threads: 649
Joined: May 2009
Check the last field for both your records.
Code: exp=[0,0,0,0,0,0,0,0]
You forgot the space around the '=' signs for both your Koromon and Tsunomon Dragons
Tested it with the spaces... works.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 6
Threads: 1
Joined: Mar 2011
Wow I am amazed that space was the problem lol.
Now if I try to decrypt that same data, I only get the first item back in a text file, hrmm?
Code: iv = [0,0,0,0,0,0,0]
name = "Koromon"
maxmp = 58
level = 3
aptitude = 10
hp = 77
mp = 58
exp = [0,0,0,0,0,0,0,0]
attack = 52
speed = 36
ability = 0
maxhp = 77
spirit = 38
species = "Dragon"
traits = [1,0,0,0]
id = 1
defense = 35
Posts: 11,193
Threads: 649
Joined: May 2009
Need an extra line space after the last record set.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 1
Threads: 0
Joined: Jan 2013
hey, DerVVulfman... I was making a tutorial on another site and I have to use your database decrypter in order to make it work. Do you think that it would be okay if I either posted a link or put in the script with full creds, or both? I will add the tutorial here as well if that would please you. Anyway, thanks in advance if it works out and sorry to necropost if I did but I was having problems with PMs on here.
Posts: 11,193
Threads: 649
Joined: May 2009
Probably best to supply a link to this topic. I had issues recently with my current FileSharing site. Though it is back online, I am in the process of making mirror links just in case. That and I hang around here more often.. If anything comes up, I hit here first. I may forget about (yet) another site.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 422
Threads: 23
Joined: Aug 2011
I am using this to dump the databases to a text file, for use in translating. However when trying to do the Items.rxdata I got an error. Any idea on what "Script 'Data Encrypter/Decrypter' line 345 Errno::EBDAF occured. Bad file descriptor" means?
Posts: 11,193
Threads: 649
Joined: May 2009
First off, lemme just say 'It's been over a year? Figures..."
Well, I took a look at the lines involved. It begins a loop to sort through the data.... skips the lines if there IS no data... then begins a routine to get data from each item. Before line 345, I made a duplicate similar in nature ... but displays the data in question ( p data_file + ' #' + i.to_s)... thus letting me see it go from Items #1 ... Items 32. Even erasing an item from the database didn't create the error you described. It still holds data, but data of empty fields. name = ""... icon_name = "" ... etc.
I am wondering if it is something in the Items database itself... that may be causing the problem. Invalid data or characters it isn't compatible.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 422
Threads: 23
Joined: Aug 2011
It is a Japanese game, so I don't doubt that some of the characters may not be supported. The script still made a text file, so it is still partially helpful.
Edit: It fails on the 383rd entry. The only thing strange about it is the name; ヤクシニー*
Oh one more question! For some reason, every entry alternates between staring with 'animation1_id' and 'consumable' Why would they be different? Just because?
|