Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Text to RGSS
#1
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...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }
#2
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]

Reply }
#3
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. Winking
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }
#4
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
Reply }
#5
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...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }
#6
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.
Reply }
#7
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...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }
#8
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?
Reply }
#9
First off, lemme just say 'It's been over a year? Figures..." Laughing

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. Sad
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }
#10
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?
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Text Scroll Script - Enhanced DerVVulfman 23 29,450 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Message Text from Files DerVVulfman 0 4,566 04-13-2016, 03:25 AM
Last Post: DerVVulfman
   Customize/Disable Text Outline + Shadow (v1.1) Zerbu 3 6,892 11-01-2015, 03:56 PM
Last Post: DerVVulfman
   Text Sound Effect (SE) v1.1 Zerbu 3 7,161 11-01-2015, 03:53 PM
Last Post: DerVVulfman
   Text Extraction Generator DerVVulfman 5 11,253 10-13-2014, 09:32 PM
Last Post: Narzew
   Damage Text Revamp 2.1 PK8 3 11,529 04-08-2012, 06:47 PM
Last Post: PK8
   Victor Engine - Control Text Victor Sant 0 3,912 01-04-2012, 08:12 AM
Last Post: Victor Sant
   Record AVI using RGSS Armorphor 4 10,210 09-22-2011, 06:58 AM
Last Post: Armorphor
   Auto-Sizing Text Windows RPG Advocate 9 16,585 06-11-2011, 06:18 PM
Last Post: sagam12
   Another Scrolling Text Script kyonides 1 5,697 04-12-2010, 01:36 AM
Last Post: Shiroiyuki



Users browsing this thread: