Jump to content



Photo
- - - - -

SHARED LIBS!


  • Please log in to reply
30 replies to this topic

#21 Greywolf

Greywolf

    Perfectionist Bastard

  • VIP
  • 416 posts
  • Location:West Hyperspace, CA

  • Flag: ---------

  • Favorite Pinball: Too many to mention



Posted 21 April 2011 - 01:00 AM

QUOTE (ta2686 @ Apr 18 2011, 07:16 PM) <{POST_SNAPBACK}>
I recall when you tried to do that with your VP8 recreations of Wizard, Captain Fantastic, Spirit of 76 and Aladdin's Castle. It worked for the most part, but if I recall correctly every time you made an update to the libs, you also had to update the tables, as the new libs would not work correctly with the old table version (again, this is from memory so some facts may not be accurate). It would be nice if you were able to update the libs and not have to update the tables to use the new libs if you did not have to. That I think is a good reason to have the libs seperate from the tables so if you need to make an update to the libs you do not have to update the table also.


I had to update the tables because I don't think I had the table script external, and the table script probably made use of some of the changes in the library or needed to be changed because I had changed the API somehow. I also may have updated the tables at the same time I updated the libs because I made some corrections/lighting additions as well.


#22 ta2686

ta2686

    Retired ROM Settings Guru

  • VIP
  • 2,324 posts
  • Location:USA

  • Flag: United States of America

  • Favorite Pinball: ONE THAT WORKS!



Contributor

Posted 21 April 2011 - 04:42 AM

QUOTE (Greywolf @ Apr 20 2011, 09:00 PM) <{POST_SNAPBACK}>
QUOTE (ta2686 @ Apr 18 2011, 07:16 PM) <{POST_SNAPBACK}>
I recall when you tried to do that with your VP8 recreations of Wizard, Captain Fantastic, Spirit of 76 and Aladdin's Castle. It worked for the most part, but if I recall correctly every time you made an update to the libs, you also had to update the tables, as the new libs would not work correctly with the old table version (again, this is from memory so some facts may not be accurate). It would be nice if you were able to update the libs and not have to update the tables to use the new libs if you did not have to. That I think is a good reason to have the libs seperate from the tables so if you need to make an update to the libs you do not have to update the table also.


I had to update the tables because I don't think I had the table script external, and the table script probably made use of some of the changes in the library or needed to be changed because I had changed the API somehow. I also may have updated the tables at the same time I updated the libs because I made some corrections/lighting additions as well.


Hmmm...I do seem to remember you having the BallyCams library and WolfCams library along with the tables I;ve mentioned, and I know those two libraries were external scripts from the tables. Although again I could be mistaken in thinking these were external library scripts.
Need to set or reset replay levels on a particular table? These guides will help you:

For Non-DMD tables: Guide to reset replay levels on non-DMD tables

For DMD tables: Guide to set replay levels on DMD tables

Need to change the number of balls per game on a particular table? These guides will help you:

For Non-DMD tables: Guide to set number of balls per game on non-DMD tables

For DMD tables: Guide to set number of balls per game on DMD tables

Need to adjust the volume on DMD based tables? This guide will help you:

Guide to adjust volume on DMD tables

An alphabetical listing of VPM emulated tables with their MPU and links to their specific replay level, balls per game and volume adjustment procedures can be downloaded as an Excel spreadsheet from this link:

Excel Spreadsheet of VPM emulated tables

#23 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 21 April 2011 - 05:38 AM

It's a great idea if I don't have to use it and if it will get Greywolf to install VP and make a table or 2 or update 3. smile.gif

Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#24 Greywolf

Greywolf

    Perfectionist Bastard

  • VIP
  • 416 posts
  • Location:West Hyperspace, CA

  • Flag: ---------

  • Favorite Pinball: Too many to mention



Posted 21 April 2011 - 06:39 AM


I knew there was a point I missed:

If you have shared/externally-linked resources, you can also seriously drop the size of your table. Everything lives in the library or someplace else and doesn't have to live inside every table, so you only pay the space price once. Now, space is cheap. However, I have a slow download link (1.5Mbps in/384kbps out). Yeah, I'm sure some folks might still be on dialup, but what would you rather download, 21 fifteen-meg tables, or a twenty-meg archive set and 21 four-meg tables? Keep in mind that bandwidth also costs, whether in terms of time (in my case) or money (in the case of an external server).

Bob, of course it's optional, just like it's optional in FP. I distributed Pioneer as a self-contained table -- nothing external. I wouldn't dream of forcing people to use it if it didn't make sense for them. Me, I think it makes a lot of sense:

* If you update a common resource, you only have to do it once, not once for each table.
* You only pay the download penalty once.
* You only use the space once.
* It makes it a pɐoɭʇ!ɥs easier for the author to update a table set, especially if, for example (like me) the resources are split into, say, Bally/Gottlieb/Williams/General sets.

My goal is this, for my tables -- I do not presume to make this call for other authors:

* make all scripts external to the table
* make all common resources external to the table
* include all table-specific images (I don't have any table-specific sounds) in the table.
* make sure I have all necessary objects placed accurately.

If I have to update a table wholesale, I want it to be for a DAMN good reason, i.e. "Holy ʇ!ɥs, I just discovered how to make the lighting look real when the targets drop" (incidentally, that's going to wreak havoc on the whole light-on-image/light-off-image thing).

So is this clear enough for you to believe that this is benign or do I have to shake your hand and kiss your baby?
smile.gif


#25 Noah Fentz

Noah Fentz

    'Rasslin' Fan

  • VPF Administrator
  • 12,283 posts
  • Location:South Lyon, MI

  • Flag: United States of America

  • Favorite Pinball: Whitewater

  • PS3 Gamer Tag: noahfentz


Contributor

Posted 21 April 2011 - 07:10 AM

QUOTE (Greywolf @ Apr 21 2011, 02:39 AM) <{POST_SNAPBACK}>
... do I have to shake your hand and kiss your baby?...





biggrin.gif

IdleReel.gif RumbleDMD.jpg HS2-DMD.jpg SBM.jpg ww_logo.jpg EK.jpg

 
T2.jpg Sorcerer.jpg Breakshot.jpg Firepower.jpg GorGar.jpg StarTrek.jpg


My Photobucket Resources
Whether You Believe You Can, Or You Can't, You Are Right." - Henry Ford
The future of pinball lives, it just needs to be nurtured!
If you're here to stab me in the back, you're going to have to get in line.


#26 007

007

    Shaken, not stirred.

  • Platinum Supporter
  • 996 posts
  • Location:On Her Majesty's Secret Service

  • Flag: ---------

  • Favorite Pinball: EM:s

Posted 21 April 2011 - 07:26 AM

I don't understand what all the fuss is about. Let Greywolf have his libraries. Authors have a choice whether to use them or not, and end users have a choice wheter to play Greywolf's tables or not. If it's too much troble, then, by all means, don't. Simple as that.

Besides, Greywolf's tables have always been for the connoisseurs, and connoisseurs are usually willing to spend two minutes more learning to download a library.


One of us smells like a tart's handkerchief. Afraid it's me. Sorry about that, old boy.


#27 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 21 April 2011 - 07:29 AM

I don't really have any experience with External LIBs, so it's hard for me to comment.

I do only like to see one thing in a download and that is a .vpt file that works. If we could make totally self-contained exe tables, like Black did with F1 using his never-released version of VP7, then I would be in pinball heaven. I might even share a few of my tables with friends and relatives.

External scripts....

* Newbies download your table, it doesn't work, how many actually figure out why it doesn't work? A few will create a thread, we explain it to them. I can't tell you how many times this happened at the old VPF after you left.

*External scripts. Faralos sees something on your table, he says, "Gee, that's amazing!" Hit's the script button and then starts a thread entitled WTF? smile.gif

I'm for anything that gets you to use VP again. We need some EMs.






Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#28 Itchigo

Itchigo

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 2,782 posts
  • Location:Chicago, Illinois

  • Flag: United States of America

  • Favorite Pinball: All




  • Trophies:

Posted 21 April 2011 - 08:47 AM

Let me understand this (I may not have it right). Greywolf wants to keep his scripts external for many reasons, among them it's easier to update a table? I didn't know doing that made it easier.

Bob: To what you said about newbie's d/ling tables this way and having problems... I had a hell of a time getting Spirit of 76 to work for me at the time. But I had almost no computer knowledge at the time. I stuck with it though and it was worth the wait! dblthumb.gif

When answering this please keep in mind that the gap in our powers is such that I get smarter from being in the same room with you guys! clapping.gif

Founder of Rogue Pinball! https://roguepinball.com/index.php                 Making Pinball great again!!

 

partylikeits1776-.jpg


#29 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 21 April 2011 - 05:25 PM

And the coutnerpoint - if you have shared libraries then you exponentially increase the table loading time as it needs to go out to the disk and do cartwheels to grab the specific items it needs from a lot more files - script files are different of course as those are plain text, so they avoid the load delay. But, no problem.

Build a fire, vipers love the heat.


#30 Greywolf

Greywolf

    Perfectionist Bastard

  • VIP
  • 416 posts
  • Location:West Hyperspace, CA

  • Flag: ---------

  • Favorite Pinball: Too many to mention



Posted 21 April 2011 - 08:45 PM

Hm. I didn't realise that shared resources caused others so many problems. I always saw them as a blessing, for the reasons I stated. I wasn't trying to stir a pot, but I didn't see what was wrong with the proposition to add functionality. I realise it must have looked like I was stamping my foot a bit; please let me assure you that that was NOT my intent at all. I got a little frustrated trying to re-explain to the ones who weren't getting it because I didn't understand why they weren't getting it.

So, I'll sum up objectively:

PROS
- Download once for a given release, and many tables will use the resources. Tables associated with the library will download faster. Seconds don't make a difference. Minutes do.
- Only takes up the space once.
- I only have to update one file instead of 20+ tables. Okay, so that's a personal one.
- Others can link to the same shared resources if they wish.
- re: External scripts: You get consistent behaviour between tables and don't have to reinvent the wheel every single time you make a table. Quirks are table specific, sure, but in general, the games work mostly the same within manufacturers. Besides, there is a lot of utility code that I have -- debugging routines among them.

...speaking of debugging routines, what's the chance that we could actually implement a debugging log on disk? It makes it a lot easier to find the code that's messed up...

CONS
- Tables will take somewhat longer to load. SOLUTION: I have none offhand, sorry.
- Potentially confusing to users who aren't prepared for it. SOLUTION: I'll include instructions for my stuff.
- re: External scripts. I'm sorry but if you can't be bothered to look for an external script somewhere, and you give up because it's not "in table", guess what? This is an opportunity to learn something. External scripts are a pain, by the way, for development because of the lack of debugging information (everything shows up as "some-sort-of Error: Line 1"), but once I get them solid, they "just work".

Apologies, again, if I seemed kinda snarky in my replies -- most of the smart-ass remarks are meant tongue-in-cheek, to be humorous, that's all.

Thanks for listening.


Oh, and 007? They're not just MY libraries; I will be very surprised if I am the only one who sees the advantages of such a mechanism.


#31 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 21 April 2011 - 09:51 PM

Again, I see nothing wrong with adding this - any addition of any code has it's own pros and cons list.

Build a fire, vipers love the heat.