Time Script, should I use addons?

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
Hello, so Im scripting a Time-System, and Im unsure how I should structure it.

Should I make a base Script, which handles the time, and make addons for it, like "custom tints for time periods" or "period name popup window".

Or should I make all this as a Feature of the Time-System Script.

I mean it would be much easier for the scripter to maintain the scripts, if he use an Addon-System.

How would you handle it?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I do prefer modular things... Makes it easier to just copy what I need... :)
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
Personally I would use a base with the tint option and then add different stuff later like a Day option or something like that.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Make everything an add-on and then determine whether something would make sense to be pulled into the base.


In the end, the more you hardcode into a script, the more you risk compatibility issues.
 
Last edited by a moderator:

Mouser

Veteran
Veteran
Joined
Aug 19, 2012
Messages
1,245
Reaction score
264
First Language
English
Primarily Uses
Make everything an add-on and then determine whether something would make sense to be pulled into the base.

In the end, the more you hardcode into a script, the more you risk compatibility issues.
The best way to avoid compatibility issues is to always overwrite the base classes directly whenever possible. This way you know that all of your changes are being worked in together as you go and you'll see any issues as they come up: the third time you rewrite Game_Battler or Scene_Map you'll see all the changes you've already done and know what you can and cannot change to keep everything working (or what needs to be rewritten to accommodate the new code).

As far as time scripts go, Vlue has got two great ones (basic and advanced), and I think somebody else has a time script, too (Yanfly maybe - I'm honestly not sure). Check the scripts forums and check on the homepages of the major scripters.

Study their scripts and see how they do things. Trace them out until you understand (grok)  how they work. It's very good if you can study two scripts by two different coders that accomplish the same task, as you'll see two different techniques and 'methods of attack' to solve the same problem.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
overwriting IMHO is quite not a good idea in a lot of cases... specially if you have two scripts that both overwrite the same method, that would then mean that only one of them would run...
 

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
@Mouser

Technically I have finished writing the Time-System, with all extras I wanted to include(Tints, Years, Clockwindow, etc.) and its all working,

but the code looks just so chaotic and unclear(so full), so I thought about splitting it in parts and make it modular. It also would be easier for the user to disinclude features he dont want to use.

Thanks all for the response, I will split the System up in parts.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Then probably just distribute it using a Demo file... XD
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top