Jump to content

Photo

2.5.1 std.zh update?


  • Please log in to reply
10 replies to this topic

#1 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 19 June 2013 - 03:46 AM

Hey guys. As the title implies, what other utility or otherwise useful functions, if any, are missing from std.zh?

 

They don't have to directly go inside std.zh per se, perhaps a ffc_utils, enemy_utils, etc..  I'm not a fan of large headers myself - we only have to preserve backward compatibility, but std.zh itself can be broken up into even smaller files similar to what was mentioned.

 

There is ffc.zh, and I know that inside ghost.zh there is a lot of utility stuff that is very useful. I also found a few files with some goodies as well. Now that scripting is more widely used I think the scripting community should have a say in what it needs and model it to better fit how scripts are being used, and what is lacking

 

Thoughts on any of the above?

 



#2 Avaro

Avaro

    >w<

  • Members

Posted 19 June 2013 - 05:59 AM

I think it is fine as is already, and I enjoy scripting a lot.



#3 grayswandir

grayswandir

    semi-genius

  • Members

Posted 19 June 2013 - 11:35 AM

Here's some random stuff from my util folder that might be useful in general.

Codes

 

But yes, I'd rather have more stuff included, and organizing things better is always nice.


Edited by grayswandir, 19 June 2013 - 11:37 AM.


#4 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 19 June 2013 - 01:47 PM

Have you seen stdExtra.zh? Having that added to ZC (preferably optimized first) would be awesome.

#5 Saffith

Saffith

    IPv7 user

  • Members

Posted 19 June 2013 - 01:59 PM

I"m not sure how much we really want to change std.zh. Even some bugfixes will make it incompatible with 2.50's version, meaning some scripts will effectively require 2.50.1 despite it having no new script functionality.



#6 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 19 June 2013 - 06:42 PM

Still, it's worth a discussion. The fact that there is an stdExtra, and the fact that it was already nominated, alone means there are missing functionality people are using, and could use another update.

#7 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 23 June 2013 - 03:47 PM

I'm with you Gleeok std.zh needs to be revised as their are bugs. Here's the deal though; as Saffith pointed out some bug fixes might result in breaking scripts. Solution? Have the old ones in a file named deprecated_functions.zh. And the fixed ones have a different name allowing both to coexist without breaking nuttin.



#8 Saffith

Saffith

    IPv7 user

  • Members

Posted 24 June 2013 - 10:41 AM

Breaking existing scripts isn't really the biggest issue. It's more about introducing new functionality. There shouldn't be things that works in 2.50.1 but not 2.50.

But then, that's also potentially an issue with bug fixes in the game itself, so maybe I shouldn't be quite so strict about it. I guess my preference, then, would be to fix problems in std.zh, but not add anything new.



#9 LinktheMaster

LinktheMaster

    Hey Listen, Kid

  • Members
  • Real Name:Matt
  • Location:United States

Posted 24 June 2013 - 12:22 PM

Just a thought.  If you're concerned about that, maybe you could just add a separate download for the 2.5.1 versions of std.zh?  I mean, unless I'm being dumb, I wouldn't think there would be a problem unless old scripts are broken.  I would think that unless new features are added into the actual ZC/ZQ versions of 2.5.1, quests made in 2.5.1 would be playable in ZC 2.5.1.  And different versions of std.zh might be an issue there.

 

I guess the only real issue is if someone were to take a 2.5.1 quest and try to put it into ZQ 2.50 and scripts not working when recompiling.  However, I would think most people who would use scripts enough would be knowledegable of what's going on with ZC enough to know that they need to pick up the new std files.  You could even update the 2.50 downloads with the new versions of std.zh.  Everyone else could download those 2.5.1 std files separately.



#10 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 24 June 2013 - 03:03 PM

I see what you mean now Saffith. It would break scripts that use functions with those names already. So yeah adding stuff would be pointless at this time. It does need to be revised though.

 

Collision Functions have a imprecision of 1, or is that intentional?

 

SpinDir() flips DIR_LEFT with DIR_UP instead of DIR_DOWN like it should.



#11 RetraRoyale

RetraRoyale

    Doyen(ne)

  • Members

Posted 03 July 2013 - 08:16 PM

How about screen scroll direction and warp detection functions?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users