FileIni HC
#2
Commentary on The Basics section

I was just revisiting this script thread when I noticed that some of the instructions were erroneous, misleading. They simply asked you to open a file the usual way when this script doesn't do that. File and FileIni classes work in different ways! Happy with a sweat Plus, File has no comment_out method because that is exclusive of the new FileIni class. Laughing

Sorry about that! Happy with a sweat

Note:

If you want to run it on RMXP or VX ACE, well, you can IF you edit 1 single line of code! Shocked

This version works on HiddenChest only.
Code:
value&.empty? ? default : value

But this one should run almost anywhere! Shocked
Code:
(value and value.empty?)? default : value

It just happens that the first line was quite convenient for HiddenChest that runs on Ruby Ruby 2.7, not 1.8 like RMXP or VX nor 1.9 like VX ACE.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply


Messages In This Thread
FileIni HC - by kyonides - 07-15-2025, 07:24 AM
RE: FileIni HC - by kyonides - Yesterday, 12:18 PM



Users browsing this thread: