de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Fix for "Error Depreciated" error in older script?
PostPosted: Sat Sep 24, 2016 4:03 pm 
Offline
Veteran
User avatar
I am updating my old scripts and just noticed a new error in my tweaked version of Doti's Blackjack script.

I get an "Error Depreciated" error (and SS stops running) generated by the line:
Code:
def thisImage = javax.imageio.ImageIO.read(new File("images/cards/deck"+deck+"/"+cards[i][j]+".png"))


I assume this is due to a code change in newer SS versions?

Doti, what do I need to change this line to, to fix the error?


Top
 Profile Send private message 
 
 Re: Fix for "Error Depreciated" error in older script?
PostPosted: Sun Sep 25, 2016 10:25 am 
Offline
Site Admin
User avatar
I think this topic is related

I corrected and published The White Queen


Top
 Profile Send private message 
 
 Re: Fix for "Error Depreciated" error in older script?
PostPosted: Sun Sep 25, 2016 11:05 am 
Offline
Veteran
User avatar
Thanks for the help, and for fixing The White Queen too! :)

Quick question: is there a way to fix the error (when checking):
Code:
Error in simulation (maybe not a real error) javax.imageio.IIOException: Can't read input file!(@ line 428)

(in the updated SpankBlackjack script that I just uploaded), or is it a "not error" that can be ignored (possibly caused by the wildcard filenames used in that line in my version compared to your White Queen version, which doesn't generate the error).


Top
 Profile Send private message 
 
 Re: Fix for "Error Depreciated" error in older script?
PostPosted: Sun Sep 25, 2016 11:34 am 
Offline
Site Admin
User avatar
You probably guessed it, during the simulation the tool may generate some random names, sus failing to open some related files.


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.